UsersSettingsSendAsResourceApi class

Constructors

UsersSettingsSendAsResourceApi(ApiRequester client)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
smimeInfo UsersSettingsSendAsSmimeInfoResourceApi
read-only

Methods

create(SendAs request, String userId, {String $fields}) Future<SendAs>
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. [...]
delete(String userId, String sendAsEmail, {String $fields}) Future
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. [...]
get(String userId, String sendAsEmail, {String $fields}) Future<SendAs>
Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection. [...]
list(String userId, {String $fields}) Future<ListSendAsResponse>
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. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
patch(SendAs request, String userId, String sendAsEmail, {String $fields}) Future<SendAs>
Patch the specified send-as alias. [...]
toString() String
Returns a string representation of this object.
inherited
update(SendAs request, String userId, String sendAsEmail, {String $fields}) Future<SendAs>
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. [...]
verify(String userId, String sendAsEmail, {String $fields}) Future
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. [...]

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited