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 the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled. This method is only available to service account clients that have been delegated domain-wide authority.
See: Gmail API Reference for gmail.users.settings.updateAutoForwarding
.
Synopsis
- type UsersSettingsUpdateAutoForwardingResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("autoForwarding" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AutoForwarding :> Put '[JSON] AutoForwarding)))))))
- usersSettingsUpdateAutoForwarding :: AutoForwarding -> UsersSettingsUpdateAutoForwarding
- data UsersSettingsUpdateAutoForwarding
- usuafPayload :: Lens' UsersSettingsUpdateAutoForwarding AutoForwarding
- usuafUserId :: Lens' UsersSettingsUpdateAutoForwarding Text
REST Resource
type UsersSettingsUpdateAutoForwardingResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("autoForwarding" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AutoForwarding :> Put '[JSON] AutoForwarding))))))) Source #
A resource alias for gmail.users.settings.updateAutoForwarding
method which the
UsersSettingsUpdateAutoForwarding
request conforms to.
Creating a Request
usersSettingsUpdateAutoForwarding Source #
Creates a value of UsersSettingsUpdateAutoForwarding
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersSettingsUpdateAutoForwarding Source #
Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled. This method is only available to service account clients that have been delegated domain-wide authority.
See: usersSettingsUpdateAutoForwarding
smart constructor.
Instances
Request Lenses
usuafPayload :: Lens' UsersSettingsUpdateAutoForwarding AutoForwarding Source #
Multipart request metadata.
usuafUserId :: Lens' UsersSettingsUpdateAutoForwarding Text Source #
User's email address. The special value "me" can be used to indicate the authenticated user.