Table of Contents

Class UsersResource.SettingsResource.ForwardingAddressesResource

Namespace
Google.Apis.Gmail.v1
Assembly
Google.Apis.Gmail.v1.dll

The "forwardingAddresses" collection of methods.

public class UsersResource.SettingsResource.ForwardingAddressesResource
Inheritance
UsersResource.SettingsResource.ForwardingAddressesResource
Inherited Members

Constructors

ForwardingAddressesResource(IClientService)

Constructs a new resource.

public ForwardingAddressesResource(IClientService service)

Parameters

service IClientService

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.

public virtual UsersResource.SettingsResource.ForwardingAddressesResource.CreateRequest Create(ForwardingAddress body, string userId)

Parameters

body ForwardingAddress

The body of the request.

userId string

User's email address. The special value "me" can be used to indicate the authenticated user.

Returns

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.

public virtual UsersResource.SettingsResource.ForwardingAddressesResource.DeleteRequest Delete(string userId, string forwardingEmail)

Parameters

userId string

User's email address. The special value "me" can be used to indicate the authenticated user.

forwardingEmail string

The forwarding address to be deleted.

Returns

UsersResource.SettingsResource.ForwardingAddressesResource.DeleteRequest

Get(string, string)

Gets the specified forwarding address.

public virtual UsersResource.SettingsResource.ForwardingAddressesResource.GetRequest Get(string userId, string forwardingEmail)

Parameters

userId string

User's email address. The special value "me" can be used to indicate the authenticated user.

forwardingEmail string

The forwarding address to be retrieved.

Returns

UsersResource.SettingsResource.ForwardingAddressesResource.GetRequest

List(string)

Lists the forwarding addresses for the specified account.

public virtual UsersResource.SettingsResource.ForwardingAddressesResource.ListRequest List(string userId)

Parameters

userId string

User's email address. The special value "me" can be used to indicate the authenticated user.

Returns

UsersResource.SettingsResource.ForwardingAddressesResource.ListRequest