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. This method supports patch semantics.
See: Gmail API Reference for gmail.users.settings.sendAs.patch
.
- type UsersSettingsSendAsPatchResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("sendAs" :> (Capture "sendAsEmail" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SendAs :> Patch '[JSON] SendAs))))))))
- usersSettingsSendAsPatch :: SendAs -> Text -> UsersSettingsSendAsPatch
- data UsersSettingsSendAsPatch
- ussapPayload :: Lens' UsersSettingsSendAsPatch SendAs
- ussapUserId :: Lens' UsersSettingsSendAsPatch Text
- ussapSendAsEmail :: Lens' UsersSettingsSendAsPatch Text
REST Resource
type UsersSettingsSendAsPatchResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("sendAs" :> (Capture "sendAsEmail" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SendAs :> Patch '[JSON] SendAs)))))))) Source #
A resource alias for gmail.users.settings.sendAs.patch
method which the
UsersSettingsSendAsPatch
request conforms to.
Creating a Request
usersSettingsSendAsPatch Source #
Creates a value of UsersSettingsSendAsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersSettingsSendAsPatch Source #
Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. This method supports patch semantics.
See: usersSettingsSendAsPatch
smart constructor.
Request Lenses
ussapPayload :: Lens' UsersSettingsSendAsPatch SendAs Source #
Multipart request metadata.
ussapUserId :: Lens' UsersSettingsSendAsPatch Text Source #
User's email address. The special value "me" can be used to indicate the authenticated user.
ussapSendAsEmail :: Lens' UsersSettingsSendAsPatch Text Source #
The send-as alias to be updated.