gogol-gmail-0.2.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.Threads.Modify

Contents

Description

Modifies the labels applied to the thread. This applies to all messages in the thread.

See: Gmail API Reference for gmail.users.threads.modify.

Synopsis

REST Resource

type UsersThreadsModifyResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("threads" :> (Capture "id" Text :> ("modify" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ModifyThreadRequest :> Post '[JSON] Thread)))))))) Source #

A resource alias for gmail.users.threads.modify method which the UsersThreadsModify request conforms to.

Creating a Request

usersThreadsModify Source #

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

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

data UsersThreadsModify Source #

Modifies the labels applied to the thread. This applies to all messages in the thread.

See: usersThreadsModify smart constructor.

Instances

Eq UsersThreadsModify Source # 
Data UsersThreadsModify Source # 

Methods

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

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

toConstr :: UsersThreadsModify -> Constr #

dataTypeOf :: UsersThreadsModify -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersThreadsModify Source # 
Generic UsersThreadsModify Source # 
GoogleRequest UsersThreadsModify Source # 
type Rep UsersThreadsModify Source # 
type Rep UsersThreadsModify = D1 (MetaData "UsersThreadsModify" "Network.Google.Resource.Gmail.Users.Threads.Modify" "gogol-gmail-0.2.0-E4i4RtGKYej4RON8UGqMJ5" False) (C1 (MetaCons "UsersThreadsModify'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_utmPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ModifyThreadRequest)) ((:*:) (S1 (MetaSel (Just Symbol "_utmUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_utmId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes UsersThreadsModify Source # 
type Scopes UsersThreadsModify = (:) Symbol "https://mail.google.com/" ((:) Symbol "https://www.googleapis.com/auth/gmail.modify" ([] Symbol))
type Rs UsersThreadsModify Source # 

Request Lenses

utmUserId :: Lens' UsersThreadsModify Text Source #

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

utmId :: Lens' UsersThreadsModify Text Source #

The ID of the thread to modify.