Class UsersResource.SettingsResource.ForwardingAddressesResource
The "forwardingAddresses" collection of methods.
Inherited Members
Namespace: Google.Apis.Gmail.v1
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class UsersResource.SettingsResource.ForwardingAddressesResource
Constructors
ForwardingAddressesResource(IClientService)
Constructs a new resource.
Declaration
public ForwardingAddressesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(ForwardingAddress, string)
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.
Declaration
public virtual UsersResource.SettingsResource.ForwardingAddressesResource.CreateRequest Create(ForwardingAddress body, string userId)
Parameters
Type | Name | Description |
---|---|---|
ForwardingAddress | body | The body of the request. |
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
Returns
Type | Description |
---|---|
UsersResource.SettingsResource.ForwardingAddressesResource.CreateRequest |
Delete(string, string)
Deletes the specified forwarding address and revokes any verification that may have been required. This method is only available to service account clients that have been delegated domain-wide authority.
Declaration
public virtual UsersResource.SettingsResource.ForwardingAddressesResource.DeleteRequest Delete(string userId, string forwardingEmail)
Parameters
Type | Name | Description |
---|---|---|
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
string | forwardingEmail | The forwarding address to be deleted. |
Returns
Type | Description |
---|---|
UsersResource.SettingsResource.ForwardingAddressesResource.DeleteRequest |
Get(string, string)
Gets the specified forwarding address.
Declaration
public virtual UsersResource.SettingsResource.ForwardingAddressesResource.GetRequest Get(string userId, string forwardingEmail)
Parameters
Type | Name | Description |
---|---|---|
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
string | forwardingEmail | The forwarding address to be retrieved. |
Returns
Type | Description |
---|---|
UsersResource.SettingsResource.ForwardingAddressesResource.GetRequest |
List(string)
Lists the forwarding addresses for the specified account.
Declaration
public virtual UsersResource.SettingsResource.ForwardingAddressesResource.ListRequest List(string userId)
Parameters
Type | Name | Description |
---|---|---|
string | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
Returns
Type | Description |
---|---|
UsersResource.SettingsResource.ForwardingAddressesResource.ListRequest |