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

Contents

Description

Gets the specified draft.

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

Synopsis

REST Resource

type UsersDraftsGetResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("drafts" :> (Capture "id" Text :> (QueryParam "format" UsersDraftsGetFormat :> (QueryParam "alt" AltJSON :> Get '[JSON] Draft))))))) Source #

A resource alias for gmail.users.drafts.get method which the UsersDraftsGet request conforms to.

Creating a Request

usersDraftsGet Source #

Arguments

:: Text

udgId

-> UsersDraftsGet 

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

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

data UsersDraftsGet Source #

Gets the specified draft.

See: usersDraftsGet smart constructor.

Instances
Eq UsersDraftsGet Source # 
Instance details

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

Data UsersDraftsGet Source # 
Instance details

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

Methods

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

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

toConstr :: UsersDraftsGet -> Constr #

dataTypeOf :: UsersDraftsGet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersDraftsGet Source # 
Instance details

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

Generic UsersDraftsGet Source # 
Instance details

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

Associated Types

type Rep UsersDraftsGet :: Type -> Type #

GoogleRequest UsersDraftsGet Source # 
Instance details

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

Associated Types

type Rs UsersDraftsGet :: Type #

type Scopes UsersDraftsGet :: [Symbol] #

type Rep UsersDraftsGet Source # 
Instance details

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

type Rep UsersDraftsGet = D1 (MetaData "UsersDraftsGet" "Network.Google.Resource.Gmail.Users.Drafts.Get" "gogol-gmail-0.4.0-EDJmLuxza63I9QV4rXNgT4" False) (C1 (MetaCons "UsersDraftsGet'" PrefixI True) (S1 (MetaSel (Just "_udgFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UsersDraftsGetFormat) :*: (S1 (MetaSel (Just "_udgUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_udgId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes UsersDraftsGet Source # 
Instance details

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

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

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

Request Lenses

udgFormat :: Lens' UsersDraftsGet UsersDraftsGetFormat Source #

The format to return the draft in.

udgUserId :: Lens' UsersDraftsGet Text Source #

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

udgId :: Lens' UsersDraftsGet Text Source #

The ID of the draft to retrieve.