gogol-gmail-0.4.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 # 
Instance details

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

Data UsersDraftsCreate Source # 
Instance details

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

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 # 
Instance details

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

Generic UsersDraftsCreate Source # 
Instance details

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

Associated Types

type Rep UsersDraftsCreate :: Type -> Type #

GoogleRequest UsersDraftsCreate Source # 
Instance details

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

Associated Types

type Rs UsersDraftsCreate :: Type #

type Scopes UsersDraftsCreate :: [Symbol] #

GoogleRequest (MediaUpload UsersDraftsCreate) Source # 
Instance details

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

type Rep UsersDraftsCreate Source # 
Instance details

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

type Rep UsersDraftsCreate = D1 (MetaData "UsersDraftsCreate" "Network.Google.Resource.Gmail.Users.Drafts.Create" "gogol-gmail-0.4.0-EDJmLuxza63I9QV4rXNgT4" False) (C1 (MetaCons "UsersDraftsCreate'" PrefixI True) (S1 (MetaSel (Just "_udcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Draft) :*: S1 (MetaSel (Just "_udcUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes UsersDraftsCreate Source # 
Instance details

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

type Scopes UsersDraftsCreate = "https://mail.google.com/" ': ("https://www.googleapis.com/auth/gmail.compose" ': ("https://www.googleapis.com/auth/gmail.modify" ': ([] :: [Symbol])))
type Rs UsersDraftsCreate Source # 
Instance details

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

type Scopes (MediaUpload UsersDraftsCreate) Source # 
Instance details

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

type Rs (MediaUpload UsersDraftsCreate) Source # 
Instance details

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

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.