Class UsersResource.SettingsResource.SendAsResource
The "sendAs" collection of methods.
public class UsersResource.SettingsResource.SendAsResource
- Inheritance
-
UsersResource.SettingsResource.SendAsResource
- Inherited Members
Constructors
SendAsResource(IClientService)
Constructs a new resource.
public SendAsResource(IClientService service)
Parameters
service
IClientService
Properties
SmimeInfo
Gets the SmimeInfo resource.
public virtual UsersResource.SettingsResource.SendAsResource.SmimeInfoResource SmimeInfo { get; }
Property Value
Methods
Create(SendAs, string)
Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will attempt to
connect to the SMTP service to validate the configuration before creating the alias. If ownership
verification is required for the alias, a message will be sent to the email address and the
resource's verification status will be set to pending
; otherwise, the resource will be created
with verification status set to accepted
. If a signature is provided, Gmail will sanitize the HTML
before saving it with the alias. This method is only available to service account clients that have
been delegated domain-wide authority.
public virtual UsersResource.SettingsResource.SendAsResource.CreateRequest Create(SendAs body, string userId)
Parameters
body
SendAsThe 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 send-as alias. Revokes any verification that may have been required for using it. This method is only available to service account clients that have been delegated domain-wide authority.
public virtual UsersResource.SettingsResource.SendAsResource.DeleteRequest Delete(string userId, string sendAsEmail)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
sendAsEmail
stringThe send-as alias to be deleted.
Returns
Get(string, string)
Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection.
public virtual UsersResource.SettingsResource.SendAsResource.GetRequest Get(string userId, string sendAsEmail)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
sendAsEmail
stringThe send-as alias to be retrieved.
Returns
List(string)
Lists the send-as aliases for the specified account. The result includes the primary send- as address associated with the account as well as any custom "from" aliases.
public virtual UsersResource.SettingsResource.SendAsResource.ListRequest List(string userId)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
Returns
Patch(SendAs, string, string)
Patch the specified send-as alias.
public virtual UsersResource.SettingsResource.SendAsResource.PatchRequest Patch(SendAs body, string userId, string sendAsEmail)
Parameters
body
SendAsThe body of the request.
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
sendAsEmail
stringThe send-as alias to be updated.
Returns
Update(SendAs, string, string)
Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority.
public virtual UsersResource.SettingsResource.SendAsResource.UpdateRequest Update(SendAs body, string userId, string sendAsEmail)
Parameters
body
SendAsThe body of the request.
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
sendAsEmail
stringThe send-as alias to be updated.
Returns
Verify(string, string)
Sends a verification email to the specified send-as alias address. The verification status
must be pending
. This method is only available to service account clients that have been delegated
domain-wide authority.
public virtual UsersResource.SettingsResource.SendAsResource.VerifyRequest Verify(string userId, string sendAsEmail)
Parameters
userId
stringUser's email address. The special value "me" can be used to indicate the authenticated user.
sendAsEmail
stringThe send-as alias to be verified.