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.Settings.ForwardingAddresses.Create

Contents

Description

Creates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. This method is only available to service account clients that have been delegated domain-wide authority.

See: Gmail API Reference for gmail.users.settings.forwardingAddresses.create.

Synopsis

REST Resource

type UsersSettingsForwardingAddressesCreateResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("forwardingAddresses" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ForwardingAddress :> Post '[JSON] ForwardingAddress))))))) Source #

A resource alias for gmail.users.settings.forwardingAddresses.create method which the UsersSettingsForwardingAddressesCreate request conforms to.

Creating a Request

usersSettingsForwardingAddressesCreate Source #

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

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

data UsersSettingsForwardingAddressesCreate Source #

Creates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. This method is only available to service account clients that have been delegated domain-wide authority.

See: usersSettingsForwardingAddressesCreate smart constructor.

Instances
Eq UsersSettingsForwardingAddressesCreate Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.ForwardingAddresses.Create

Data UsersSettingsForwardingAddressesCreate Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.ForwardingAddresses.Create

Methods

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

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

toConstr :: UsersSettingsForwardingAddressesCreate -> Constr #

dataTypeOf :: UsersSettingsForwardingAddressesCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersSettingsForwardingAddressesCreate Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.ForwardingAddresses.Create

Generic UsersSettingsForwardingAddressesCreate Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.ForwardingAddresses.Create

GoogleRequest UsersSettingsForwardingAddressesCreate Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.ForwardingAddresses.Create

type Rep UsersSettingsForwardingAddressesCreate Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.ForwardingAddresses.Create

type Rep UsersSettingsForwardingAddressesCreate = D1 (MetaData "UsersSettingsForwardingAddressesCreate" "Network.Google.Resource.Gmail.Users.Settings.ForwardingAddresses.Create" "gogol-gmail-0.4.0-EDJmLuxza63I9QV4rXNgT4" False) (C1 (MetaCons "UsersSettingsForwardingAddressesCreate'" PrefixI True) (S1 (MetaSel (Just "_usfacPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ForwardingAddress) :*: S1 (MetaSel (Just "_usfacUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes UsersSettingsForwardingAddressesCreate Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.ForwardingAddresses.Create

type Scopes UsersSettingsForwardingAddressesCreate = "https://www.googleapis.com/auth/gmail.settings.sharing" ': ([] :: [Symbol])
type Rs UsersSettingsForwardingAddressesCreate Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.ForwardingAddresses.Create

Request Lenses

usfacUserId :: Lens' UsersSettingsForwardingAddressesCreate Text Source #

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