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 |
Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority.
See: Gmail API Reference for gmail.users.settings.sendAs.update
.
Synopsis
- type UsersSettingsSendAsUpdateResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("sendAs" :> (Capture "sendAsEmail" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SendAs :> Put '[JSON] SendAs))))))))
- usersSettingsSendAsUpdate :: SendAs -> Text -> UsersSettingsSendAsUpdate
- data UsersSettingsSendAsUpdate
- ussauPayload :: Lens' UsersSettingsSendAsUpdate SendAs
- ussauUserId :: Lens' UsersSettingsSendAsUpdate Text
- ussauSendAsEmail :: Lens' UsersSettingsSendAsUpdate Text
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. Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority.
See: usersSettingsSendAsUpdate
smart constructor.
Instances
Request Lenses
ussauPayload :: Lens' UsersSettingsSendAsUpdate SendAs Source #
Multipart request metadata.
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.