Class UsersResource.SettingsResource.ForwardingAddressesResource
The "forwardingAddresses" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Gmail.v1
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class 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. |
| System.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 |
|---|---|---|
| System.String | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
| System.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 |
|---|---|---|
| System.String | userId | User's email address. The special value "me" can be used to indicate the authenticated user. |
| System.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 |
|---|---|---|
| System.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 |