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.Update

Contents

Description

Replaces a draft's content.

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

Synopsis

REST Resource

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

A resource alias for gmail.users.drafts.update method which the UsersDraftsUpdate request conforms to.

Creating a Request

usersDraftsUpdate Source #

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

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

data UsersDraftsUpdate Source #

Replaces a draft's content.

See: usersDraftsUpdate smart constructor.

Instances
Eq UsersDraftsUpdate Source # 
Instance details

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

Data UsersDraftsUpdate Source # 
Instance details

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

Methods

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

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

toConstr :: UsersDraftsUpdate -> Constr #

dataTypeOf :: UsersDraftsUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersDraftsUpdate Source # 
Instance details

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

Generic UsersDraftsUpdate Source # 
Instance details

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

Associated Types

type Rep UsersDraftsUpdate :: Type -> Type #

GoogleRequest UsersDraftsUpdate Source # 
Instance details

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

Associated Types

type Rs UsersDraftsUpdate :: Type #

type Scopes UsersDraftsUpdate :: [Symbol] #

GoogleRequest (MediaUpload UsersDraftsUpdate) Source # 
Instance details

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

type Rep UsersDraftsUpdate Source # 
Instance details

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

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

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

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

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

type Scopes (MediaUpload UsersDraftsUpdate) Source # 
Instance details

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

type Rs (MediaUpload UsersDraftsUpdate) Source # 
Instance details

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

Request Lenses

uduPayload :: Lens' UsersDraftsUpdate Draft Source #

Multipart request metadata.

uduUserId :: Lens' UsersDraftsUpdate Text Source #

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

uduId :: Lens' UsersDraftsUpdate Text Source #

The ID of the draft to update.