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.
See: Gmail API Reference for gmail.users.settings.sendAs.update
.
- 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.
See: usersSettingsSendAsUpdate
smart constructor.
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.