gogol-gmail-0.3.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.Update

Contents

Description

Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.

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

Synopsis

REST Resource

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

A resource alias for gmail.users.settings.sendAs.update method which the UsersSettingsSendAsUpdate request conforms to.

Creating a Request

usersSettingsSendAsUpdate Source #

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

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

data UsersSettingsSendAsUpdate Source #

Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.

See: usersSettingsSendAsUpdate smart constructor.

Instances

Eq UsersSettingsSendAsUpdate Source # 
Data UsersSettingsSendAsUpdate Source # 

Methods

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

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

toConstr :: UsersSettingsSendAsUpdate -> Constr #

dataTypeOf :: UsersSettingsSendAsUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersSettingsSendAsUpdate Source # 
Generic UsersSettingsSendAsUpdate Source # 
GoogleRequest UsersSettingsSendAsUpdate Source # 
type Rep UsersSettingsSendAsUpdate Source # 
type Rep UsersSettingsSendAsUpdate = D1 (MetaData "UsersSettingsSendAsUpdate" "Network.Google.Resource.Gmail.Users.Settings.SendAs.Update" "gogol-gmail-0.3.0-LsjK5jY5aBO3wn73Gztk4i" False) (C1 (MetaCons "UsersSettingsSendAsUpdate'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ussauPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SendAs)) ((:*:) (S1 (MetaSel (Just Symbol "_ussauUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ussauSendAsEmail") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes UsersSettingsSendAsUpdate Source # 
type Scopes UsersSettingsSendAsUpdate = (:) Symbol "https://www.googleapis.com/auth/gmail.settings.basic" ((:) Symbol "https://www.googleapis.com/auth/gmail.settings.sharing" ([] Symbol))
type Rs UsersSettingsSendAsUpdate Source # 

Request Lenses

ussauUserId :: Lens' UsersSettingsSendAsUpdate Text Source #

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

ussauSendAsEmail :: Lens' UsersSettingsSendAsUpdate Text Source #

The send-as alias to be updated.