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

Contents

Description

Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to.

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

Synopsis

REST Resource

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

A resource alias for gmail.users.labels.delete method which the UsersLabelsDelete request conforms to.

Creating a Request

usersLabelsDelete Source #

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

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

data UsersLabelsDelete Source #

Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to.

See: usersLabelsDelete smart constructor.

Instances
Eq UsersLabelsDelete Source # 
Instance details

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

Data UsersLabelsDelete Source # 
Instance details

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

Methods

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

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

toConstr :: UsersLabelsDelete -> Constr #

dataTypeOf :: UsersLabelsDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersLabelsDelete Source # 
Instance details

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

Generic UsersLabelsDelete Source # 
Instance details

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

Associated Types

type Rep UsersLabelsDelete :: Type -> Type #

GoogleRequest UsersLabelsDelete Source # 
Instance details

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

Associated Types

type Rs UsersLabelsDelete :: Type #

type Scopes UsersLabelsDelete :: [Symbol] #

type Rep UsersLabelsDelete Source # 
Instance details

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

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

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

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

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

Request Lenses

uldUserId :: Lens' UsersLabelsDelete Text Source #

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

uldId :: Lens' UsersLabelsDelete Text Source #

The ID of the label to delete.