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.SendAs.Patch

Contents

Description

Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority. This method supports patch semantics.

See: Gmail API Reference for gmail.users.settings.sendAs.patch.

Synopsis

REST Resource

type UsersSettingsSendAsPatchResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("sendAs" :> (Capture "sendAsEmail" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SendAs :> Patch '[JSON] SendAs)))))))) Source #

A resource alias for gmail.users.settings.sendAs.patch method which the UsersSettingsSendAsPatch request conforms to.

Creating a Request

usersSettingsSendAsPatch Source #

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

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

data UsersSettingsSendAsPatch Source #

Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority. This method supports patch semantics.

See: usersSettingsSendAsPatch smart constructor.

Instances
Eq UsersSettingsSendAsPatch Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.Patch

Data UsersSettingsSendAsPatch Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.Patch

Methods

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

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

toConstr :: UsersSettingsSendAsPatch -> Constr #

dataTypeOf :: UsersSettingsSendAsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersSettingsSendAsPatch Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.Patch

Generic UsersSettingsSendAsPatch Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.Patch

Associated Types

type Rep UsersSettingsSendAsPatch :: Type -> Type #

GoogleRequest UsersSettingsSendAsPatch Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.Patch

type Rep UsersSettingsSendAsPatch Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.Patch

type Rep UsersSettingsSendAsPatch = D1 (MetaData "UsersSettingsSendAsPatch" "Network.Google.Resource.Gmail.Users.Settings.SendAs.Patch" "gogol-gmail-0.4.0-EDJmLuxza63I9QV4rXNgT4" False) (C1 (MetaCons "UsersSettingsSendAsPatch'" PrefixI True) (S1 (MetaSel (Just "_ussapPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SendAs) :*: (S1 (MetaSel (Just "_ussapUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ussapSendAsEmail") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes UsersSettingsSendAsPatch Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.Patch

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

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.Patch

Request Lenses

ussapUserId :: Lens' UsersSettingsSendAsPatch Text Source #

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

ussapSendAsEmail :: Lens' UsersSettingsSendAsPatch Text Source #

The send-as alias to be updated.