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

Contents

Description

Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled. This method is only available to service account clients that have been delegated domain-wide authority.

See: Gmail API Reference for gmail.users.settings.updateAutoForwarding.

Synopsis

REST Resource

type UsersSettingsUpdateAutoForwardingResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("autoForwarding" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AutoForwarding :> Put '[JSON] AutoForwarding))))))) Source #

A resource alias for gmail.users.settings.updateAutoForwarding method which the UsersSettingsUpdateAutoForwarding request conforms to.

Creating a Request

usersSettingsUpdateAutoForwarding Source #

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

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

data UsersSettingsUpdateAutoForwarding Source #

Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled. This method is only available to service account clients that have been delegated domain-wide authority.

See: usersSettingsUpdateAutoForwarding smart constructor.

Instances
Eq UsersSettingsUpdateAutoForwarding Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.UpdateAutoForwarding

Data UsersSettingsUpdateAutoForwarding Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.UpdateAutoForwarding

Methods

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

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

toConstr :: UsersSettingsUpdateAutoForwarding -> Constr #

dataTypeOf :: UsersSettingsUpdateAutoForwarding -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersSettingsUpdateAutoForwarding Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.UpdateAutoForwarding

Generic UsersSettingsUpdateAutoForwarding Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.UpdateAutoForwarding

Associated Types

type Rep UsersSettingsUpdateAutoForwarding :: Type -> Type #

GoogleRequest UsersSettingsUpdateAutoForwarding Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.UpdateAutoForwarding

type Rep UsersSettingsUpdateAutoForwarding Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.UpdateAutoForwarding

type Rep UsersSettingsUpdateAutoForwarding = D1 (MetaData "UsersSettingsUpdateAutoForwarding" "Network.Google.Resource.Gmail.Users.Settings.UpdateAutoForwarding" "gogol-gmail-0.4.0-EDJmLuxza63I9QV4rXNgT4" False) (C1 (MetaCons "UsersSettingsUpdateAutoForwarding'" PrefixI True) (S1 (MetaSel (Just "_usuafPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AutoForwarding) :*: S1 (MetaSel (Just "_usuafUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes UsersSettingsUpdateAutoForwarding Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.UpdateAutoForwarding

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

Defined in Network.Google.Resource.Gmail.Users.Settings.UpdateAutoForwarding

Request Lenses

usuafUserId :: Lens' UsersSettingsUpdateAutoForwarding Text Source #

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