Module google_gmail1::api

source ·

Structs§

  • Auto-forwarding settings for an account.
  • There is no detailed description.
  • There is no detailed description.
  • The client-side encryption (CSE) configuration for the email address of an authenticated user. Gmail uses CSE configurations to save drafts of client-side encrypted email messages, and to sign and send encrypted email messages.
  • A client-side encryption S/MIME key pair, which is comprised of a public key, its certificate chain, and metadata for its paired private key. Gmail uses the key pair to complete the following tasks: - Sign outgoing client-side encrypted messages. - Save and reopen drafts of client-side encrypted messages. - Save and reopen sent messages. - Decrypt incoming or archived S/MIME messages.
  • Metadata for a private key instance.
  • Settings for a delegate. Delegates can read, send, and delete messages, as well as view and add contacts, for the delegator’s account. See “Set up mail delegation” for more information about delegates.
  • Requests to turn off a client-side encryption key pair.
  • A draft email in the user’s mailbox.
  • Requests to turn on a client-side encryption key pair.
  • Resource definition for Gmail filters. Filters apply to specific messages instead of an entire email thread.
  • A set of actions to perform on a message.
  • Message matching criteria.
  • Settings for a forwarding address.
  • Central instance to access all Gmail related resource activities
  • Metadata for hardware keys.
  • A record of a change to the user’s mailbox. Each history change may affect multiple messages in multiple ways.
  • There is no detailed description.
  • There is no detailed description.
  • There is no detailed description.
  • There is no detailed description.
  • IMAP settings for an account.
  • Metadata for private keys managed by an external key access control list service. For details about managing key access, see Google Workspace CSE API Reference.
  • Labels are used to categorize messages and threads within the user’s mailbox. The maximum number of labels supported for a user’s mailbox is 10,000.
  • There is no detailed description.
  • Language settings for an account. These settings correspond to the “Language settings” feature in the web interface.
  • There is no detailed description.
  • There is no detailed description.
  • Response for the ListDelegates method.
  • There is no detailed description.
  • Response for the ListFilters method.
  • Response for the ListForwardingAddresses method.
  • There is no detailed description.
  • There is no detailed description.
  • There is no detailed description.
  • Response for the ListSendAs method.
  • There is no detailed description.
  • There is no detailed description.
  • An email message.
  • A single MIME message part.
  • The body of a single MIME message part.
  • There is no detailed description.
  • There is no detailed description.
  • There is no detailed description.
  • Request to obliterate a CSE key pair.
  • POP settings for an account.
  • Profile for a Gmail user.
  • Settings associated with a send-as alias, which can be either the primary login address associated with the account or a custom “from” address. Send-as aliases correspond to the “Send Mail As” feature in the web interface.
  • The configuration of a CSE identity that uses different key pairs for signing and encryption.
  • An S/MIME email config.
  • Configuration for communication with an SMTP service.
  • A collection of messages representing a conversation.
  • Creates a new draft with the DRAFT label.
  • Immediately and permanently deletes the specified draft. Does not simply trash it.
  • Gets the specified draft.
  • Lists the drafts in the user’s mailbox.
  • Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.
  • Replaces a draft’s content.
  • Gets the current user’s Gmail profile.
  • Lists the history of all changes to the given mailbox. History results are returned in chronological order (increasing historyId).
  • Creates a new label.
  • Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to.
  • Gets the specified label.
  • Lists all labels in the user’s mailbox.
  • Patch the specified label.
  • Updates the specified label.
  • Gets the specified message attachment.
  • Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all.
  • Modifies the labels on the specified messages.
  • Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer messages.trash instead.
  • Gets the specified message.
  • Imports a message into only this user’s mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. This method doesn’t perform SPF checks, so it might not work for some spam messages, such as those attempting to perform domain spoofing. This method does not send a message.
  • Directly inserts a message into only this user’s mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.
  • Lists the messages in the user’s mailbox.
  • Modifies the labels on the specified message.
  • Sends the specified message to the recipients in the To, Cc, and Bcc headers. For example usage, see Sending email.
  • Moves the specified message to the trash.
  • Removes the specified message from the trash.
  • A builder providing access to all methods supported on user resources. It is not used directly, but through the Gmail hub.
  • Creates and configures a client-side encryption identity that’s authorized to send mail from the user account. Google publishes the S/MIME certificate to a shared domain-wide directory so that people within a Google Workspace organization can encrypt and send mail to the identity.
  • Deletes a client-side encryption identity. The authenticated user can no longer use the identity to send encrypted messages. You cannot restore the identity after you delete it. Instead, use the CreateCseIdentity method to create another identity with the same configuration.
  • Retrieves a client-side encryption identity configuration.
  • Lists the client-side encrypted identities for an authenticated user.
  • Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google’s S/MIME certificate profiles.
  • Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user.
  • Turns off a client-side encryption key pair. The authenticated user can no longer use the key pair to decrypt incoming CSE message texts or sign outgoing CSE mail. To regain access, use the EnableCseKeyPair to turn on the key pair. After 30 days, you can permanently delete the key pair by using the ObliterateCseKeyPair method.
  • Turns on a client-side encryption key pair that was turned off. The key pair becomes active again for any associated client-side encryption identities.
  • Retrieves an existing client-side encryption key pair.
  • Lists client-side encryption key pairs for an authenticated user.
  • Deletes a client-side encryption key pair permanently and immediately. You can only permanently delete key pairs that have been turned off for more than 30 days. To turn off a key pair, use the DisableCseKeyPair method. Gmail can’t restore or decrypt any messages that were encrypted by an obliterated key. Authenticated users and Google Workspace administrators lose access to reading the encrypted messages.
  • Adds a delegate with its verification status set directly to accepted, without sending any verification email. The delegate user must be a member of the same Google Workspace organization as the delegator user. Gmail imposes limitations on the number of delegates and delegators each user in a Google Workspace organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators. Note that a delegate user must be referred to by their primary email address, and not an email alias. Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use. This method is only available to service account clients that have been delegated domain-wide authority.
  • Removes the specified delegate (which can be of any verification status), and revokes any verification that may have been required for using it. Note that a delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority.
  • Gets the specified delegate. Note that a delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority.
  • Lists the delegates for the specified account. This method is only available to service account clients that have been delegated domain-wide authority.
  • Creates a filter. Note: you can only create a maximum of 1,000 filters.
  • Immediately and permanently deletes the specified filter.
  • Gets a filter.
  • Lists the message filters of a Gmail user.
  • 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.
  • 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.
  • Gets the specified forwarding address.
  • Lists the forwarding addresses for the specified account.
  • Gets the auto-forwarding setting for the specified account.
  • Gets IMAP settings.
  • Gets language settings.
  • Gets POP settings.
  • Gets vacation responder settings.
  • 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.
  • 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.
  • Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection.
  • 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.
  • Patch the specified send-as alias.
  • Deletes the specified S/MIME config for the specified send-as alias.
  • Gets the specified S/MIME config for the specified send-as alias.
  • Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key.
  • Lists S/MIME configs for the specified send-as alias.
  • Sets the default S/MIME config for the specified send-as alias.
  • 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.
  • 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.
  • Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled. This method is only available to service account clients that have been delegated domain-wide authority.
  • Updates IMAP settings.
  • Updates language settings. If successful, the return object contains the displayLanguage that was saved for the user, which may differ from the value passed into the request. This is because the requested displayLanguage may not be directly supported by Gmail but have a close variant that is, and so the variant may be chosen and saved instead.
  • Updates POP settings.
  • Updates vacation responder settings.
  • Stop receiving push notifications for the given user mailbox.
  • Immediately and permanently deletes the specified thread. Any messages that belong to the thread are also deleted. This operation cannot be undone. Prefer threads.trash instead.
  • Gets the specified thread.
  • Lists the threads in the user’s mailbox.
  • Modifies the labels applied to the thread. This applies to all messages in the thread.
  • Moves the specified thread to the trash. Any messages that belong to the thread are also moved to the trash.
  • Removes the specified thread from the trash. Any messages that belong to the thread are also removed from the trash.
  • Set up or update a push notification watch on the given user mailbox.
  • Vacation auto-reply settings for an account. These settings correspond to the “Vacation responder” feature in the web interface.
  • Set up or update a new push notification watch on this user’s mailbox.
  • Push notification watch response.

Enums§