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 |
Creates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. This method is only available to service account clients that have been delegated domain-wide authority.
See: Gmail API Reference for gmail.users.settings.forwardingAddresses.create
.
Synopsis
- type UsersSettingsForwardingAddressesCreateResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("forwardingAddresses" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ForwardingAddress :> Post '[JSON] ForwardingAddress)))))))
- usersSettingsForwardingAddressesCreate :: ForwardingAddress -> UsersSettingsForwardingAddressesCreate
- data UsersSettingsForwardingAddressesCreate
- usfacPayload :: Lens' UsersSettingsForwardingAddressesCreate ForwardingAddress
- usfacUserId :: Lens' UsersSettingsForwardingAddressesCreate Text
REST Resource
type UsersSettingsForwardingAddressesCreateResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("settings" :> ("forwardingAddresses" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ForwardingAddress :> Post '[JSON] ForwardingAddress))))))) Source #
A resource alias for gmail.users.settings.forwardingAddresses.create
method which the
UsersSettingsForwardingAddressesCreate
request conforms to.
Creating a Request
usersSettingsForwardingAddressesCreate Source #
Creates a value of UsersSettingsForwardingAddressesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersSettingsForwardingAddressesCreate Source #
Creates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. This method is only available to service account clients that have been delegated domain-wide authority.
See: usersSettingsForwardingAddressesCreate
smart constructor.
Instances
Request Lenses
usfacPayload :: Lens' UsersSettingsForwardingAddressesCreate ForwardingAddress Source #
Multipart request metadata.
usfacUserId :: Lens' UsersSettingsForwardingAddressesCreate Text Source #
User's email address. The special value "me" can be used to indicate the authenticated user.