Class UsersResource.SettingsResource.ForwardingAddressesResource
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
ForwardingAddressThe body of the request.
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
Returns
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
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
forwardingEmail
stringThe forwarding address to be deleted.
Returns
Get(string, string)
Gets the specified forwarding address.
public virtual UsersResource.SettingsResource.ForwardingAddressesResource.GetRequest Get(string userId, string forwardingEmail)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
forwardingEmail
stringThe forwarding address to be retrieved.
Returns
List(string)
Lists the forwarding addresses for the specified account.
public virtual UsersResource.SettingsResource.ForwardingAddressesResource.ListRequest List(string userId)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.