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.Messages.Trash

Contents

Description

Moves the specified message to the trash.

See: Gmail API Reference for gmail.users.messages.trash.

Synopsis

REST Resource

type UsersMessagesTrashResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> (Capture "id" Text :> ("trash" :> (QueryParam "alt" AltJSON :> Post '[JSON] Message))))))) Source #

A resource alias for gmail.users.messages.trash method which the UsersMessagesTrash request conforms to.

Creating a Request

usersMessagesTrash Source #

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

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

data UsersMessagesTrash Source #

Moves the specified message to the trash.

See: usersMessagesTrash smart constructor.

Instances
Eq UsersMessagesTrash Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Trash

Data UsersMessagesTrash Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Trash

Methods

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

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

toConstr :: UsersMessagesTrash -> Constr #

dataTypeOf :: UsersMessagesTrash -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersMessagesTrash Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Trash

Generic UsersMessagesTrash Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Trash

Associated Types

type Rep UsersMessagesTrash :: Type -> Type #

GoogleRequest UsersMessagesTrash Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Trash

Associated Types

type Rs UsersMessagesTrash :: Type #

type Scopes UsersMessagesTrash :: [Symbol] #

type Rep UsersMessagesTrash Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Trash

type Rep UsersMessagesTrash = D1 (MetaData "UsersMessagesTrash" "Network.Google.Resource.Gmail.Users.Messages.Trash" "gogol-gmail-0.4.0-EDJmLuxza63I9QV4rXNgT4" False) (C1 (MetaCons "UsersMessagesTrash'" PrefixI True) (S1 (MetaSel (Just "_umtUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_umtId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes UsersMessagesTrash Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Messages.Trash

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

Defined in Network.Google.Resource.Gmail.Users.Messages.Trash

Request Lenses

umtUserId :: Lens' UsersMessagesTrash Text Source #

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

umtId :: Lens' UsersMessagesTrash Text Source #

The ID of the message to Trash.