ストアドプロシージャ
ストアドプロシージャはファンクションライクなインターフェースで、Gmail の単純なSELECT/INSERT/UPDATE/DELETE 処理にとどまらず本製品 の機能を拡張します。
ストアドプロシージャは、パラメータのリストを受け取り、目的の機能を実行し、プロシージャが成功したか失敗したかを示すとともにGmail から関連するレスポンスデータを返します。
CData Cmdlets PowerShell Module for Gmail ストアドプロシージャ
| Name | Description |
| DownloadAttachments | Downloads attachments of an email. |
| GetAutoForwarding | Gets the auto-forwarding setting for the specified account. |
| GetImap | Query IMAP settings. |
| GetLanguage | Language settings for an account. These settings correspond to the 'Language settings' feature in the web interface. |
| GetOAuthAccessToken | Obtains the OAuth access token to be used for authentication with various Google services. |
| GetOAuthAuthorizationURL | Obtains the OAuth authorization URL used for authentication with various Google services. |
| GetPop | Query POP settings. |
| GetUserProfile | Gets the current user's Gmail profile. |
| GetVacations | Gets vacation responder settings. |
| ImportMessage | 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. |
| RefreshOAuthAccessToken | Obtains the OAuth access token to be used for authentication with various Google services. |
| ReplyToMailMessage | Reply to a mail message. |
| SendDraft | Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers. |
| SendMailMessage | Sends a message to the specified recipient. |
| SetDefaultSendAsAliasSmimeConfig | Sets the default S/MIME config for the specified send-as alias. |
| StartNotifications | Set up or update a push notification watch on the given user mailbox. |
| StopNotifications | Stop receiving push notifications for the given user mailbox. |
| TrashMessage | Moves the specified message to the trash. |
| UntrashMessage | Removes the specified message from the trash. |
| UpdateAutoForwarding | Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled. |
| UpdateImap | Updates IMAP settings. |
| UpdateLanguage | Update 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. |
| UpdateMessageLabels | Update message labels by either adding or removing labels to messages. |
| UpdatePop | Updates POP settings. |
| UpdateVacations | Updates vacation responder settings. |
| VerifySendAs | 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. |