gogol-gmail-0.3.0: Google Gmail SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Gmail.Users.Drafts.Create

Contents

Description

Creates a new draft with the DRAFT label.

See: Gmail API Reference for gmail.users.drafts.create.

Synopsis

REST Resource

type UsersDraftsCreateResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Draft :> Post '[JSON] Draft))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Draft :> Post '[JSON] Draft))))))))) Source #

A resource alias for gmail.users.drafts.create method which the UsersDraftsCreate request conforms to.

Creating a Request

usersDraftsCreate Source #

Creates a value of UsersDraftsCreate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UsersDraftsCreate Source #

Creates a new draft with the DRAFT label.

See: usersDraftsCreate smart constructor.

Instances

Eq UsersDraftsCreate Source # 
Data UsersDraftsCreate Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UsersDraftsCreate -> c UsersDraftsCreate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UsersDraftsCreate #

toConstr :: UsersDraftsCreate -> Constr #

dataTypeOf :: UsersDraftsCreate -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UsersDraftsCreate) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UsersDraftsCreate) #

gmapT :: (forall b. Data b => b -> b) -> UsersDraftsCreate -> UsersDraftsCreate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UsersDraftsCreate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UsersDraftsCreate -> r #

gmapQ :: (forall d. Data d => d -> u) -> UsersDraftsCreate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UsersDraftsCreate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UsersDraftsCreate -> m UsersDraftsCreate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UsersDraftsCreate -> m UsersDraftsCreate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UsersDraftsCreate -> m UsersDraftsCreate #

Show UsersDraftsCreate Source # 
Generic UsersDraftsCreate Source # 
GoogleRequest UsersDraftsCreate Source # 
GoogleRequest (MediaUpload UsersDraftsCreate) Source # 
type Rep UsersDraftsCreate Source # 
type Rep UsersDraftsCreate = D1 (MetaData "UsersDraftsCreate" "Network.Google.Resource.Gmail.Users.Drafts.Create" "gogol-gmail-0.3.0-LsjK5jY5aBO3wn73Gztk4i" False) (C1 (MetaCons "UsersDraftsCreate'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_udcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Draft)) (S1 (MetaSel (Just Symbol "_udcUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes UsersDraftsCreate Source # 
type Scopes UsersDraftsCreate = (:) Symbol "https://mail.google.com/" ((:) Symbol "https://www.googleapis.com/auth/gmail.compose" ((:) Symbol "https://www.googleapis.com/auth/gmail.modify" ([] Symbol)))
type Rs UsersDraftsCreate Source # 
type Scopes (MediaUpload UsersDraftsCreate) Source # 
type Rs (MediaUpload UsersDraftsCreate) Source # 

Request Lenses

udcPayload :: Lens' UsersDraftsCreate Draft Source #

Multipart request metadata.

udcUserId :: Lens' UsersDraftsCreate Text Source #

The user's email address. The special value me can be used to indicate the authenticated user.