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.SmimeInfo.Insert

Contents

Description

Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key.

See: Gmail API Reference for gmail.users.settings.sendAs.smimeInfo.insert.

Synopsis

REST Resource

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

A resource alias for gmail.users.settings.sendAs.smimeInfo.insert method which the UsersSettingsSendAsSmimeInfoInsert request conforms to.

Creating a Request

usersSettingsSendAsSmimeInfoInsert Source #

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

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

data UsersSettingsSendAsSmimeInfoInsert Source #

Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key.

See: usersSettingsSendAsSmimeInfoInsert smart constructor.

Instances
Eq UsersSettingsSendAsSmimeInfoInsert Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.SmimeInfo.Insert

Data UsersSettingsSendAsSmimeInfoInsert Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.SmimeInfo.Insert

Methods

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

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

toConstr :: UsersSettingsSendAsSmimeInfoInsert -> Constr #

dataTypeOf :: UsersSettingsSendAsSmimeInfoInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersSettingsSendAsSmimeInfoInsert Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.SmimeInfo.Insert

Generic UsersSettingsSendAsSmimeInfoInsert Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.SmimeInfo.Insert

Associated Types

type Rep UsersSettingsSendAsSmimeInfoInsert :: Type -> Type #

GoogleRequest UsersSettingsSendAsSmimeInfoInsert Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.SmimeInfo.Insert

type Rep UsersSettingsSendAsSmimeInfoInsert Source # 
Instance details

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.SmimeInfo.Insert

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

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.SmimeInfo.Insert

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

Defined in Network.Google.Resource.Gmail.Users.Settings.SendAs.SmimeInfo.Insert

Request Lenses

ussasiiUserId :: Lens' UsersSettingsSendAsSmimeInfoInsert Text Source #

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

ussasiiSendAsEmail :: Lens' UsersSettingsSendAsSmimeInfoInsert Text Source #

The email address that appears in the "From:" header for mail sent using this alias.