Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- type UsersSettingsSendAsSmimeInfoInsertResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("sendAs" :> (Capture "sendAsEmail" Text :> ("smimeInfo" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SmimeInfo :> Post '[JSON] SmimeInfo)))))))))
- usersSettingsSendAsSmimeInfoInsert :: SmimeInfo -> Text -> UsersSettingsSendAsSmimeInfoInsert
- data UsersSettingsSendAsSmimeInfoInsert
- ussasiiPayload :: Lens' UsersSettingsSendAsSmimeInfoInsert SmimeInfo
- ussasiiUserId :: Lens' UsersSettingsSendAsSmimeInfoInsert Text
- ussasiiSendAsEmail :: Lens' UsersSettingsSendAsSmimeInfoInsert Text
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
Request Lenses
ussasiiPayload :: Lens' UsersSettingsSendAsSmimeInfoInsert SmimeInfo Source #
Multipart request metadata.
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.