gogol-gmail-0.2.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.Create

Contents

Description

Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. 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.create.

Synopsis

REST Resource

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

A resource alias for gmail.users.settings.sendAs.create method which the UsersSettingsSendAsCreate request conforms to.

Creating a Request

usersSettingsSendAsCreate Source #

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

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

data UsersSettingsSendAsCreate Source #

Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.

See: usersSettingsSendAsCreate smart constructor.

Instances

Eq UsersSettingsSendAsCreate Source # 
Data UsersSettingsSendAsCreate Source # 

Methods

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

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

toConstr :: UsersSettingsSendAsCreate -> Constr #

dataTypeOf :: UsersSettingsSendAsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersSettingsSendAsCreate Source # 
Generic UsersSettingsSendAsCreate Source # 
GoogleRequest UsersSettingsSendAsCreate Source # 
type Rep UsersSettingsSendAsCreate Source # 
type Rep UsersSettingsSendAsCreate = D1 (MetaData "UsersSettingsSendAsCreate" "Network.Google.Resource.Gmail.Users.Settings.SendAs.Create" "gogol-gmail-0.2.0-E4i4RtGKYej4RON8UGqMJ5" False) (C1 (MetaCons "UsersSettingsSendAsCreate'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ussacPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SendAs)) (S1 (MetaSel (Just Symbol "_ussacUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes UsersSettingsSendAsCreate Source # 
type Scopes UsersSettingsSendAsCreate = (:) Symbol "https://www.googleapis.com/auth/gmail.settings.sharing" ([] Symbol)
type Rs UsersSettingsSendAsCreate Source # 

Request Lenses

ussacUserId :: Lens' UsersSettingsSendAsCreate Text Source #

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