Index: generated/googleapis/lib/gmail/v1.dart |
diff --git a/generated/googleapis/lib/gmail/v1.dart b/generated/googleapis/lib/gmail/v1.dart |
index 739a6447804933fb9c2bd6f3f19ea866a763714a..5f2d9c669a9757497c8613e2bfe8eb1b51eb00d6 100644 |
--- a/generated/googleapis/lib/gmail/v1.dart |
+++ b/generated/googleapis/lib/gmail/v1.dart |
@@ -9,89 +9,101 @@ import 'dart:convert' as convert; |
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
import 'package:http/http.dart' as http; |
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
- ApiRequestError, DetailedApiRequestError, Media, UploadOptions, |
- ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, |
- ByteRange; |
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
+ show |
+ ApiRequestError, |
+ DetailedApiRequestError, |
+ Media, |
+ UploadOptions, |
+ ResumableUploadOptions, |
+ DownloadOptions, |
+ PartialDownloadOptions, |
+ ByteRange; |
const core.String USER_AGENT = 'dart-api-client gmail/v1'; |
-/** Access Gmail mailboxes including sending user email. */ |
+/// Access Gmail mailboxes including sending user email. |
class GmailApi { |
- /** Read, send, delete, and manage your email */ |
+ /// Read, send, delete, and manage your email |
static const MailGoogleComScope = "https://mail.google.com/"; |
- /** Manage drafts and send emails */ |
- static const GmailComposeScope = "https://www.googleapis.com/auth/gmail.compose"; |
+ /// Manage drafts and send emails |
+ static const GmailComposeScope = |
+ "https://www.googleapis.com/auth/gmail.compose"; |
- /** Insert mail into your mailbox */ |
- static const GmailInsertScope = "https://www.googleapis.com/auth/gmail.insert"; |
+ /// Insert mail into your mailbox |
+ static const GmailInsertScope = |
+ "https://www.googleapis.com/auth/gmail.insert"; |
- /** Manage mailbox labels */ |
- static const GmailLabelsScope = "https://www.googleapis.com/auth/gmail.labels"; |
+ /// Manage mailbox labels |
+ static const GmailLabelsScope = |
+ "https://www.googleapis.com/auth/gmail.labels"; |
- /** |
- * View your email message metadata such as labels and headers, but not the |
- * email body |
- */ |
- static const GmailMetadataScope = "https://www.googleapis.com/auth/gmail.metadata"; |
+ /// View your email message metadata such as labels and headers, but not the |
+ /// email body |
+ static const GmailMetadataScope = |
+ "https://www.googleapis.com/auth/gmail.metadata"; |
- /** View and modify but not delete your email */ |
- static const GmailModifyScope = "https://www.googleapis.com/auth/gmail.modify"; |
+ /// View and modify but not delete your email |
+ static const GmailModifyScope = |
+ "https://www.googleapis.com/auth/gmail.modify"; |
- /** View your emails messages and settings */ |
- static const GmailReadonlyScope = "https://www.googleapis.com/auth/gmail.readonly"; |
+ /// View your emails messages and settings |
+ static const GmailReadonlyScope = |
+ "https://www.googleapis.com/auth/gmail.readonly"; |
- /** Send email on your behalf */ |
+ /// Send email on your behalf |
static const GmailSendScope = "https://www.googleapis.com/auth/gmail.send"; |
- /** Manage your basic mail settings */ |
- static const GmailSettingsBasicScope = "https://www.googleapis.com/auth/gmail.settings.basic"; |
- |
- /** |
- * Manage your sensitive mail settings, including who can manage your mail |
- */ |
- static const GmailSettingsSharingScope = "https://www.googleapis.com/auth/gmail.settings.sharing"; |
+ /// Manage your basic mail settings |
+ static const GmailSettingsBasicScope = |
+ "https://www.googleapis.com/auth/gmail.settings.basic"; |
+ /// Manage your sensitive mail settings, including who can manage your mail |
+ static const GmailSettingsSharingScope = |
+ "https://www.googleapis.com/auth/gmail.settings.sharing"; |
final commons.ApiRequester _requester; |
UsersResourceApi get users => new UsersResourceApi(_requester); |
- GmailApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "gmail/v1/users/"}) : |
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
+ GmailApi(http.Client client, |
+ {core.String rootUrl: "https://www.googleapis.com/", |
+ core.String servicePath: "gmail/v1/users/"}) |
+ : _requester = |
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
} |
- |
class UsersResourceApi { |
final commons.ApiRequester _requester; |
UsersDraftsResourceApi get drafts => new UsersDraftsResourceApi(_requester); |
- UsersHistoryResourceApi get history => new UsersHistoryResourceApi(_requester); |
+ UsersHistoryResourceApi get history => |
+ new UsersHistoryResourceApi(_requester); |
UsersLabelsResourceApi get labels => new UsersLabelsResourceApi(_requester); |
- UsersMessagesResourceApi get messages => new UsersMessagesResourceApi(_requester); |
- UsersSettingsResourceApi get settings => new UsersSettingsResourceApi(_requester); |
- UsersThreadsResourceApi get threads => new UsersThreadsResourceApi(_requester); |
- |
- UsersResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Gets the current user's Gmail profile. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [Profile]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ UsersMessagesResourceApi get messages => |
+ new UsersMessagesResourceApi(_requester); |
+ UsersSettingsResourceApi get settings => |
+ new UsersSettingsResourceApi(_requester); |
+ UsersThreadsResourceApi get threads => |
+ new UsersThreadsResourceApi(_requester); |
+ |
+ UsersResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Gets the current user's Gmail profile. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [Profile]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<Profile> getProfile(core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -106,30 +118,27 @@ class UsersResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/profile'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Profile.fromJson(data)); |
} |
- /** |
- * Stop receiving push notifications for the given user mailbox. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Stop receiving push notifications for the given user mailbox. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future stop(core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -146,34 +155,31 @@ class UsersResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/stop'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Set up or update a push notification watch on the given user mailbox. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [WatchResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Set up or update a push notification watch on the given user mailbox. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [WatchResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<WatchResponse> watch(WatchRequest request, core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -191,49 +197,46 @@ class UsersResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/watch'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new WatchResponse.fromJson(data)); |
} |
- |
} |
- |
class UsersDraftsResourceApi { |
final commons.ApiRequester _requester; |
- UsersDraftsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Creates a new draft with the DRAFT label. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [uploadMedia] - The media to upload. |
- * |
- * [uploadOptions] - Options for the media upload. Streaming Media without the |
- * length being known ahead of time is only supported via resumable uploads. |
- * |
- * Completes with a [Draft]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Draft> create(Draft request, core.String userId, {commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { |
+ UsersDraftsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Creates a new draft with the DRAFT label. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [uploadMedia] - The media to upload. |
+ /// |
+ /// [uploadOptions] - Options for the media upload. Streaming Media without |
+ /// the length being known ahead of time is only supported via resumable |
+ /// uploads. |
+ /// |
+ /// Completes with a [Draft]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<Draft> create(Draft request, core.String userId, |
+ {commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
+ commons.Media uploadMedia}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -248,45 +251,45 @@ class UsersDraftsResourceApi { |
throw new core.ArgumentError("Parameter userId is required."); |
} |
- _uploadMedia = uploadMedia; |
- _uploadOptions = uploadOptions; |
+ _uploadMedia = uploadMedia; |
+ _uploadOptions = uploadOptions; |
if (_uploadMedia == null) { |
_url = commons.Escaper.ecapeVariable('$userId') + '/drafts'; |
} else if (_uploadOptions is commons.ResumableUploadOptions) { |
- _url = '/resumable/upload/gmail/v1/users/' + commons.Escaper.ecapeVariable('$userId') + '/drafts'; |
+ _url = '/resumable/upload/gmail/v1/users/' + |
+ commons.Escaper.ecapeVariable('$userId') + |
+ '/drafts'; |
} else { |
- _url = '/upload/gmail/v1/users/' + commons.Escaper.ecapeVariable('$userId') + '/drafts'; |
+ _url = '/upload/gmail/v1/users/' + |
+ commons.Escaper.ecapeVariable('$userId') + |
+ '/drafts'; |
} |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Draft.fromJson(data)); |
} |
- /** |
- * Immediately and permanently deletes the specified draft. Does not simply |
- * trash it. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the draft to delete. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Immediately and permanently deletes the specified draft. Does not simply |
+ /// trash it. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the draft to delete. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future delete(core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -304,44 +307,44 @@ class UsersDraftsResourceApi { |
_downloadOptions = null; |
- _url = commons.Escaper.ecapeVariable('$userId') + '/drafts/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/drafts/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets the specified draft. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the draft to retrieve. |
- * |
- * [format] - The format to return the draft in. |
- * Possible string values are: |
- * - "full" |
- * - "metadata" |
- * - "minimal" |
- * - "raw" |
- * |
- * Completes with a [Draft]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Draft> get(core.String userId, core.String id, {core.String format}) { |
+ /// Gets the specified draft. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the draft to retrieve. |
+ /// |
+ /// [format] - The format to return the draft in. |
+ /// Possible string values are: |
+ /// - "full" |
+ /// - "metadata" |
+ /// - "minimal" |
+ /// - "raw" |
+ /// |
+ /// Completes with a [Draft]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<Draft> get(core.String userId, core.String id, |
+ {core.String format}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -359,46 +362,49 @@ class UsersDraftsResourceApi { |
_queryParams["format"] = [format]; |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/drafts/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/drafts/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Draft.fromJson(data)); |
} |
- /** |
- * Lists the drafts in the user's mailbox. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [includeSpamTrash] - Include drafts from SPAM and TRASH in the results. |
- * |
- * [maxResults] - Maximum number of drafts to return. |
- * |
- * [pageToken] - Page token to retrieve a specific page of results in the |
- * list. |
- * |
- * [q] - Only return draft messages matching the specified query. Supports the |
- * same query format as the Gmail search box. For example, |
- * "from:someuser@example.com rfc822msgid: is:unread". |
- * |
- * Completes with a [ListDraftsResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<ListDraftsResponse> list(core.String userId, {core.bool includeSpamTrash, core.int maxResults, core.String pageToken, core.String q}) { |
+ /// Lists the drafts in the user's mailbox. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [includeSpamTrash] - Include drafts from SPAM and TRASH in the results. |
+ /// |
+ /// [maxResults] - Maximum number of drafts to return. |
+ /// |
+ /// [pageToken] - Page token to retrieve a specific page of results in the |
+ /// list. |
+ /// |
+ /// [q] - Only return draft messages matching the specified query. Supports |
+ /// the same query format as the Gmail search box. For example, |
+ /// "from:someuser@example.com rfc822msgid: is:unread". |
+ /// |
+ /// Completes with a [ListDraftsResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<ListDraftsResponse> list(core.String userId, |
+ {core.bool includeSpamTrash, |
+ core.int maxResults, |
+ core.String pageToken, |
+ core.String q}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -424,41 +430,41 @@ class UsersDraftsResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/drafts'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ListDraftsResponse.fromJson(data)); |
} |
- /** |
- * Sends the specified, existing draft to the recipients in the To, Cc, and |
- * Bcc headers. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [uploadMedia] - The media to upload. |
- * |
- * [uploadOptions] - Options for the media upload. Streaming Media without the |
- * length being known ahead of time is only supported via resumable uploads. |
- * |
- * Completes with a [Message]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Message> send(Draft request, core.String userId, {commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { |
+ /// Sends the specified, existing draft to the recipients in the To, Cc, and |
+ /// Bcc headers. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [uploadMedia] - The media to upload. |
+ /// |
+ /// [uploadOptions] - Options for the media upload. Streaming Media without |
+ /// the length being known ahead of time is only supported via resumable |
+ /// uploads. |
+ /// |
+ /// Completes with a [Message]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<Message> send(Draft request, core.String userId, |
+ {commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
+ commons.Media uploadMedia}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -473,54 +479,57 @@ class UsersDraftsResourceApi { |
throw new core.ArgumentError("Parameter userId is required."); |
} |
- _uploadMedia = uploadMedia; |
- _uploadOptions = uploadOptions; |
+ _uploadMedia = uploadMedia; |
+ _uploadOptions = uploadOptions; |
if (_uploadMedia == null) { |
_url = commons.Escaper.ecapeVariable('$userId') + '/drafts/send'; |
} else if (_uploadOptions is commons.ResumableUploadOptions) { |
- _url = '/resumable/upload/gmail/v1/users/' + commons.Escaper.ecapeVariable('$userId') + '/drafts/send'; |
+ _url = '/resumable/upload/gmail/v1/users/' + |
+ commons.Escaper.ecapeVariable('$userId') + |
+ '/drafts/send'; |
} else { |
- _url = '/upload/gmail/v1/users/' + commons.Escaper.ecapeVariable('$userId') + '/drafts/send'; |
+ _url = '/upload/gmail/v1/users/' + |
+ commons.Escaper.ecapeVariable('$userId') + |
+ '/drafts/send'; |
} |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Message.fromJson(data)); |
} |
- /** |
- * Replaces a draft's content. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the draft to update. |
- * |
- * [uploadMedia] - The media to upload. |
- * |
- * [uploadOptions] - Options for the media upload. Streaming Media without the |
- * length being known ahead of time is only supported via resumable uploads. |
- * |
- * Completes with a [Draft]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Draft> update(Draft request, core.String userId, core.String id, {commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { |
+ /// Replaces a draft's content. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the draft to update. |
+ /// |
+ /// [uploadMedia] - The media to upload. |
+ /// |
+ /// [uploadOptions] - Options for the media upload. Streaming Media without |
+ /// the length being known ahead of time is only supported via resumable |
+ /// uploads. |
+ /// |
+ /// Completes with a [Draft]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<Draft> update(Draft request, core.String userId, core.String id, |
+ {commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
+ commons.Media uploadMedia}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -538,76 +547,82 @@ class UsersDraftsResourceApi { |
throw new core.ArgumentError("Parameter id is required."); |
} |
- _uploadMedia = uploadMedia; |
- _uploadOptions = uploadOptions; |
+ _uploadMedia = uploadMedia; |
+ _uploadOptions = uploadOptions; |
if (_uploadMedia == null) { |
- _url = commons.Escaper.ecapeVariable('$userId') + '/drafts/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/drafts/' + |
+ commons.Escaper.ecapeVariable('$id'); |
} else if (_uploadOptions is commons.ResumableUploadOptions) { |
- _url = '/resumable/upload/gmail/v1/users/' + commons.Escaper.ecapeVariable('$userId') + '/drafts/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = '/resumable/upload/gmail/v1/users/' + |
+ commons.Escaper.ecapeVariable('$userId') + |
+ '/drafts/' + |
+ commons.Escaper.ecapeVariable('$id'); |
} else { |
- _url = '/upload/gmail/v1/users/' + commons.Escaper.ecapeVariable('$userId') + '/drafts/' + commons.Escaper.ecapeVariable('$id'); |
- } |
- |
- |
- var _response = _requester.request(_url, |
- "PUT", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = '/upload/gmail/v1/users/' + |
+ commons.Escaper.ecapeVariable('$userId') + |
+ '/drafts/' + |
+ commons.Escaper.ecapeVariable('$id'); |
+ } |
+ |
+ var _response = _requester.request(_url, "PUT", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Draft.fromJson(data)); |
} |
- |
} |
- |
class UsersHistoryResourceApi { |
final commons.ApiRequester _requester; |
- UsersHistoryResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Lists the history of all changes to the given mailbox. History results are |
- * returned in chronological order (increasing historyId). |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [historyTypes] - History types to be returned by the function |
- * |
- * [labelId] - Only return messages with a label matching the ID. |
- * |
- * [maxResults] - The maximum number of history records to return. |
- * |
- * [pageToken] - Page token to retrieve a specific page of results in the |
- * list. |
- * |
- * [startHistoryId] - Required. Returns history records after the specified |
- * startHistoryId. The supplied startHistoryId should be obtained from the |
- * historyId of a message, thread, or previous list response. History IDs |
- * increase chronologically but are not contiguous with random gaps in between |
- * valid IDs. Supplying an invalid or out of date startHistoryId typically |
- * returns an HTTP 404 error code. A historyId is typically valid for at least |
- * a week, but in some rare circumstances may be valid for only a few hours. |
- * If you receive an HTTP 404 error response, your application should perform |
- * a full sync. If you receive no nextPageToken in the response, there are no |
- * updates to retrieve and you can store the returned historyId for a future |
- * request. |
- * |
- * Completes with a [ListHistoryResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<ListHistoryResponse> list(core.String userId, {core.List<core.String> historyTypes, core.String labelId, core.int maxResults, core.String pageToken, core.String startHistoryId}) { |
+ UsersHistoryResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Lists the history of all changes to the given mailbox. History results |
+ /// are returned in chronological order (increasing historyId). |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [historyTypes] - History types to be returned by the function |
+ /// |
+ /// [labelId] - Only return messages with a label matching the ID. |
+ /// |
+ /// [maxResults] - The maximum number of history records to return. |
+ /// |
+ /// [pageToken] - Page token to retrieve a specific page of results in the |
+ /// list. |
+ /// |
+ /// [startHistoryId] - Required. Returns history records after the specified |
+ /// startHistoryId. The supplied startHistoryId should be obtained from the |
+ /// historyId of a message, thread, or previous list response. History IDs |
+ /// increase chronologically but are not contiguous with random gaps in |
+ /// between valid IDs. Supplying an invalid or out of date startHistoryId |
+ /// typically returns an HTTP 404 error code. A historyId is typically valid |
+ /// for at least a week, but in some rare circumstances may be valid for only |
+ /// a few hours. If you receive an HTTP 404 error response, your application |
+ /// should perform a full sync. If you receive no nextPageToken in the |
+ /// response, there are no updates to retrieve and you can store the returned |
+ /// historyId for a future request. |
+ /// |
+ /// Completes with a [ListHistoryResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<ListHistoryResponse> list(core.String userId, |
+ {core.List<core.String> historyTypes, |
+ core.String labelId, |
+ core.int maxResults, |
+ core.String pageToken, |
+ core.String startHistoryId}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -636,43 +651,37 @@ class UsersHistoryResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/history'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ListHistoryResponse.fromJson(data)); |
} |
- |
} |
- |
class UsersLabelsResourceApi { |
final commons.ApiRequester _requester; |
- UsersLabelsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Creates a new label. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [Label]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ UsersLabelsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Creates a new label. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [Label]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<Label> create(Label request, core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -690,33 +699,30 @@ class UsersLabelsResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/labels'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Label.fromJson(data)); |
} |
- /** |
- * Immediately and permanently deletes the specified label and removes it from |
- * any messages and threads that it is applied to. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the label to delete. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Immediately and permanently deletes the specified label and removes it |
+ /// from any messages and threads that it is applied to. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the label to delete. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future delete(core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -734,36 +740,35 @@ class UsersLabelsResourceApi { |
_downloadOptions = null; |
- _url = commons.Escaper.ecapeVariable('$userId') + '/labels/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/labels/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets the specified label. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the label to retrieve. |
- * |
- * Completes with a [Label]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Gets the specified label. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the label to retrieve. |
+ /// |
+ /// Completes with a [Label]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<Label> get(core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -779,34 +784,33 @@ class UsersLabelsResourceApi { |
throw new core.ArgumentError("Parameter id is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/labels/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/labels/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Label.fromJson(data)); |
} |
- /** |
- * Lists all labels in the user's mailbox. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [ListLabelsResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Lists all labels in the user's mailbox. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [ListLabelsResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<ListLabelsResponse> list(core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -821,36 +825,33 @@ class UsersLabelsResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/labels'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ListLabelsResponse.fromJson(data)); |
} |
- /** |
- * Updates the specified label. This method supports patch semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the label to update. |
- * |
- * Completes with a [Label]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Updates the specified label. This method supports patch semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the label to update. |
+ /// |
+ /// Completes with a [Label]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<Label> patch(Label request, core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -869,39 +870,39 @@ class UsersLabelsResourceApi { |
throw new core.ArgumentError("Parameter id is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/labels/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/labels/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "PATCH", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "PATCH", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Label.fromJson(data)); |
} |
- /** |
- * Updates the specified label. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the label to update. |
- * |
- * Completes with a [Label]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Label> update(Label request, core.String userId, core.String id) { |
+ /// Updates the specified label. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the label to update. |
+ /// |
+ /// Completes with a [Label]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<Label> update( |
+ Label request, core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -919,47 +920,45 @@ class UsersLabelsResourceApi { |
throw new core.ArgumentError("Parameter id is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/labels/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/labels/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "PUT", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "PUT", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Label.fromJson(data)); |
} |
- |
} |
- |
class UsersMessagesResourceApi { |
final commons.ApiRequester _requester; |
- UsersMessagesAttachmentsResourceApi get attachments => new UsersMessagesAttachmentsResourceApi(_requester); |
- |
- UsersMessagesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Deletes many messages by message ID. Provides no guarantees that messages |
- * were not already deleted or even existed at all. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future batchDelete(BatchDeleteMessagesRequest request, core.String userId) { |
+ UsersMessagesAttachmentsResourceApi get attachments => |
+ new UsersMessagesAttachmentsResourceApi(_requester); |
+ |
+ UsersMessagesResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Deletes many messages by message ID. Provides no guarantees that messages |
+ /// were not already deleted or even existed at all. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future batchDelete( |
+ BatchDeleteMessagesRequest request, core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -978,33 +977,31 @@ class UsersMessagesResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/messages/batchDelete'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Modifies the labels on the specified messages. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future batchModify(BatchModifyMessagesRequest request, core.String userId) { |
+ /// Modifies the labels on the specified messages. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future batchModify( |
+ BatchModifyMessagesRequest request, core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1023,33 +1020,30 @@ class UsersMessagesResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/messages/batchModify'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Immediately and permanently deletes the specified message. This operation |
- * cannot be undone. Prefer messages.trash instead. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the message to delete. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Immediately and permanently deletes the specified message. This operation |
+ /// cannot be undone. Prefer messages.trash instead. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the message to delete. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future delete(core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -1067,47 +1061,47 @@ class UsersMessagesResourceApi { |
_downloadOptions = null; |
- _url = commons.Escaper.ecapeVariable('$userId') + '/messages/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/messages/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets the specified message. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the message to retrieve. |
- * |
- * [format] - The format to return the message in. |
- * Possible string values are: |
- * - "full" |
- * - "metadata" |
- * - "minimal" |
- * - "raw" |
- * |
- * [metadataHeaders] - When given and format is METADATA, only include headers |
- * specified. |
- * |
- * Completes with a [Message]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Message> get(core.String userId, core.String id, {core.String format, core.List<core.String> metadataHeaders}) { |
+ /// Gets the specified message. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the message to retrieve. |
+ /// |
+ /// [format] - The format to return the message in. |
+ /// Possible string values are: |
+ /// - "full" |
+ /// - "metadata" |
+ /// - "minimal" |
+ /// - "raw" |
+ /// |
+ /// [metadataHeaders] - When given and format is METADATA, only include |
+ /// headers specified. |
+ /// |
+ /// Completes with a [Message]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<Message> get(core.String userId, core.String id, |
+ {core.String format, core.List<core.String> metadataHeaders}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1128,59 +1122,65 @@ class UsersMessagesResourceApi { |
_queryParams["metadataHeaders"] = metadataHeaders; |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/messages/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/messages/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Message.fromJson(data)); |
} |
- /** |
- * Imports a message into only this user's mailbox, with standard email |
- * delivery scanning and classification similar to receiving via SMTP. Does |
- * not send a message. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [deleted] - Mark the email as permanently deleted (not TRASH) and only |
- * visible in Google Vault to a Vault administrator. Only used for G Suite |
- * accounts. |
- * |
- * [internalDateSource] - Source for Gmail's internal date of the message. |
- * Possible string values are: |
- * - "dateHeader" |
- * - "receivedTime" |
- * |
- * [neverMarkSpam] - Ignore the Gmail spam classifier decision and never mark |
- * this email as SPAM in the mailbox. |
- * |
- * [processForCalendar] - Process calendar invites in the email and add any |
- * extracted meetings to the Google Calendar for this user. |
- * |
- * [uploadMedia] - The media to upload. |
- * |
- * [uploadOptions] - Options for the media upload. Streaming Media without the |
- * length being known ahead of time is only supported via resumable uploads. |
- * |
- * Completes with a [Message]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Message> import(Message request, core.String userId, {core.bool deleted, core.String internalDateSource, core.bool neverMarkSpam, core.bool processForCalendar, commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { |
+ /// Imports a message into only this user's mailbox, with standard email |
+ /// delivery scanning and classification similar to receiving via SMTP. Does |
+ /// not send a message. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [deleted] - Mark the email as permanently deleted (not TRASH) and only |
+ /// visible in Google Vault to a Vault administrator. Only used for G Suite |
+ /// accounts. |
+ /// |
+ /// [internalDateSource] - Source for Gmail's internal date of the message. |
+ /// Possible string values are: |
+ /// - "dateHeader" |
+ /// - "receivedTime" |
+ /// |
+ /// [neverMarkSpam] - Ignore the Gmail spam classifier decision and never |
+ /// mark this email as SPAM in the mailbox. |
+ /// |
+ /// [processForCalendar] - Process calendar invites in the email and add any |
+ /// extracted meetings to the Google Calendar for this user. |
+ /// |
+ /// [uploadMedia] - The media to upload. |
+ /// |
+ /// [uploadOptions] - Options for the media upload. Streaming Media without |
+ /// the length being known ahead of time is only supported via resumable |
+ /// uploads. |
+ /// |
+ /// Completes with a [Message]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<Message> import(Message request, core.String userId, |
+ {core.bool deleted, |
+ core.String internalDateSource, |
+ core.bool neverMarkSpam, |
+ core.bool processForCalendar, |
+ commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
+ commons.Media uploadMedia}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1207,63 +1207,68 @@ class UsersMessagesResourceApi { |
_queryParams["processForCalendar"] = ["${processForCalendar}"]; |
} |
- _uploadMedia = uploadMedia; |
- _uploadOptions = uploadOptions; |
+ _uploadMedia = uploadMedia; |
+ _uploadOptions = uploadOptions; |
if (_uploadMedia == null) { |
_url = commons.Escaper.ecapeVariable('$userId') + '/messages/import'; |
} else if (_uploadOptions is commons.ResumableUploadOptions) { |
- _url = '/resumable/upload/gmail/v1/users/' + commons.Escaper.ecapeVariable('$userId') + '/messages/import'; |
+ _url = '/resumable/upload/gmail/v1/users/' + |
+ commons.Escaper.ecapeVariable('$userId') + |
+ '/messages/import'; |
} else { |
- _url = '/upload/gmail/v1/users/' + commons.Escaper.ecapeVariable('$userId') + '/messages/import'; |
+ _url = '/upload/gmail/v1/users/' + |
+ commons.Escaper.ecapeVariable('$userId') + |
+ '/messages/import'; |
} |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Message.fromJson(data)); |
} |
- /** |
- * Directly inserts a message into only this user's mailbox similar to IMAP |
- * APPEND, bypassing most scanning and classification. Does not send a |
- * message. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [deleted] - Mark the email as permanently deleted (not TRASH) and only |
- * visible in Google Vault to a Vault administrator. Only used for G Suite |
- * accounts. |
- * |
- * [internalDateSource] - Source for Gmail's internal date of the message. |
- * Possible string values are: |
- * - "dateHeader" |
- * - "receivedTime" |
- * |
- * [uploadMedia] - The media to upload. |
- * |
- * [uploadOptions] - Options for the media upload. Streaming Media without the |
- * length being known ahead of time is only supported via resumable uploads. |
- * |
- * Completes with a [Message]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Message> insert(Message request, core.String userId, {core.bool deleted, core.String internalDateSource, commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { |
+ /// Directly inserts a message into only this user's mailbox similar to IMAP |
+ /// APPEND, bypassing most scanning and classification. Does not send a |
+ /// message. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [deleted] - Mark the email as permanently deleted (not TRASH) and only |
+ /// visible in Google Vault to a Vault administrator. Only used for G Suite |
+ /// accounts. |
+ /// |
+ /// [internalDateSource] - Source for Gmail's internal date of the message. |
+ /// Possible string values are: |
+ /// - "dateHeader" |
+ /// - "receivedTime" |
+ /// |
+ /// [uploadMedia] - The media to upload. |
+ /// |
+ /// [uploadOptions] - Options for the media upload. Streaming Media without |
+ /// the length being known ahead of time is only supported via resumable |
+ /// uploads. |
+ /// |
+ /// Completes with a [Message]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<Message> insert(Message request, core.String userId, |
+ {core.bool deleted, |
+ core.String internalDateSource, |
+ commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
+ commons.Media uploadMedia}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1284,61 +1289,66 @@ class UsersMessagesResourceApi { |
_queryParams["internalDateSource"] = [internalDateSource]; |
} |
- _uploadMedia = uploadMedia; |
- _uploadOptions = uploadOptions; |
+ _uploadMedia = uploadMedia; |
+ _uploadOptions = uploadOptions; |
if (_uploadMedia == null) { |
_url = commons.Escaper.ecapeVariable('$userId') + '/messages'; |
} else if (_uploadOptions is commons.ResumableUploadOptions) { |
- _url = '/resumable/upload/gmail/v1/users/' + commons.Escaper.ecapeVariable('$userId') + '/messages'; |
+ _url = '/resumable/upload/gmail/v1/users/' + |
+ commons.Escaper.ecapeVariable('$userId') + |
+ '/messages'; |
} else { |
- _url = '/upload/gmail/v1/users/' + commons.Escaper.ecapeVariable('$userId') + '/messages'; |
+ _url = '/upload/gmail/v1/users/' + |
+ commons.Escaper.ecapeVariable('$userId') + |
+ '/messages'; |
} |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Message.fromJson(data)); |
} |
- /** |
- * Lists the messages in the user's mailbox. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [includeSpamTrash] - Include messages from SPAM and TRASH in the results. |
- * |
- * [labelIds] - Only return messages with labels that match all of the |
- * specified label IDs. |
- * |
- * [maxResults] - Maximum number of messages to return. |
- * |
- * [pageToken] - Page token to retrieve a specific page of results in the |
- * list. |
- * |
- * [q] - Only return messages matching the specified query. Supports the same |
- * query format as the Gmail search box. For example, |
- * "from:someuser@example.com rfc822msgid:<somemsgid@example.com> is:unread". |
- * Parameter cannot be used when accessing the api using the gmail.metadata |
- * scope. |
- * |
- * Completes with a [ListMessagesResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<ListMessagesResponse> list(core.String userId, {core.bool includeSpamTrash, core.List<core.String> labelIds, core.int maxResults, core.String pageToken, core.String q}) { |
+ /// Lists the messages in the user's mailbox. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [includeSpamTrash] - Include messages from SPAM and TRASH in the results. |
+ /// |
+ /// [labelIds] - Only return messages with labels that match all of the |
+ /// specified label IDs. |
+ /// |
+ /// [maxResults] - Maximum number of messages to return. |
+ /// |
+ /// [pageToken] - Page token to retrieve a specific page of results in the |
+ /// list. |
+ /// |
+ /// [q] - Only return messages matching the specified query. Supports the |
+ /// same query format as the Gmail search box. For example, |
+ /// "from:someuser@example.com rfc822msgid:<somemsgid@example.com> |
+ /// is:unread". Parameter cannot be used when accessing the api using the |
+ /// gmail.metadata scope. |
+ /// |
+ /// Completes with a [ListMessagesResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<ListMessagesResponse> list(core.String userId, |
+ {core.bool includeSpamTrash, |
+ core.List<core.String> labelIds, |
+ core.int maxResults, |
+ core.String pageToken, |
+ core.String q}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1367,37 +1377,35 @@ class UsersMessagesResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/messages'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ListMessagesResponse.fromJson(data)); |
} |
- /** |
- * Modifies the labels on the specified message. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the message to modify. |
- * |
- * Completes with a [Message]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Message> modify(ModifyMessageRequest request, core.String userId, core.String id) { |
+ /// Modifies the labels on the specified message. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the message to modify. |
+ /// |
+ /// Completes with a [Message]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<Message> modify( |
+ ModifyMessageRequest request, core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1415,43 +1423,46 @@ class UsersMessagesResourceApi { |
throw new core.ArgumentError("Parameter id is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/messages/' + commons.Escaper.ecapeVariable('$id') + '/modify'; |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/messages/' + |
+ commons.Escaper.ecapeVariable('$id') + |
+ '/modify'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Message.fromJson(data)); |
} |
- /** |
- * Sends the specified message to the recipients in the To, Cc, and Bcc |
- * headers. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [uploadMedia] - The media to upload. |
- * |
- * [uploadOptions] - Options for the media upload. Streaming Media without the |
- * length being known ahead of time is only supported via resumable uploads. |
- * |
- * Completes with a [Message]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Message> send(Message request, core.String userId, {commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { |
+ /// Sends the specified message to the recipients in the To, Cc, and Bcc |
+ /// headers. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [uploadMedia] - The media to upload. |
+ /// |
+ /// [uploadOptions] - Options for the media upload. Streaming Media without |
+ /// the length being known ahead of time is only supported via resumable |
+ /// uploads. |
+ /// |
+ /// Completes with a [Message]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<Message> send(Message request, core.String userId, |
+ {commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
+ commons.Media uploadMedia}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1466,46 +1477,46 @@ class UsersMessagesResourceApi { |
throw new core.ArgumentError("Parameter userId is required."); |
} |
- _uploadMedia = uploadMedia; |
- _uploadOptions = uploadOptions; |
+ _uploadMedia = uploadMedia; |
+ _uploadOptions = uploadOptions; |
if (_uploadMedia == null) { |
_url = commons.Escaper.ecapeVariable('$userId') + '/messages/send'; |
} else if (_uploadOptions is commons.ResumableUploadOptions) { |
- _url = '/resumable/upload/gmail/v1/users/' + commons.Escaper.ecapeVariable('$userId') + '/messages/send'; |
+ _url = '/resumable/upload/gmail/v1/users/' + |
+ commons.Escaper.ecapeVariable('$userId') + |
+ '/messages/send'; |
} else { |
- _url = '/upload/gmail/v1/users/' + commons.Escaper.ecapeVariable('$userId') + '/messages/send'; |
+ _url = '/upload/gmail/v1/users/' + |
+ commons.Escaper.ecapeVariable('$userId') + |
+ '/messages/send'; |
} |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Message.fromJson(data)); |
} |
- /** |
- * Moves the specified message to the trash. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the message to Trash. |
- * |
- * Completes with a [Message]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Moves the specified message to the trash. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the message to Trash. |
+ /// |
+ /// Completes with a [Message]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<Message> trash(core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -1521,36 +1532,36 @@ class UsersMessagesResourceApi { |
throw new core.ArgumentError("Parameter id is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/messages/' + commons.Escaper.ecapeVariable('$id') + '/trash'; |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/messages/' + |
+ commons.Escaper.ecapeVariable('$id') + |
+ '/trash'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Message.fromJson(data)); |
} |
- /** |
- * Removes the specified message from the trash. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the message to remove from Trash. |
- * |
- * Completes with a [Message]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Removes the specified message from the trash. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the message to remove from Trash. |
+ /// |
+ /// Completes with a [Message]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<Message> untrash(core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -1566,48 +1577,47 @@ class UsersMessagesResourceApi { |
throw new core.ArgumentError("Parameter id is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/messages/' + commons.Escaper.ecapeVariable('$id') + '/untrash'; |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/messages/' + |
+ commons.Escaper.ecapeVariable('$id') + |
+ '/untrash'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Message.fromJson(data)); |
} |
- |
} |
- |
class UsersMessagesAttachmentsResourceApi { |
final commons.ApiRequester _requester; |
- UsersMessagesAttachmentsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Gets the specified message attachment. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [messageId] - The ID of the message containing the attachment. |
- * |
- * [id] - The ID of the attachment. |
- * |
- * Completes with a [MessagePartBody]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<MessagePartBody> get(core.String userId, core.String messageId, core.String id) { |
+ UsersMessagesAttachmentsResourceApi(commons.ApiRequester client) |
+ : _requester = client; |
+ |
+ /// Gets the specified message attachment. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [messageId] - The ID of the message containing the attachment. |
+ /// |
+ /// [id] - The ID of the attachment. |
+ /// |
+ /// Completes with a [MessagePartBody]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<MessagePartBody> get( |
+ core.String userId, core.String messageId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1625,47 +1635,48 @@ class UsersMessagesAttachmentsResourceApi { |
throw new core.ArgumentError("Parameter id is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/messages/' + commons.Escaper.ecapeVariable('$messageId') + '/attachments/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/messages/' + |
+ commons.Escaper.ecapeVariable('$messageId') + |
+ '/attachments/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new MessagePartBody.fromJson(data)); |
} |
- |
} |
- |
class UsersSettingsResourceApi { |
final commons.ApiRequester _requester; |
- UsersSettingsFiltersResourceApi get filters => new UsersSettingsFiltersResourceApi(_requester); |
- UsersSettingsForwardingAddressesResourceApi get forwardingAddresses => new UsersSettingsForwardingAddressesResourceApi(_requester); |
- UsersSettingsSendAsResourceApi get sendAs => new UsersSettingsSendAsResourceApi(_requester); |
- |
- UsersSettingsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Gets the auto-forwarding setting for the specified account. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [AutoForwarding]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ UsersSettingsFiltersResourceApi get filters => |
+ new UsersSettingsFiltersResourceApi(_requester); |
+ UsersSettingsForwardingAddressesResourceApi get forwardingAddresses => |
+ new UsersSettingsForwardingAddressesResourceApi(_requester); |
+ UsersSettingsSendAsResourceApi get sendAs => |
+ new UsersSettingsSendAsResourceApi(_requester); |
+ |
+ UsersSettingsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Gets the auto-forwarding setting for the specified account. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [AutoForwarding]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<AutoForwarding> getAutoForwarding(core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -1678,34 +1689,32 @@ class UsersSettingsResourceApi { |
throw new core.ArgumentError("Parameter userId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/autoForwarding'; |
+ _url = |
+ commons.Escaper.ecapeVariable('$userId') + '/settings/autoForwarding'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new AutoForwarding.fromJson(data)); |
} |
- /** |
- * Gets IMAP settings. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [ImapSettings]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Gets IMAP settings. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [ImapSettings]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<ImapSettings> getImap(core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -1720,32 +1729,29 @@ class UsersSettingsResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/settings/imap'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ImapSettings.fromJson(data)); |
} |
- /** |
- * Gets POP settings. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [PopSettings]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Gets POP settings. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [PopSettings]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<PopSettings> getPop(core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -1760,32 +1766,29 @@ class UsersSettingsResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/settings/pop'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new PopSettings.fromJson(data)); |
} |
- /** |
- * Gets vacation responder settings. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [VacationSettings]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Gets vacation responder settings. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [VacationSettings]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<VacationSettings> getVacation(core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -1800,39 +1803,37 @@ class UsersSettingsResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/settings/vacation'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new VacationSettings.fromJson(data)); |
} |
- /** |
- * 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. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [AutoForwarding]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<AutoForwarding> updateAutoForwarding(AutoForwarding request, core.String userId) { |
+ /// 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. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [AutoForwarding]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<AutoForwarding> updateAutoForwarding( |
+ AutoForwarding request, core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1847,37 +1848,36 @@ class UsersSettingsResourceApi { |
throw new core.ArgumentError("Parameter userId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/autoForwarding'; |
+ _url = |
+ commons.Escaper.ecapeVariable('$userId') + '/settings/autoForwarding'; |
- var _response = _requester.request(_url, |
- "PUT", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "PUT", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new AutoForwarding.fromJson(data)); |
} |
- /** |
- * Updates IMAP settings. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [ImapSettings]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<ImapSettings> updateImap(ImapSettings request, core.String userId) { |
+ /// Updates IMAP settings. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [ImapSettings]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<ImapSettings> updateImap( |
+ ImapSettings request, core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1894,34 +1894,31 @@ class UsersSettingsResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/settings/imap'; |
- var _response = _requester.request(_url, |
- "PUT", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "PUT", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ImapSettings.fromJson(data)); |
} |
- /** |
- * Updates POP settings. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [PopSettings]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Updates POP settings. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [PopSettings]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<PopSettings> updatePop(PopSettings request, core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -1939,35 +1936,33 @@ class UsersSettingsResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/settings/pop'; |
- var _response = _requester.request(_url, |
- "PUT", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "PUT", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new PopSettings.fromJson(data)); |
} |
- /** |
- * Updates vacation responder settings. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [VacationSettings]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<VacationSettings> updateVacation(VacationSettings request, core.String userId) { |
+ /// Updates vacation responder settings. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [VacationSettings]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<VacationSettings> updateVacation( |
+ VacationSettings request, core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1984,43 +1979,38 @@ class UsersSettingsResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/settings/vacation'; |
- var _response = _requester.request(_url, |
- "PUT", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "PUT", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new VacationSettings.fromJson(data)); |
} |
- |
} |
- |
class UsersSettingsFiltersResourceApi { |
final commons.ApiRequester _requester; |
- UsersSettingsFiltersResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Creates a filter. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [Filter]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ UsersSettingsFiltersResourceApi(commons.ApiRequester client) |
+ : _requester = client; |
+ |
+ /// Creates a filter. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [Filter]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<Filter> create(Filter request, core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2038,32 +2028,29 @@ class UsersSettingsFiltersResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/settings/filters'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Filter.fromJson(data)); |
} |
- /** |
- * Deletes a filter. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the filter to be deleted. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Deletes a filter. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the filter to be deleted. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future delete(core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2081,36 +2068,35 @@ class UsersSettingsFiltersResourceApi { |
_downloadOptions = null; |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/filters/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/filters/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets a filter. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the filter to be fetched. |
- * |
- * Completes with a [Filter]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Gets a filter. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the filter to be fetched. |
+ /// |
+ /// Completes with a [Filter]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<Filter> get(core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2126,34 +2112,33 @@ class UsersSettingsFiltersResourceApi { |
throw new core.ArgumentError("Parameter id is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/filters/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/filters/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Filter.fromJson(data)); |
} |
- /** |
- * Lists the message filters of a Gmail user. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [ListFiltersResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Lists the message filters of a Gmail user. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [ListFiltersResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<ListFiltersResponse> list(core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2168,50 +2153,46 @@ class UsersSettingsFiltersResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/settings/filters'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ListFiltersResponse.fromJson(data)); |
} |
- |
} |
- |
class UsersSettingsForwardingAddressesResourceApi { |
final commons.ApiRequester _requester; |
- UsersSettingsForwardingAddressesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * 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. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [ForwardingAddress]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<ForwardingAddress> create(ForwardingAddress request, core.String userId) { |
+ UsersSettingsForwardingAddressesResourceApi(commons.ApiRequester client) |
+ : _requester = client; |
+ |
+ /// 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. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [ForwardingAddress]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<ForwardingAddress> create( |
+ ForwardingAddress request, core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2226,38 +2207,36 @@ class UsersSettingsForwardingAddressesResourceApi { |
throw new core.ArgumentError("Parameter userId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/forwardingAddresses'; |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/forwardingAddresses'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ForwardingAddress.fromJson(data)); |
} |
- /** |
- * 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. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * [forwardingEmail] - The forwarding address to be deleted. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// 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. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [forwardingEmail] - The forwarding address to be deleted. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future delete(core.String userId, core.String forwardingEmail) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2275,37 +2254,37 @@ class UsersSettingsForwardingAddressesResourceApi { |
_downloadOptions = null; |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/forwardingAddresses/' + commons.Escaper.ecapeVariable('$forwardingEmail'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/forwardingAddresses/' + |
+ commons.Escaper.ecapeVariable('$forwardingEmail'); |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets the specified forwarding address. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * [forwardingEmail] - The forwarding address to be retrieved. |
- * |
- * Completes with a [ForwardingAddress]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<ForwardingAddress> get(core.String userId, core.String forwardingEmail) { |
+ /// Gets the specified forwarding address. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [forwardingEmail] - The forwarding address to be retrieved. |
+ /// |
+ /// Completes with a [ForwardingAddress]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<ForwardingAddress> get( |
+ core.String userId, core.String forwardingEmail) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2320,34 +2299,33 @@ class UsersSettingsForwardingAddressesResourceApi { |
throw new core.ArgumentError("Parameter forwardingEmail is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/forwardingAddresses/' + commons.Escaper.ecapeVariable('$forwardingEmail'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/forwardingAddresses/' + |
+ commons.Escaper.ecapeVariable('$forwardingEmail'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ForwardingAddress.fromJson(data)); |
} |
- /** |
- * Lists the forwarding addresses for the specified account. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [ListForwardingAddressesResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Lists the forwarding addresses for the specified account. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [ListForwardingAddressesResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<ListForwardingAddressesResponse> list(core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2360,56 +2338,54 @@ class UsersSettingsForwardingAddressesResourceApi { |
throw new core.ArgumentError("Parameter userId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/forwardingAddresses'; |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/forwardingAddresses'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new ListForwardingAddressesResponse.fromJson(data)); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new ListForwardingAddressesResponse.fromJson(data)); |
} |
- |
} |
- |
class UsersSettingsSendAsResourceApi { |
final commons.ApiRequester _requester; |
- UsersSettingsSendAsSmimeInfoResourceApi get smimeInfo => new UsersSettingsSendAsSmimeInfoResourceApi(_requester); |
- |
- UsersSettingsSendAsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * 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. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [SendAs]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ UsersSettingsSendAsSmimeInfoResourceApi get smimeInfo => |
+ new UsersSettingsSendAsSmimeInfoResourceApi(_requester); |
+ |
+ UsersSettingsSendAsResourceApi(commons.ApiRequester client) |
+ : _requester = client; |
+ |
+ /// 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. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [SendAs]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<SendAs> create(SendAs request, core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2427,36 +2403,33 @@ class UsersSettingsSendAsResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/settings/sendAs'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new SendAs.fromJson(data)); |
} |
- /** |
- * 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. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * [sendAsEmail] - The send-as alias to be deleted. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// 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. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [sendAsEmail] - The send-as alias to be deleted. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future delete(core.String userId, core.String sendAsEmail) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2474,37 +2447,36 @@ class UsersSettingsSendAsResourceApi { |
_downloadOptions = null; |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/sendAs/' + commons.Escaper.ecapeVariable('$sendAsEmail'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/sendAs/' + |
+ commons.Escaper.ecapeVariable('$sendAsEmail'); |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets the specified send-as alias. Fails with an HTTP 404 error if the |
- * specified address is not a member of the collection. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * [sendAsEmail] - The send-as alias to be retrieved. |
- * |
- * Completes with a [SendAs]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Gets the specified send-as alias. Fails with an HTTP 404 error if the |
+ /// specified address is not a member of the collection. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [sendAsEmail] - The send-as alias to be retrieved. |
+ /// |
+ /// Completes with a [SendAs]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<SendAs> get(core.String userId, core.String sendAsEmail) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2520,36 +2492,35 @@ class UsersSettingsSendAsResourceApi { |
throw new core.ArgumentError("Parameter sendAsEmail is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/sendAs/' + commons.Escaper.ecapeVariable('$sendAsEmail'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/sendAs/' + |
+ commons.Escaper.ecapeVariable('$sendAsEmail'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new SendAs.fromJson(data)); |
} |
- /** |
- * 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. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * Completes with a [ListSendAsResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// 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. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// Completes with a [ListSendAsResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<ListSendAsResponse> list(core.String userId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2564,42 +2535,40 @@ class UsersSettingsSendAsResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/settings/sendAs'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ListSendAsResponse.fromJson(data)); |
} |
- /** |
- * 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. This method supports patch semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * [sendAsEmail] - The send-as alias to be updated. |
- * |
- * Completes with a [SendAs]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<SendAs> patch(SendAs request, core.String userId, core.String sendAsEmail) { |
+ /// 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. This method supports patch semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [sendAsEmail] - The send-as alias to be updated. |
+ /// |
+ /// Completes with a [SendAs]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<SendAs> patch( |
+ SendAs request, core.String userId, core.String sendAsEmail) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2617,44 +2586,44 @@ class UsersSettingsSendAsResourceApi { |
throw new core.ArgumentError("Parameter sendAsEmail is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/sendAs/' + commons.Escaper.ecapeVariable('$sendAsEmail'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/sendAs/' + |
+ commons.Escaper.ecapeVariable('$sendAsEmail'); |
- var _response = _requester.request(_url, |
- "PATCH", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "PATCH", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new SendAs.fromJson(data)); |
} |
- /** |
- * 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. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * [sendAsEmail] - The send-as alias to be updated. |
- * |
- * Completes with a [SendAs]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<SendAs> update(SendAs request, core.String userId, core.String sendAsEmail) { |
+ /// 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. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [sendAsEmail] - The send-as alias to be updated. |
+ /// |
+ /// Completes with a [SendAs]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<SendAs> update( |
+ SendAs request, core.String userId, core.String sendAsEmail) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2672,38 +2641,37 @@ class UsersSettingsSendAsResourceApi { |
throw new core.ArgumentError("Parameter sendAsEmail is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/sendAs/' + commons.Escaper.ecapeVariable('$sendAsEmail'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/sendAs/' + |
+ commons.Escaper.ecapeVariable('$sendAsEmail'); |
- var _response = _requester.request(_url, |
- "PUT", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "PUT", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new SendAs.fromJson(data)); |
} |
- /** |
- * 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. |
- * |
- * Request parameters: |
- * |
- * [userId] - User's email address. The special value "me" can be used to |
- * indicate the authenticated user. |
- * |
- * [sendAsEmail] - The send-as alias to be verified. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// 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. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - User's email address. The special value "me" can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [sendAsEmail] - The send-as alias to be verified. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future verify(core.String userId, core.String sendAsEmail) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2721,47 +2689,46 @@ class UsersSettingsSendAsResourceApi { |
_downloadOptions = null; |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/sendAs/' + commons.Escaper.ecapeVariable('$sendAsEmail') + '/verify'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/sendAs/' + |
+ commons.Escaper.ecapeVariable('$sendAsEmail') + |
+ '/verify'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- |
} |
- |
class UsersSettingsSendAsSmimeInfoResourceApi { |
final commons.ApiRequester _requester; |
- UsersSettingsSendAsSmimeInfoResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Deletes the specified S/MIME config for the specified send-as alias. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [sendAsEmail] - The email address that appears in the "From:" header for |
- * mail sent using this alias. |
- * |
- * [id] - The immutable ID for the SmimeInfo. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future delete(core.String userId, core.String sendAsEmail, core.String id) { |
+ UsersSettingsSendAsSmimeInfoResourceApi(commons.ApiRequester client) |
+ : _requester = client; |
+ |
+ /// Deletes the specified S/MIME config for the specified send-as alias. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [sendAsEmail] - The email address that appears in the "From:" header for |
+ /// mail sent using this alias. |
+ /// |
+ /// [id] - The immutable ID for the SmimeInfo. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future delete( |
+ core.String userId, core.String sendAsEmail, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2781,40 +2748,42 @@ class UsersSettingsSendAsSmimeInfoResourceApi { |
_downloadOptions = null; |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/sendAs/' + commons.Escaper.ecapeVariable('$sendAsEmail') + '/smimeInfo/' + commons.Escaper.ecapeVariable('$id'); |
- |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/sendAs/' + |
+ commons.Escaper.ecapeVariable('$sendAsEmail') + |
+ '/smimeInfo/' + |
+ commons.Escaper.ecapeVariable('$id'); |
+ |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets the specified S/MIME config for the specified send-as alias. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [sendAsEmail] - The email address that appears in the "From:" header for |
- * mail sent using this alias. |
- * |
- * [id] - The immutable ID for the SmimeInfo. |
- * |
- * Completes with a [SmimeInfo]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<SmimeInfo> get(core.String userId, core.String sendAsEmail, core.String id) { |
+ /// Gets the specified S/MIME config for the specified send-as alias. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [sendAsEmail] - The email address that appears in the "From:" header for |
+ /// mail sent using this alias. |
+ /// |
+ /// [id] - The immutable ID for the SmimeInfo. |
+ /// |
+ /// Completes with a [SmimeInfo]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<SmimeInfo> get( |
+ core.String userId, core.String sendAsEmail, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2832,41 +2801,43 @@ class UsersSettingsSendAsSmimeInfoResourceApi { |
throw new core.ArgumentError("Parameter id is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/sendAs/' + commons.Escaper.ecapeVariable('$sendAsEmail') + '/smimeInfo/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/sendAs/' + |
+ commons.Escaper.ecapeVariable('$sendAsEmail') + |
+ '/smimeInfo/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new SmimeInfo.fromJson(data)); |
} |
- /** |
- * Insert (upload) the given S/MIME config for the specified send-as alias. |
- * Note that pkcs12 format is required for the key. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [sendAsEmail] - The email address that appears in the "From:" header for |
- * mail sent using this alias. |
- * |
- * Completes with a [SmimeInfo]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<SmimeInfo> insert(SmimeInfo request, core.String userId, core.String sendAsEmail) { |
+ /// Insert (upload) the given S/MIME config for the specified send-as alias. |
+ /// Note that pkcs12 format is required for the key. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [sendAsEmail] - The email address that appears in the "From:" header for |
+ /// mail sent using this alias. |
+ /// |
+ /// Completes with a [SmimeInfo]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<SmimeInfo> insert( |
+ SmimeInfo request, core.String userId, core.String sendAsEmail) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2884,38 +2855,39 @@ class UsersSettingsSendAsSmimeInfoResourceApi { |
throw new core.ArgumentError("Parameter sendAsEmail is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/sendAs/' + commons.Escaper.ecapeVariable('$sendAsEmail') + '/smimeInfo'; |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/sendAs/' + |
+ commons.Escaper.ecapeVariable('$sendAsEmail') + |
+ '/smimeInfo'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new SmimeInfo.fromJson(data)); |
} |
- /** |
- * Lists S/MIME configs for the specified send-as alias. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [sendAsEmail] - The email address that appears in the "From:" header for |
- * mail sent using this alias. |
- * |
- * Completes with a [ListSmimeInfoResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<ListSmimeInfoResponse> list(core.String userId, core.String sendAsEmail) { |
+ /// Lists S/MIME configs for the specified send-as alias. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [sendAsEmail] - The email address that appears in the "From:" header for |
+ /// mail sent using this alias. |
+ /// |
+ /// Completes with a [ListSmimeInfoResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<ListSmimeInfoResponse> list( |
+ core.String userId, core.String sendAsEmail) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2930,38 +2902,39 @@ class UsersSettingsSendAsSmimeInfoResourceApi { |
throw new core.ArgumentError("Parameter sendAsEmail is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/sendAs/' + commons.Escaper.ecapeVariable('$sendAsEmail') + '/smimeInfo'; |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/sendAs/' + |
+ commons.Escaper.ecapeVariable('$sendAsEmail') + |
+ '/smimeInfo'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ListSmimeInfoResponse.fromJson(data)); |
} |
- /** |
- * Sets the default S/MIME config for the specified send-as alias. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [sendAsEmail] - The email address that appears in the "From:" header for |
- * mail sent using this alias. |
- * |
- * [id] - The immutable ID for the SmimeInfo. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future setDefault(core.String userId, core.String sendAsEmail, core.String id) { |
+ /// Sets the default S/MIME config for the specified send-as alias. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [sendAsEmail] - The email address that appears in the "From:" header for |
+ /// mail sent using this alias. |
+ /// |
+ /// [id] - The immutable ID for the SmimeInfo. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future setDefault( |
+ core.String userId, core.String sendAsEmail, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2981,44 +2954,43 @@ class UsersSettingsSendAsSmimeInfoResourceApi { |
_downloadOptions = null; |
- _url = commons.Escaper.ecapeVariable('$userId') + '/settings/sendAs/' + commons.Escaper.ecapeVariable('$sendAsEmail') + '/smimeInfo/' + commons.Escaper.ecapeVariable('$id') + '/setDefault'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/settings/sendAs/' + |
+ commons.Escaper.ecapeVariable('$sendAsEmail') + |
+ '/smimeInfo/' + |
+ commons.Escaper.ecapeVariable('$id') + |
+ '/setDefault'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- |
} |
- |
class UsersThreadsResourceApi { |
final commons.ApiRequester _requester; |
- UsersThreadsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Immediately and permanently deletes the specified thread. This operation |
- * cannot be undone. Prefer threads.trash instead. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - ID of the Thread to delete. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ UsersThreadsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Immediately and permanently deletes the specified thread. This operation |
+ /// cannot be undone. Prefer threads.trash instead. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - ID of the Thread to delete. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future delete(core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -3036,46 +3008,46 @@ class UsersThreadsResourceApi { |
_downloadOptions = null; |
- _url = commons.Escaper.ecapeVariable('$userId') + '/threads/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/threads/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets the specified thread. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the thread to retrieve. |
- * |
- * [format] - The format to return the messages in. |
- * Possible string values are: |
- * - "full" |
- * - "metadata" |
- * - "minimal" |
- * |
- * [metadataHeaders] - When given and format is METADATA, only include headers |
- * specified. |
- * |
- * Completes with a [Thread]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Thread> get(core.String userId, core.String id, {core.String format, core.List<core.String> metadataHeaders}) { |
+ /// Gets the specified thread. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the thread to retrieve. |
+ /// |
+ /// [format] - The format to return the messages in. |
+ /// Possible string values are: |
+ /// - "full" |
+ /// - "metadata" |
+ /// - "minimal" |
+ /// |
+ /// [metadataHeaders] - When given and format is METADATA, only include |
+ /// headers specified. |
+ /// |
+ /// Completes with a [Thread]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<Thread> get(core.String userId, core.String id, |
+ {core.String format, core.List<core.String> metadataHeaders}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3096,50 +3068,54 @@ class UsersThreadsResourceApi { |
_queryParams["metadataHeaders"] = metadataHeaders; |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/threads/' + commons.Escaper.ecapeVariable('$id'); |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/threads/' + |
+ commons.Escaper.ecapeVariable('$id'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Thread.fromJson(data)); |
} |
- /** |
- * Lists the threads in the user's mailbox. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [includeSpamTrash] - Include threads from SPAM and TRASH in the results. |
- * |
- * [labelIds] - Only return threads with labels that match all of the |
- * specified label IDs. |
- * |
- * [maxResults] - Maximum number of threads to return. |
- * |
- * [pageToken] - Page token to retrieve a specific page of results in the |
- * list. |
- * |
- * [q] - Only return threads matching the specified query. Supports the same |
- * query format as the Gmail search box. For example, |
- * "from:someuser@example.com rfc822msgid: is:unread". Parameter cannot be |
- * used when accessing the api using the gmail.metadata scope. |
- * |
- * Completes with a [ListThreadsResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<ListThreadsResponse> list(core.String userId, {core.bool includeSpamTrash, core.List<core.String> labelIds, core.int maxResults, core.String pageToken, core.String q}) { |
+ /// Lists the threads in the user's mailbox. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [includeSpamTrash] - Include threads from SPAM and TRASH in the results. |
+ /// |
+ /// [labelIds] - Only return threads with labels that match all of the |
+ /// specified label IDs. |
+ /// |
+ /// [maxResults] - Maximum number of threads to return. |
+ /// |
+ /// [pageToken] - Page token to retrieve a specific page of results in the |
+ /// list. |
+ /// |
+ /// [q] - Only return threads matching the specified query. Supports the same |
+ /// query format as the Gmail search box. For example, |
+ /// "from:someuser@example.com rfc822msgid: is:unread". Parameter cannot be |
+ /// used when accessing the api using the gmail.metadata scope. |
+ /// |
+ /// Completes with a [ListThreadsResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<ListThreadsResponse> list(core.String userId, |
+ {core.bool includeSpamTrash, |
+ core.List<core.String> labelIds, |
+ core.int maxResults, |
+ core.String pageToken, |
+ core.String q}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3168,38 +3144,36 @@ class UsersThreadsResourceApi { |
_url = commons.Escaper.ecapeVariable('$userId') + '/threads'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ListThreadsResponse.fromJson(data)); |
} |
- /** |
- * Modifies the labels applied to the thread. This applies to all messages in |
- * the thread. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the thread to modify. |
- * |
- * Completes with a [Thread]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<Thread> modify(ModifyThreadRequest request, core.String userId, core.String id) { |
+ /// Modifies the labels applied to the thread. This applies to all messages |
+ /// in the thread. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the thread to modify. |
+ /// |
+ /// Completes with a [Thread]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<Thread> modify( |
+ ModifyThreadRequest request, core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3217,36 +3191,36 @@ class UsersThreadsResourceApi { |
throw new core.ArgumentError("Parameter id is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/threads/' + commons.Escaper.ecapeVariable('$id') + '/modify'; |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/threads/' + |
+ commons.Escaper.ecapeVariable('$id') + |
+ '/modify'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Thread.fromJson(data)); |
} |
- /** |
- * Moves the specified thread to the trash. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the thread to Trash. |
- * |
- * Completes with a [Thread]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Moves the specified thread to the trash. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the thread to Trash. |
+ /// |
+ /// Completes with a [Thread]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<Thread> trash(core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -3262,36 +3236,36 @@ class UsersThreadsResourceApi { |
throw new core.ArgumentError("Parameter id is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/threads/' + commons.Escaper.ecapeVariable('$id') + '/trash'; |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/threads/' + |
+ commons.Escaper.ecapeVariable('$id') + |
+ '/trash'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Thread.fromJson(data)); |
} |
- /** |
- * Removes the specified thread from the trash. |
- * |
- * Request parameters: |
- * |
- * [userId] - The user's email address. The special value me can be used to |
- * indicate the authenticated user. |
- * |
- * [id] - The ID of the thread to remove from Trash. |
- * |
- * Completes with a [Thread]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ /// Removes the specified thread from the trash. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [userId] - The user's email address. The special value me can be used to |
+ /// indicate the authenticated user. |
+ /// |
+ /// [id] - The ID of the thread to remove from Trash. |
+ /// |
+ /// Completes with a [Thread]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<Thread> untrash(core.String userId, core.String id) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -3307,42 +3281,37 @@ class UsersThreadsResourceApi { |
throw new core.ArgumentError("Parameter id is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$userId') + '/threads/' + commons.Escaper.ecapeVariable('$id') + '/untrash'; |
+ _url = commons.Escaper.ecapeVariable('$userId') + |
+ '/threads/' + |
+ commons.Escaper.ecapeVariable('$id') + |
+ '/untrash'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Thread.fromJson(data)); |
} |
- |
} |
- |
- |
-/** Auto-forwarding settings for an account. */ |
+/// Auto-forwarding settings for an account. |
class AutoForwarding { |
- /** |
- * The state that a message should be left in after it has been forwarded. |
- * Possible string values are: |
- * - "archive" |
- * - "dispositionUnspecified" |
- * - "leaveInInbox" |
- * - "markRead" |
- * - "trash" |
- */ |
+ /// The state that a message should be left in after it has been forwarded. |
+ /// Possible string values are: |
+ /// - "archive" |
+ /// - "dispositionUnspecified" |
+ /// - "leaveInInbox" |
+ /// - "markRead" |
+ /// - "trash" |
core.String disposition; |
- /** |
- * Email address to which all incoming messages are forwarded. This email |
- * address must be a verified member of the forwarding addresses. |
- */ |
+ |
+ /// Email address to which all incoming messages are forwarded. This email |
+ /// address must be a verified member of the forwarding addresses. |
core.String emailAddress; |
- /** |
- * Whether all incoming mail is automatically forwarded to another address. |
- */ |
+ |
+ /// Whether all incoming mail is automatically forwarded to another address. |
core.bool enabled; |
AutoForwarding(); |
@@ -3360,7 +3329,8 @@ class AutoForwarding { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (disposition != null) { |
_json["disposition"] = disposition; |
} |
@@ -3375,7 +3345,7 @@ class AutoForwarding { |
} |
class BatchDeleteMessagesRequest { |
- /** The IDs of the messages to delete. */ |
+ /// The IDs of the messages to delete. |
core.List<core.String> ids; |
BatchDeleteMessagesRequest(); |
@@ -3387,7 +3357,8 @@ class BatchDeleteMessagesRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (ids != null) { |
_json["ids"] = ids; |
} |
@@ -3396,14 +3367,14 @@ class BatchDeleteMessagesRequest { |
} |
class BatchModifyMessagesRequest { |
- /** A list of label IDs to add to messages. */ |
+ /// A list of label IDs to add to messages. |
core.List<core.String> addLabelIds; |
- /** |
- * The IDs of the messages to modify. There is a limit of 1000 ids per |
- * request. |
- */ |
+ |
+ /// The IDs of the messages to modify. There is a limit of 1000 ids per |
+ /// request. |
core.List<core.String> ids; |
- /** A list of label IDs to remove from messages. */ |
+ |
+ /// A list of label IDs to remove from messages. |
core.List<core.String> removeLabelIds; |
BatchModifyMessagesRequest(); |
@@ -3421,7 +3392,8 @@ class BatchModifyMessagesRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (addLabelIds != null) { |
_json["addLabelIds"] = addLabelIds; |
} |
@@ -3435,11 +3407,12 @@ class BatchModifyMessagesRequest { |
} |
} |
-/** A draft email in the user's mailbox. */ |
+/// A draft email in the user's mailbox. |
class Draft { |
- /** The immutable ID of the draft. */ |
+ /// The immutable ID of the draft. |
core.String id; |
- /** The message content of the draft. */ |
+ |
+ /// The message content of the draft. |
Message message; |
Draft(); |
@@ -3454,7 +3427,8 @@ class Draft { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (id != null) { |
_json["id"] = id; |
} |
@@ -3465,16 +3439,16 @@ class Draft { |
} |
} |
-/** |
- * Resource definition for Gmail filters. Filters apply to specific messages |
- * instead of an entire email thread. |
- */ |
+/// Resource definition for Gmail filters. Filters apply to specific messages |
+/// instead of an entire email thread. |
class Filter { |
- /** Action that the filter performs. */ |
+ /// Action that the filter performs. |
FilterAction action; |
- /** Matching criteria for the filter. */ |
+ |
+ /// Matching criteria for the filter. |
FilterCriteria criteria; |
- /** The server assigned ID of the filter. */ |
+ |
+ /// The server assigned ID of the filter. |
core.String id; |
Filter(); |
@@ -3492,7 +3466,8 @@ class Filter { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (action != null) { |
_json["action"] = (action).toJson(); |
} |
@@ -3506,13 +3481,15 @@ class Filter { |
} |
} |
-/** A set of actions to perform on a message. */ |
+/// A set of actions to perform on a message. |
class FilterAction { |
- /** List of labels to add to the message. */ |
+ /// List of labels to add to the message. |
core.List<core.String> addLabelIds; |
- /** Email address that the message should be forwarded to. */ |
+ |
+ /// Email address that the message should be forwarded to. |
core.String forward; |
- /** List of labels to remove from the message. */ |
+ |
+ /// List of labels to remove from the message. |
core.List<core.String> removeLabelIds; |
FilterAction(); |
@@ -3530,7 +3507,8 @@ class FilterAction { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (addLabelIds != null) { |
_json["addLabelIds"] = addLabelIds; |
} |
@@ -3544,50 +3522,46 @@ class FilterAction { |
} |
} |
-/** Message matching criteria. */ |
+/// Message matching criteria. |
class FilterCriteria { |
- /** Whether the response should exclude chats. */ |
+ /// Whether the response should exclude chats. |
core.bool excludeChats; |
- /** The sender's display name or email address. */ |
+ |
+ /// The sender's display name or email address. |
core.String from; |
- /** Whether the message has any attachment. */ |
+ |
+ /// Whether the message has any attachment. |
core.bool hasAttachment; |
- /** |
- * Only return messages not matching the specified query. Supports the same |
- * query format as the Gmail search box. For example, |
- * "from:someuser@example.com rfc822msgid: is:unread". |
- */ |
+ |
+ /// Only return messages not matching the specified query. Supports the same |
+ /// query format as the Gmail search box. For example, |
+ /// "from:someuser@example.com rfc822msgid: is:unread". |
core.String negatedQuery; |
- /** |
- * Only return messages matching the specified query. Supports the same query |
- * format as the Gmail search box. For example, "from:someuser@example.com |
- * rfc822msgid: is:unread". |
- */ |
+ |
+ /// Only return messages matching the specified query. Supports the same |
+ /// query format as the Gmail search box. For example, |
+ /// "from:someuser@example.com rfc822msgid: is:unread". |
core.String query; |
- /** |
- * The size of the entire RFC822 message in bytes, including all headers and |
- * attachments. |
- */ |
+ |
+ /// The size of the entire RFC822 message in bytes, including all headers and |
+ /// attachments. |
core.int size; |
- /** |
- * How the message size in bytes should be in relation to the size field. |
- * Possible string values are: |
- * - "larger" |
- * - "smaller" |
- * - "unspecified" |
- */ |
+ |
+ /// How the message size in bytes should be in relation to the size field. |
+ /// Possible string values are: |
+ /// - "larger" |
+ /// - "smaller" |
+ /// - "unspecified" |
core.String sizeComparison; |
- /** |
- * Case-insensitive phrase found in the message's subject. Trailing and |
- * leading whitespace are be trimmed and adjacent spaces are collapsed. |
- */ |
+ |
+ /// Case-insensitive phrase found in the message's subject. Trailing and |
+ /// leading whitespace are be trimmed and adjacent spaces are collapsed. |
core.String subject; |
- /** |
- * The recipient's display name or email address. Includes recipients in the |
- * "to", "cc", and "bcc" header fields. You can use simply the local part of |
- * the email address. For example, "example" and "example@" both match |
- * "example@gmail.com". This field is case-insensitive. |
- */ |
+ |
+ /// The recipient's display name or email address. Includes recipients in the |
+ /// "to", "cc", and "bcc" header fields. You can use simply the local part of |
+ /// the email address. For example, "example" and "example@" both match |
+ /// "example@gmail.com". This field is case-insensitive. |
core.String to; |
FilterCriteria(); |
@@ -3623,7 +3597,8 @@ class FilterCriteria { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (excludeChats != null) { |
_json["excludeChats"] = excludeChats; |
} |
@@ -3655,18 +3630,17 @@ class FilterCriteria { |
} |
} |
-/** Settings for a forwarding address. */ |
+/// Settings for a forwarding address. |
class ForwardingAddress { |
- /** An email address to which messages can be forwarded. */ |
+ /// An email address to which messages can be forwarded. |
core.String forwardingEmail; |
- /** |
- * Indicates whether this address has been verified and is usable for |
- * forwarding. Read-only. |
- * Possible string values are: |
- * - "accepted" |
- * - "pending" |
- * - "verificationStatusUnspecified" |
- */ |
+ |
+ /// Indicates whether this address has been verified and is usable for |
+ /// forwarding. Read-only. |
+ /// Possible string values are: |
+ /// - "accepted" |
+ /// - "pending" |
+ /// - "verificationStatusUnspecified" |
core.String verificationStatus; |
ForwardingAddress(); |
@@ -3681,7 +3655,8 @@ class ForwardingAddress { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (forwardingEmail != null) { |
_json["forwardingEmail"] = forwardingEmail; |
} |
@@ -3692,28 +3667,27 @@ class ForwardingAddress { |
} |
} |
-/** |
- * A record of a change to the user's mailbox. Each history change may affect |
- * multiple messages in multiple ways. |
- */ |
+/// A record of a change to the user's mailbox. Each history change may affect |
+/// multiple messages in multiple ways. |
class History { |
- /** The mailbox sequence ID. */ |
+ /// The mailbox sequence ID. |
core.String id; |
- /** Labels added to messages in this history record. */ |
+ |
+ /// Labels added to messages in this history record. |
core.List<HistoryLabelAdded> labelsAdded; |
- /** Labels removed from messages in this history record. */ |
+ |
+ /// Labels removed from messages in this history record. |
core.List<HistoryLabelRemoved> labelsRemoved; |
- /** |
- * List of messages changed in this history record. The fields for specific |
- * change types, such as messagesAdded may duplicate messages in this field. |
- * We recommend using the specific change-type fields instead of this. |
- */ |
+ |
+ /// List of messages changed in this history record. The fields for specific |
+ /// change types, such as messagesAdded may duplicate messages in this field. |
+ /// We recommend using the specific change-type fields instead of this. |
core.List<Message> messages; |
- /** Messages added to the mailbox in this history record. */ |
+ |
+ /// Messages added to the mailbox in this history record. |
core.List<HistoryMessageAdded> messagesAdded; |
- /** |
- * Messages deleted (not Trashed) from the mailbox in this history record. |
- */ |
+ |
+ /// Messages deleted (not Trashed) from the mailbox in this history record. |
core.List<HistoryMessageDeleted> messagesDeleted; |
History(); |
@@ -3723,48 +3697,63 @@ class History { |
id = _json["id"]; |
} |
if (_json.containsKey("labelsAdded")) { |
- labelsAdded = _json["labelsAdded"].map((value) => new HistoryLabelAdded.fromJson(value)).toList(); |
+ labelsAdded = _json["labelsAdded"] |
+ .map((value) => new HistoryLabelAdded.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("labelsRemoved")) { |
- labelsRemoved = _json["labelsRemoved"].map((value) => new HistoryLabelRemoved.fromJson(value)).toList(); |
+ labelsRemoved = _json["labelsRemoved"] |
+ .map((value) => new HistoryLabelRemoved.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("messages")) { |
- messages = _json["messages"].map((value) => new Message.fromJson(value)).toList(); |
+ messages = _json["messages"] |
+ .map((value) => new Message.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("messagesAdded")) { |
- messagesAdded = _json["messagesAdded"].map((value) => new HistoryMessageAdded.fromJson(value)).toList(); |
+ messagesAdded = _json["messagesAdded"] |
+ .map((value) => new HistoryMessageAdded.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("messagesDeleted")) { |
- messagesDeleted = _json["messagesDeleted"].map((value) => new HistoryMessageDeleted.fromJson(value)).toList(); |
+ messagesDeleted = _json["messagesDeleted"] |
+ .map((value) => new HistoryMessageDeleted.fromJson(value)) |
+ .toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (id != null) { |
_json["id"] = id; |
} |
if (labelsAdded != null) { |
- _json["labelsAdded"] = labelsAdded.map((value) => (value).toJson()).toList(); |
+ _json["labelsAdded"] = |
+ labelsAdded.map((value) => (value).toJson()).toList(); |
} |
if (labelsRemoved != null) { |
- _json["labelsRemoved"] = labelsRemoved.map((value) => (value).toJson()).toList(); |
+ _json["labelsRemoved"] = |
+ labelsRemoved.map((value) => (value).toJson()).toList(); |
} |
if (messages != null) { |
_json["messages"] = messages.map((value) => (value).toJson()).toList(); |
} |
if (messagesAdded != null) { |
- _json["messagesAdded"] = messagesAdded.map((value) => (value).toJson()).toList(); |
+ _json["messagesAdded"] = |
+ messagesAdded.map((value) => (value).toJson()).toList(); |
} |
if (messagesDeleted != null) { |
- _json["messagesDeleted"] = messagesDeleted.map((value) => (value).toJson()).toList(); |
+ _json["messagesDeleted"] = |
+ messagesDeleted.map((value) => (value).toJson()).toList(); |
} |
return _json; |
} |
} |
class HistoryLabelAdded { |
- /** Label IDs added to the message. */ |
+ /// Label IDs added to the message. |
core.List<core.String> labelIds; |
Message message; |
@@ -3780,7 +3769,8 @@ class HistoryLabelAdded { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (labelIds != null) { |
_json["labelIds"] = labelIds; |
} |
@@ -3792,7 +3782,7 @@ class HistoryLabelAdded { |
} |
class HistoryLabelRemoved { |
- /** Label IDs removed from the message. */ |
+ /// Label IDs removed from the message. |
core.List<core.String> labelIds; |
Message message; |
@@ -3808,7 +3798,8 @@ class HistoryLabelRemoved { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (labelIds != null) { |
_json["labelIds"] = labelIds; |
} |
@@ -3831,7 +3822,8 @@ class HistoryMessageAdded { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (message != null) { |
_json["message"] = (message).toJson(); |
} |
@@ -3851,7 +3843,8 @@ class HistoryMessageDeleted { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (message != null) { |
_json["message"] = (message).toJson(); |
} |
@@ -3859,31 +3852,28 @@ class HistoryMessageDeleted { |
} |
} |
-/** IMAP settings for an account. */ |
+/// IMAP settings for an account. |
class ImapSettings { |
- /** |
- * If this value is true, Gmail will immediately expunge a message when it is |
- * marked as deleted in IMAP. Otherwise, Gmail will wait for an update from |
- * the client before expunging messages marked as deleted. |
- */ |
+ /// If this value is true, Gmail will immediately expunge a message when it |
+ /// is marked as deleted in IMAP. Otherwise, Gmail will wait for an update |
+ /// from the client before expunging messages marked as deleted. |
core.bool autoExpunge; |
- /** Whether IMAP is enabled for the account. */ |
+ |
+ /// Whether IMAP is enabled for the account. |
core.bool enabled; |
- /** |
- * The action that will be executed on a message when it is marked as deleted |
- * and expunged from the last visible IMAP folder. |
- * Possible string values are: |
- * - "archive" |
- * - "deleteForever" |
- * - "expungeBehaviorUnspecified" |
- * - "trash" |
- */ |
+ |
+ /// The action that will be executed on a message when it is marked as |
+ /// deleted and expunged from the last visible IMAP folder. |
+ /// Possible string values are: |
+ /// - "archive" |
+ /// - "deleteForever" |
+ /// - "expungeBehaviorUnspecified" |
+ /// - "trash" |
core.String expungeBehavior; |
- /** |
- * An optional limit on the number of messages that an IMAP folder may |
- * contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is |
- * interpreted to mean that there is no limit. |
- */ |
+ |
+ /// An optional limit on the number of messages that an IMAP folder may |
+ /// contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero |
+ /// is interpreted to mean that there is no limit. |
core.int maxFolderSize; |
ImapSettings(); |
@@ -3904,7 +3894,8 @@ class ImapSettings { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (autoExpunge != null) { |
_json["autoExpunge"] = autoExpunge; |
} |
@@ -3921,55 +3912,65 @@ class ImapSettings { |
} |
} |
-/** |
- * Labels are used to categorize messages and threads within the user's mailbox. |
- */ |
+/// Labels are used to categorize messages and threads within the user's |
+/// mailbox. |
class Label { |
- /** The immutable ID of the label. */ |
+ /// Color to assign to the label. This field is hidden behind an API server |
+ /// mendel experiment and only available for user-defined labels. Will be |
+ /// unset if the label doesn't have a color configured. |
+ LabelColor color; |
+ |
+ /// The immutable ID of the label. |
core.String id; |
- /** |
- * The visibility of the label in the label list in the Gmail web interface. |
- * Possible string values are: |
- * - "labelHide" |
- * - "labelShow" |
- * - "labelShowIfUnread" |
- */ |
+ |
+ /// The visibility of the label in the label list in the Gmail web interface. |
+ /// Possible string values are: |
+ /// - "labelHide" |
+ /// - "labelShow" |
+ /// - "labelShowIfUnread" |
core.String labelListVisibility; |
- /** |
- * The visibility of the label in the message list in the Gmail web interface. |
- * Possible string values are: |
- * - "hide" |
- * - "show" |
- */ |
+ |
+ /// The visibility of the label in the message list in the Gmail web |
+ /// interface. |
+ /// Possible string values are: |
+ /// - "hide" |
+ /// - "show" |
core.String messageListVisibility; |
- /** The total number of messages with the label. */ |
+ |
+ /// The total number of messages with the label. |
core.int messagesTotal; |
- /** The number of unread messages with the label. */ |
+ |
+ /// The number of unread messages with the label. |
core.int messagesUnread; |
- /** The display name of the label. */ |
+ |
+ /// The display name of the label. |
core.String name; |
- /** The total number of threads with the label. */ |
+ |
+ /// The total number of threads with the label. |
core.int threadsTotal; |
- /** The number of unread threads with the label. */ |
+ |
+ /// The number of unread threads with the label. |
core.int threadsUnread; |
- /** |
- * The owner type for the label. User labels are created by the user and can |
- * be modified and deleted by the user and can be applied to any message or |
- * thread. System labels are internally created and cannot be added, modified, |
- * or deleted. System labels may be able to be applied to or removed from |
- * messages and threads under some circumstances but this is not guaranteed. |
- * For example, users can apply and remove the INBOX and UNREAD labels from |
- * messages and threads, but cannot apply or remove the DRAFTS or SENT labels |
- * from messages or threads. |
- * Possible string values are: |
- * - "system" |
- * - "user" |
- */ |
+ |
+ /// The owner type for the label. User labels are created by the user and can |
+ /// be modified and deleted by the user and can be applied to any message or |
+ /// thread. System labels are internally created and cannot be added, |
+ /// modified, or deleted. System labels may be able to be applied to or |
+ /// removed from messages and threads under some circumstances but this is |
+ /// not guaranteed. For example, users can apply and remove the INBOX and |
+ /// UNREAD labels from messages and threads, but cannot apply or remove the |
+ /// DRAFTS or SENT labels from messages or threads. |
+ /// Possible string values are: |
+ /// - "system" |
+ /// - "user" |
core.String type; |
Label(); |
Label.fromJson(core.Map _json) { |
+ if (_json.containsKey("color")) { |
+ color = new LabelColor.fromJson(_json["color"]); |
+ } |
if (_json.containsKey("id")) { |
id = _json["id"]; |
} |
@@ -4000,7 +4001,11 @@ class Label { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
+ if (color != null) { |
+ _json["color"] = (color).toJson(); |
+ } |
if (id != null) { |
_json["id"] = id; |
} |
@@ -4032,19 +4037,57 @@ class Label { |
} |
} |
+class LabelColor { |
+ /// Background color represented as hex string #RRGGBB (ex #000000). Only a |
+ /// restricted predefined set of color values are allowed. See |
+ /// (go/gmail-api-label-colors). |
+ core.String backgroundColor; |
+ |
+ /// Text color represented as hex string #RRGGBB (ex #000000). Only a |
+ /// restricted predefined set of color values are allowed. See |
+ /// (go/gmail-api-label-colors). |
+ core.String textColor; |
+ |
+ LabelColor(); |
+ |
+ LabelColor.fromJson(core.Map _json) { |
+ if (_json.containsKey("backgroundColor")) { |
+ backgroundColor = _json["backgroundColor"]; |
+ } |
+ if (_json.containsKey("textColor")) { |
+ textColor = _json["textColor"]; |
+ } |
+ } |
+ |
+ core.Map<core.String, core.Object> toJson() { |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
+ if (backgroundColor != null) { |
+ _json["backgroundColor"] = backgroundColor; |
+ } |
+ if (textColor != null) { |
+ _json["textColor"] = textColor; |
+ } |
+ return _json; |
+ } |
+} |
+ |
class ListDraftsResponse { |
- /** List of drafts. */ |
+ /// List of drafts. |
core.List<Draft> drafts; |
- /** Token to retrieve the next page of results in the list. */ |
+ |
+ /// Token to retrieve the next page of results in the list. |
core.String nextPageToken; |
- /** Estimated total number of results. */ |
+ |
+ /// Estimated total number of results. |
core.int resultSizeEstimate; |
ListDraftsResponse(); |
ListDraftsResponse.fromJson(core.Map _json) { |
if (_json.containsKey("drafts")) { |
- drafts = _json["drafts"].map((value) => new Draft.fromJson(value)).toList(); |
+ drafts = |
+ _json["drafts"].map((value) => new Draft.fromJson(value)).toList(); |
} |
if (_json.containsKey("nextPageToken")) { |
nextPageToken = _json["nextPageToken"]; |
@@ -4055,7 +4098,8 @@ class ListDraftsResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (drafts != null) { |
_json["drafts"] = drafts.map((value) => (value).toJson()).toList(); |
} |
@@ -4069,21 +4113,23 @@ class ListDraftsResponse { |
} |
} |
-/** Response for the ListFilters method. */ |
+/// Response for the ListFilters method. |
class ListFiltersResponse { |
- /** List of a user's filters. */ |
+ /// List of a user's filters. |
core.List<Filter> filter; |
ListFiltersResponse(); |
ListFiltersResponse.fromJson(core.Map _json) { |
if (_json.containsKey("filter")) { |
- filter = _json["filter"].map((value) => new Filter.fromJson(value)).toList(); |
+ filter = |
+ _json["filter"].map((value) => new Filter.fromJson(value)).toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (filter != null) { |
_json["filter"] = filter.map((value) => (value).toJson()).toList(); |
} |
@@ -4091,44 +4137,49 @@ class ListFiltersResponse { |
} |
} |
-/** Response for the ListForwardingAddresses method. */ |
+/// Response for the ListForwardingAddresses method. |
class ListForwardingAddressesResponse { |
- /** List of addresses that may be used for forwarding. */ |
+ /// List of addresses that may be used for forwarding. |
core.List<ForwardingAddress> forwardingAddresses; |
ListForwardingAddressesResponse(); |
ListForwardingAddressesResponse.fromJson(core.Map _json) { |
if (_json.containsKey("forwardingAddresses")) { |
- forwardingAddresses = _json["forwardingAddresses"].map((value) => new ForwardingAddress.fromJson(value)).toList(); |
+ forwardingAddresses = _json["forwardingAddresses"] |
+ .map((value) => new ForwardingAddress.fromJson(value)) |
+ .toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (forwardingAddresses != null) { |
- _json["forwardingAddresses"] = forwardingAddresses.map((value) => (value).toJson()).toList(); |
+ _json["forwardingAddresses"] = |
+ forwardingAddresses.map((value) => (value).toJson()).toList(); |
} |
return _json; |
} |
} |
class ListHistoryResponse { |
- /** |
- * List of history records. Any messages contained in the response will |
- * typically only have id and threadId fields populated. |
- */ |
+ /// List of history records. Any messages contained in the response will |
+ /// typically only have id and threadId fields populated. |
core.List<History> history; |
- /** The ID of the mailbox's current history record. */ |
+ |
+ /// The ID of the mailbox's current history record. |
core.String historyId; |
- /** Page token to retrieve the next page of results in the list. */ |
+ |
+ /// Page token to retrieve the next page of results in the list. |
core.String nextPageToken; |
ListHistoryResponse(); |
ListHistoryResponse.fromJson(core.Map _json) { |
if (_json.containsKey("history")) { |
- history = _json["history"].map((value) => new History.fromJson(value)).toList(); |
+ history = |
+ _json["history"].map((value) => new History.fromJson(value)).toList(); |
} |
if (_json.containsKey("historyId")) { |
historyId = _json["historyId"]; |
@@ -4139,7 +4190,8 @@ class ListHistoryResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (history != null) { |
_json["history"] = history.map((value) => (value).toJson()).toList(); |
} |
@@ -4154,19 +4206,21 @@ class ListHistoryResponse { |
} |
class ListLabelsResponse { |
- /** List of labels. */ |
+ /// List of labels. |
core.List<Label> labels; |
ListLabelsResponse(); |
ListLabelsResponse.fromJson(core.Map _json) { |
if (_json.containsKey("labels")) { |
- labels = _json["labels"].map((value) => new Label.fromJson(value)).toList(); |
+ labels = |
+ _json["labels"].map((value) => new Label.fromJson(value)).toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (labels != null) { |
_json["labels"] = labels.map((value) => (value).toJson()).toList(); |
} |
@@ -4175,18 +4229,22 @@ class ListLabelsResponse { |
} |
class ListMessagesResponse { |
- /** List of messages. */ |
+ /// List of messages. |
core.List<Message> messages; |
- /** Token to retrieve the next page of results in the list. */ |
+ |
+ /// Token to retrieve the next page of results in the list. |
core.String nextPageToken; |
- /** Estimated total number of results. */ |
+ |
+ /// Estimated total number of results. |
core.int resultSizeEstimate; |
ListMessagesResponse(); |
ListMessagesResponse.fromJson(core.Map _json) { |
if (_json.containsKey("messages")) { |
- messages = _json["messages"].map((value) => new Message.fromJson(value)).toList(); |
+ messages = _json["messages"] |
+ .map((value) => new Message.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("nextPageToken")) { |
nextPageToken = _json["nextPageToken"]; |
@@ -4197,7 +4255,8 @@ class ListMessagesResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (messages != null) { |
_json["messages"] = messages.map((value) => (value).toJson()).toList(); |
} |
@@ -4211,21 +4270,23 @@ class ListMessagesResponse { |
} |
} |
-/** Response for the ListSendAs method. */ |
+/// Response for the ListSendAs method. |
class ListSendAsResponse { |
- /** List of send-as aliases. */ |
+ /// List of send-as aliases. |
core.List<SendAs> sendAs; |
ListSendAsResponse(); |
ListSendAsResponse.fromJson(core.Map _json) { |
if (_json.containsKey("sendAs")) { |
- sendAs = _json["sendAs"].map((value) => new SendAs.fromJson(value)).toList(); |
+ sendAs = |
+ _json["sendAs"].map((value) => new SendAs.fromJson(value)).toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (sendAs != null) { |
_json["sendAs"] = sendAs.map((value) => (value).toJson()).toList(); |
} |
@@ -4234,19 +4295,22 @@ class ListSendAsResponse { |
} |
class ListSmimeInfoResponse { |
- /** List of SmimeInfo. */ |
+ /// List of SmimeInfo. |
core.List<SmimeInfo> smimeInfo; |
ListSmimeInfoResponse(); |
ListSmimeInfoResponse.fromJson(core.Map _json) { |
if (_json.containsKey("smimeInfo")) { |
- smimeInfo = _json["smimeInfo"].map((value) => new SmimeInfo.fromJson(value)).toList(); |
+ smimeInfo = _json["smimeInfo"] |
+ .map((value) => new SmimeInfo.fromJson(value)) |
+ .toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (smimeInfo != null) { |
_json["smimeInfo"] = smimeInfo.map((value) => (value).toJson()).toList(); |
} |
@@ -4255,11 +4319,13 @@ class ListSmimeInfoResponse { |
} |
class ListThreadsResponse { |
- /** Page token to retrieve the next page of results in the list. */ |
+ /// Page token to retrieve the next page of results in the list. |
core.String nextPageToken; |
- /** Estimated total number of results. */ |
+ |
+ /// Estimated total number of results. |
core.int resultSizeEstimate; |
- /** List of threads. */ |
+ |
+ /// List of threads. |
core.List<Thread> threads; |
ListThreadsResponse(); |
@@ -4272,12 +4338,14 @@ class ListThreadsResponse { |
resultSizeEstimate = _json["resultSizeEstimate"]; |
} |
if (_json.containsKey("threads")) { |
- threads = _json["threads"].map((value) => new Thread.fromJson(value)).toList(); |
+ threads = |
+ _json["threads"].map((value) => new Thread.fromJson(value)).toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (nextPageToken != null) { |
_json["nextPageToken"] = nextPageToken; |
} |
@@ -4291,50 +4359,53 @@ class ListThreadsResponse { |
} |
} |
-/** An email message. */ |
+/// An email message. |
class Message { |
- /** The ID of the last history record that modified this message. */ |
+ /// The ID of the last history record that modified this message. |
core.String historyId; |
- /** The immutable ID of the message. */ |
+ |
+ /// The immutable ID of the message. |
core.String id; |
- /** |
- * The internal message creation timestamp (epoch ms), which determines |
- * ordering in the inbox. For normal SMTP-received email, this represents the |
- * time the message was originally accepted by Google, which is more reliable |
- * than the Date header. However, for API-migrated mail, it can be configured |
- * by client to be based on the Date header. |
- */ |
+ |
+ /// The internal message creation timestamp (epoch ms), which determines |
+ /// ordering in the inbox. For normal SMTP-received email, this represents |
+ /// the time the message was originally accepted by Google, which is more |
+ /// reliable than the Date header. However, for API-migrated mail, it can be |
+ /// configured by client to be based on the Date header. |
core.String internalDate; |
- /** List of IDs of labels applied to this message. */ |
+ |
+ /// List of IDs of labels applied to this message. |
core.List<core.String> labelIds; |
- /** The parsed email structure in the message parts. */ |
+ |
+ /// The parsed email structure in the message parts. |
MessagePart payload; |
- /** |
- * The entire email message in an RFC 2822 formatted and base64url encoded |
- * string. Returned in messages.get and drafts.get responses when the |
- * format=RAW parameter is supplied. |
- */ |
+ |
+ /// The entire email message in an RFC 2822 formatted and base64url encoded |
+ /// string. Returned in messages.get and drafts.get responses when the |
+ /// format=RAW parameter is supplied. |
core.String raw; |
core.List<core.int> get rawAsBytes { |
return convert.BASE64.decode(raw); |
} |
void set rawAsBytes(core.List<core.int> _bytes) { |
- raw = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
+ raw = |
+ convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
} |
- /** Estimated size in bytes of the message. */ |
+ |
+ /// Estimated size in bytes of the message. |
core.int sizeEstimate; |
- /** A short part of the message text. */ |
+ |
+ /// A short part of the message text. |
core.String snippet; |
- /** |
- * The ID of the thread the message belongs to. To add a message or draft to a |
- * thread, the following criteria must be met: |
- * - The requested threadId must be specified on the Message or Draft.Message |
- * you supply with your request. |
- * - The References and In-Reply-To headers must be set in compliance with the |
- * RFC 2822 standard. |
- * - The Subject headers must match. |
- */ |
+ |
+ /// The ID of the thread the message belongs to. To add a message or draft to |
+ /// a thread, the following criteria must be met: |
+ /// - The requested threadId must be specified on the Message or |
+ /// Draft.Message you supply with your request. |
+ /// - The References and In-Reply-To headers must be set in compliance with |
+ /// the RFC 2822 standard. |
+ /// - The Subject headers must match. |
core.String threadId; |
Message(); |
@@ -4370,7 +4441,8 @@ class Message { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (historyId != null) { |
_json["historyId"] = historyId; |
} |
@@ -4402,34 +4474,31 @@ class Message { |
} |
} |
-/** A single MIME message part. */ |
+/// A single MIME message part. |
class MessagePart { |
- /** |
- * The message part body for this part, which may be empty for container MIME |
- * message parts. |
- */ |
+ /// The message part body for this part, which may be empty for container |
+ /// MIME message parts. |
MessagePartBody body; |
- /** |
- * The filename of the attachment. Only present if this message part |
- * represents an attachment. |
- */ |
+ |
+ /// The filename of the attachment. Only present if this message part |
+ /// represents an attachment. |
core.String filename; |
- /** |
- * List of headers on this message part. For the top-level message part, |
- * representing the entire message payload, it will contain the standard RFC |
- * 2822 email headers such as To, From, and Subject. |
- */ |
+ |
+ /// List of headers on this message part. For the top-level message part, |
+ /// representing the entire message payload, it will contain the standard RFC |
+ /// 2822 email headers such as To, From, and Subject. |
core.List<MessagePartHeader> headers; |
- /** The MIME type of the message part. */ |
+ |
+ /// The MIME type of the message part. |
core.String mimeType; |
- /** The immutable ID of the message part. */ |
+ |
+ /// The immutable ID of the message part. |
core.String partId; |
- /** |
- * The child MIME message parts of this part. This only applies to container |
- * MIME message parts, for example multipart / * . For non- container MIME |
- * message part types, such as text/plain, this field is empty. For more |
- * information, see RFC 1521. |
- */ |
+ |
+ /// The child MIME message parts of this part. This only applies to container |
+ /// MIME message parts, for example multipart / * . For non- container MIME |
+ /// message part types, such as text/plain, this field is empty. For more |
+ /// information, see RFC 1521. |
core.List<MessagePart> parts; |
MessagePart(); |
@@ -4442,7 +4511,9 @@ class MessagePart { |
filename = _json["filename"]; |
} |
if (_json.containsKey("headers")) { |
- headers = _json["headers"].map((value) => new MessagePartHeader.fromJson(value)).toList(); |
+ headers = _json["headers"] |
+ .map((value) => new MessagePartHeader.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("mimeType")) { |
mimeType = _json["mimeType"]; |
@@ -4451,12 +4522,15 @@ class MessagePart { |
partId = _json["partId"]; |
} |
if (_json.containsKey("parts")) { |
- parts = _json["parts"].map((value) => new MessagePart.fromJson(value)).toList(); |
+ parts = _json["parts"] |
+ .map((value) => new MessagePart.fromJson(value)) |
+ .toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (body != null) { |
_json["body"] = (body).toJson(); |
} |
@@ -4479,29 +4553,29 @@ class MessagePart { |
} |
} |
-/** The body of a single MIME message part. */ |
+/// The body of a single MIME message part. |
class MessagePartBody { |
- /** |
- * When present, contains the ID of an external attachment that can be |
- * retrieved in a separate messages.attachments.get request. When not present, |
- * the entire content of the message part body is contained in the data field. |
- */ |
+ /// When present, contains the ID of an external attachment that can be |
+ /// retrieved in a separate messages.attachments.get request. When not |
+ /// present, the entire content of the message part body is contained in the |
+ /// data field. |
core.String attachmentId; |
- /** |
- * The body data of a MIME message part as a base64url encoded string. May be |
- * empty for MIME container types that have no message body or when the body |
- * data is sent as a separate attachment. An attachment ID is present if the |
- * body data is contained in a separate attachment. |
- */ |
+ |
+ /// The body data of a MIME message part as a base64url encoded string. May |
+ /// be empty for MIME container types that have no message body or when the |
+ /// body data is sent as a separate attachment. An attachment ID is present |
+ /// if the body data is contained in a separate attachment. |
core.String data; |
core.List<core.int> get dataAsBytes { |
return convert.BASE64.decode(data); |
} |
void set dataAsBytes(core.List<core.int> _bytes) { |
- data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
+ data = |
+ convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
} |
- /** Number of bytes for the message part data (encoding notwithstanding). */ |
+ |
+ /// Number of bytes for the message part data (encoding notwithstanding). |
core.int size; |
MessagePartBody(); |
@@ -4519,7 +4593,8 @@ class MessagePartBody { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (attachmentId != null) { |
_json["attachmentId"] = attachmentId; |
} |
@@ -4534,12 +4609,11 @@ class MessagePartBody { |
} |
class MessagePartHeader { |
- /** The name of the header before the : separator. For example, To. */ |
+ /// The name of the header before the : separator. For example, To. |
core.String name; |
- /** |
- * The value of the header after the : separator. For example, |
- * someuser@example.com. |
- */ |
+ |
+ /// The value of the header after the : separator. For example, |
+ /// someuser@example.com. |
core.String value; |
MessagePartHeader(); |
@@ -4554,7 +4628,8 @@ class MessagePartHeader { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (name != null) { |
_json["name"] = name; |
} |
@@ -4566,9 +4641,10 @@ class MessagePartHeader { |
} |
class ModifyMessageRequest { |
- /** A list of IDs of labels to add to this message. */ |
+ /// A list of IDs of labels to add to this message. |
core.List<core.String> addLabelIds; |
- /** A list IDs of labels to remove from this message. */ |
+ |
+ /// A list IDs of labels to remove from this message. |
core.List<core.String> removeLabelIds; |
ModifyMessageRequest(); |
@@ -4583,7 +4659,8 @@ class ModifyMessageRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (addLabelIds != null) { |
_json["addLabelIds"] = addLabelIds; |
} |
@@ -4595,9 +4672,10 @@ class ModifyMessageRequest { |
} |
class ModifyThreadRequest { |
- /** A list of IDs of labels to add to this thread. */ |
+ /// A list of IDs of labels to add to this thread. |
core.List<core.String> addLabelIds; |
- /** A list of IDs of labels to remove from this thread. */ |
+ |
+ /// A list of IDs of labels to remove from this thread. |
core.List<core.String> removeLabelIds; |
ModifyThreadRequest(); |
@@ -4612,7 +4690,8 @@ class ModifyThreadRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (addLabelIds != null) { |
_json["addLabelIds"] = addLabelIds; |
} |
@@ -4623,27 +4702,24 @@ class ModifyThreadRequest { |
} |
} |
-/** POP settings for an account. */ |
+/// POP settings for an account. |
class PopSettings { |
- /** |
- * The range of messages which are accessible via POP. |
- * Possible string values are: |
- * - "accessWindowUnspecified" |
- * - "allMail" |
- * - "disabled" |
- * - "fromNowOn" |
- */ |
+ /// The range of messages which are accessible via POP. |
+ /// Possible string values are: |
+ /// - "accessWindowUnspecified" |
+ /// - "allMail" |
+ /// - "disabled" |
+ /// - "fromNowOn" |
core.String accessWindow; |
- /** |
- * The action that will be executed on a message after it has been fetched via |
- * POP. |
- * Possible string values are: |
- * - "archive" |
- * - "dispositionUnspecified" |
- * - "leaveInInbox" |
- * - "markRead" |
- * - "trash" |
- */ |
+ |
+ /// The action that will be executed on a message after it has been fetched |
+ /// via POP. |
+ /// Possible string values are: |
+ /// - "archive" |
+ /// - "dispositionUnspecified" |
+ /// - "leaveInInbox" |
+ /// - "markRead" |
+ /// - "trash" |
core.String disposition; |
PopSettings(); |
@@ -4658,7 +4734,8 @@ class PopSettings { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (accessWindow != null) { |
_json["accessWindow"] = accessWindow; |
} |
@@ -4669,15 +4746,18 @@ class PopSettings { |
} |
} |
-/** Profile for a Gmail user. */ |
+/// Profile for a Gmail user. |
class Profile { |
- /** The user's email address. */ |
+ /// The user's email address. |
core.String emailAddress; |
- /** The ID of the mailbox's current history record. */ |
+ |
+ /// The ID of the mailbox's current history record. |
core.String historyId; |
- /** The total number of messages in the mailbox. */ |
+ |
+ /// The total number of messages in the mailbox. |
core.int messagesTotal; |
- /** The total number of threads in the mailbox. */ |
+ |
+ /// The total number of threads in the mailbox. |
core.int threadsTotal; |
Profile(); |
@@ -4698,7 +4778,8 @@ class Profile { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (emailAddress != null) { |
_json["emailAddress"] = emailAddress; |
} |
@@ -4715,70 +4796,60 @@ class Profile { |
} |
} |
-/** |
- * 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. |
- */ |
+/// 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. |
class SendAs { |
- /** |
- * A name that appears in the "From:" header for mail sent using this alias. |
- * For custom "from" addresses, when this is empty, Gmail will populate the |
- * "From:" header with the name that is used for the primary address |
- * associated with the account. |
- */ |
+ /// A name that appears in the "From:" header for mail sent using this alias. |
+ /// For custom "from" addresses, when this is empty, Gmail will populate the |
+ /// "From:" header with the name that is used for the primary address |
+ /// associated with the account. |
core.String displayName; |
- /** |
- * Whether this address is selected as the default "From:" address in |
- * situations such as composing a new message or sending a vacation |
- * auto-reply. Every Gmail account has exactly one default send-as address, so |
- * the only legal value that clients may write to this field is true. Changing |
- * this from false to true for an address will result in this field becoming |
- * false for the other previous default address. |
- */ |
+ |
+ /// Whether this address is selected as the default "From:" address in |
+ /// situations such as composing a new message or sending a vacation |
+ /// auto-reply. Every Gmail account has exactly one default send-as address, |
+ /// so the only legal value that clients may write to this field is true. |
+ /// Changing this from false to true for an address will result in this field |
+ /// becoming false for the other previous default address. |
core.bool isDefault; |
- /** |
- * Whether this address is the primary address used to login to the account. |
- * Every Gmail account has exactly one primary address, and it cannot be |
- * deleted from the collection of send-as aliases. This field is read-only. |
- */ |
+ |
+ /// Whether this address is the primary address used to login to the account. |
+ /// Every Gmail account has exactly one primary address, and it cannot be |
+ /// deleted from the collection of send-as aliases. This field is read-only. |
core.bool isPrimary; |
- /** |
- * An optional email address that is included in a "Reply-To:" header for mail |
- * sent using this alias. If this is empty, Gmail will not generate a |
- * "Reply-To:" header. |
- */ |
+ |
+ /// An optional email address that is included in a "Reply-To:" header for |
+ /// mail sent using this alias. If this is empty, Gmail will not generate a |
+ /// "Reply-To:" header. |
core.String replyToAddress; |
- /** |
- * The email address that appears in the "From:" header for mail sent using |
- * this alias. This is read-only for all operations except create. |
- */ |
+ |
+ /// The email address that appears in the "From:" header for mail sent using |
+ /// this alias. This is read-only for all operations except create. |
core.String sendAsEmail; |
- /** |
- * An optional HTML signature that is included in messages composed with this |
- * alias in the Gmail web UI. |
- */ |
+ |
+ /// An optional HTML signature that is included in messages composed with |
+ /// this alias in the Gmail web UI. |
core.String signature; |
- /** |
- * An optional SMTP service that will be used as an outbound relay for mail |
- * sent using this alias. If this is empty, outbound mail will be sent |
- * directly from Gmail's servers to the destination SMTP service. This setting |
- * only applies to custom "from" aliases. |
- */ |
+ |
+ /// An optional SMTP service that will be used as an outbound relay for mail |
+ /// sent using this alias. If this is empty, outbound mail will be sent |
+ /// directly from Gmail's servers to the destination SMTP service. This |
+ /// setting only applies to custom "from" aliases. |
SmtpMsa smtpMsa; |
- /** |
- * Whether Gmail should treat this address as an alias for the user's primary |
- * email address. This setting only applies to custom "from" aliases. |
- */ |
+ |
+ /// Whether Gmail should treat this address as an alias for the user's |
+ /// primary email address. This setting only applies to custom "from" |
+ /// aliases. |
core.bool treatAsAlias; |
- /** |
- * Indicates whether this address has been verified for use as a send-as |
- * alias. Read-only. This setting only applies to custom "from" aliases. |
- * Possible string values are: |
- * - "accepted" |
- * - "pending" |
- * - "verificationStatusUnspecified" |
- */ |
+ |
+ /// Indicates whether this address has been verified for use as a send-as |
+ /// alias. Read-only. This setting only applies to custom "from" aliases. |
+ /// Possible string values are: |
+ /// - "accepted" |
+ /// - "pending" |
+ /// - "verificationStatusUnspecified" |
core.String verificationStatus; |
SendAs(); |
@@ -4814,7 +4885,8 @@ class SendAs { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (displayName != null) { |
_json["displayName"] = displayName; |
} |
@@ -4846,40 +4918,42 @@ class SendAs { |
} |
} |
-/** An S/MIME email config. */ |
+/// An S/MIME email config. |
class SmimeInfo { |
- /** Encrypted key password, when key is encrypted. */ |
+ /// Encrypted key password, when key is encrypted. |
core.String encryptedKeyPassword; |
- /** When the certificate expires (in milliseconds since epoch). */ |
+ |
+ /// When the certificate expires (in milliseconds since epoch). |
core.String expiration; |
- /** The immutable ID for the SmimeInfo. */ |
+ |
+ /// The immutable ID for the SmimeInfo. |
core.String id; |
- /** |
- * Whether this SmimeInfo is the default one for this user's send-as address. |
- */ |
+ |
+ /// Whether this SmimeInfo is the default one for this user's send-as |
+ /// address. |
core.bool isDefault; |
- /** The S/MIME certificate issuer's common name. */ |
+ |
+ /// The S/MIME certificate issuer's common name. |
core.String issuerCn; |
- /** |
- * PEM formatted X509 concatenated certificate string (standard base64 |
- * encoding). Format used for returning key, which includes public key as well |
- * as certificate chain (not private key). |
- */ |
+ |
+ /// PEM formatted X509 concatenated certificate string (standard base64 |
+ /// encoding). Format used for returning key, which includes public key as |
+ /// well as certificate chain (not private key). |
core.String pem; |
- /** |
- * PKCS#12 format containing a single private/public key pair and certificate |
- * chain. This format is only accepted from client for creating a new |
- * SmimeInfo and is never returned, because the private key is not intended to |
- * be exported. PKCS#12 may be encrypted, in which case encryptedKeyPassword |
- * should be set appropriately. |
- */ |
+ |
+ /// PKCS#12 format containing a single private/public key pair and |
+ /// certificate chain. This format is only accepted from client for creating |
+ /// a new SmimeInfo and is never returned, because the private key is not |
+ /// intended to be exported. PKCS#12 may be encrypted, in which case |
+ /// encryptedKeyPassword should be set appropriately. |
core.String pkcs12; |
core.List<core.int> get pkcs12AsBytes { |
return convert.BASE64.decode(pkcs12); |
} |
void set pkcs12AsBytes(core.List<core.int> _bytes) { |
- pkcs12 = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
+ pkcs12 = |
+ convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
} |
SmimeInfo(); |
@@ -4909,7 +4983,8 @@ class SmimeInfo { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (encryptedKeyPassword != null) { |
_json["encryptedKeyPassword"] = encryptedKeyPassword; |
} |
@@ -4935,33 +5010,31 @@ class SmimeInfo { |
} |
} |
-/** Configuration for communication with an SMTP service. */ |
+/// Configuration for communication with an SMTP service. |
class SmtpMsa { |
- /** The hostname of the SMTP service. Required. */ |
+ /// The hostname of the SMTP service. Required. |
core.String host; |
- /** |
- * The password that will be used for authentication with the SMTP service. |
- * This is a write-only field that can be specified in requests to create or |
- * update SendAs settings; it is never populated in responses. |
- */ |
+ |
+ /// The password that will be used for authentication with the SMTP service. |
+ /// This is a write-only field that can be specified in requests to create or |
+ /// update SendAs settings; it is never populated in responses. |
core.String password; |
- /** The port of the SMTP service. Required. */ |
+ |
+ /// The port of the SMTP service. Required. |
core.int port; |
- /** |
- * The protocol that will be used to secure communication with the SMTP |
- * service. Required. |
- * Possible string values are: |
- * - "none" |
- * - "securityModeUnspecified" |
- * - "ssl" |
- * - "starttls" |
- */ |
+ |
+ /// The protocol that will be used to secure communication with the SMTP |
+ /// service. Required. |
+ /// Possible string values are: |
+ /// - "none" |
+ /// - "securityModeUnspecified" |
+ /// - "ssl" |
+ /// - "starttls" |
core.String securityMode; |
- /** |
- * The username that will be used for authentication with the SMTP service. |
- * This is a write-only field that can be specified in requests to create or |
- * update SendAs settings; it is never populated in responses. |
- */ |
+ |
+ /// The username that will be used for authentication with the SMTP service. |
+ /// This is a write-only field that can be specified in requests to create or |
+ /// update SendAs settings; it is never populated in responses. |
core.String username; |
SmtpMsa(); |
@@ -4985,7 +5058,8 @@ class SmtpMsa { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (host != null) { |
_json["host"] = host; |
} |
@@ -5005,15 +5079,18 @@ class SmtpMsa { |
} |
} |
-/** A collection of messages representing a conversation. */ |
+/// A collection of messages representing a conversation. |
class Thread { |
- /** The ID of the last history record that modified this thread. */ |
+ /// The ID of the last history record that modified this thread. |
core.String historyId; |
- /** The unique ID of the thread. */ |
+ |
+ /// The unique ID of the thread. |
core.String id; |
- /** The list of messages in the thread. */ |
+ |
+ /// The list of messages in the thread. |
core.List<Message> messages; |
- /** A short part of the message text. */ |
+ |
+ /// A short part of the message text. |
core.String snippet; |
Thread(); |
@@ -5026,7 +5103,9 @@ class Thread { |
id = _json["id"]; |
} |
if (_json.containsKey("messages")) { |
- messages = _json["messages"].map((value) => new Message.fromJson(value)).toList(); |
+ messages = _json["messages"] |
+ .map((value) => new Message.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("snippet")) { |
snippet = _json["snippet"]; |
@@ -5034,7 +5113,8 @@ class Thread { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (historyId != null) { |
_json["historyId"] = historyId; |
} |
@@ -5051,50 +5131,43 @@ class Thread { |
} |
} |
-/** |
- * Vacation auto-reply settings for an account. These settings correspond to the |
- * "Vacation responder" feature in the web interface. |
- */ |
+/// Vacation auto-reply settings for an account. These settings correspond to |
+/// the "Vacation responder" feature in the web interface. |
class VacationSettings { |
- /** Flag that controls whether Gmail automatically replies to messages. */ |
+ /// Flag that controls whether Gmail automatically replies to messages. |
core.bool enableAutoReply; |
- /** |
- * An optional end time for sending auto-replies (epoch ms). When this is |
- * specified, Gmail will automatically reply only to messages that it receives |
- * before the end time. If both startTime and endTime are specified, startTime |
- * must precede endTime. |
- */ |
+ |
+ /// An optional end time for sending auto-replies (epoch ms). When this is |
+ /// specified, Gmail will automatically reply only to messages that it |
+ /// receives before the end time. If both startTime and endTime are |
+ /// specified, startTime must precede endTime. |
core.String endTime; |
- /** |
- * Response body in HTML format. Gmail will sanitize the HTML before storing |
- * it. |
- */ |
+ |
+ /// Response body in HTML format. Gmail will sanitize the HTML before storing |
+ /// it. |
core.String responseBodyHtml; |
- /** Response body in plain text format. */ |
+ |
+ /// Response body in plain text format. |
core.String responseBodyPlainText; |
- /** |
- * Optional text to prepend to the subject line in vacation responses. In |
- * order to enable auto-replies, either the response subject or the response |
- * body must be nonempty. |
- */ |
+ |
+ /// Optional text to prepend to the subject line in vacation responses. In |
+ /// order to enable auto-replies, either the response subject or the response |
+ /// body must be nonempty. |
core.String responseSubject; |
- /** |
- * Flag that determines whether responses are sent to recipients who are not |
- * in the user's list of contacts. |
- */ |
+ |
+ /// Flag that determines whether responses are sent to recipients who are not |
+ /// in the user's list of contacts. |
core.bool restrictToContacts; |
- /** |
- * Flag that determines whether responses are sent to recipients who are |
- * outside of the user's domain. This feature is only available for G Suite |
- * users. |
- */ |
+ |
+ /// Flag that determines whether responses are sent to recipients who are |
+ /// outside of the user's domain. This feature is only available for G Suite |
+ /// users. |
core.bool restrictToDomain; |
- /** |
- * An optional start time for sending auto-replies (epoch ms). When this is |
- * specified, Gmail will automatically reply only to messages that it receives |
- * after the start time. If both startTime and endTime are specified, |
- * startTime must precede endTime. |
- */ |
+ |
+ /// An optional start time for sending auto-replies (epoch ms). When this is |
+ /// specified, Gmail will automatically reply only to messages that it |
+ /// receives after the start time. If both startTime and endTime are |
+ /// specified, startTime must precede endTime. |
core.String startTime; |
VacationSettings(); |
@@ -5127,7 +5200,8 @@ class VacationSettings { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (enableAutoReply != null) { |
_json["enableAutoReply"] = enableAutoReply; |
} |
@@ -5156,31 +5230,27 @@ class VacationSettings { |
} |
} |
-/** Set up or update a new push notification watch on this user's mailbox. */ |
+/// Set up or update a new push notification watch on this user's mailbox. |
class WatchRequest { |
- /** |
- * Filtering behavior of labelIds list specified. |
- * Possible string values are: |
- * - "exclude" |
- * - "include" |
- */ |
+ /// Filtering behavior of labelIds list specified. |
+ /// Possible string values are: |
+ /// - "exclude" |
+ /// - "include" |
core.String labelFilterAction; |
- /** |
- * List of label_ids to restrict notifications about. By default, if |
- * unspecified, all changes are pushed out. If specified then dictates which |
- * labels are required for a push notification to be generated. |
- */ |
+ |
+ /// List of label_ids to restrict notifications about. By default, if |
+ /// unspecified, all changes are pushed out. If specified then dictates which |
+ /// labels are required for a push notification to be generated. |
core.List<core.String> labelIds; |
- /** |
- * A fully qualified Google Cloud Pub/Sub API topic name to publish the events |
- * to. This topic name **must** already exist in Cloud Pub/Sub and you |
- * **must** have already granted gmail "publish" permission on it. For |
- * example, "projects/my-project-identifier/topics/my-topic-name" (using the |
- * Cloud Pub/Sub "v1" topic naming format). |
- * |
- * Note that the "my-project-identifier" portion must exactly match your |
- * Google developer project id (the one executing this watch request). |
- */ |
+ |
+ /// A fully qualified Google Cloud Pub/Sub API topic name to publish the |
+ /// events to. This topic name **must** already exist in Cloud Pub/Sub and |
+ /// you **must** have already granted gmail "publish" permission on it. For |
+ /// example, "projects/my-project-identifier/topics/my-topic-name" (using the |
+ /// Cloud Pub/Sub "v1" topic naming format). |
+ /// |
+ /// Note that the "my-project-identifier" portion must exactly match your |
+ /// Google developer project id (the one executing this watch request). |
core.String topicName; |
WatchRequest(); |
@@ -5198,7 +5268,8 @@ class WatchRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (labelFilterAction != null) { |
_json["labelFilterAction"] = labelFilterAction; |
} |
@@ -5212,14 +5283,13 @@ class WatchRequest { |
} |
} |
-/** Push notification watch response. */ |
+/// Push notification watch response. |
class WatchResponse { |
- /** |
- * When Gmail will stop sending notifications for mailbox updates (epoch |
- * millis). Call watch again before this time to renew the watch. |
- */ |
+ /// When Gmail will stop sending notifications for mailbox updates (epoch |
+ /// millis). Call watch again before this time to renew the watch. |
core.String expiration; |
- /** The ID of the mailbox's current history record. */ |
+ |
+ /// The ID of the mailbox's current history record. |
core.String historyId; |
WatchResponse(); |
@@ -5234,7 +5304,8 @@ class WatchResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (expiration != null) { |
_json["expiration"] = expiration; |
} |