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

Contents

Description

Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer messages.trash instead.

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

Synopsis

REST Resource

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

A resource alias for gmail.users.messages.delete method which the UsersMessagesDelete request conforms to.

Creating a Request

usersMessagesDelete Source #

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

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

data UsersMessagesDelete Source #

Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer messages.trash instead.

See: usersMessagesDelete smart constructor.

Instances
Eq UsersMessagesDelete Source # 
Instance details

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

Data UsersMessagesDelete Source # 
Instance details

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

Methods

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

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

toConstr :: UsersMessagesDelete -> Constr #

dataTypeOf :: UsersMessagesDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersMessagesDelete Source # 
Instance details

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

Generic UsersMessagesDelete Source # 
Instance details

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

Associated Types

type Rep UsersMessagesDelete :: Type -> Type #

GoogleRequest UsersMessagesDelete Source # 
Instance details

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

Associated Types

type Rs UsersMessagesDelete :: Type #

type Scopes UsersMessagesDelete :: [Symbol] #

type Rep UsersMessagesDelete Source # 
Instance details

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

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

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

type Scopes UsersMessagesDelete = "https://mail.google.com/" ': ([] :: [Symbol])
type Rs UsersMessagesDelete Source # 
Instance details

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

Request Lenses

umdUserId :: Lens' UsersMessagesDelete Text Source #

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

umdId :: Lens' UsersMessagesDelete Text Source #

The ID of the message to delete.