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.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. This method is only available to service account clients that have been delegated domain-wide authority.

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. This method is only available to service account clients that have been delegated domain-wide authority.

See: usersSettingsSendAsCreate smart constructor.

Instances
Eq UsersSettingsSendAsCreate Source # 
Instance details

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

Data UsersSettingsSendAsCreate Source # 
Instance details

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

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 # 
Instance details

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

Generic UsersSettingsSendAsCreate Source # 
Instance details

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

Associated Types

type Rep UsersSettingsSendAsCreate :: Type -> Type #

GoogleRequest UsersSettingsSendAsCreate Source # 
Instance details

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

type Rep UsersSettingsSendAsCreate Source # 
Instance details

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

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

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

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

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

Request Lenses

ussacUserId :: Lens' UsersSettingsSendAsCreate Text Source #

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