Index: generated/googleapis/lib/drive/v2.dart |
diff --git a/generated/googleapis/lib/drive/v2.dart b/generated/googleapis/lib/drive/v2.dart |
index 329af8ae9491ab102037d9655686cc8f1c07c484..ccf988eca0aa852c35aa2e8f007f1bda1b4ed2fb 100644 |
--- a/generated/googleapis/lib/drive/v2.dart |
+++ b/generated/googleapis/lib/drive/v2.dart |
@@ -9,48 +9,56 @@ import 'dart:convert' as convert_1; |
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 drive/v2'; |
-/** |
- * Manages files in Drive including uploading, downloading, searching, detecting |
- * changes, and updating sharing permissions. |
- */ |
+/// Manages files in Drive including uploading, downloading, searching, |
+/// detecting changes, and updating sharing permissions. |
class DriveApi { |
- /** View and manage the files in your Google Drive */ |
+ /// View and manage the files in your Google Drive |
static const DriveScope = "https://www.googleapis.com/auth/drive"; |
- /** View and manage its own configuration data in your Google Drive */ |
- static const DriveAppdataScope = "https://www.googleapis.com/auth/drive.appdata"; |
+ /// View and manage its own configuration data in your Google Drive |
+ static const DriveAppdataScope = |
+ "https://www.googleapis.com/auth/drive.appdata"; |
- /** View your Google Drive apps */ |
- static const DriveAppsReadonlyScope = "https://www.googleapis.com/auth/drive.apps.readonly"; |
+ /// View your Google Drive apps |
+ static const DriveAppsReadonlyScope = |
+ "https://www.googleapis.com/auth/drive.apps.readonly"; |
- /** |
- * View and manage Google Drive files and folders that you have opened or |
- * created with this app |
- */ |
+ /// View and manage Google Drive files and folders that you have opened or |
+ /// created with this app |
static const DriveFileScope = "https://www.googleapis.com/auth/drive.file"; |
- /** View and manage metadata of files in your Google Drive */ |
- static const DriveMetadataScope = "https://www.googleapis.com/auth/drive.metadata"; |
+ /// View and manage metadata of files in your Google Drive |
+ static const DriveMetadataScope = |
+ "https://www.googleapis.com/auth/drive.metadata"; |
- /** View metadata for files in your Google Drive */ |
- static const DriveMetadataReadonlyScope = "https://www.googleapis.com/auth/drive.metadata.readonly"; |
+ /// View metadata for files in your Google Drive |
+ static const DriveMetadataReadonlyScope = |
+ "https://www.googleapis.com/auth/drive.metadata.readonly"; |
- /** View the photos, videos and albums in your Google Photos */ |
- static const DrivePhotosReadonlyScope = "https://www.googleapis.com/auth/drive.photos.readonly"; |
+ /// View the photos, videos and albums in your Google Photos |
+ static const DrivePhotosReadonlyScope = |
+ "https://www.googleapis.com/auth/drive.photos.readonly"; |
- /** View the files in your Google Drive */ |
- static const DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"; |
- |
- /** Modify your Google Apps Script scripts' behavior */ |
- static const DriveScriptsScope = "https://www.googleapis.com/auth/drive.scripts"; |
+ /// View the files in your Google Drive |
+ static const DriveReadonlyScope = |
+ "https://www.googleapis.com/auth/drive.readonly"; |
+ /// Modify your Google Apps Script scripts' behavior |
+ static const DriveScriptsScope = |
+ "https://www.googleapis.com/auth/drive.scripts"; |
final commons.ApiRequester _requester; |
@@ -62,48 +70,52 @@ class DriveApi { |
CommentsResourceApi get comments => new CommentsResourceApi(_requester); |
FilesResourceApi get files => new FilesResourceApi(_requester); |
ParentsResourceApi get parents => new ParentsResourceApi(_requester); |
- PermissionsResourceApi get permissions => new PermissionsResourceApi(_requester); |
+ PermissionsResourceApi get permissions => |
+ new PermissionsResourceApi(_requester); |
PropertiesResourceApi get properties => new PropertiesResourceApi(_requester); |
RealtimeResourceApi get realtime => new RealtimeResourceApi(_requester); |
RepliesResourceApi get replies => new RepliesResourceApi(_requester); |
RevisionsResourceApi get revisions => new RevisionsResourceApi(_requester); |
TeamdrivesResourceApi get teamdrives => new TeamdrivesResourceApi(_requester); |
- DriveApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "drive/v2/"}) : |
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
+ DriveApi(http.Client client, |
+ {core.String rootUrl: "https://www.googleapis.com/", |
+ core.String servicePath: "drive/v2/"}) |
+ : _requester = |
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
} |
- |
class AboutResourceApi { |
final commons.ApiRequester _requester; |
- AboutResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Gets the information about the current user along with Drive API settings |
- * |
- * Request parameters: |
- * |
- * [includeSubscribed] - When calculating the number of remaining change IDs, |
- * whether to include public files the user has opened and shared files. When |
- * set to false, this counts only change IDs for owned files and any shared or |
- * public files that the user has explicitly added to a folder they own. |
- * |
- * [maxChangeIdCount] - Maximum number of remaining change IDs to count |
- * |
- * [startChangeId] - Change ID to start counting from when calculating number |
- * of remaining change IDs |
- * |
- * Completes with a [About]. |
- * |
- * 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<About> get({core.bool includeSubscribed, core.String maxChangeIdCount, core.String startChangeId}) { |
+ AboutResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Gets the information about the current user along with Drive API settings |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [includeSubscribed] - When calculating the number of remaining change |
+ /// IDs, whether to include public files the user has opened and shared |
+ /// files. When set to false, this counts only change IDs for owned files and |
+ /// any shared or public files that the user has explicitly added to a folder |
+ /// they own. |
+ /// |
+ /// [maxChangeIdCount] - Maximum number of remaining change IDs to count |
+ /// |
+ /// [startChangeId] - Change ID to start counting from when calculating |
+ /// number of remaining change IDs |
+ /// |
+ /// Completes with a [About]. |
+ /// |
+ /// 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<About> get( |
+ {core.bool includeSubscribed, |
+ core.String maxChangeIdCount, |
+ core.String startChangeId}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -123,40 +135,34 @@ class AboutResourceApi { |
_url = 'about'; |
- 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 About.fromJson(data)); |
} |
- |
} |
- |
class AppsResourceApi { |
final commons.ApiRequester _requester; |
- AppsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Gets a specific app. |
- * |
- * Request parameters: |
- * |
- * [appId] - The ID of the app. |
- * |
- * Completes with a [App]. |
- * |
- * 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. |
- */ |
+ AppsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Gets a specific app. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [appId] - The ID of the app. |
+ /// |
+ /// Completes with a [App]. |
+ /// |
+ /// 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<App> get(core.String appId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -171,46 +177,46 @@ class AppsResourceApi { |
_url = 'apps/' + commons.Escaper.ecapeVariable('$appId'); |
- 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 App.fromJson(data)); |
} |
- /** |
- * Lists a user's installed apps. |
- * |
- * Request parameters: |
- * |
- * [appFilterExtensions] - A comma-separated list of file extensions for open |
- * with filtering. All apps within the given app query scope which can open |
- * any of the given file extensions will be included in the response. If |
- * appFilterMimeTypes are provided as well, the result is a union of the two |
- * resulting app lists. |
- * |
- * [appFilterMimeTypes] - A comma-separated list of MIME types for open with |
- * filtering. All apps within the given app query scope which can open any of |
- * the given MIME types will be included in the response. If |
- * appFilterExtensions are provided as well, the result is a union of the two |
- * resulting app lists. |
- * |
- * [languageCode] - A language or locale code, as defined by BCP 47, with some |
- * extensions from Unicode's LDML format |
- * (http://www.unicode.org/reports/tr35/). |
- * |
- * Completes with a [AppList]. |
- * |
- * 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<AppList> list({core.String appFilterExtensions, core.String appFilterMimeTypes, core.String languageCode}) { |
+ /// Lists a user's installed apps. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [appFilterExtensions] - A comma-separated list of file extensions for |
+ /// open with filtering. All apps within the given app query scope which can |
+ /// open any of the given file extensions will be included in the response. |
+ /// If appFilterMimeTypes are provided as well, the result is a union of the |
+ /// two resulting app lists. |
+ /// |
+ /// [appFilterMimeTypes] - A comma-separated list of MIME types for open with |
+ /// filtering. All apps within the given app query scope which can open any |
+ /// of the given MIME types will be included in the response. If |
+ /// appFilterExtensions are provided as well, the result is a union of the |
+ /// two resulting app lists. |
+ /// |
+ /// [languageCode] - A language or locale code, as defined by BCP 47, with |
+ /// some extensions from Unicode's LDML format |
+ /// (http://www.unicode.org/reports/tr35/). |
+ /// |
+ /// Completes with a [AppList]. |
+ /// |
+ /// 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<AppList> list( |
+ {core.String appFilterExtensions, |
+ core.String appFilterMimeTypes, |
+ core.String languageCode}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -230,46 +236,41 @@ class AppsResourceApi { |
_url = 'apps'; |
- 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 AppList.fromJson(data)); |
} |
- |
} |
- |
class ChangesResourceApi { |
final commons.ApiRequester _requester; |
- ChangesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Gets a specific change. |
- * |
- * Request parameters: |
- * |
- * [changeId] - The ID of the change. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * [teamDriveId] - The Team Drive from which the change will be returned. |
- * |
- * Completes with a [Change]. |
- * |
- * 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<Change> get(core.String changeId, {core.bool supportsTeamDrives, core.String teamDriveId}) { |
+ ChangesResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Gets a specific change. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [changeId] - The ID of the change. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// [teamDriveId] - The Team Drive from which the change will be returned. |
+ /// |
+ /// Completes with a [Change]. |
+ /// |
+ /// 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<Change> get(core.String changeId, |
+ {core.bool supportsTeamDrives, core.String teamDriveId}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -289,36 +290,34 @@ class ChangesResourceApi { |
_url = 'changes/' + commons.Escaper.ecapeVariable('$changeId'); |
- 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 Change.fromJson(data)); |
} |
- /** |
- * Gets the starting pageToken for listing future changes. |
- * |
- * Request parameters: |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * [teamDriveId] - The ID of the Team Drive for which the starting pageToken |
- * for listing future changes from that Team Drive will be returned. |
- * |
- * Completes with a [StartPageToken]. |
- * |
- * 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<StartPageToken> getStartPageToken({core.bool supportsTeamDrives, core.String teamDriveId}) { |
+ /// Gets the starting pageToken for listing future changes. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// [teamDriveId] - The ID of the Team Drive for which the starting pageToken |
+ /// for listing future changes from that Team Drive will be returned. |
+ /// |
+ /// Completes with a [StartPageToken]. |
+ /// |
+ /// 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<StartPageToken> getStartPageToken( |
+ {core.bool supportsTeamDrives, core.String teamDriveId}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -335,65 +334,72 @@ class ChangesResourceApi { |
_url = 'changes/startPageToken'; |
- 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 StartPageToken.fromJson(data)); |
} |
- /** |
- * Lists the changes for a user or Team Drive. |
- * |
- * Request parameters: |
- * |
- * [includeCorpusRemovals] - Whether changes should include the file resource |
- * if the file is still accessible by the user at the time of the request, |
- * even when a file was removed from the list of changes and there will be no |
- * further change entries for this file. |
- * |
- * [includeDeleted] - Whether to include changes indicating that items have |
- * been removed from the list of changes, for example by deletion or loss of |
- * access. |
- * |
- * [includeSubscribed] - Whether to include public files the user has opened |
- * and shared files. When set to false, the list only includes owned files |
- * plus any shared or public files the user has explicitly added to a folder |
- * they own. |
- * |
- * [includeTeamDriveItems] - Whether Team Drive files or changes should be |
- * included in results. |
- * |
- * [maxResults] - Maximum number of changes to return. |
- * |
- * [pageToken] - The token for continuing a previous list request on the next |
- * page. This should be set to the value of 'nextPageToken' from the previous |
- * response or to the response from the getStartPageToken method. |
- * |
- * [spaces] - A comma-separated list of spaces to query. Supported values are |
- * 'drive', 'appDataFolder' and 'photos'. |
- * |
- * [startChangeId] - Change ID to start listing changes from. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * [teamDriveId] - The Team Drive from which changes will be returned. If |
- * specified the change IDs will be reflective of the Team Drive; use the |
- * combined Team Drive ID and change ID as an identifier. |
- * |
- * Completes with a [ChangeList]. |
- * |
- * 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<ChangeList> list({core.bool includeCorpusRemovals, core.bool includeDeleted, core.bool includeSubscribed, core.bool includeTeamDriveItems, core.int maxResults, core.String pageToken, core.String spaces, core.String startChangeId, core.bool supportsTeamDrives, core.String teamDriveId}) { |
+ /// Lists the changes for a user or Team Drive. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [includeCorpusRemovals] - Whether changes should include the file |
+ /// resource if the file is still accessible by the user at the time of the |
+ /// request, even when a file was removed from the list of changes and there |
+ /// will be no further change entries for this file. |
+ /// |
+ /// [includeDeleted] - Whether to include changes indicating that items have |
+ /// been removed from the list of changes, for example by deletion or loss of |
+ /// access. |
+ /// |
+ /// [includeSubscribed] - Whether to include public files the user has opened |
+ /// and shared files. When set to false, the list only includes owned files |
+ /// plus any shared or public files the user has explicitly added to a folder |
+ /// they own. |
+ /// |
+ /// [includeTeamDriveItems] - Whether Team Drive files or changes should be |
+ /// included in results. |
+ /// |
+ /// [maxResults] - Maximum number of changes to return. |
+ /// |
+ /// [pageToken] - The token for continuing a previous list request on the |
+ /// next page. This should be set to the value of 'nextPageToken' from the |
+ /// previous response or to the response from the getStartPageToken method. |
+ /// |
+ /// [spaces] - A comma-separated list of spaces to query. Supported values |
+ /// are 'drive', 'appDataFolder' and 'photos'. |
+ /// |
+ /// [startChangeId] - Change ID to start listing changes from. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// [teamDriveId] - The Team Drive from which changes will be returned. If |
+ /// specified the change IDs will be reflective of the Team Drive; use the |
+ /// combined Team Drive ID and change ID as an identifier. |
+ /// |
+ /// Completes with a [ChangeList]. |
+ /// |
+ /// 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<ChangeList> list( |
+ {core.bool includeCorpusRemovals, |
+ core.bool includeDeleted, |
+ core.bool includeSubscribed, |
+ core.bool includeTeamDriveItems, |
+ core.int maxResults, |
+ core.String pageToken, |
+ core.String spaces, |
+ core.String startChangeId, |
+ core.bool supportsTeamDrives, |
+ core.String teamDriveId}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -434,67 +440,74 @@ class ChangesResourceApi { |
_url = 'changes'; |
- 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 ChangeList.fromJson(data)); |
} |
- /** |
- * Subscribe to changes for a user. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [includeCorpusRemovals] - Whether changes should include the file resource |
- * if the file is still accessible by the user at the time of the request, |
- * even when a file was removed from the list of changes and there will be no |
- * further change entries for this file. |
- * |
- * [includeDeleted] - Whether to include changes indicating that items have |
- * been removed from the list of changes, for example by deletion or loss of |
- * access. |
- * |
- * [includeSubscribed] - Whether to include public files the user has opened |
- * and shared files. When set to false, the list only includes owned files |
- * plus any shared or public files the user has explicitly added to a folder |
- * they own. |
- * |
- * [includeTeamDriveItems] - Whether Team Drive files or changes should be |
- * included in results. |
- * |
- * [maxResults] - Maximum number of changes to return. |
- * |
- * [pageToken] - The token for continuing a previous list request on the next |
- * page. This should be set to the value of 'nextPageToken' from the previous |
- * response or to the response from the getStartPageToken method. |
- * |
- * [spaces] - A comma-separated list of spaces to query. Supported values are |
- * 'drive', 'appDataFolder' and 'photos'. |
- * |
- * [startChangeId] - Change ID to start listing changes from. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * [teamDriveId] - The Team Drive from which changes will be returned. If |
- * specified the change IDs will be reflective of the Team Drive; use the |
- * combined Team Drive ID and change ID as an identifier. |
- * |
- * Completes with a [Channel]. |
- * |
- * 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<Channel> watch(Channel request, {core.bool includeCorpusRemovals, core.bool includeDeleted, core.bool includeSubscribed, core.bool includeTeamDriveItems, core.int maxResults, core.String pageToken, core.String spaces, core.String startChangeId, core.bool supportsTeamDrives, core.String teamDriveId}) { |
+ /// Subscribe to changes for a user. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [includeCorpusRemovals] - Whether changes should include the file |
+ /// resource if the file is still accessible by the user at the time of the |
+ /// request, even when a file was removed from the list of changes and there |
+ /// will be no further change entries for this file. |
+ /// |
+ /// [includeDeleted] - Whether to include changes indicating that items have |
+ /// been removed from the list of changes, for example by deletion or loss of |
+ /// access. |
+ /// |
+ /// [includeSubscribed] - Whether to include public files the user has opened |
+ /// and shared files. When set to false, the list only includes owned files |
+ /// plus any shared or public files the user has explicitly added to a folder |
+ /// they own. |
+ /// |
+ /// [includeTeamDriveItems] - Whether Team Drive files or changes should be |
+ /// included in results. |
+ /// |
+ /// [maxResults] - Maximum number of changes to return. |
+ /// |
+ /// [pageToken] - The token for continuing a previous list request on the |
+ /// next page. This should be set to the value of 'nextPageToken' from the |
+ /// previous response or to the response from the getStartPageToken method. |
+ /// |
+ /// [spaces] - A comma-separated list of spaces to query. Supported values |
+ /// are 'drive', 'appDataFolder' and 'photos'. |
+ /// |
+ /// [startChangeId] - Change ID to start listing changes from. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// [teamDriveId] - The Team Drive from which changes will be returned. If |
+ /// specified the change IDs will be reflective of the Team Drive; use the |
+ /// combined Team Drive ID and change ID as an identifier. |
+ /// |
+ /// Completes with a [Channel]. |
+ /// |
+ /// 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<Channel> watch(Channel request, |
+ {core.bool includeCorpusRemovals, |
+ core.bool includeDeleted, |
+ core.bool includeSubscribed, |
+ core.bool includeTeamDriveItems, |
+ core.int maxResults, |
+ core.String pageToken, |
+ core.String spaces, |
+ core.String startChangeId, |
+ core.bool supportsTeamDrives, |
+ core.String teamDriveId}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -538,38 +551,32 @@ class ChangesResourceApi { |
_url = 'changes/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 Channel.fromJson(data)); |
} |
- |
} |
- |
class ChannelsResourceApi { |
final commons.ApiRequester _requester; |
- ChannelsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Stop watching resources through this channel |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * 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. |
- */ |
+ ChannelsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Stop watching resources through this channel |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// 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(Channel request) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -586,40 +593,34 @@ class ChannelsResourceApi { |
_url = 'channels/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); |
} |
- |
} |
- |
class ChildrenResourceApi { |
final commons.ApiRequester _requester; |
- ChildrenResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Removes a child from a folder. |
- * |
- * Request parameters: |
- * |
- * [folderId] - The ID of the folder. |
- * |
- * [childId] - The ID of the child. |
- * |
- * 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. |
- */ |
+ ChildrenResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Removes a child from a folder. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [folderId] - The ID of the folder. |
+ /// |
+ /// [childId] - The ID of the child. |
+ /// |
+ /// 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 folderId, core.String childId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -637,35 +638,35 @@ class ChildrenResourceApi { |
_downloadOptions = null; |
- _url = 'files/' + commons.Escaper.ecapeVariable('$folderId') + '/children/' + commons.Escaper.ecapeVariable('$childId'); |
- |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$folderId') + |
+ '/children/' + |
+ commons.Escaper.ecapeVariable('$childId'); |
+ |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets a specific child reference. |
- * |
- * Request parameters: |
- * |
- * [folderId] - The ID of the folder. |
- * |
- * [childId] - The ID of the child. |
- * |
- * Completes with a [ChildReference]. |
- * |
- * 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 specific child reference. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [folderId] - The ID of the folder. |
+ /// |
+ /// [childId] - The ID of the child. |
+ /// |
+ /// Completes with a [ChildReference]. |
+ /// |
+ /// 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<ChildReference> get(core.String folderId, core.String childId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -681,39 +682,41 @@ class ChildrenResourceApi { |
throw new core.ArgumentError("Parameter childId is required."); |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$folderId') + '/children/' + commons.Escaper.ecapeVariable('$childId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$folderId') + |
+ '/children/' + |
+ commons.Escaper.ecapeVariable('$childId'); |
- 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 ChildReference.fromJson(data)); |
} |
- /** |
- * Inserts a file into a folder. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [folderId] - The ID of the folder. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * Completes with a [ChildReference]. |
- * |
- * 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<ChildReference> insert(ChildReference request, core.String folderId, {core.bool supportsTeamDrives}) { |
+ /// Inserts a file into a folder. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [folderId] - The ID of the folder. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// Completes with a [ChildReference]. |
+ /// |
+ /// 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<ChildReference> insert( |
+ ChildReference request, core.String folderId, |
+ {core.bool supportsTeamDrives}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -733,47 +736,48 @@ class ChildrenResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$folderId') + '/children'; |
- 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 ChildReference.fromJson(data)); |
} |
- /** |
- * Lists a folder's children. |
- * |
- * Request parameters: |
- * |
- * [folderId] - The ID of the folder. |
- * |
- * [maxResults] - Maximum number of children to return. |
- * |
- * [orderBy] - A comma-separated list of sort keys. Valid keys are |
- * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', |
- * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', |
- * and 'title'. Each key sorts ascending by default, but may be reversed with |
- * the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate |
- * desc,title. Please note that there is a current limitation for users with |
- * approximately one million files in which the requested sort order is |
- * ignored. |
- * |
- * [pageToken] - Page token for children. |
- * |
- * [q] - Query string for searching children. |
- * |
- * Completes with a [ChildList]. |
- * |
- * 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<ChildList> list(core.String folderId, {core.int maxResults, core.String orderBy, core.String pageToken, core.String q}) { |
+ /// Lists a folder's children. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [folderId] - The ID of the folder. |
+ /// |
+ /// [maxResults] - Maximum number of children to return. |
+ /// |
+ /// [orderBy] - A comma-separated list of sort keys. Valid keys are |
+ /// 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', |
+ /// 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', |
+ /// 'starred', and 'title'. Each key sorts ascending by default, but may be |
+ /// reversed with the 'desc' modifier. Example usage: |
+ /// ?orderBy=folder,modifiedDate desc,title. Please note that there is a |
+ /// current limitation for users with approximately one million files in |
+ /// which the requested sort order is ignored. |
+ /// |
+ /// [pageToken] - Page token for children. |
+ /// |
+ /// [q] - Query string for searching children. |
+ /// |
+ /// Completes with a [ChildList]. |
+ /// |
+ /// 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<ChildList> list(core.String folderId, |
+ {core.int maxResults, |
+ core.String orderBy, |
+ core.String pageToken, |
+ core.String q}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -799,40 +803,34 @@ class ChildrenResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$folderId') + '/children'; |
- 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 ChildList.fromJson(data)); |
} |
- |
} |
- |
class CommentsResourceApi { |
final commons.ApiRequester _requester; |
- CommentsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Deletes a comment. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [commentId] - The ID of the comment. |
- * |
- * 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. |
- */ |
+ CommentsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Deletes a comment. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [commentId] - The ID of the comment. |
+ /// |
+ /// 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 fileId, core.String commentId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -850,39 +848,40 @@ class CommentsResourceApi { |
_downloadOptions = null; |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/comments/' + commons.Escaper.ecapeVariable('$commentId'); |
- |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/comments/' + |
+ commons.Escaper.ecapeVariable('$commentId'); |
+ |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets a comment by ID. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [commentId] - The ID of the comment. |
- * |
- * [includeDeleted] - If set, this will succeed when retrieving a deleted |
- * comment, and will include any deleted replies. |
- * |
- * Completes with a [Comment]. |
- * |
- * 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<Comment> get(core.String fileId, core.String commentId, {core.bool includeDeleted}) { |
+ /// Gets a comment by ID. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [commentId] - The ID of the comment. |
+ /// |
+ /// [includeDeleted] - If set, this will succeed when retrieving a deleted |
+ /// comment, and will include any deleted replies. |
+ /// |
+ /// Completes with a [Comment]. |
+ /// |
+ /// 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<Comment> get(core.String fileId, core.String commentId, |
+ {core.bool includeDeleted}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -900,35 +899,35 @@ class CommentsResourceApi { |
_queryParams["includeDeleted"] = ["${includeDeleted}"]; |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/comments/' + commons.Escaper.ecapeVariable('$commentId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/comments/' + |
+ commons.Escaper.ecapeVariable('$commentId'); |
- 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 Comment.fromJson(data)); |
} |
- /** |
- * Creates a new comment on the given file. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * Completes with a [Comment]. |
- * |
- * 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. |
- */ |
+ /// Creates a new comment on the given file. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// Completes with a [Comment]. |
+ /// |
+ /// 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<Comment> insert(Comment request, core.String fileId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -946,46 +945,47 @@ class CommentsResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/comments'; |
- 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 Comment.fromJson(data)); |
} |
- /** |
- * Lists a file's comments. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [includeDeleted] - If set, all comments and replies, including deleted |
- * comments and replies (with content stripped) will be returned. |
- * |
- * [maxResults] - The maximum number of discussions to include in the |
- * response, used for paging. |
- * Value must be between "0" and "100". |
- * |
- * [pageToken] - The continuation token, used to page through large result |
- * sets. To get the next page of results, set this parameter to the value of |
- * "nextPageToken" from the previous response. |
- * |
- * [updatedMin] - Only discussions that were updated after this timestamp will |
- * be returned. Formatted as an RFC 3339 timestamp. |
- * |
- * Completes with a [CommentList]. |
- * |
- * 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<CommentList> list(core.String fileId, {core.bool includeDeleted, core.int maxResults, core.String pageToken, core.String updatedMin}) { |
+ /// Lists a file's comments. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [includeDeleted] - If set, all comments and replies, including deleted |
+ /// comments and replies (with content stripped) will be returned. |
+ /// |
+ /// [maxResults] - The maximum number of discussions to include in the |
+ /// response, used for paging. |
+ /// Value must be between "0" and "100". |
+ /// |
+ /// [pageToken] - The continuation token, used to page through large result |
+ /// sets. To get the next page of results, set this parameter to the value of |
+ /// "nextPageToken" from the previous response. |
+ /// |
+ /// [updatedMin] - Only discussions that were updated after this timestamp |
+ /// will be returned. Formatted as an RFC 3339 timestamp. |
+ /// |
+ /// Completes with a [CommentList]. |
+ /// |
+ /// 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<CommentList> list(core.String fileId, |
+ {core.bool includeDeleted, |
+ core.int maxResults, |
+ core.String pageToken, |
+ core.String updatedMin}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1011,36 +1011,34 @@ class CommentsResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/comments'; |
- 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 CommentList.fromJson(data)); |
} |
- /** |
- * Updates an existing comment. This method supports patch semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [commentId] - The ID of the comment. |
- * |
- * Completes with a [Comment]. |
- * |
- * 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<Comment> patch(Comment request, core.String fileId, core.String commentId) { |
+ /// Updates an existing comment. This method supports patch semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [commentId] - The ID of the comment. |
+ /// |
+ /// Completes with a [Comment]. |
+ /// |
+ /// 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<Comment> patch( |
+ Comment request, core.String fileId, core.String commentId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1058,38 +1056,39 @@ class CommentsResourceApi { |
throw new core.ArgumentError("Parameter commentId is required."); |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/comments/' + commons.Escaper.ecapeVariable('$commentId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/comments/' + |
+ commons.Escaper.ecapeVariable('$commentId'); |
- 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 Comment.fromJson(data)); |
} |
- /** |
- * Updates an existing comment. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [commentId] - The ID of the comment. |
- * |
- * Completes with a [Comment]. |
- * |
- * 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<Comment> update(Comment request, core.String fileId, core.String commentId) { |
+ /// Updates an existing comment. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [commentId] - The ID of the comment. |
+ /// |
+ /// Completes with a [Comment]. |
+ /// |
+ /// 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<Comment> update( |
+ Comment request, core.String fileId, core.String commentId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1107,70 +1106,75 @@ class CommentsResourceApi { |
throw new core.ArgumentError("Parameter commentId is required."); |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/comments/' + commons.Escaper.ecapeVariable('$commentId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/comments/' + |
+ commons.Escaper.ecapeVariable('$commentId'); |
- 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 Comment.fromJson(data)); |
} |
- |
} |
- |
class FilesResourceApi { |
final commons.ApiRequester _requester; |
- FilesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Creates a copy of the specified file. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file to copy. |
- * |
- * [convert] - Whether to convert this file to the corresponding Google Docs |
- * format. |
- * |
- * [ocr] - Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. |
- * |
- * [ocrLanguage] - If ocr is true, hints at the language to use. Valid values |
- * are BCP 47 codes. |
- * |
- * [pinned] - Whether to pin the head revision of the new copy. A file can |
- * have a maximum of 200 pinned revisions. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * [timedTextLanguage] - The language of the timed text. |
- * |
- * [timedTextTrackName] - The timed text track name. |
- * |
- * [visibility] - The visibility of the new file. This parameter is only |
- * relevant when the source is not a native Google Doc and convert=false. |
- * Possible string values are: |
- * - "DEFAULT" : The visibility of the new file is determined by the user's |
- * default visibility/sharing policies. |
- * - "PRIVATE" : The new file will be visible to only the owner. |
- * |
- * Completes with a [File]. |
- * |
- * 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<File> copy(File request, core.String fileId, {core.bool convert, core.bool ocr, core.String ocrLanguage, core.bool pinned, core.bool supportsTeamDrives, core.String timedTextLanguage, core.String timedTextTrackName, core.String visibility}) { |
+ FilesResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Creates a copy of the specified file. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file to copy. |
+ /// |
+ /// [convert] - Whether to convert this file to the corresponding Google Docs |
+ /// format. |
+ /// |
+ /// [ocr] - Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. |
+ /// |
+ /// [ocrLanguage] - If ocr is true, hints at the language to use. Valid |
+ /// values are BCP 47 codes. |
+ /// |
+ /// [pinned] - Whether to pin the head revision of the new copy. A file can |
+ /// have a maximum of 200 pinned revisions. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// [timedTextLanguage] - The language of the timed text. |
+ /// |
+ /// [timedTextTrackName] - The timed text track name. |
+ /// |
+ /// [visibility] - The visibility of the new file. This parameter is only |
+ /// relevant when the source is not a native Google Doc and convert=false. |
+ /// Possible string values are: |
+ /// - "DEFAULT" : The visibility of the new file is determined by the user's |
+ /// default visibility/sharing policies. |
+ /// - "PRIVATE" : The new file will be visible to only the owner. |
+ /// |
+ /// Completes with a [File]. |
+ /// |
+ /// 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<File> copy(File request, core.String fileId, |
+ {core.bool convert, |
+ core.bool ocr, |
+ core.String ocrLanguage, |
+ core.bool pinned, |
+ core.bool supportsTeamDrives, |
+ core.String timedTextLanguage, |
+ core.String timedTextTrackName, |
+ core.String visibility}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1211,34 +1215,31 @@ class FilesResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/copy'; |
- 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 File.fromJson(data)); |
} |
- /** |
- * Permanently deletes a file by ID. Skips the trash. The currently |
- * authenticated user must own the file or be an organizer on the parent for |
- * Team Drive files. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file to delete. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * 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. |
- */ |
+ /// Permanently deletes a file by ID. Skips the trash. The currently |
+ /// authenticated user must own the file or be an organizer on the parent for |
+ /// Team Drive files. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file to delete. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// 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 fileId, {core.bool supportsTeamDrives}) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -1258,27 +1259,24 @@ class FilesResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId'); |
- 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); |
} |
- /** |
- * Permanently deletes all of the user's trashed files. |
- * |
- * Request parameters: |
- * |
- * 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. |
- */ |
+ /// Permanently deletes all of the user's trashed files. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// 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 emptyTrash() { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -1287,42 +1285,40 @@ class FilesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- |
_downloadOptions = null; |
_url = 'files/trash'; |
- 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); |
} |
- /** |
- * Exports a Google Doc to the requested MIME type and returns the exported |
- * content. Please note that the exported content is limited to 10MB. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [mimeType] - The MIME type of the format requested for this export. |
- * |
- * [downloadOptions] - Options for downloading. A download can be either a |
- * Metadata (default) or Media download. Partial Media downloads are possible |
- * as well. |
- * |
- * 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 export(core.String fileId, core.String mimeType, {commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { |
+ /// Exports a Google Doc to the requested MIME type and returns the exported |
+ /// content. Please note that the exported content is limited to 10MB. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [mimeType] - The MIME type of the format requested for this export. |
+ /// |
+ /// [downloadOptions] - Options for downloading. A download can be either a |
+ /// Metadata (default) or Media download. Partial Media downloads are |
+ /// possible as well. |
+ /// |
+ /// 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 export(core.String fileId, core.String mimeType, |
+ {commons.DownloadOptions downloadOptions: |
+ commons.DownloadOptions.Metadata}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1342,13 +1338,12 @@ class FilesResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/export'; |
- 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); |
if (_downloadOptions == null || |
_downloadOptions == commons.DownloadOptions.Metadata) { |
return _response.then((data) => null); |
@@ -1357,26 +1352,25 @@ class FilesResourceApi { |
} |
} |
- /** |
- * Generates a set of file IDs which can be provided in insert requests. |
- * |
- * Request parameters: |
- * |
- * [maxResults] - Maximum number of IDs to return. |
- * Value must be between "1" and "1000". |
- * |
- * [space] - The space in which the IDs can be used to create new files. |
- * Supported values are 'drive' and 'appDataFolder'. |
- * |
- * Completes with a [GeneratedIds]. |
- * |
- * 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<GeneratedIds> generateIds({core.int maxResults, core.String space}) { |
+ /// Generates a set of file IDs which can be provided in insert requests. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [maxResults] - Maximum number of IDs to return. |
+ /// Value must be between "1" and "1000". |
+ /// |
+ /// [space] - The space in which the IDs can be used to create new files. |
+ /// Supported values are 'drive' and 'appDataFolder'. |
+ /// |
+ /// Completes with a [GeneratedIds]. |
+ /// |
+ /// 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<GeneratedIds> generateIds( |
+ {core.int maxResults, core.String space}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1393,58 +1387,62 @@ class FilesResourceApi { |
_url = 'files/generateIds'; |
- 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 GeneratedIds.fromJson(data)); |
} |
- /** |
- * Gets a file's metadata by ID. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID for the file in question. |
- * |
- * [acknowledgeAbuse] - Whether the user is acknowledging the risk of |
- * downloading known malware or other abusive files. |
- * |
- * [projection] - This parameter is deprecated and has no function. |
- * Possible string values are: |
- * - "BASIC" : Deprecated |
- * - "FULL" : Deprecated |
- * |
- * [revisionId] - Specifies the Revision ID that should be downloaded. Ignored |
- * unless alt=media is specified. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * [updateViewedDate] - Deprecated: Use files.update with |
- * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request |
- * body. |
- * |
- * [downloadOptions] - Options for downloading. A download can be either a |
- * Metadata (default) or Media download. Partial Media downloads are possible |
- * as well. |
- * |
- * Completes with a |
- * |
- * - [File] for Metadata downloads (see [downloadOptions]). |
- * |
- * - [commons.Media] for Media downloads (see [downloadOptions]). |
- * |
- * 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 get(core.String fileId, {core.bool acknowledgeAbuse, core.String projection, core.String revisionId, core.bool supportsTeamDrives, core.bool updateViewedDate, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { |
+ /// Gets a file's metadata by ID. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID for the file in question. |
+ /// |
+ /// [acknowledgeAbuse] - Whether the user is acknowledging the risk of |
+ /// downloading known malware or other abusive files. |
+ /// |
+ /// [projection] - This parameter is deprecated and has no function. |
+ /// Possible string values are: |
+ /// - "BASIC" : Deprecated |
+ /// - "FULL" : Deprecated |
+ /// |
+ /// [revisionId] - Specifies the Revision ID that should be downloaded. |
+ /// Ignored unless alt=media is specified. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// [updateViewedDate] - Deprecated: Use files.update with |
+ /// modifiedDateBehavior=noChange, updateViewedDate=true and an empty request |
+ /// body. |
+ /// |
+ /// [downloadOptions] - Options for downloading. A download can be either a |
+ /// Metadata (default) or Media download. Partial Media downloads are |
+ /// possible as well. |
+ /// |
+ /// Completes with a |
+ /// |
+ /// - [File] for Metadata downloads (see [downloadOptions]). |
+ /// |
+ /// - [commons.Media] for Media downloads (see [downloadOptions]). |
+ /// |
+ /// 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 get(core.String fileId, |
+ {core.bool acknowledgeAbuse, |
+ core.String projection, |
+ core.String revisionId, |
+ core.bool supportsTeamDrives, |
+ core.bool updateViewedDate, |
+ commons.DownloadOptions downloadOptions: |
+ commons.DownloadOptions.Metadata}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1475,13 +1473,12 @@ class FilesResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId'); |
- 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); |
if (_downloadOptions == null || |
_downloadOptions == commons.DownloadOptions.Metadata) { |
return _response.then((data) => new File.fromJson(data)); |
@@ -1490,54 +1487,65 @@ class FilesResourceApi { |
} |
} |
- /** |
- * Insert a new file. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [convert] - Whether to convert this file to the corresponding Google Docs |
- * format. |
- * |
- * [ocr] - Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. |
- * |
- * [ocrLanguage] - If ocr is true, hints at the language to use. Valid values |
- * are BCP 47 codes. |
- * |
- * [pinned] - Whether to pin the head revision of the uploaded file. A file |
- * can have a maximum of 200 pinned revisions. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * [timedTextLanguage] - The language of the timed text. |
- * |
- * [timedTextTrackName] - The timed text track name. |
- * |
- * [useContentAsIndexableText] - Whether to use the content as indexable text. |
- * |
- * [visibility] - The visibility of the new file. This parameter is only |
- * relevant when convert=false. |
- * Possible string values are: |
- * - "DEFAULT" : The visibility of the new file is determined by the user's |
- * default visibility/sharing policies. |
- * - "PRIVATE" : The new file will be visible to only the owner. |
- * |
- * [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 [File]. |
- * |
- * 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<File> insert(File request, {core.bool convert, core.bool ocr, core.String ocrLanguage, core.bool pinned, core.bool supportsTeamDrives, core.String timedTextLanguage, core.String timedTextTrackName, core.bool useContentAsIndexableText, core.String visibility, commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { |
+ /// Insert a new file. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [convert] - Whether to convert this file to the corresponding Google Docs |
+ /// format. |
+ /// |
+ /// [ocr] - Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. |
+ /// |
+ /// [ocrLanguage] - If ocr is true, hints at the language to use. Valid |
+ /// values are BCP 47 codes. |
+ /// |
+ /// [pinned] - Whether to pin the head revision of the uploaded file. A file |
+ /// can have a maximum of 200 pinned revisions. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// [timedTextLanguage] - The language of the timed text. |
+ /// |
+ /// [timedTextTrackName] - The timed text track name. |
+ /// |
+ /// [useContentAsIndexableText] - Whether to use the content as indexable |
+ /// text. |
+ /// |
+ /// [visibility] - The visibility of the new file. This parameter is only |
+ /// relevant when convert=false. |
+ /// Possible string values are: |
+ /// - "DEFAULT" : The visibility of the new file is determined by the user's |
+ /// default visibility/sharing policies. |
+ /// - "PRIVATE" : The new file will be visible to only the owner. |
+ /// |
+ /// [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 [File]. |
+ /// |
+ /// 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<File> insert(File request, |
+ {core.bool convert, |
+ core.bool ocr, |
+ core.String ocrLanguage, |
+ core.bool pinned, |
+ core.bool supportsTeamDrives, |
+ core.String timedTextLanguage, |
+ core.String timedTextTrackName, |
+ core.bool useContentAsIndexableText, |
+ core.String visibility, |
+ commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
+ commons.Media uploadMedia}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1570,14 +1578,16 @@ class FilesResourceApi { |
_queryParams["timedTextTrackName"] = [timedTextTrackName]; |
} |
if (useContentAsIndexableText != null) { |
- _queryParams["useContentAsIndexableText"] = ["${useContentAsIndexableText}"]; |
+ _queryParams["useContentAsIndexableText"] = [ |
+ "${useContentAsIndexableText}" |
+ ]; |
} |
if (visibility != null) { |
_queryParams["visibility"] = [visibility]; |
} |
- _uploadMedia = uploadMedia; |
- _uploadOptions = uploadOptions; |
+ _uploadMedia = uploadMedia; |
+ _uploadOptions = uploadOptions; |
if (_uploadMedia == null) { |
_url = 'files'; |
@@ -1587,76 +1597,83 @@ class FilesResourceApi { |
_url = '/upload/drive/v2/files'; |
} |
- |
- 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 File.fromJson(data)); |
} |
- /** |
- * Lists the user's files. |
- * |
- * Request parameters: |
- * |
- * [corpora] - Comma-separated list of bodies of items (files/documents) to |
- * which the query applies. Supported bodies are 'default', 'domain', |
- * 'teamDrive' and 'allTeamDrives'. 'allTeamDrives' must be combined with |
- * 'default'; all other values must be used in isolation. Prefer 'default' or |
- * 'teamDrive' to 'allTeamDrives' for efficiency. |
- * |
- * [corpus] - The body of items (files/documents) to which the query applies. |
- * Deprecated: use 'corpora' instead. |
- * Possible string values are: |
- * - "DEFAULT" : The items that the user has accessed. |
- * - "DOMAIN" : Items shared to the user's domain. |
- * |
- * [includeTeamDriveItems] - Whether Team Drive items should be included in |
- * results. |
- * |
- * [maxResults] - The maximum number of files to return per page. Partial or |
- * empty result pages are possible even before the end of the files list has |
- * been reached. |
- * |
- * [orderBy] - A comma-separated list of sort keys. Valid keys are |
- * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', |
- * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', |
- * and 'title'. Each key sorts ascending by default, but may be reversed with |
- * the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate |
- * desc,title. Please note that there is a current limitation for users with |
- * approximately one million files in which the requested sort order is |
- * ignored. |
- * |
- * [pageToken] - Page token for files. |
- * |
- * [projection] - This parameter is deprecated and has no function. |
- * Possible string values are: |
- * - "BASIC" : Deprecated |
- * - "FULL" : Deprecated |
- * |
- * [q] - Query string for searching files. |
- * |
- * [spaces] - A comma-separated list of spaces to query. Supported values are |
- * 'drive', 'appDataFolder' and 'photos'. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * [teamDriveId] - ID of Team Drive to search. |
- * |
- * Completes with a [FileList]. |
- * |
- * 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<FileList> list({core.String corpora, core.String corpus, core.bool includeTeamDriveItems, core.int maxResults, core.String orderBy, core.String pageToken, core.String projection, core.String q, core.String spaces, core.bool supportsTeamDrives, core.String teamDriveId}) { |
+ /// Lists the user's files. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [corpora] - Comma-separated list of bodies of items (files/documents) to |
+ /// which the query applies. Supported bodies are 'default', 'domain', |
+ /// 'teamDrive' and 'allTeamDrives'. 'allTeamDrives' must be combined with |
+ /// 'default'; all other values must be used in isolation. Prefer 'default' |
+ /// or 'teamDrive' to 'allTeamDrives' for efficiency. |
+ /// |
+ /// [corpus] - The body of items (files/documents) to which the query |
+ /// applies. Deprecated: use 'corpora' instead. |
+ /// Possible string values are: |
+ /// - "DEFAULT" : The items that the user has accessed. |
+ /// - "DOMAIN" : Items shared to the user's domain. |
+ /// |
+ /// [includeTeamDriveItems] - Whether Team Drive items should be included in |
+ /// results. |
+ /// |
+ /// [maxResults] - The maximum number of files to return per page. Partial or |
+ /// empty result pages are possible even before the end of the files list has |
+ /// been reached. |
+ /// |
+ /// [orderBy] - A comma-separated list of sort keys. Valid keys are |
+ /// 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', |
+ /// 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', |
+ /// 'starred', 'title', and 'title_natural'. Each key sorts ascending by |
+ /// default, but may be reversed with the 'desc' modifier. Example usage: |
+ /// ?orderBy=folder,modifiedDate desc,title. Please note that there is a |
+ /// current limitation for users with approximately one million files in |
+ /// which the requested sort order is ignored. |
+ /// |
+ /// [pageToken] - Page token for files. |
+ /// |
+ /// [projection] - This parameter is deprecated and has no function. |
+ /// Possible string values are: |
+ /// - "BASIC" : Deprecated |
+ /// - "FULL" : Deprecated |
+ /// |
+ /// [q] - Query string for searching files. |
+ /// |
+ /// [spaces] - A comma-separated list of spaces to query. Supported values |
+ /// are 'drive', 'appDataFolder' and 'photos'. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// [teamDriveId] - ID of Team Drive to search. |
+ /// |
+ /// Completes with a [FileList]. |
+ /// |
+ /// 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<FileList> list( |
+ {core.String corpora, |
+ core.String corpus, |
+ core.bool includeTeamDriveItems, |
+ core.int maxResults, |
+ core.String orderBy, |
+ core.String pageToken, |
+ core.String projection, |
+ core.String q, |
+ core.String spaces, |
+ core.bool supportsTeamDrives, |
+ core.String teamDriveId}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1700,85 +1717,98 @@ class FilesResourceApi { |
_url = 'files'; |
- 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 FileList.fromJson(data)); |
} |
- /** |
- * Updates file metadata and/or content. This method supports patch semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file to update. |
- * |
- * [addParents] - Comma-separated list of parent IDs to add. |
- * |
- * [convert] - This parameter is deprecated and has no function. |
- * |
- * [modifiedDateBehavior] - Determines the behavior in which modifiedDate is |
- * updated. This overrides setModifiedDate. |
- * Possible string values are: |
- * - "fromBody" : Set modifiedDate to the value provided in the body of the |
- * request. No change if no value was provided. |
- * - "fromBodyIfNeeded" : Set modifiedDate to the value provided in the body |
- * of the request depending on other contents of the update. |
- * - "fromBodyOrNow" : Set modifiedDate to the value provided in the body of |
- * the request, or to the current time if no value was provided. |
- * - "noChange" : Maintain the previous value of modifiedDate. |
- * - "now" : Set modifiedDate to the current time. |
- * - "nowIfNeeded" : Set modifiedDate to the current time depending on |
- * contents of the update. |
- * |
- * [newRevision] - Whether a blob upload should create a new revision. If |
- * false, the blob data in the current head revision is replaced. If true or |
- * not set, a new blob is created as head revision, and previous unpinned |
- * revisions are preserved for a short period of time. Pinned revisions are |
- * stored indefinitely, using additional storage quota, up to a maximum of 200 |
- * revisions. For details on how revisions are retained, see the Drive Help |
- * Center. |
- * |
- * [ocr] - Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. |
- * |
- * [ocrLanguage] - If ocr is true, hints at the language to use. Valid values |
- * are BCP 47 codes. |
- * |
- * [pinned] - Whether to pin the new revision. A file can have a maximum of |
- * 200 pinned revisions. |
- * |
- * [removeParents] - Comma-separated list of parent IDs to remove. |
- * |
- * [setModifiedDate] - Whether to set the modified date with the supplied |
- * modified date. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * [timedTextLanguage] - The language of the timed text. |
- * |
- * [timedTextTrackName] - The timed text track name. |
- * |
- * [updateViewedDate] - Whether to update the view date after successfully |
- * updating the file. |
- * |
- * [useContentAsIndexableText] - Whether to use the content as indexable text. |
- * |
- * Completes with a [File]. |
- * |
- * 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<File> patch(File request, core.String fileId, {core.String addParents, core.bool convert, core.String modifiedDateBehavior, core.bool newRevision, core.bool ocr, core.String ocrLanguage, core.bool pinned, core.String removeParents, core.bool setModifiedDate, core.bool supportsTeamDrives, core.String timedTextLanguage, core.String timedTextTrackName, core.bool updateViewedDate, core.bool useContentAsIndexableText}) { |
+ /// Updates file metadata and/or content. This method supports patch |
+ /// semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file to update. |
+ /// |
+ /// [addParents] - Comma-separated list of parent IDs to add. |
+ /// |
+ /// [convert] - This parameter is deprecated and has no function. |
+ /// |
+ /// [modifiedDateBehavior] - Determines the behavior in which modifiedDate is |
+ /// updated. This overrides setModifiedDate. |
+ /// Possible string values are: |
+ /// - "fromBody" : Set modifiedDate to the value provided in the body of the |
+ /// request. No change if no value was provided. |
+ /// - "fromBodyIfNeeded" : Set modifiedDate to the value provided in the body |
+ /// of the request depending on other contents of the update. |
+ /// - "fromBodyOrNow" : Set modifiedDate to the value provided in the body of |
+ /// the request, or to the current time if no value was provided. |
+ /// - "noChange" : Maintain the previous value of modifiedDate. |
+ /// - "now" : Set modifiedDate to the current time. |
+ /// - "nowIfNeeded" : Set modifiedDate to the current time depending on |
+ /// contents of the update. |
+ /// |
+ /// [newRevision] - Whether a blob upload should create a new revision. If |
+ /// false, the blob data in the current head revision is replaced. If true or |
+ /// not set, a new blob is created as head revision, and previous unpinned |
+ /// revisions are preserved for a short period of time. Pinned revisions are |
+ /// stored indefinitely, using additional storage quota, up to a maximum of |
+ /// 200 revisions. For details on how revisions are retained, see the Drive |
+ /// Help Center. |
+ /// |
+ /// [ocr] - Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. |
+ /// |
+ /// [ocrLanguage] - If ocr is true, hints at the language to use. Valid |
+ /// values are BCP 47 codes. |
+ /// |
+ /// [pinned] - Whether to pin the new revision. A file can have a maximum of |
+ /// 200 pinned revisions. |
+ /// |
+ /// [removeParents] - Comma-separated list of parent IDs to remove. |
+ /// |
+ /// [setModifiedDate] - Whether to set the modified date with the supplied |
+ /// modified date. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// [timedTextLanguage] - The language of the timed text. |
+ /// |
+ /// [timedTextTrackName] - The timed text track name. |
+ /// |
+ /// [updateViewedDate] - Whether to update the view date after successfully |
+ /// updating the file. |
+ /// |
+ /// [useContentAsIndexableText] - Whether to use the content as indexable |
+ /// text. |
+ /// |
+ /// Completes with a [File]. |
+ /// |
+ /// 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<File> patch(File request, core.String fileId, |
+ {core.String addParents, |
+ core.bool convert, |
+ core.String modifiedDateBehavior, |
+ core.bool newRevision, |
+ core.bool ocr, |
+ core.String ocrLanguage, |
+ core.bool pinned, |
+ core.String removeParents, |
+ core.bool setModifiedDate, |
+ core.bool supportsTeamDrives, |
+ core.String timedTextLanguage, |
+ core.String timedTextTrackName, |
+ core.bool updateViewedDate, |
+ core.bool useContentAsIndexableText}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1832,39 +1862,38 @@ class FilesResourceApi { |
_queryParams["updateViewedDate"] = ["${updateViewedDate}"]; |
} |
if (useContentAsIndexableText != null) { |
- _queryParams["useContentAsIndexableText"] = ["${useContentAsIndexableText}"]; |
+ _queryParams["useContentAsIndexableText"] = [ |
+ "${useContentAsIndexableText}" |
+ ]; |
} |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId'); |
- 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 File.fromJson(data)); |
} |
- /** |
- * Set the file's updated time to the current server time. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file to update. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * Completes with a [File]. |
- * |
- * 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 the file's updated time to the current server time. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file to update. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// Completes with a [File]. |
+ /// |
+ /// 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<File> touch(core.String fileId, {core.bool supportsTeamDrives}) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -1882,35 +1911,32 @@ class FilesResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/touch'; |
- 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 File.fromJson(data)); |
} |
- /** |
- * Moves a file to the trash. The currently authenticated user must own the |
- * file or be an organizer on the parent for Team Drive files. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file to trash. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * Completes with a [File]. |
- * |
- * 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 a file to the trash. The currently authenticated user must own the |
+ /// file or be an organizer on the parent for Team Drive files. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file to trash. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// Completes with a [File]. |
+ /// |
+ /// 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<File> trash(core.String fileId, {core.bool supportsTeamDrives}) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -1928,35 +1954,33 @@ class FilesResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/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 File.fromJson(data)); |
} |
- /** |
- * Restores a file from the trash. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file to untrash. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * Completes with a [File]. |
- * |
- * 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<File> untrash(core.String fileId, {core.bool supportsTeamDrives}) { |
+ /// Restores a file from the trash. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file to untrash. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// Completes with a [File]. |
+ /// |
+ /// 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<File> untrash(core.String fileId, |
+ {core.bool supportsTeamDrives}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1973,90 +1997,105 @@ class FilesResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/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 File.fromJson(data)); |
} |
- /** |
- * Updates file metadata and/or content. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file to update. |
- * |
- * [addParents] - Comma-separated list of parent IDs to add. |
- * |
- * [convert] - This parameter is deprecated and has no function. |
- * |
- * [modifiedDateBehavior] - Determines the behavior in which modifiedDate is |
- * updated. This overrides setModifiedDate. |
- * Possible string values are: |
- * - "fromBody" : Set modifiedDate to the value provided in the body of the |
- * request. No change if no value was provided. |
- * - "fromBodyIfNeeded" : Set modifiedDate to the value provided in the body |
- * of the request depending on other contents of the update. |
- * - "fromBodyOrNow" : Set modifiedDate to the value provided in the body of |
- * the request, or to the current time if no value was provided. |
- * - "noChange" : Maintain the previous value of modifiedDate. |
- * - "now" : Set modifiedDate to the current time. |
- * - "nowIfNeeded" : Set modifiedDate to the current time depending on |
- * contents of the update. |
- * |
- * [newRevision] - Whether a blob upload should create a new revision. If |
- * false, the blob data in the current head revision is replaced. If true or |
- * not set, a new blob is created as head revision, and previous unpinned |
- * revisions are preserved for a short period of time. Pinned revisions are |
- * stored indefinitely, using additional storage quota, up to a maximum of 200 |
- * revisions. For details on how revisions are retained, see the Drive Help |
- * Center. |
- * |
- * [ocr] - Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. |
- * |
- * [ocrLanguage] - If ocr is true, hints at the language to use. Valid values |
- * are BCP 47 codes. |
- * |
- * [pinned] - Whether to pin the new revision. A file can have a maximum of |
- * 200 pinned revisions. |
- * |
- * [removeParents] - Comma-separated list of parent IDs to remove. |
- * |
- * [setModifiedDate] - Whether to set the modified date with the supplied |
- * modified date. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * [timedTextLanguage] - The language of the timed text. |
- * |
- * [timedTextTrackName] - The timed text track name. |
- * |
- * [updateViewedDate] - Whether to update the view date after successfully |
- * updating the file. |
- * |
- * [useContentAsIndexableText] - Whether to use the content as indexable text. |
- * |
- * [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 [File]. |
- * |
- * 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<File> update(File request, core.String fileId, {core.String addParents, core.bool convert, core.String modifiedDateBehavior, core.bool newRevision, core.bool ocr, core.String ocrLanguage, core.bool pinned, core.String removeParents, core.bool setModifiedDate, core.bool supportsTeamDrives, core.String timedTextLanguage, core.String timedTextTrackName, core.bool updateViewedDate, core.bool useContentAsIndexableText, commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { |
+ /// Updates file metadata and/or content. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file to update. |
+ /// |
+ /// [addParents] - Comma-separated list of parent IDs to add. |
+ /// |
+ /// [convert] - This parameter is deprecated and has no function. |
+ /// |
+ /// [modifiedDateBehavior] - Determines the behavior in which modifiedDate is |
+ /// updated. This overrides setModifiedDate. |
+ /// Possible string values are: |
+ /// - "fromBody" : Set modifiedDate to the value provided in the body of the |
+ /// request. No change if no value was provided. |
+ /// - "fromBodyIfNeeded" : Set modifiedDate to the value provided in the body |
+ /// of the request depending on other contents of the update. |
+ /// - "fromBodyOrNow" : Set modifiedDate to the value provided in the body of |
+ /// the request, or to the current time if no value was provided. |
+ /// - "noChange" : Maintain the previous value of modifiedDate. |
+ /// - "now" : Set modifiedDate to the current time. |
+ /// - "nowIfNeeded" : Set modifiedDate to the current time depending on |
+ /// contents of the update. |
+ /// |
+ /// [newRevision] - Whether a blob upload should create a new revision. If |
+ /// false, the blob data in the current head revision is replaced. If true or |
+ /// not set, a new blob is created as head revision, and previous unpinned |
+ /// revisions are preserved for a short period of time. Pinned revisions are |
+ /// stored indefinitely, using additional storage quota, up to a maximum of |
+ /// 200 revisions. For details on how revisions are retained, see the Drive |
+ /// Help Center. |
+ /// |
+ /// [ocr] - Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. |
+ /// |
+ /// [ocrLanguage] - If ocr is true, hints at the language to use. Valid |
+ /// values are BCP 47 codes. |
+ /// |
+ /// [pinned] - Whether to pin the new revision. A file can have a maximum of |
+ /// 200 pinned revisions. |
+ /// |
+ /// [removeParents] - Comma-separated list of parent IDs to remove. |
+ /// |
+ /// [setModifiedDate] - Whether to set the modified date with the supplied |
+ /// modified date. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// [timedTextLanguage] - The language of the timed text. |
+ /// |
+ /// [timedTextTrackName] - The timed text track name. |
+ /// |
+ /// [updateViewedDate] - Whether to update the view date after successfully |
+ /// updating the file. |
+ /// |
+ /// [useContentAsIndexableText] - Whether to use the content as indexable |
+ /// text. |
+ /// |
+ /// [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 [File]. |
+ /// |
+ /// 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<File> update(File request, core.String fileId, |
+ {core.String addParents, |
+ core.bool convert, |
+ core.String modifiedDateBehavior, |
+ core.bool newRevision, |
+ core.bool ocr, |
+ core.String ocrLanguage, |
+ core.bool pinned, |
+ core.String removeParents, |
+ core.bool setModifiedDate, |
+ core.bool supportsTeamDrives, |
+ core.String timedTextLanguage, |
+ core.String timedTextTrackName, |
+ core.bool updateViewedDate, |
+ core.bool useContentAsIndexableText, |
+ commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
+ commons.Media uploadMedia}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2110,75 +2149,82 @@ class FilesResourceApi { |
_queryParams["updateViewedDate"] = ["${updateViewedDate}"]; |
} |
if (useContentAsIndexableText != null) { |
- _queryParams["useContentAsIndexableText"] = ["${useContentAsIndexableText}"]; |
+ _queryParams["useContentAsIndexableText"] = [ |
+ "${useContentAsIndexableText}" |
+ ]; |
} |
- _uploadMedia = uploadMedia; |
- _uploadOptions = uploadOptions; |
+ _uploadMedia = uploadMedia; |
+ _uploadOptions = uploadOptions; |
if (_uploadMedia == null) { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId'); |
} else if (_uploadOptions is commons.ResumableUploadOptions) { |
- _url = '/resumable/upload/drive/v2/files/' + commons.Escaper.ecapeVariable('$fileId'); |
+ _url = '/resumable/upload/drive/v2/files/' + |
+ commons.Escaper.ecapeVariable('$fileId'); |
} else { |
- _url = '/upload/drive/v2/files/' + commons.Escaper.ecapeVariable('$fileId'); |
+ _url = |
+ '/upload/drive/v2/files/' + commons.Escaper.ecapeVariable('$fileId'); |
} |
- |
- 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 File.fromJson(data)); |
} |
- /** |
- * Subscribe to changes on a file |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID for the file in question. |
- * |
- * [acknowledgeAbuse] - Whether the user is acknowledging the risk of |
- * downloading known malware or other abusive files. |
- * |
- * [projection] - This parameter is deprecated and has no function. |
- * Possible string values are: |
- * - "BASIC" : Deprecated |
- * - "FULL" : Deprecated |
- * |
- * [revisionId] - Specifies the Revision ID that should be downloaded. Ignored |
- * unless alt=media is specified. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * [updateViewedDate] - Deprecated: Use files.update with |
- * modifiedDateBehavior=noChange, updateViewedDate=true and an empty request |
- * body. |
- * |
- * [downloadOptions] - Options for downloading. A download can be either a |
- * Metadata (default) or Media download. Partial Media downloads are possible |
- * as well. |
- * |
- * Completes with a |
- * |
- * - [Channel] for Metadata downloads (see [downloadOptions]). |
- * |
- * - [commons.Media] for Media downloads (see [downloadOptions]). |
- * |
- * 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 watch(Channel request, core.String fileId, {core.bool acknowledgeAbuse, core.String projection, core.String revisionId, core.bool supportsTeamDrives, core.bool updateViewedDate, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { |
+ /// Subscribe to changes on a file |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID for the file in question. |
+ /// |
+ /// [acknowledgeAbuse] - Whether the user is acknowledging the risk of |
+ /// downloading known malware or other abusive files. |
+ /// |
+ /// [projection] - This parameter is deprecated and has no function. |
+ /// Possible string values are: |
+ /// - "BASIC" : Deprecated |
+ /// - "FULL" : Deprecated |
+ /// |
+ /// [revisionId] - Specifies the Revision ID that should be downloaded. |
+ /// Ignored unless alt=media is specified. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// [updateViewedDate] - Deprecated: Use files.update with |
+ /// modifiedDateBehavior=noChange, updateViewedDate=true and an empty request |
+ /// body. |
+ /// |
+ /// [downloadOptions] - Options for downloading. A download can be either a |
+ /// Metadata (default) or Media download. Partial Media downloads are |
+ /// possible as well. |
+ /// |
+ /// Completes with a |
+ /// |
+ /// - [Channel] for Metadata downloads (see [downloadOptions]). |
+ /// |
+ /// - [commons.Media] for Media downloads (see [downloadOptions]). |
+ /// |
+ /// 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 watch(Channel request, core.String fileId, |
+ {core.bool acknowledgeAbuse, |
+ core.String projection, |
+ core.String revisionId, |
+ core.bool supportsTeamDrives, |
+ core.bool updateViewedDate, |
+ commons.DownloadOptions downloadOptions: |
+ commons.DownloadOptions.Metadata}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2212,13 +2258,12 @@ class FilesResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/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); |
if (_downloadOptions == null || |
_downloadOptions == commons.DownloadOptions.Metadata) { |
return _response.then((data) => new Channel.fromJson(data)); |
@@ -2226,31 +2271,26 @@ class FilesResourceApi { |
return _response; |
} |
} |
- |
} |
- |
class ParentsResourceApi { |
final commons.ApiRequester _requester; |
- ParentsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Removes a parent from a file. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [parentId] - The ID of the parent. |
- * |
- * 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. |
- */ |
+ ParentsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Removes a parent from a file. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [parentId] - The ID of the parent. |
+ /// |
+ /// 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 fileId, core.String parentId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2268,35 +2308,35 @@ class ParentsResourceApi { |
_downloadOptions = null; |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/parents/' + commons.Escaper.ecapeVariable('$parentId'); |
- |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/parents/' + |
+ commons.Escaper.ecapeVariable('$parentId'); |
+ |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets a specific parent reference. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [parentId] - The ID of the parent. |
- * |
- * Completes with a [ParentReference]. |
- * |
- * 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 specific parent reference. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [parentId] - The ID of the parent. |
+ /// |
+ /// Completes with a [ParentReference]. |
+ /// |
+ /// 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<ParentReference> get(core.String fileId, core.String parentId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2312,39 +2352,41 @@ class ParentsResourceApi { |
throw new core.ArgumentError("Parameter parentId is required."); |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/parents/' + commons.Escaper.ecapeVariable('$parentId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/parents/' + |
+ commons.Escaper.ecapeVariable('$parentId'); |
- 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 ParentReference.fromJson(data)); |
} |
- /** |
- * Adds a parent folder for a file. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * Completes with a [ParentReference]. |
- * |
- * 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<ParentReference> insert(ParentReference request, core.String fileId, {core.bool supportsTeamDrives}) { |
+ /// Adds a parent folder for a file. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// Completes with a [ParentReference]. |
+ /// |
+ /// 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<ParentReference> insert( |
+ ParentReference request, core.String fileId, |
+ {core.bool supportsTeamDrives}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2364,31 +2406,28 @@ class ParentsResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/parents'; |
- 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 ParentReference.fromJson(data)); |
} |
- /** |
- * Lists a file's parents. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * Completes with a [ParentList]. |
- * |
- * 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 a file's parents. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// Completes with a [ParentList]. |
+ /// |
+ /// 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<ParentList> list(core.String fileId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2403,44 +2442,39 @@ class ParentsResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/parents'; |
- 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 ParentList.fromJson(data)); |
} |
- |
} |
- |
class PermissionsResourceApi { |
final commons.ApiRequester _requester; |
- PermissionsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Deletes a permission from a file or Team Drive. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID for the file or Team Drive. |
- * |
- * [permissionId] - The ID for the permission. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * 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 fileId, core.String permissionId, {core.bool supportsTeamDrives}) { |
+ PermissionsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Deletes a permission from a file or Team Drive. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID for the file or Team Drive. |
+ /// |
+ /// [permissionId] - The ID for the permission. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// 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 fileId, core.String permissionId, |
+ {core.bool supportsTeamDrives}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2460,39 +2494,40 @@ class PermissionsResourceApi { |
_downloadOptions = null; |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/permissions/' + commons.Escaper.ecapeVariable('$permissionId'); |
- |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/permissions/' + |
+ commons.Escaper.ecapeVariable('$permissionId'); |
+ |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets a permission by ID. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID for the file or Team Drive. |
- * |
- * [permissionId] - The ID for the permission. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * Completes with a [Permission]. |
- * |
- * 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<Permission> get(core.String fileId, core.String permissionId, {core.bool supportsTeamDrives}) { |
+ /// Gets a permission by ID. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID for the file or Team Drive. |
+ /// |
+ /// [permissionId] - The ID for the permission. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// Completes with a [Permission]. |
+ /// |
+ /// 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<Permission> get(core.String fileId, core.String permissionId, |
+ {core.bool supportsTeamDrives}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2510,33 +2545,33 @@ class PermissionsResourceApi { |
_queryParams["supportsTeamDrives"] = ["${supportsTeamDrives}"]; |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/permissions/' + commons.Escaper.ecapeVariable('$permissionId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/permissions/' + |
+ commons.Escaper.ecapeVariable('$permissionId'); |
- 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 Permission.fromJson(data)); |
} |
- /** |
- * Returns the permission ID for an email address. |
- * |
- * Request parameters: |
- * |
- * [email] - The email address for which to return a permission ID |
- * |
- * Completes with a [PermissionId]. |
- * |
- * 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. |
- */ |
+ /// Returns the permission ID for an email address. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [email] - The email address for which to return a permission ID |
+ /// |
+ /// Completes with a [PermissionId]. |
+ /// |
+ /// 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<PermissionId> getIdForEmail(core.String email) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2551,43 +2586,43 @@ class PermissionsResourceApi { |
_url = 'permissionIds/' + commons.Escaper.ecapeVariable('$email'); |
- 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 PermissionId.fromJson(data)); |
} |
- /** |
- * Inserts a permission for a file or Team Drive. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID for the file or Team Drive. |
- * |
- * [emailMessage] - A custom message to include in notification emails. |
- * |
- * [sendNotificationEmails] - Whether to send notification emails when sharing |
- * to users or groups. This parameter is ignored and an email is sent if the |
- * role is owner. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * Completes with a [Permission]. |
- * |
- * 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<Permission> insert(Permission request, core.String fileId, {core.String emailMessage, core.bool sendNotificationEmails, core.bool supportsTeamDrives}) { |
+ /// Inserts a permission for a file or Team Drive. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID for the file or Team Drive. |
+ /// |
+ /// [emailMessage] - A custom message to include in notification emails. |
+ /// |
+ /// [sendNotificationEmails] - Whether to send notification emails when |
+ /// sharing to users or groups. This parameter is ignored and an email is |
+ /// sent if the role is owner. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// Completes with a [Permission]. |
+ /// |
+ /// 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<Permission> insert(Permission request, core.String fileId, |
+ {core.String emailMessage, |
+ core.bool sendNotificationEmails, |
+ core.bool supportsTeamDrives}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2613,45 +2648,45 @@ class PermissionsResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/permissions'; |
- 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 Permission.fromJson(data)); |
} |
- /** |
- * Lists a file's or Team Drive's permissions. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID for the file or Team Drive. |
- * |
- * [maxResults] - The maximum number of permissions to return per page. When |
- * not set for files in a Team Drive, at most 100 results will be returned. |
- * When not set for files that are not in a Team Drive, the entire list will |
- * be returned. |
- * Value must be between "1" and "100". |
- * |
- * [pageToken] - The token for continuing a previous list request on the next |
- * page. This should be set to the value of 'nextPageToken' from the previous |
- * response. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * Completes with a [PermissionList]. |
- * |
- * 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<PermissionList> list(core.String fileId, {core.int maxResults, core.String pageToken, core.bool supportsTeamDrives}) { |
+ /// Lists a file's or Team Drive's permissions. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID for the file or Team Drive. |
+ /// |
+ /// [maxResults] - The maximum number of permissions to return per page. When |
+ /// not set for files in a Team Drive, at most 100 results will be returned. |
+ /// When not set for files that are not in a Team Drive, the entire list will |
+ /// be returned. |
+ /// Value must be between "1" and "100". |
+ /// |
+ /// [pageToken] - The token for continuing a previous list request on the |
+ /// next page. This should be set to the value of 'nextPageToken' from the |
+ /// previous response. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// Completes with a [PermissionList]. |
+ /// |
+ /// 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<PermissionList> list(core.String fileId, |
+ {core.int maxResults, |
+ core.String pageToken, |
+ core.bool supportsTeamDrives}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2674,45 +2709,46 @@ class PermissionsResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/permissions'; |
- 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 PermissionList.fromJson(data)); |
} |
- /** |
- * Updates a permission using patch semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID for the file or Team Drive. |
- * |
- * [permissionId] - The ID for the permission. |
- * |
- * [removeExpiration] - Whether to remove the expiration date. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * [transferOwnership] - Whether changing a role to 'owner' downgrades the |
- * current owners to writers. Does nothing if the specified role is not |
- * 'owner'. |
- * |
- * Completes with a [Permission]. |
- * |
- * 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<Permission> patch(Permission request, core.String fileId, core.String permissionId, {core.bool removeExpiration, core.bool supportsTeamDrives, core.bool transferOwnership}) { |
+ /// Updates a permission using patch semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID for the file or Team Drive. |
+ /// |
+ /// [permissionId] - The ID for the permission. |
+ /// |
+ /// [removeExpiration] - Whether to remove the expiration date. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// [transferOwnership] - Whether changing a role to 'owner' downgrades the |
+ /// current owners to writers. Does nothing if the specified role is not |
+ /// 'owner'. |
+ /// |
+ /// Completes with a [Permission]. |
+ /// |
+ /// 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<Permission> patch( |
+ Permission request, core.String fileId, core.String permissionId, |
+ {core.bool removeExpiration, |
+ core.bool supportsTeamDrives, |
+ core.bool transferOwnership}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2739,47 +2775,51 @@ class PermissionsResourceApi { |
_queryParams["transferOwnership"] = ["${transferOwnership}"]; |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/permissions/' + commons.Escaper.ecapeVariable('$permissionId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/permissions/' + |
+ commons.Escaper.ecapeVariable('$permissionId'); |
- 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 Permission.fromJson(data)); |
} |
- /** |
- * Updates a permission. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID for the file or Team Drive. |
- * |
- * [permissionId] - The ID for the permission. |
- * |
- * [removeExpiration] - Whether to remove the expiration date. |
- * |
- * [supportsTeamDrives] - Whether the requesting application supports Team |
- * Drives. |
- * |
- * [transferOwnership] - Whether changing a role to 'owner' downgrades the |
- * current owners to writers. Does nothing if the specified role is not |
- * 'owner'. |
- * |
- * Completes with a [Permission]. |
- * |
- * 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<Permission> update(Permission request, core.String fileId, core.String permissionId, {core.bool removeExpiration, core.bool supportsTeamDrives, core.bool transferOwnership}) { |
+ /// Updates a permission. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID for the file or Team Drive. |
+ /// |
+ /// [permissionId] - The ID for the permission. |
+ /// |
+ /// [removeExpiration] - Whether to remove the expiration date. |
+ /// |
+ /// [supportsTeamDrives] - Whether the requesting application supports Team |
+ /// Drives. |
+ /// |
+ /// [transferOwnership] - Whether changing a role to 'owner' downgrades the |
+ /// current owners to writers. Does nothing if the specified role is not |
+ /// 'owner'. |
+ /// |
+ /// Completes with a [Permission]. |
+ /// |
+ /// 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<Permission> update( |
+ Permission request, core.String fileId, core.String permissionId, |
+ {core.bool removeExpiration, |
+ core.bool supportsTeamDrives, |
+ core.bool transferOwnership}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2806,45 +2846,43 @@ class PermissionsResourceApi { |
_queryParams["transferOwnership"] = ["${transferOwnership}"]; |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/permissions/' + commons.Escaper.ecapeVariable('$permissionId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/permissions/' + |
+ commons.Escaper.ecapeVariable('$permissionId'); |
- 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 Permission.fromJson(data)); |
} |
- |
} |
- |
class PropertiesResourceApi { |
final commons.ApiRequester _requester; |
- PropertiesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Deletes a property. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [propertyKey] - The key of the property. |
- * |
- * [visibility] - The visibility of the property. |
- * |
- * 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 fileId, core.String propertyKey, {core.String visibility}) { |
+ PropertiesResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Deletes a property. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [propertyKey] - The key of the property. |
+ /// |
+ /// [visibility] - The visibility of the property. |
+ /// |
+ /// 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 fileId, core.String propertyKey, |
+ {core.String visibility}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2864,38 +2902,39 @@ class PropertiesResourceApi { |
_downloadOptions = null; |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/properties/' + commons.Escaper.ecapeVariable('$propertyKey'); |
- |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/properties/' + |
+ commons.Escaper.ecapeVariable('$propertyKey'); |
+ |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets a property by its key. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [propertyKey] - The key of the property. |
- * |
- * [visibility] - The visibility of the property. |
- * |
- * Completes with a [Property]. |
- * |
- * 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<Property> get(core.String fileId, core.String propertyKey, {core.String visibility}) { |
+ /// Gets a property by its key. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [propertyKey] - The key of the property. |
+ /// |
+ /// [visibility] - The visibility of the property. |
+ /// |
+ /// Completes with a [Property]. |
+ /// |
+ /// 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<Property> get(core.String fileId, core.String propertyKey, |
+ {core.String visibility}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -2913,35 +2952,35 @@ class PropertiesResourceApi { |
_queryParams["visibility"] = [visibility]; |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/properties/' + commons.Escaper.ecapeVariable('$propertyKey'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/properties/' + |
+ commons.Escaper.ecapeVariable('$propertyKey'); |
- 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 Property.fromJson(data)); |
} |
- /** |
- * Adds a property to a file, or updates it if it already exists. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * Completes with a [Property]. |
- * |
- * 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. |
- */ |
+ /// Adds a property to a file, or updates it if it already exists. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// Completes with a [Property]. |
+ /// |
+ /// 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<Property> insert(Property request, core.String fileId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2959,31 +2998,28 @@ class PropertiesResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/properties'; |
- 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 Property.fromJson(data)); |
} |
- /** |
- * Lists a file's properties. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * Completes with a [PropertyList]. |
- * |
- * 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 a file's properties. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// Completes with a [PropertyList]. |
+ /// |
+ /// 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<PropertyList> list(core.String fileId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -2998,39 +3034,38 @@ class PropertiesResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/properties'; |
- 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 PropertyList.fromJson(data)); |
} |
- /** |
- * Updates a property, or adds it if it doesn't exist. This method supports |
- * patch semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [propertyKey] - The key of the property. |
- * |
- * [visibility] - The visibility of the property. |
- * |
- * Completes with a [Property]. |
- * |
- * 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<Property> patch(Property request, core.String fileId, core.String propertyKey, {core.String visibility}) { |
+ /// Updates a property, or adds it if it doesn't exist. This method supports |
+ /// patch semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [propertyKey] - The key of the property. |
+ /// |
+ /// [visibility] - The visibility of the property. |
+ /// |
+ /// Completes with a [Property]. |
+ /// |
+ /// 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<Property> patch( |
+ Property request, core.String fileId, core.String propertyKey, |
+ {core.String visibility}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3051,40 +3086,42 @@ class PropertiesResourceApi { |
_queryParams["visibility"] = [visibility]; |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/properties/' + commons.Escaper.ecapeVariable('$propertyKey'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/properties/' + |
+ commons.Escaper.ecapeVariable('$propertyKey'); |
- 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 Property.fromJson(data)); |
} |
- /** |
- * Updates a property, or adds it if it doesn't exist. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [propertyKey] - The key of the property. |
- * |
- * [visibility] - The visibility of the property. |
- * |
- * Completes with a [Property]. |
- * |
- * 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<Property> update(Property request, core.String fileId, core.String propertyKey, {core.String visibility}) { |
+ /// Updates a property, or adds it if it doesn't exist. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [propertyKey] - The key of the property. |
+ /// |
+ /// [visibility] - The visibility of the property. |
+ /// |
+ /// Completes with a [Property]. |
+ /// |
+ /// 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<Property> update( |
+ Property request, core.String fileId, core.String propertyKey, |
+ {core.String visibility}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3105,52 +3142,52 @@ class PropertiesResourceApi { |
_queryParams["visibility"] = [visibility]; |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/properties/' + commons.Escaper.ecapeVariable('$propertyKey'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/properties/' + |
+ commons.Escaper.ecapeVariable('$propertyKey'); |
- 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 Property.fromJson(data)); |
} |
- |
} |
- |
class RealtimeResourceApi { |
final commons.ApiRequester _requester; |
- RealtimeResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Exports the contents of the Realtime API data model associated with this |
- * file as JSON. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file that the Realtime API data model is |
- * associated with. |
- * |
- * [revision] - The revision of the Realtime API data model to export. |
- * Revisions start at 1 (the initial empty data model) and are incremented |
- * with each change. If this parameter is excluded, the most recent data model |
- * will be returned. |
- * |
- * [downloadOptions] - Options for downloading. A download can be either a |
- * Metadata (default) or Media download. Partial Media downloads are possible |
- * as well. |
- * |
- * 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 get(core.String fileId, {core.int revision, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { |
+ RealtimeResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Exports the contents of the Realtime API data model associated with this |
+ /// file as JSON. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file that the Realtime API data model is |
+ /// associated with. |
+ /// |
+ /// [revision] - The revision of the Realtime API data model to export. |
+ /// Revisions start at 1 (the initial empty data model) and are incremented |
+ /// with each change. If this parameter is excluded, the most recent data |
+ /// model will be returned. |
+ /// |
+ /// [downloadOptions] - Options for downloading. A download can be either a |
+ /// Metadata (default) or Media download. Partial Media downloads are |
+ /// possible as well. |
+ /// |
+ /// 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 get(core.String fileId, |
+ {core.int revision, |
+ commons.DownloadOptions downloadOptions: |
+ commons.DownloadOptions.Metadata}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3169,13 +3206,12 @@ class RealtimeResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/realtime'; |
- 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); |
if (_downloadOptions == null || |
_downloadOptions == commons.DownloadOptions.Metadata) { |
return _response.then((data) => null); |
@@ -3184,33 +3220,35 @@ class RealtimeResourceApi { |
} |
} |
- /** |
- * Overwrites the Realtime API data model associated with this file with the |
- * provided JSON data model. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file that the Realtime API data model is |
- * associated with. |
- * |
- * [baseRevision] - The revision of the model to diff the uploaded model |
- * against. If set, the uploaded model is diffed against the provided revision |
- * and those differences are merged with any changes made to the model after |
- * the provided revision. If not set, the uploaded model replaces the current |
- * model on the server. |
- * |
- * [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 [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 update(core.String fileId, {core.String baseRevision, commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { |
+ /// Overwrites the Realtime API data model associated with this file with the |
+ /// provided JSON data model. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file that the Realtime API data model is |
+ /// associated with. |
+ /// |
+ /// [baseRevision] - The revision of the model to diff the uploaded model |
+ /// against. If set, the uploaded model is diffed against the provided |
+ /// revision and those differences are merged with any changes made to the |
+ /// model after the provided revision. If not set, the uploaded model |
+ /// replaces the current model on the server. |
+ /// |
+ /// [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 [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 update(core.String fileId, |
+ {core.String baseRevision, |
+ commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
+ commons.Media uploadMedia}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3225,57 +3263,54 @@ class RealtimeResourceApi { |
_queryParams["baseRevision"] = [baseRevision]; |
} |
- |
- _uploadMedia = uploadMedia; |
- _uploadOptions = uploadOptions; |
+ _uploadMedia = uploadMedia; |
+ _uploadOptions = uploadOptions; |
_downloadOptions = null; |
if (_uploadMedia == null) { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/realtime'; |
} else if (_uploadOptions is commons.ResumableUploadOptions) { |
- _url = '/resumable/upload/drive/v2/files/' + commons.Escaper.ecapeVariable('$fileId') + '/realtime'; |
+ _url = '/resumable/upload/drive/v2/files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/realtime'; |
} else { |
- _url = '/upload/drive/v2/files/' + commons.Escaper.ecapeVariable('$fileId') + '/realtime'; |
+ _url = '/upload/drive/v2/files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/realtime'; |
} |
- |
- 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) => null); |
} |
- |
} |
- |
class RepliesResourceApi { |
final commons.ApiRequester _requester; |
- RepliesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Deletes a reply. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [commentId] - The ID of the comment. |
- * |
- * [replyId] - The ID of the reply. |
- * |
- * 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 fileId, core.String commentId, core.String replyId) { |
+ RepliesResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Deletes a reply. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [commentId] - The ID of the comment. |
+ /// |
+ /// [replyId] - The ID of the reply. |
+ /// |
+ /// 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 fileId, core.String commentId, core.String replyId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3295,41 +3330,45 @@ class RepliesResourceApi { |
_downloadOptions = null; |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/comments/' + commons.Escaper.ecapeVariable('$commentId') + '/replies/' + commons.Escaper.ecapeVariable('$replyId'); |
- |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/comments/' + |
+ commons.Escaper.ecapeVariable('$commentId') + |
+ '/replies/' + |
+ commons.Escaper.ecapeVariable('$replyId'); |
+ |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets a reply. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [commentId] - The ID of the comment. |
- * |
- * [replyId] - The ID of the reply. |
- * |
- * [includeDeleted] - If set, this will succeed when retrieving a deleted |
- * reply. |
- * |
- * Completes with a [CommentReply]. |
- * |
- * 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<CommentReply> get(core.String fileId, core.String commentId, core.String replyId, {core.bool includeDeleted}) { |
+ /// Gets a reply. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [commentId] - The ID of the comment. |
+ /// |
+ /// [replyId] - The ID of the reply. |
+ /// |
+ /// [includeDeleted] - If set, this will succeed when retrieving a deleted |
+ /// reply. |
+ /// |
+ /// Completes with a [CommentReply]. |
+ /// |
+ /// 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<CommentReply> get( |
+ core.String fileId, core.String commentId, core.String replyId, |
+ {core.bool includeDeleted}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3350,38 +3389,41 @@ class RepliesResourceApi { |
_queryParams["includeDeleted"] = ["${includeDeleted}"]; |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/comments/' + commons.Escaper.ecapeVariable('$commentId') + '/replies/' + commons.Escaper.ecapeVariable('$replyId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/comments/' + |
+ commons.Escaper.ecapeVariable('$commentId') + |
+ '/replies/' + |
+ commons.Escaper.ecapeVariable('$replyId'); |
- 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 CommentReply.fromJson(data)); |
} |
- /** |
- * Creates a new reply to the given comment. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [commentId] - The ID of the comment. |
- * |
- * Completes with a [CommentReply]. |
- * |
- * 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<CommentReply> insert(CommentReply request, core.String fileId, core.String commentId) { |
+ /// Creates a new reply to the given comment. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [commentId] - The ID of the comment. |
+ /// |
+ /// Completes with a [CommentReply]. |
+ /// |
+ /// 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<CommentReply> insert( |
+ CommentReply request, core.String fileId, core.String commentId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3399,47 +3441,49 @@ class RepliesResourceApi { |
throw new core.ArgumentError("Parameter commentId is required."); |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/comments/' + commons.Escaper.ecapeVariable('$commentId') + '/replies'; |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/comments/' + |
+ commons.Escaper.ecapeVariable('$commentId') + |
+ '/replies'; |
- 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 CommentReply.fromJson(data)); |
} |
- /** |
- * Lists all of the replies to a comment. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [commentId] - The ID of the comment. |
- * |
- * [includeDeleted] - If set, all replies, including deleted replies (with |
- * content stripped) will be returned. |
- * |
- * [maxResults] - The maximum number of replies to include in the response, |
- * used for paging. |
- * Value must be between "0" and "100". |
- * |
- * [pageToken] - The continuation token, used to page through large result |
- * sets. To get the next page of results, set this parameter to the value of |
- * "nextPageToken" from the previous response. |
- * |
- * Completes with a [CommentReplyList]. |
- * |
- * 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<CommentReplyList> list(core.String fileId, core.String commentId, {core.bool includeDeleted, core.int maxResults, core.String pageToken}) { |
+ /// Lists all of the replies to a comment. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [commentId] - The ID of the comment. |
+ /// |
+ /// [includeDeleted] - If set, all replies, including deleted replies (with |
+ /// content stripped) will be returned. |
+ /// |
+ /// [maxResults] - The maximum number of replies to include in the response, |
+ /// used for paging. |
+ /// Value must be between "0" and "100". |
+ /// |
+ /// [pageToken] - The continuation token, used to page through large result |
+ /// sets. To get the next page of results, set this parameter to the value of |
+ /// "nextPageToken" from the previous response. |
+ /// |
+ /// Completes with a [CommentReplyList]. |
+ /// |
+ /// 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<CommentReplyList> list(core.String fileId, core.String commentId, |
+ {core.bool includeDeleted, core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3463,40 +3507,42 @@ class RepliesResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/comments/' + commons.Escaper.ecapeVariable('$commentId') + '/replies'; |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/comments/' + |
+ commons.Escaper.ecapeVariable('$commentId') + |
+ '/replies'; |
- 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 CommentReplyList.fromJson(data)); |
} |
- /** |
- * Updates an existing reply. This method supports patch semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [commentId] - The ID of the comment. |
- * |
- * [replyId] - The ID of the reply. |
- * |
- * Completes with a [CommentReply]. |
- * |
- * 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<CommentReply> patch(CommentReply request, core.String fileId, core.String commentId, core.String replyId) { |
+ /// Updates an existing reply. This method supports patch semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [commentId] - The ID of the comment. |
+ /// |
+ /// [replyId] - The ID of the reply. |
+ /// |
+ /// Completes with a [CommentReply]. |
+ /// |
+ /// 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<CommentReply> patch(CommentReply request, core.String fileId, |
+ core.String commentId, core.String replyId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3517,40 +3563,43 @@ class RepliesResourceApi { |
throw new core.ArgumentError("Parameter replyId is required."); |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/comments/' + commons.Escaper.ecapeVariable('$commentId') + '/replies/' + commons.Escaper.ecapeVariable('$replyId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/comments/' + |
+ commons.Escaper.ecapeVariable('$commentId') + |
+ '/replies/' + |
+ commons.Escaper.ecapeVariable('$replyId'); |
- 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 CommentReply.fromJson(data)); |
} |
- /** |
- * Updates an existing reply. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [commentId] - The ID of the comment. |
- * |
- * [replyId] - The ID of the reply. |
- * |
- * Completes with a [CommentReply]. |
- * |
- * 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<CommentReply> update(CommentReply request, core.String fileId, core.String commentId, core.String replyId) { |
+ /// Updates an existing reply. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [commentId] - The ID of the comment. |
+ /// |
+ /// [replyId] - The ID of the reply. |
+ /// |
+ /// Completes with a [CommentReply]. |
+ /// |
+ /// 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<CommentReply> update(CommentReply request, core.String fileId, |
+ core.String commentId, core.String replyId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3571,42 +3620,41 @@ class RepliesResourceApi { |
throw new core.ArgumentError("Parameter replyId is required."); |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/comments/' + commons.Escaper.ecapeVariable('$commentId') + '/replies/' + commons.Escaper.ecapeVariable('$replyId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/comments/' + |
+ commons.Escaper.ecapeVariable('$commentId') + |
+ '/replies/' + |
+ commons.Escaper.ecapeVariable('$replyId'); |
- 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 CommentReply.fromJson(data)); |
} |
- |
} |
- |
class RevisionsResourceApi { |
final commons.ApiRequester _requester; |
- RevisionsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Removes a revision. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [revisionId] - The ID of the revision. |
- * |
- * 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. |
- */ |
+ RevisionsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Removes a revision. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [revisionId] - The ID of the revision. |
+ /// |
+ /// 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 fileId, core.String revisionId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -3624,35 +3672,35 @@ class RevisionsResourceApi { |
_downloadOptions = null; |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/revisions/' + commons.Escaper.ecapeVariable('$revisionId'); |
- |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/revisions/' + |
+ commons.Escaper.ecapeVariable('$revisionId'); |
+ |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => null); |
} |
- /** |
- * Gets a specific revision. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [revisionId] - The ID of the revision. |
- * |
- * Completes with a [Revision]. |
- * |
- * 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 specific revision. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [revisionId] - The ID of the revision. |
+ /// |
+ /// Completes with a [Revision]. |
+ /// |
+ /// 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<Revision> get(core.String fileId, core.String revisionId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -3668,41 +3716,42 @@ class RevisionsResourceApi { |
throw new core.ArgumentError("Parameter revisionId is required."); |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/revisions/' + commons.Escaper.ecapeVariable('$revisionId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/revisions/' + |
+ commons.Escaper.ecapeVariable('$revisionId'); |
- 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 Revision.fromJson(data)); |
} |
- /** |
- * Lists a file's revisions. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID of the file. |
- * |
- * [maxResults] - Maximum number of revisions to return. |
- * Value must be between "1" and "1000". |
- * |
- * [pageToken] - Page token for revisions. To get the next page of results, |
- * set this parameter to the value of "nextPageToken" from the previous |
- * response. |
- * |
- * Completes with a [RevisionList]. |
- * |
- * 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<RevisionList> list(core.String fileId, {core.int maxResults, core.String pageToken}) { |
+ /// Lists a file's revisions. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID of the file. |
+ /// |
+ /// [maxResults] - Maximum number of revisions to return. |
+ /// Value must be between "1" and "1000". |
+ /// |
+ /// [pageToken] - Page token for revisions. To get the next page of results, |
+ /// set this parameter to the value of "nextPageToken" from the previous |
+ /// response. |
+ /// |
+ /// Completes with a [RevisionList]. |
+ /// |
+ /// 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<RevisionList> list(core.String fileId, |
+ {core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3722,36 +3771,34 @@ class RevisionsResourceApi { |
_url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/revisions'; |
- 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 RevisionList.fromJson(data)); |
} |
- /** |
- * Updates a revision. This method supports patch semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID for the file. |
- * |
- * [revisionId] - The ID for the revision. |
- * |
- * Completes with a [Revision]. |
- * |
- * 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<Revision> patch(Revision request, core.String fileId, core.String revisionId) { |
+ /// Updates a revision. This method supports patch semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID for the file. |
+ /// |
+ /// [revisionId] - The ID for the revision. |
+ /// |
+ /// Completes with a [Revision]. |
+ /// |
+ /// 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<Revision> patch( |
+ Revision request, core.String fileId, core.String revisionId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3769,38 +3816,39 @@ class RevisionsResourceApi { |
throw new core.ArgumentError("Parameter revisionId is required."); |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/revisions/' + commons.Escaper.ecapeVariable('$revisionId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/revisions/' + |
+ commons.Escaper.ecapeVariable('$revisionId'); |
- 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 Revision.fromJson(data)); |
} |
- /** |
- * Updates a revision. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [fileId] - The ID for the file. |
- * |
- * [revisionId] - The ID for the revision. |
- * |
- * Completes with a [Revision]. |
- * |
- * 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<Revision> update(Revision request, core.String fileId, core.String revisionId) { |
+ /// Updates a revision. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [fileId] - The ID for the file. |
+ /// |
+ /// [revisionId] - The ID for the revision. |
+ /// |
+ /// Completes with a [Revision]. |
+ /// |
+ /// 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<Revision> update( |
+ Revision request, core.String fileId, core.String revisionId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -3818,41 +3866,38 @@ class RevisionsResourceApi { |
throw new core.ArgumentError("Parameter revisionId is required."); |
} |
- _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/revisions/' + commons.Escaper.ecapeVariable('$revisionId'); |
+ _url = 'files/' + |
+ commons.Escaper.ecapeVariable('$fileId') + |
+ '/revisions/' + |
+ commons.Escaper.ecapeVariable('$revisionId'); |
- 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 Revision.fromJson(data)); |
} |
- |
} |
- |
class TeamdrivesResourceApi { |
final commons.ApiRequester _requester; |
- TeamdrivesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Permanently deletes a Team Drive for which the user is an organizer. The |
- * Team Drive cannot contain any untrashed items. |
- * |
- * Request parameters: |
- * |
- * [teamDriveId] - The ID of the Team Drive |
- * |
- * 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. |
- */ |
+ TeamdrivesResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Permanently deletes a Team Drive for which the user is an organizer. The |
+ /// Team Drive cannot contain any untrashed items. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [teamDriveId] - The ID of the Team Drive |
+ /// |
+ /// 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 teamDriveId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -3869,31 +3914,28 @@ class TeamdrivesResourceApi { |
_url = 'teamdrives/' + commons.Escaper.ecapeVariable('$teamDriveId'); |
- 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 Team Drive's metadata by ID. |
- * |
- * Request parameters: |
- * |
- * [teamDriveId] - The ID of the Team Drive |
- * |
- * Completes with a [TeamDrive]. |
- * |
- * 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 Team Drive's metadata by ID. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [teamDriveId] - The ID of the Team Drive |
+ /// |
+ /// Completes with a [TeamDrive]. |
+ /// |
+ /// 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<TeamDrive> get(core.String teamDriveId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -3908,37 +3950,34 @@ class TeamdrivesResourceApi { |
_url = 'teamdrives/' + commons.Escaper.ecapeVariable('$teamDriveId'); |
- 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 TeamDrive.fromJson(data)); |
} |
- /** |
- * Creates a new Team Drive. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [requestId] - An ID, such as a random UUID, which uniquely identifies this |
- * user's request for idempotent creation of a Team Drive. A repeated request |
- * by the same user and with the same request ID will avoid creating |
- * duplicates by attempting to create the same Team Drive. If the Team Drive |
- * already exists a 409 error will be returned. |
- * |
- * Completes with a [TeamDrive]. |
- * |
- * 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. |
- */ |
+ /// Creates a new Team Drive. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [requestId] - An ID, such as a random UUID, which uniquely identifies |
+ /// this user's request for idempotent creation of a Team Drive. A repeated |
+ /// request by the same user and with the same request ID will avoid creating |
+ /// duplicates by attempting to create the same Team Drive. If the Team Drive |
+ /// already exists a 409 error will be returned. |
+ /// |
+ /// Completes with a [TeamDrive]. |
+ /// |
+ /// 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<TeamDrive> insert(TeamDrive request, core.String requestId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -3957,35 +3996,33 @@ class TeamdrivesResourceApi { |
_url = 'teamdrives'; |
- 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 TeamDrive.fromJson(data)); |
} |
- /** |
- * Lists the user's Team Drives. |
- * |
- * Request parameters: |
- * |
- * [maxResults] - Maximum number of Team Drives to return. |
- * Value must be between "1" and "100". |
- * |
- * [pageToken] - Page token for Team Drives. |
- * |
- * Completes with a [TeamDriveList]. |
- * |
- * 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<TeamDriveList> list({core.int maxResults, core.String pageToken}) { |
+ /// Lists the user's Team Drives. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [maxResults] - Maximum number of Team Drives to return. |
+ /// Value must be between "1" and "100". |
+ /// |
+ /// [pageToken] - Page token for Team Drives. |
+ /// |
+ /// Completes with a [TeamDriveList]. |
+ /// |
+ /// 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<TeamDriveList> list( |
+ {core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -4002,33 +4039,30 @@ class TeamdrivesResourceApi { |
_url = 'teamdrives'; |
- 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 TeamDriveList.fromJson(data)); |
} |
- /** |
- * Updates a Team Drive's metadata |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [teamDriveId] - The ID of the Team Drive |
- * |
- * Completes with a [TeamDrive]. |
- * |
- * 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 a Team Drive's metadata |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [teamDriveId] - The ID of the Team Drive |
+ /// |
+ /// Completes with a [TeamDrive]. |
+ /// |
+ /// 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<TeamDrive> update(TeamDrive request, core.String teamDriveId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -4046,24 +4080,21 @@ class TeamdrivesResourceApi { |
_url = 'teamdrives/' + commons.Escaper.ecapeVariable('$teamDriveId'); |
- 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 TeamDrive.fromJson(data)); |
} |
- |
} |
- |
- |
class AboutAdditionalRoleInfoRoleSets { |
- /** The supported additional roles with the primary role. */ |
+ /// The supported additional roles with the primary role. |
core.List<core.String> additionalRoles; |
- /** A primary permission role. */ |
+ |
+ /// A primary permission role. |
core.String primaryRole; |
AboutAdditionalRoleInfoRoleSets(); |
@@ -4078,7 +4109,8 @@ class AboutAdditionalRoleInfoRoleSets { |
} |
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 (additionalRoles != null) { |
_json["additionalRoles"] = additionalRoles; |
} |
@@ -4090,16 +4122,19 @@ class AboutAdditionalRoleInfoRoleSets { |
} |
class AboutAdditionalRoleInfo { |
- /** The supported additional roles per primary role. */ |
+ /// The supported additional roles per primary role. |
core.List<AboutAdditionalRoleInfoRoleSets> roleSets; |
- /** The content type that this additional role info applies to. */ |
+ |
+ /// The content type that this additional role info applies to. |
core.String type; |
AboutAdditionalRoleInfo(); |
AboutAdditionalRoleInfo.fromJson(core.Map _json) { |
if (_json.containsKey("roleSets")) { |
- roleSets = _json["roleSets"].map((value) => new AboutAdditionalRoleInfoRoleSets.fromJson(value)).toList(); |
+ roleSets = _json["roleSets"] |
+ .map((value) => new AboutAdditionalRoleInfoRoleSets.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("type")) { |
type = _json["type"]; |
@@ -4107,7 +4142,8 @@ class AboutAdditionalRoleInfo { |
} |
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 (roleSets != null) { |
_json["roleSets"] = roleSets.map((value) => (value).toJson()).toList(); |
} |
@@ -4119,9 +4155,10 @@ class AboutAdditionalRoleInfo { |
} |
class AboutExportFormats { |
- /** The content type to convert from. */ |
+ /// The content type to convert from. |
core.String source; |
- /** The possible content types to convert to. */ |
+ |
+ /// The possible content types to convert to. |
core.List<core.String> targets; |
AboutExportFormats(); |
@@ -4136,7 +4173,8 @@ class AboutExportFormats { |
} |
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 (source != null) { |
_json["source"] = source; |
} |
@@ -4148,9 +4186,10 @@ class AboutExportFormats { |
} |
class AboutFeatures { |
- /** The name of the feature. */ |
+ /// The name of the feature. |
core.String featureName; |
- /** The request limit rate for this feature, in queries per second. */ |
+ |
+ /// The request limit rate for this feature, in queries per second. |
core.double featureRate; |
AboutFeatures(); |
@@ -4165,7 +4204,8 @@ class AboutFeatures { |
} |
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 (featureName != null) { |
_json["featureName"] = featureName; |
} |
@@ -4177,9 +4217,10 @@ class AboutFeatures { |
} |
class AboutImportFormats { |
- /** The imported file's content type to convert from. */ |
+ /// The imported file's content type to convert from. |
core.String source; |
- /** The possible content types to convert to. */ |
+ |
+ /// The possible content types to convert to. |
core.List<core.String> targets; |
AboutImportFormats(); |
@@ -4194,7 +4235,8 @@ class AboutImportFormats { |
} |
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 (source != null) { |
_json["source"] = source; |
} |
@@ -4206,9 +4248,10 @@ class AboutImportFormats { |
} |
class AboutMaxUploadSizes { |
- /** The max upload size for this type. */ |
+ /// The max upload size for this type. |
core.String size; |
- /** The file type. */ |
+ |
+ /// The file type. |
core.String type; |
AboutMaxUploadSizes(); |
@@ -4223,7 +4266,8 @@ class AboutMaxUploadSizes { |
} |
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 (size != null) { |
_json["size"] = size; |
} |
@@ -4235,9 +4279,10 @@ class AboutMaxUploadSizes { |
} |
class AboutQuotaBytesByService { |
- /** The storage quota bytes used by the service. */ |
+ /// The storage quota bytes used by the service. |
core.String bytesUsed; |
- /** The service's name, e.g. DRIVE, GMAIL, or PHOTOS. */ |
+ |
+ /// The service's name, e.g. DRIVE, GMAIL, or PHOTOS. |
core.String serviceName; |
AboutQuotaBytesByService(); |
@@ -4252,7 +4297,8 @@ class AboutQuotaBytesByService { |
} |
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 (bytesUsed != null) { |
_json["bytesUsed"] = bytesUsed; |
} |
@@ -4264,11 +4310,13 @@ class AboutQuotaBytesByService { |
} |
class AboutTeamDriveThemes { |
- /** A link to this Team Drive theme's background image. */ |
+ /// A link to this Team Drive theme's background image. |
core.String backgroundImageLink; |
- /** The color of this Team Drive theme as an RGB hex string. */ |
+ |
+ /// The color of this Team Drive theme as an RGB hex string. |
core.String colorRgb; |
- /** The ID of the theme. */ |
+ |
+ /// The ID of the theme. |
core.String id; |
AboutTeamDriveThemes(); |
@@ -4286,7 +4334,8 @@ class AboutTeamDriveThemes { |
} |
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 (backgroundImageLink != null) { |
_json["backgroundImageLink"] = backgroundImageLink; |
} |
@@ -4300,89 +4349,101 @@ class AboutTeamDriveThemes { |
} |
} |
-/** An item with user information and settings. */ |
+/// An item with user information and settings. |
class About { |
- /** |
- * Information about supported additional roles per file type. The most |
- * specific type takes precedence. |
- */ |
+ /// Information about supported additional roles per file type. The most |
+ /// specific type takes precedence. |
core.List<AboutAdditionalRoleInfo> additionalRoleInfo; |
- /** |
- * The domain sharing policy for the current user. Possible values are: |
- * - allowed |
- * - allowedWithWarning |
- * - incomingOnly |
- * - disallowed |
- */ |
+ |
+ /// The domain sharing policy for the current user. Possible values are: |
+ /// - allowed |
+ /// - allowedWithWarning |
+ /// - incomingOnly |
+ /// - disallowed |
core.String domainSharingPolicy; |
- /** The ETag of the item. */ |
+ |
+ /// The ETag of the item. |
core.String etag; |
- /** The allowable export formats. */ |
+ |
+ /// The allowable export formats. |
core.List<AboutExportFormats> exportFormats; |
- /** List of additional features enabled on this account. */ |
+ |
+ /// List of additional features enabled on this account. |
core.List<AboutFeatures> features; |
- /** The palette of allowable folder colors as RGB hex strings. */ |
+ |
+ /// The palette of allowable folder colors as RGB hex strings. |
core.List<core.String> folderColorPalette; |
- /** The allowable import formats. */ |
+ |
+ /// The allowable import formats. |
core.List<AboutImportFormats> importFormats; |
- /** |
- * A boolean indicating whether the authenticated app is installed by the |
- * authenticated user. |
- */ |
+ |
+ /// A boolean indicating whether the authenticated app is installed by the |
+ /// authenticated user. |
core.bool isCurrentAppInstalled; |
- /** This is always drive#about. */ |
+ |
+ /// This is always drive#about. |
core.String kind; |
- /** |
- * The user's language or locale code, as defined by BCP 47, with some |
- * extensions from Unicode's LDML format |
- * (http://www.unicode.org/reports/tr35/). |
- */ |
+ |
+ /// The user's language or locale code, as defined by BCP 47, with some |
+ /// extensions from Unicode's LDML format |
+ /// (http://www.unicode.org/reports/tr35/). |
core.String languageCode; |
- /** The largest change id. */ |
+ |
+ /// The largest change id. |
core.String largestChangeId; |
- /** |
- * List of max upload sizes for each file type. The most specific type takes |
- * precedence. |
- */ |
+ |
+ /// List of max upload sizes for each file type. The most specific type takes |
+ /// precedence. |
core.List<AboutMaxUploadSizes> maxUploadSizes; |
- /** The name of the current user. */ |
+ |
+ /// The name of the current user. |
core.String name; |
- /** The current user's ID as visible in the permissions collection. */ |
+ |
+ /// The current user's ID as visible in the permissions collection. |
core.String permissionId; |
- /** The amount of storage quota used by different Google services. */ |
+ |
+ /// The amount of storage quota used by different Google services. |
core.List<AboutQuotaBytesByService> quotaBytesByService; |
- /** The total number of quota bytes. */ |
+ |
+ /// The total number of quota bytes. |
core.String quotaBytesTotal; |
- /** The number of quota bytes used by Google Drive. */ |
+ |
+ /// The number of quota bytes used by Google Drive. |
core.String quotaBytesUsed; |
- /** |
- * The number of quota bytes used by all Google apps (Drive, Picasa, etc.). |
- */ |
+ |
+ /// The number of quota bytes used by all Google apps (Drive, Picasa, etc.). |
core.String quotaBytesUsedAggregate; |
- /** The number of quota bytes used by trashed items. */ |
+ |
+ /// The number of quota bytes used by trashed items. |
core.String quotaBytesUsedInTrash; |
- /** |
- * The type of the user's storage quota. Possible values are: |
- * - LIMITED |
- * - UNLIMITED |
- */ |
+ |
+ /// The type of the user's storage quota. Possible values are: |
+ /// - LIMITED |
+ /// - UNLIMITED |
core.String quotaType; |
- /** The number of remaining change ids, limited to no more than 2500. */ |
+ |
+ /// The number of remaining change ids, limited to no more than 2500. |
core.String remainingChangeIds; |
- /** The id of the root folder. */ |
+ |
+ /// The id of the root folder. |
core.String rootFolderId; |
- /** A link back to this item. */ |
+ |
+ /// A link back to this item. |
core.String selfLink; |
- /** A list of themes that are supported for Team Drives. */ |
+ |
+ /// A list of themes that are supported for Team Drives. |
core.List<AboutTeamDriveThemes> teamDriveThemes; |
- /** The authenticated user. */ |
+ |
+ /// The authenticated user. |
User user; |
About(); |
About.fromJson(core.Map _json) { |
if (_json.containsKey("additionalRoleInfo")) { |
- additionalRoleInfo = _json["additionalRoleInfo"].map((value) => new AboutAdditionalRoleInfo.fromJson(value)).toList(); |
+ additionalRoleInfo = _json["additionalRoleInfo"] |
+ .map((value) => new AboutAdditionalRoleInfo.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("domainSharingPolicy")) { |
domainSharingPolicy = _json["domainSharingPolicy"]; |
@@ -4391,16 +4452,22 @@ class About { |
etag = _json["etag"]; |
} |
if (_json.containsKey("exportFormats")) { |
- exportFormats = _json["exportFormats"].map((value) => new AboutExportFormats.fromJson(value)).toList(); |
+ exportFormats = _json["exportFormats"] |
+ .map((value) => new AboutExportFormats.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("features")) { |
- features = _json["features"].map((value) => new AboutFeatures.fromJson(value)).toList(); |
+ features = _json["features"] |
+ .map((value) => new AboutFeatures.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("folderColorPalette")) { |
folderColorPalette = _json["folderColorPalette"]; |
} |
if (_json.containsKey("importFormats")) { |
- importFormats = _json["importFormats"].map((value) => new AboutImportFormats.fromJson(value)).toList(); |
+ importFormats = _json["importFormats"] |
+ .map((value) => new AboutImportFormats.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("isCurrentAppInstalled")) { |
isCurrentAppInstalled = _json["isCurrentAppInstalled"]; |
@@ -4415,7 +4482,9 @@ class About { |
largestChangeId = _json["largestChangeId"]; |
} |
if (_json.containsKey("maxUploadSizes")) { |
- maxUploadSizes = _json["maxUploadSizes"].map((value) => new AboutMaxUploadSizes.fromJson(value)).toList(); |
+ maxUploadSizes = _json["maxUploadSizes"] |
+ .map((value) => new AboutMaxUploadSizes.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("name")) { |
name = _json["name"]; |
@@ -4424,7 +4493,9 @@ class About { |
permissionId = _json["permissionId"]; |
} |
if (_json.containsKey("quotaBytesByService")) { |
- quotaBytesByService = _json["quotaBytesByService"].map((value) => new AboutQuotaBytesByService.fromJson(value)).toList(); |
+ quotaBytesByService = _json["quotaBytesByService"] |
+ .map((value) => new AboutQuotaBytesByService.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("quotaBytesTotal")) { |
quotaBytesTotal = _json["quotaBytesTotal"]; |
@@ -4451,7 +4522,9 @@ class About { |
selfLink = _json["selfLink"]; |
} |
if (_json.containsKey("teamDriveThemes")) { |
- teamDriveThemes = _json["teamDriveThemes"].map((value) => new AboutTeamDriveThemes.fromJson(value)).toList(); |
+ teamDriveThemes = _json["teamDriveThemes"] |
+ .map((value) => new AboutTeamDriveThemes.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("user")) { |
user = new User.fromJson(_json["user"]); |
@@ -4459,9 +4532,11 @@ class About { |
} |
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 (additionalRoleInfo != null) { |
- _json["additionalRoleInfo"] = additionalRoleInfo.map((value) => (value).toJson()).toList(); |
+ _json["additionalRoleInfo"] = |
+ additionalRoleInfo.map((value) => (value).toJson()).toList(); |
} |
if (domainSharingPolicy != null) { |
_json["domainSharingPolicy"] = domainSharingPolicy; |
@@ -4470,7 +4545,8 @@ class About { |
_json["etag"] = etag; |
} |
if (exportFormats != null) { |
- _json["exportFormats"] = exportFormats.map((value) => (value).toJson()).toList(); |
+ _json["exportFormats"] = |
+ exportFormats.map((value) => (value).toJson()).toList(); |
} |
if (features != null) { |
_json["features"] = features.map((value) => (value).toJson()).toList(); |
@@ -4479,7 +4555,8 @@ class About { |
_json["folderColorPalette"] = folderColorPalette; |
} |
if (importFormats != null) { |
- _json["importFormats"] = importFormats.map((value) => (value).toJson()).toList(); |
+ _json["importFormats"] = |
+ importFormats.map((value) => (value).toJson()).toList(); |
} |
if (isCurrentAppInstalled != null) { |
_json["isCurrentAppInstalled"] = isCurrentAppInstalled; |
@@ -4494,7 +4571,8 @@ class About { |
_json["largestChangeId"] = largestChangeId; |
} |
if (maxUploadSizes != null) { |
- _json["maxUploadSizes"] = maxUploadSizes.map((value) => (value).toJson()).toList(); |
+ _json["maxUploadSizes"] = |
+ maxUploadSizes.map((value) => (value).toJson()).toList(); |
} |
if (name != null) { |
_json["name"] = name; |
@@ -4503,7 +4581,8 @@ class About { |
_json["permissionId"] = permissionId; |
} |
if (quotaBytesByService != null) { |
- _json["quotaBytesByService"] = quotaBytesByService.map((value) => (value).toJson()).toList(); |
+ _json["quotaBytesByService"] = |
+ quotaBytesByService.map((value) => (value).toJson()).toList(); |
} |
if (quotaBytesTotal != null) { |
_json["quotaBytesTotal"] = quotaBytesTotal; |
@@ -4530,7 +4609,8 @@ class About { |
_json["selfLink"] = selfLink; |
} |
if (teamDriveThemes != null) { |
- _json["teamDriveThemes"] = teamDriveThemes.map((value) => (value).toJson()).toList(); |
+ _json["teamDriveThemes"] = |
+ teamDriveThemes.map((value) => (value).toJson()).toList(); |
} |
if (user != null) { |
_json["user"] = (user).toJson(); |
@@ -4540,16 +4620,16 @@ class About { |
} |
class AppIcons { |
- /** |
- * Category of the icon. Allowed values are: |
- * - application - icon for the application |
- * - document - icon for a file associated with the app |
- * - documentShared - icon for a shared file associated with the app |
- */ |
+ /// Category of the icon. Allowed values are: |
+ /// - application - icon for the application |
+ /// - document - icon for a file associated with the app |
+ /// - documentShared - icon for a shared file associated with the app |
core.String category; |
- /** URL for the icon. */ |
+ |
+ /// URL for the icon. |
core.String iconUrl; |
- /** Size of the icon. Represented as the maximum of the width and height. */ |
+ |
+ /// Size of the icon. Represented as the maximum of the width and height. |
core.int size; |
AppIcons(); |
@@ -4567,7 +4647,8 @@ class AppIcons { |
} |
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 (category != null) { |
_json["category"] = category; |
} |
@@ -4581,76 +4662,87 @@ class AppIcons { |
} |
} |
-/** |
- * The apps resource provides a list of the apps that a user has installed, with |
- * information about each app's supported MIME types, file extensions, and other |
- * details. |
- */ |
+/// The apps resource provides a list of the apps that a user has installed, |
+/// with information about each app's supported MIME types, file extensions, |
+/// and other details. |
class App { |
- /** Whether the app is authorized to access data on the user's Drive. */ |
+ /// Whether the app is authorized to access data on the user's Drive. |
core.bool authorized; |
- /** |
- * The template url to create a new file with this app in a given folder. The |
- * template will contain {folderId} to be replaced by the folder to create the |
- * new file in. |
- */ |
+ |
+ /// The template url to create a new file with this app in a given folder. |
+ /// The template will contain {folderId} to be replaced by the folder to |
+ /// create the new file in. |
core.String createInFolderTemplate; |
- /** The url to create a new file with this app. */ |
+ |
+ /// The url to create a new file with this app. |
core.String createUrl; |
- /** |
- * Whether the app has drive-wide scope. An app with drive-wide scope can |
- * access all files in the user's drive. |
- */ |
+ |
+ /// Whether the app has drive-wide scope. An app with drive-wide scope can |
+ /// access all files in the user's drive. |
core.bool hasDriveWideScope; |
- /** The various icons for the app. */ |
+ |
+ /// The various icons for the app. |
core.List<AppIcons> icons; |
- /** The ID of the app. */ |
+ |
+ /// The ID of the app. |
core.String id; |
- /** Whether the app is installed. */ |
+ |
+ /// Whether the app is installed. |
core.bool installed; |
- /** This is always drive#app. */ |
+ |
+ /// This is always drive#app. |
core.String kind; |
- /** A long description of the app. */ |
+ |
+ /// A long description of the app. |
core.String longDescription; |
- /** The name of the app. */ |
+ |
+ /// The name of the app. |
core.String name; |
- /** |
- * The type of object this app creates (e.g. Chart). If empty, the app name |
- * should be used instead. |
- */ |
+ |
+ /// The type of object this app creates (e.g. Chart). If empty, the app name |
+ /// should be used instead. |
core.String objectType; |
- /** |
- * The template url for opening files with this app. The template will contain |
- * {ids} and/or {exportIds} to be replaced by the actual file ids. See Open |
- * Files for the full documentation. |
- */ |
+ |
+ /// The template url for opening files with this app. The template will |
+ /// contain {ids} and/or {exportIds} to be replaced by the actual file ids. |
+ /// See Open Files for the full documentation. |
core.String openUrlTemplate; |
- /** The list of primary file extensions. */ |
+ |
+ /// The list of primary file extensions. |
core.List<core.String> primaryFileExtensions; |
- /** The list of primary mime types. */ |
+ |
+ /// The list of primary mime types. |
core.List<core.String> primaryMimeTypes; |
- /** The ID of the product listing for this app. */ |
+ |
+ /// The ID of the product listing for this app. |
core.String productId; |
- /** A link to the product listing for this app. */ |
+ |
+ /// A link to the product listing for this app. |
core.String productUrl; |
- /** The list of secondary file extensions. */ |
+ |
+ /// The list of secondary file extensions. |
core.List<core.String> secondaryFileExtensions; |
- /** The list of secondary mime types. */ |
+ |
+ /// The list of secondary mime types. |
core.List<core.String> secondaryMimeTypes; |
- /** A short description of the app. */ |
+ |
+ /// A short description of the app. |
core.String shortDescription; |
- /** Whether this app supports creating new objects. */ |
+ |
+ /// Whether this app supports creating new objects. |
core.bool supportsCreate; |
- /** Whether this app supports importing Google Docs. */ |
+ |
+ /// Whether this app supports importing Google Docs. |
core.bool supportsImport; |
- /** Whether this app supports opening more than one file. */ |
+ |
+ /// Whether this app supports opening more than one file. |
core.bool supportsMultiOpen; |
- /** Whether this app supports creating new files when offline. */ |
+ |
+ /// Whether this app supports creating new files when offline. |
core.bool supportsOfflineCreate; |
- /** |
- * Whether the app is selected as the default handler for the types it |
- * supports. |
- */ |
+ |
+ /// Whether the app is selected as the default handler for the types it |
+ /// supports. |
core.bool useByDefault; |
App(); |
@@ -4669,7 +4761,8 @@ class App { |
hasDriveWideScope = _json["hasDriveWideScope"]; |
} |
if (_json.containsKey("icons")) { |
- icons = _json["icons"].map((value) => new AppIcons.fromJson(value)).toList(); |
+ icons = |
+ _json["icons"].map((value) => new AppIcons.fromJson(value)).toList(); |
} |
if (_json.containsKey("id")) { |
id = _json["id"]; |
@@ -4731,7 +4824,8 @@ class App { |
} |
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 (authorized != null) { |
_json["authorized"] = authorized; |
} |
@@ -4808,23 +4902,23 @@ class App { |
} |
} |
-/** |
- * A list of third-party applications which the user has installed or given |
- * access to Google Drive. |
- */ |
+/// A list of third-party applications which the user has installed or given |
+/// access to Google Drive. |
class AppList { |
- /** |
- * List of app IDs that the user has specified to use by default. The list is |
- * in reverse-priority order (lowest to highest). |
- */ |
+ /// List of app IDs that the user has specified to use by default. The list |
+ /// is in reverse-priority order (lowest to highest). |
core.List<core.String> defaultAppIds; |
- /** The ETag of the list. */ |
+ |
+ /// The ETag of the list. |
core.String etag; |
- /** The list of apps. */ |
+ |
+ /// The list of apps. |
core.List<App> items; |
- /** This is always drive#appList. */ |
+ |
+ /// This is always drive#appList. |
core.String kind; |
- /** A link back to this list. */ |
+ |
+ /// A link back to this list. |
core.String selfLink; |
AppList(); |
@@ -4848,7 +4942,8 @@ class AppList { |
} |
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 (defaultAppIds != null) { |
_json["defaultAppIds"] = defaultAppIds; |
} |
@@ -4868,37 +4963,40 @@ class AppList { |
} |
} |
-/** Representation of a change to a file or Team Drive. */ |
+/// Representation of a change to a file or Team Drive. |
class Change { |
- /** |
- * Whether the file or Team Drive has been removed from this list of changes, |
- * for example by deletion or loss of access. |
- */ |
+ /// Whether the file or Team Drive has been removed from this list of |
+ /// changes, for example by deletion or loss of access. |
core.bool deleted; |
- /** |
- * The updated state of the file. Present if the type is file and the file has |
- * not been removed from this list of changes. |
- */ |
+ |
+ /// The updated state of the file. Present if the type is file and the file |
+ /// has not been removed from this list of changes. |
File file; |
- /** The ID of the file associated with this change. */ |
+ |
+ /// The ID of the file associated with this change. |
core.String fileId; |
- /** The ID of the change. */ |
+ |
+ /// The ID of the change. |
core.String id; |
- /** This is always drive#change. */ |
+ |
+ /// This is always drive#change. |
core.String kind; |
- /** The time of this modification. */ |
+ |
+ /// The time of this modification. |
core.DateTime modificationDate; |
- /** A link back to this change. */ |
+ |
+ /// A link back to this change. |
core.String selfLink; |
- /** |
- * The updated state of the Team Drive. Present if the type is teamDrive, the |
- * user is still a member of the Team Drive, and the Team Drive has not been |
- * deleted. |
- */ |
+ |
+ /// The updated state of the Team Drive. Present if the type is teamDrive, |
+ /// the user is still a member of the Team Drive, and the Team Drive has not |
+ /// been deleted. |
TeamDrive teamDrive; |
- /** The ID of the Team Drive associated with this change. */ |
+ |
+ /// The ID of the Team Drive associated with this change. |
core.String teamDriveId; |
- /** The type of the change. Possible values are file and teamDrive. */ |
+ |
+ /// The type of the change. Possible values are file and teamDrive. |
core.String type; |
Change(); |
@@ -4937,7 +5035,8 @@ class Change { |
} |
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 (deleted != null) { |
_json["deleted"] = deleted; |
} |
@@ -4972,34 +5071,35 @@ class Change { |
} |
} |
-/** A list of changes for a user. */ |
+/// A list of changes for a user. |
class ChangeList { |
- /** The ETag of the list. */ |
+ /// The ETag of the list. |
core.String etag; |
- /** |
- * The list of changes. If nextPageToken is populated, then this list may be |
- * incomplete and an additional page of results should be fetched. |
- */ |
+ |
+ /// The list of changes. If nextPageToken is populated, then this list may be |
+ /// incomplete and an additional page of results should be fetched. |
core.List<Change> items; |
- /** This is always drive#changeList. */ |
+ |
+ /// This is always drive#changeList. |
core.String kind; |
- /** The current largest change ID. */ |
+ |
+ /// The current largest change ID. |
core.String largestChangeId; |
- /** |
- * The starting page token for future changes. This will be present only if |
- * the end of the current changes list has been reached. |
- */ |
+ |
+ /// The starting page token for future changes. This will be present only if |
+ /// the end of the current changes list has been reached. |
core.String newStartPageToken; |
- /** A link to the next page of changes. */ |
+ |
+ /// A link to the next page of changes. |
core.String nextLink; |
- /** |
- * The page token for the next page of changes. This will be absent if the end |
- * of the changes list has been reached. If the token is rejected for any |
- * reason, it should be discarded, and pagination should be restarted from the |
- * first page of results. |
- */ |
+ |
+ /// The page token for the next page of changes. This will be absent if the |
+ /// end of the changes list has been reached. If the token is rejected for |
+ /// any reason, it should be discarded, and pagination should be restarted |
+ /// from the first page of results. |
core.String nextPageToken; |
- /** A link back to this list. */ |
+ |
+ /// A link back to this list. |
core.String selfLink; |
ChangeList(); |
@@ -5009,7 +5109,8 @@ class ChangeList { |
etag = _json["etag"]; |
} |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new Change.fromJson(value)).toList(); |
+ items = |
+ _json["items"].map((value) => new Change.fromJson(value)).toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -5032,7 +5133,8 @@ class ChangeList { |
} |
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 (etag != null) { |
_json["etag"] = etag; |
} |
@@ -5061,39 +5163,40 @@ class ChangeList { |
} |
} |
-/** An notification channel used to watch for resource changes. */ |
+/// An notification channel used to watch for resource changes. |
class Channel { |
- /** The address where notifications are delivered for this channel. */ |
+ /// The address where notifications are delivered for this channel. |
core.String address; |
- /** |
- * Date and time of notification channel expiration, expressed as a Unix |
- * timestamp, in milliseconds. Optional. |
- */ |
+ |
+ /// Date and time of notification channel expiration, expressed as a Unix |
+ /// timestamp, in milliseconds. Optional. |
core.String expiration; |
- /** A UUID or similar unique string that identifies this channel. */ |
+ |
+ /// A UUID or similar unique string that identifies this channel. |
core.String id; |
- /** |
- * Identifies this as a notification channel used to watch for changes to a |
- * resource. Value: the fixed string "api#channel". |
- */ |
+ |
+ /// Identifies this as a notification channel used to watch for changes to a |
+ /// resource. Value: the fixed string "api#channel". |
core.String kind; |
- /** Additional parameters controlling delivery channel behavior. Optional. */ |
+ |
+ /// Additional parameters controlling delivery channel behavior. Optional. |
core.Map<core.String, core.String> params; |
- /** A Boolean value to indicate whether payload is wanted. Optional. */ |
+ |
+ /// A Boolean value to indicate whether payload is wanted. Optional. |
core.bool payload; |
- /** |
- * An opaque ID that identifies the resource being watched on this channel. |
- * Stable across different API versions. |
- */ |
+ |
+ /// An opaque ID that identifies the resource being watched on this channel. |
+ /// Stable across different API versions. |
core.String resourceId; |
- /** A version-specific identifier for the watched resource. */ |
+ |
+ /// A version-specific identifier for the watched resource. |
core.String resourceUri; |
- /** |
- * An arbitrary string delivered to the target address with each notification |
- * delivered over this channel. Optional. |
- */ |
+ |
+ /// An arbitrary string delivered to the target address with each |
+ /// notification delivered over this channel. Optional. |
core.String token; |
- /** The type of delivery mechanism used for this channel. */ |
+ |
+ /// The type of delivery mechanism used for this channel. |
core.String type; |
Channel(); |
@@ -5132,7 +5235,8 @@ class Channel { |
} |
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 (address != null) { |
_json["address"] = address; |
} |
@@ -5167,27 +5271,28 @@ class Channel { |
} |
} |
-/** A list of children of a file. */ |
+/// A list of children of a file. |
class ChildList { |
- /** The ETag of the list. */ |
+ /// The ETag of the list. |
core.String etag; |
- /** |
- * The list of children. If nextPageToken is populated, then this list may be |
- * incomplete and an additional page of results should be fetched. |
- */ |
+ |
+ /// The list of children. If nextPageToken is populated, then this list may |
+ /// be incomplete and an additional page of results should be fetched. |
core.List<ChildReference> items; |
- /** This is always drive#childList. */ |
+ |
+ /// This is always drive#childList. |
core.String kind; |
- /** A link to the next page of children. */ |
+ |
+ /// A link to the next page of children. |
core.String nextLink; |
- /** |
- * The page token for the next page of children. This will be absent if the |
- * end of the children list has been reached. If the token is rejected for any |
- * reason, it should be discarded, and pagination should be restarted from the |
- * first page of results. |
- */ |
+ |
+ /// The page token for the next page of children. This will be absent if the |
+ /// end of the children list has been reached. If the token is rejected for |
+ /// any reason, it should be discarded, and pagination should be restarted |
+ /// from the first page of results. |
core.String nextPageToken; |
- /** A link back to this list. */ |
+ |
+ /// A link back to this list. |
core.String selfLink; |
ChildList(); |
@@ -5197,7 +5302,9 @@ class ChildList { |
etag = _json["etag"]; |
} |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new ChildReference.fromJson(value)).toList(); |
+ items = _json["items"] |
+ .map((value) => new ChildReference.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -5214,7 +5321,8 @@ class ChildList { |
} |
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 (etag != null) { |
_json["etag"] = etag; |
} |
@@ -5237,15 +5345,18 @@ class ChildList { |
} |
} |
-/** A reference to a folder's child. */ |
+/// A reference to a folder's child. |
class ChildReference { |
- /** A link to the child. */ |
+ /// A link to the child. |
core.String childLink; |
- /** The ID of the child. */ |
+ |
+ /// The ID of the child. |
core.String id; |
- /** This is always drive#childReference. */ |
+ |
+ /// This is always drive#childReference. |
core.String kind; |
- /** A link back to this reference. */ |
+ |
+ /// A link back to this reference. |
core.String selfLink; |
ChildReference(); |
@@ -5266,7 +5377,8 @@ class ChildReference { |
} |
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 (childLink != null) { |
_json["childLink"] = childLink; |
} |
@@ -5283,15 +5395,14 @@ class ChildReference { |
} |
} |
-/** The context of the file which is being commented on. */ |
+/// The context of the file which is being commented on. |
class CommentContext { |
- /** The MIME type of the context snippet. */ |
+ /// The MIME type of the context snippet. |
core.String type; |
- /** |
- * Data representation of the segment of the file being commented on. In the |
- * case of a text file for example, this would be the actual text that the |
- * comment is about. |
- */ |
+ |
+ /// Data representation of the segment of the file being commented on. In the |
+ /// case of a text file for example, this would be the actual text that the |
+ /// comment is about. |
core.String value; |
CommentContext(); |
@@ -5306,7 +5417,8 @@ class CommentContext { |
} |
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 (type != null) { |
_json["type"] = type; |
} |
@@ -5317,53 +5429,60 @@ class CommentContext { |
} |
} |
-/** A comment on a file in Google Drive. */ |
+/// A comment on a file in Google Drive. |
class Comment { |
- /** |
- * A region of the document represented as a JSON string. See anchor |
- * documentation for details on how to define and interpret anchor properties. |
- */ |
+ /// A region of the document represented as a JSON string. See anchor |
+ /// documentation for details on how to define and interpret anchor |
+ /// properties. |
core.String anchor; |
- /** The user who wrote this comment. */ |
+ |
+ /// The user who wrote this comment. |
User author; |
- /** The ID of the comment. */ |
+ |
+ /// The ID of the comment. |
core.String commentId; |
- /** |
- * The plain text content used to create this comment. This is not HTML safe |
- * and should only be used as a starting point to make edits to a comment's |
- * content. |
- */ |
+ |
+ /// The plain text content used to create this comment. This is not HTML safe |
+ /// and should only be used as a starting point to make edits to a comment's |
+ /// content. |
core.String content; |
- /** The context of the file which is being commented on. */ |
+ |
+ /// The context of the file which is being commented on. |
CommentContext context; |
- /** The date when this comment was first created. */ |
+ |
+ /// The date when this comment was first created. |
core.DateTime createdDate; |
- /** |
- * Whether this comment has been deleted. If a comment has been deleted the |
- * content will be cleared and this will only represent a comment that once |
- * existed. |
- */ |
+ |
+ /// Whether this comment has been deleted. If a comment has been deleted the |
+ /// content will be cleared and this will only represent a comment that once |
+ /// existed. |
core.bool deleted; |
- /** The file which this comment is addressing. */ |
+ |
+ /// The file which this comment is addressing. |
core.String fileId; |
- /** The title of the file which this comment is addressing. */ |
+ |
+ /// The title of the file which this comment is addressing. |
core.String fileTitle; |
- /** HTML formatted content for this comment. */ |
+ |
+ /// HTML formatted content for this comment. |
core.String htmlContent; |
- /** This is always drive#comment. */ |
+ |
+ /// This is always drive#comment. |
core.String kind; |
- /** The date when this comment or any of its replies were last modified. */ |
+ |
+ /// The date when this comment or any of its replies were last modified. |
core.DateTime modifiedDate; |
- /** Replies to this post. */ |
+ |
+ /// Replies to this post. |
core.List<CommentReply> replies; |
- /** A link back to this comment. */ |
+ |
+ /// A link back to this comment. |
core.String selfLink; |
- /** |
- * The status of this comment. Status can be changed by posting a reply to a |
- * comment with the desired status. |
- * - "open" - The comment is still open. |
- * - "resolved" - The comment has been resolved by one of its replies. |
- */ |
+ |
+ /// The status of this comment. Status can be changed by posting a reply to a |
+ /// comment with the desired status. |
+ /// - "open" - The comment is still open. |
+ /// - "resolved" - The comment has been resolved by one of its replies. |
core.String status; |
Comment(); |
@@ -5406,7 +5525,9 @@ class Comment { |
modifiedDate = core.DateTime.parse(_json["modifiedDate"]); |
} |
if (_json.containsKey("replies")) { |
- replies = _json["replies"].map((value) => new CommentReply.fromJson(value)).toList(); |
+ replies = _json["replies"] |
+ .map((value) => new CommentReply.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("selfLink")) { |
selfLink = _json["selfLink"]; |
@@ -5417,7 +5538,8 @@ class Comment { |
} |
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 (anchor != null) { |
_json["anchor"] = anchor; |
} |
@@ -5467,32 +5589,33 @@ class Comment { |
} |
} |
-/** A list of comments on a file in Google Drive. */ |
+/// A list of comments on a file in Google Drive. |
class CommentList { |
- /** |
- * The list of comments. If nextPageToken is populated, then this list may be |
- * incomplete and an additional page of results should be fetched. |
- */ |
+ /// The list of comments. If nextPageToken is populated, then this list may |
+ /// be incomplete and an additional page of results should be fetched. |
core.List<Comment> items; |
- /** This is always drive#commentList. */ |
+ |
+ /// This is always drive#commentList. |
core.String kind; |
- /** A link to the next page of comments. */ |
+ |
+ /// A link to the next page of comments. |
core.String nextLink; |
- /** |
- * The page token for the next page of comments. This will be absent if the |
- * end of the comments list has been reached. If the token is rejected for any |
- * reason, it should be discarded, and pagination should be restarted from the |
- * first page of results. |
- */ |
+ |
+ /// The page token for the next page of comments. This will be absent if the |
+ /// end of the comments list has been reached. If the token is rejected for |
+ /// any reason, it should be discarded, and pagination should be restarted |
+ /// from the first page of results. |
core.String nextPageToken; |
- /** A link back to this list. */ |
+ |
+ /// A link back to this list. |
core.String selfLink; |
CommentList(); |
CommentList.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new Comment.fromJson(value)).toList(); |
+ items = |
+ _json["items"].map((value) => new Comment.fromJson(value)).toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -5509,7 +5632,8 @@ class CommentList { |
} |
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 (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -5529,39 +5653,42 @@ class CommentList { |
} |
} |
-/** A comment on a file in Google Drive. */ |
+/// A comment on a file in Google Drive. |
class CommentReply { |
- /** The user who wrote this reply. */ |
+ /// The user who wrote this reply. |
User author; |
- /** |
- * The plain text content used to create this reply. This is not HTML safe and |
- * should only be used as a starting point to make edits to a reply's content. |
- * This field is required on inserts if no verb is specified (resolve/reopen). |
- */ |
+ |
+ /// The plain text content used to create this reply. This is not HTML safe |
+ /// and should only be used as a starting point to make edits to a reply's |
+ /// content. This field is required on inserts if no verb is specified |
+ /// (resolve/reopen). |
core.String content; |
- /** The date when this reply was first created. */ |
+ |
+ /// The date when this reply was first created. |
core.DateTime createdDate; |
- /** |
- * Whether this reply has been deleted. If a reply has been deleted the |
- * content will be cleared and this will only represent a reply that once |
- * existed. |
- */ |
+ |
+ /// Whether this reply has been deleted. If a reply has been deleted the |
+ /// content will be cleared and this will only represent a reply that once |
+ /// existed. |
core.bool deleted; |
- /** HTML formatted content for this reply. */ |
+ |
+ /// HTML formatted content for this reply. |
core.String htmlContent; |
- /** This is always drive#commentReply. */ |
+ |
+ /// This is always drive#commentReply. |
core.String kind; |
- /** The date when this reply was last modified. */ |
+ |
+ /// The date when this reply was last modified. |
core.DateTime modifiedDate; |
- /** The ID of the reply. */ |
+ |
+ /// The ID of the reply. |
core.String replyId; |
- /** |
- * The action this reply performed to the parent comment. When creating a new |
- * reply this is the action to be perform to the parent comment. Possible |
- * values are: |
- * - "resolve" - To resolve a comment. |
- * - "reopen" - To reopen (un-resolve) a comment. |
- */ |
+ |
+ /// The action this reply performed to the parent comment. When creating a |
+ /// new reply this is the action to be perform to the parent comment. |
+ /// Possible values are: |
+ /// - "resolve" - To resolve a comment. |
+ /// - "reopen" - To reopen (un-resolve) a comment. |
core.String verb; |
CommentReply(); |
@@ -5597,7 +5724,8 @@ class CommentReply { |
} |
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 (author != null) { |
_json["author"] = (author).toJson(); |
} |
@@ -5629,32 +5757,34 @@ class CommentReply { |
} |
} |
-/** A list of replies to a comment on a file in Google Drive. */ |
+/// A list of replies to a comment on a file in Google Drive. |
class CommentReplyList { |
- /** |
- * The list of replies. If nextPageToken is populated, then this list may be |
- * incomplete and an additional page of results should be fetched. |
- */ |
+ /// The list of replies. If nextPageToken is populated, then this list may be |
+ /// incomplete and an additional page of results should be fetched. |
core.List<CommentReply> items; |
- /** This is always drive#commentReplyList. */ |
+ |
+ /// This is always drive#commentReplyList. |
core.String kind; |
- /** A link to the next page of replies. */ |
+ |
+ /// A link to the next page of replies. |
core.String nextLink; |
- /** |
- * The page token for the next page of replies. This will be absent if the end |
- * of the replies list has been reached. If the token is rejected for any |
- * reason, it should be discarded, and pagination should be restarted from the |
- * first page of results. |
- */ |
+ |
+ /// The page token for the next page of replies. This will be absent if the |
+ /// end of the replies list has been reached. If the token is rejected for |
+ /// any reason, it should be discarded, and pagination should be restarted |
+ /// from the first page of results. |
core.String nextPageToken; |
- /** A link back to this list. */ |
+ |
+ /// A link back to this list. |
core.String selfLink; |
CommentReplyList(); |
CommentReplyList.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new CommentReply.fromJson(value)).toList(); |
+ items = _json["items"] |
+ .map((value) => new CommentReply.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -5671,7 +5801,8 @@ class CommentReplyList { |
} |
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 (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -5691,77 +5822,72 @@ class CommentReplyList { |
} |
} |
-/** |
- * Capabilities the current user has on this file. Each capability corresponds |
- * to a fine-grained action that a user may take. |
- */ |
+/// Capabilities the current user has on this file. Each capability corresponds |
+/// to a fine-grained action that a user may take. |
class FileCapabilities { |
- /** |
- * Whether the current user can add children to this folder. This is always |
- * false when the item is not a folder. |
- */ |
+ /// Whether the current user can add children to this folder. This is always |
+ /// false when the item is not a folder. |
core.bool canAddChildren; |
- /** |
- * Whether the current user can change the restricted download label of this |
- * file. |
- */ |
+ |
+ /// Whether the current user can change the restricted download label of this |
+ /// file. |
core.bool canChangeRestrictedDownload; |
- /** Whether the current user can comment on this file. */ |
+ |
+ /// Whether the current user can comment on this file. |
core.bool canComment; |
- /** |
- * Whether the current user can copy this file. For a Team Drive item, whether |
- * the current user can copy non-folder descendants of this item, or this item |
- * itself if it is not a folder. |
- */ |
+ |
+ /// Whether the current user can copy this file. For a Team Drive item, |
+ /// whether the current user can copy non-folder descendants of this item, or |
+ /// this item itself if it is not a folder. |
core.bool canCopy; |
- /** Whether the current user can delete this file. */ |
+ |
+ /// Whether the current user can delete this file. |
core.bool canDelete; |
- /** Whether the current user can download this file. */ |
+ |
+ /// Whether the current user can download this file. |
core.bool canDownload; |
- /** Whether the current user can edit this file. */ |
+ |
+ /// Whether the current user can edit this file. |
core.bool canEdit; |
- /** |
- * Whether the current user can list the children of this folder. This is |
- * always false when the item is not a folder. |
- */ |
+ |
+ /// Whether the current user can list the children of this folder. This is |
+ /// always false when the item is not a folder. |
core.bool canListChildren; |
- /** |
- * Whether the current user can move this item into a Team Drive. If the item |
- * is in a Team Drive, this field is equivalent to canMoveTeamDriveItem. |
- */ |
+ |
+ /// Whether the current user can move this item into a Team Drive. If the |
+ /// item is in a Team Drive, this field is equivalent to |
+ /// canMoveTeamDriveItem. |
core.bool canMoveItemIntoTeamDrive; |
- /** |
- * Whether the current user can move this Team Drive item by changing its |
- * parent. Note that a request to change the parent for this item may still |
- * fail depending on the new parent that is being added. Only populated for |
- * Team Drive files. |
- */ |
+ |
+ /// Whether the current user can move this Team Drive item by changing its |
+ /// parent. Note that a request to change the parent for this item may still |
+ /// fail depending on the new parent that is being added. Only populated for |
+ /// Team Drive files. |
core.bool canMoveTeamDriveItem; |
- /** |
- * Whether the current user can read the revisions resource of this file. For |
- * a Team Drive item, whether revisions of non-folder descendants of this |
- * item, or this item itself if it is not a folder, can be read. |
- */ |
+ |
+ /// Whether the current user can read the revisions resource of this file. |
+ /// For a Team Drive item, whether revisions of non-folder descendants of |
+ /// this item, or this item itself if it is not a folder, can be read. |
core.bool canReadRevisions; |
- /** |
- * Whether the current user can read the Team Drive to which this file |
- * belongs. Only populated for Team Drive files. |
- */ |
+ |
+ /// Whether the current user can read the Team Drive to which this file |
+ /// belongs. Only populated for Team Drive files. |
core.bool canReadTeamDrive; |
- /** |
- * Whether the current user can remove children from this folder. This is |
- * always false when the item is not a folder. |
- */ |
+ |
+ /// Whether the current user can remove children from this folder. This is |
+ /// always false when the item is not a folder. |
core.bool canRemoveChildren; |
- /** Whether the current user can rename this file. */ |
+ |
+ /// Whether the current user can rename this file. |
core.bool canRename; |
- /** |
- * Whether the current user can modify the sharing settings for this file. |
- */ |
+ |
+ /// Whether the current user can modify the sharing settings for this file. |
core.bool canShare; |
- /** Whether the current user can move this file to trash. */ |
+ |
+ /// Whether the current user can move this file to trash. |
core.bool canTrash; |
- /** Whether the current user can restore this file from trash. */ |
+ |
+ /// Whether the current user can restore this file from trash. |
core.bool canUntrash; |
FileCapabilities(); |
@@ -5821,7 +5947,8 @@ class FileCapabilities { |
} |
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 (canAddChildren != null) { |
_json["canAddChildren"] = canAddChildren; |
} |
@@ -5877,13 +6004,15 @@ class FileCapabilities { |
} |
} |
-/** Geographic location information stored in the image. */ |
+/// Geographic location information stored in the image. |
class FileImageMediaMetadataLocation { |
- /** The altitude stored in the image. */ |
+ /// The altitude stored in the image. |
core.double altitude; |
- /** The latitude stored in the image. */ |
+ |
+ /// The latitude stored in the image. |
core.double latitude; |
- /** The longitude stored in the image. */ |
+ |
+ /// The longitude stored in the image. |
core.double longitude; |
FileImageMediaMetadataLocation(); |
@@ -5901,7 +6030,8 @@ class FileImageMediaMetadataLocation { |
} |
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 (altitude != null) { |
_json["altitude"] = altitude; |
} |
@@ -5915,57 +6045,71 @@ class FileImageMediaMetadataLocation { |
} |
} |
-/** |
- * Metadata about image media. This will only be present for image types, and |
- * its contents will depend on what can be parsed from the image content. |
- */ |
+/// Metadata about image media. This will only be present for image types, and |
+/// its contents will depend on what can be parsed from the image content. |
class FileImageMediaMetadata { |
- /** The aperture used to create the photo (f-number). */ |
+ /// The aperture used to create the photo (f-number). |
core.double aperture; |
- /** The make of the camera used to create the photo. */ |
+ |
+ /// The make of the camera used to create the photo. |
core.String cameraMake; |
- /** The model of the camera used to create the photo. */ |
+ |
+ /// The model of the camera used to create the photo. |
core.String cameraModel; |
- /** The color space of the photo. */ |
+ |
+ /// The color space of the photo. |
core.String colorSpace; |
- /** The date and time the photo was taken (EXIF format timestamp). */ |
+ |
+ /// The date and time the photo was taken (EXIF format timestamp). |
core.String date; |
- /** The exposure bias of the photo (APEX value). */ |
+ |
+ /// The exposure bias of the photo (APEX value). |
core.double exposureBias; |
- /** The exposure mode used to create the photo. */ |
+ |
+ /// The exposure mode used to create the photo. |
core.String exposureMode; |
- /** The length of the exposure, in seconds. */ |
+ |
+ /// The length of the exposure, in seconds. |
core.double exposureTime; |
- /** Whether a flash was used to create the photo. */ |
+ |
+ /// Whether a flash was used to create the photo. |
core.bool flashUsed; |
- /** The focal length used to create the photo, in millimeters. */ |
+ |
+ /// The focal length used to create the photo, in millimeters. |
core.double focalLength; |
- /** The height of the image in pixels. */ |
+ |
+ /// The height of the image in pixels. |
core.int height; |
- /** The ISO speed used to create the photo. */ |
+ |
+ /// The ISO speed used to create the photo. |
core.int isoSpeed; |
- /** The lens used to create the photo. */ |
+ |
+ /// The lens used to create the photo. |
core.String lens; |
- /** Geographic location information stored in the image. */ |
+ |
+ /// Geographic location information stored in the image. |
FileImageMediaMetadataLocation location; |
- /** |
- * The smallest f-number of the lens at the focal length used to create the |
- * photo (APEX value). |
- */ |
+ |
+ /// The smallest f-number of the lens at the focal length used to create the |
+ /// photo (APEX value). |
core.double maxApertureValue; |
- /** The metering mode used to create the photo. */ |
+ |
+ /// The metering mode used to create the photo. |
core.String meteringMode; |
- /** |
- * The rotation in clockwise degrees from the image's original orientation. |
- */ |
+ |
+ /// The rotation in clockwise degrees from the image's original orientation. |
core.int rotation; |
- /** The type of sensor used to create the photo. */ |
+ |
+ /// The type of sensor used to create the photo. |
core.String sensor; |
- /** The distance to the subject of the photo, in meters. */ |
+ |
+ /// The distance to the subject of the photo, in meters. |
core.int subjectDistance; |
- /** The white balance mode used to create the photo. */ |
+ |
+ /// The white balance mode used to create the photo. |
core.String whiteBalance; |
- /** The width of the image in pixels. */ |
+ |
+ /// The width of the image in pixels. |
core.int width; |
FileImageMediaMetadata(); |
@@ -6037,7 +6181,8 @@ class FileImageMediaMetadata { |
} |
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 (aperture != null) { |
_json["aperture"] = aperture; |
} |
@@ -6105,9 +6250,9 @@ class FileImageMediaMetadata { |
} |
} |
-/** Indexable text attributes for the file (can only be written) */ |
+/// Indexable text attributes for the file (can only be written) |
class FileIndexableText { |
- /** The text to be indexed for this file. */ |
+ /// The text to be indexed for this file. |
core.String text; |
FileIndexableText(); |
@@ -6119,7 +6264,8 @@ class FileIndexableText { |
} |
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 (text != null) { |
_json["text"] = text; |
} |
@@ -6127,26 +6273,27 @@ class FileIndexableText { |
} |
} |
-/** A group of labels for the file. */ |
+/// A group of labels for the file. |
class FileLabels { |
- /** Deprecated. */ |
+ /// Deprecated. |
core.bool hidden; |
- /** Whether the file has been modified by this user. */ |
+ |
+ /// Whether the file has been modified by this user. |
core.bool modified; |
- /** |
- * Whether viewers and commenters are prevented from downloading, printing, |
- * and copying this file. |
- */ |
+ |
+ /// Whether viewers and commenters are prevented from downloading, printing, |
+ /// and copying this file. |
core.bool restricted; |
- /** Whether this file is starred by the user. */ |
+ |
+ /// Whether this file is starred by the user. |
core.bool starred; |
- /** |
- * Whether this file has been trashed. This label applies to all users |
- * accessing the file; however, only owners are allowed to see and untrash |
- * files. |
- */ |
+ |
+ /// Whether this file has been trashed. This label applies to all users |
+ /// accessing the file; however, only owners are allowed to see and untrash |
+ /// files. |
core.bool trashed; |
- /** Whether this file has been viewed by this user. */ |
+ |
+ /// Whether this file has been viewed by this user. |
core.bool viewed; |
FileLabels(); |
@@ -6173,7 +6320,8 @@ class FileLabels { |
} |
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 (hidden != null) { |
_json["hidden"] = hidden; |
} |
@@ -6196,24 +6344,24 @@ class FileLabels { |
} |
} |
-/** |
- * A thumbnail for the file. This will only be used if Drive cannot generate a |
- * standard thumbnail. |
- */ |
+/// A thumbnail for the file. This will only be used if Drive cannot generate a |
+/// standard thumbnail. |
class FileThumbnail { |
- /** |
- * The URL-safe Base64 encoded bytes of the thumbnail image. It should conform |
- * to RFC 4648 section 5. |
- */ |
+ /// The URL-safe Base64 encoded bytes of the thumbnail image. It should |
+ /// conform to RFC 4648 section 5. |
core.String image; |
core.List<core.int> get imageAsBytes { |
return convert_1.BASE64.decode(image); |
} |
void set imageAsBytes(core.List<core.int> _bytes) { |
- image = convert_1.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
+ image = convert_1.BASE64 |
+ .encode(_bytes) |
+ .replaceAll("/", "_") |
+ .replaceAll("+", "-"); |
} |
- /** The MIME type of the thumbnail. */ |
+ |
+ /// The MIME type of the thumbnail. |
core.String mimeType; |
FileThumbnail(); |
@@ -6228,7 +6376,8 @@ class FileThumbnail { |
} |
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 (image != null) { |
_json["image"] = image; |
} |
@@ -6239,13 +6388,15 @@ class FileThumbnail { |
} |
} |
-/** Metadata about video media. This will only be present for video types. */ |
+/// Metadata about video media. This will only be present for video types. |
class FileVideoMediaMetadata { |
- /** The duration of the video in milliseconds. */ |
+ /// The duration of the video in milliseconds. |
core.String durationMillis; |
- /** The height of the video in pixels. */ |
+ |
+ /// The height of the video in pixels. |
core.int height; |
- /** The width of the video in pixels. */ |
+ |
+ /// The width of the video in pixels. |
core.int width; |
FileVideoMediaMetadata(); |
@@ -6263,7 +6414,8 @@ class FileVideoMediaMetadata { |
} |
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 (durationMillis != null) { |
_json["durationMillis"] = durationMillis; |
} |
@@ -6277,254 +6429,257 @@ class FileVideoMediaMetadata { |
} |
} |
-/** The metadata for a file. */ |
+/// The metadata for a file. |
class File { |
- /** A link for opening the file in a relevant Google editor or viewer. */ |
+ /// A link for opening the file in a relevant Google editor or viewer. |
core.String alternateLink; |
- /** Whether this file is in the Application Data folder. */ |
+ |
+ /// Whether this file is in the Application Data folder. |
core.bool appDataContents; |
- /** Deprecated: use capabilities/canComment. */ |
+ |
+ /// Deprecated: use capabilities/canComment. |
core.bool canComment; |
- /** Deprecated: use capabilities/canReadRevisions. */ |
+ |
+ /// Deprecated: use capabilities/canReadRevisions. |
core.bool canReadRevisions; |
- /** |
- * Capabilities the current user has on this file. Each capability corresponds |
- * to a fine-grained action that a user may take. |
- */ |
+ |
+ /// Capabilities the current user has on this file. Each capability |
+ /// corresponds to a fine-grained action that a user may take. |
FileCapabilities capabilities; |
- /** Deprecated: use capabilities/canCopy. */ |
+ |
+ /// Deprecated: use capabilities/canCopy. |
core.bool copyable; |
- /** Create time for this file (formatted RFC 3339 timestamp). */ |
+ |
+ /// Create time for this file (formatted RFC 3339 timestamp). |
core.DateTime createdDate; |
- /** |
- * A link to open this file with the user's default app for this file. Only |
- * populated when the drive.apps.readonly scope is used. |
- */ |
+ |
+ /// A link to open this file with the user's default app for this file. Only |
+ /// populated when the drive.apps.readonly scope is used. |
core.String defaultOpenWithLink; |
- /** A short description of the file. */ |
+ |
+ /// A short description of the file. |
core.String description; |
core.String downloadUrl; |
- /** Deprecated: use capabilities/canEdit. */ |
+ |
+ /// Deprecated: use capabilities/canEdit. |
core.bool editable; |
- /** A link for embedding the file. */ |
+ |
+ /// A link for embedding the file. |
core.String embedLink; |
- /** ETag of the file. */ |
+ |
+ /// ETag of the file. |
core.String etag; |
- /** |
- * Whether this file has been explicitly trashed, as opposed to recursively |
- * trashed. |
- */ |
+ |
+ /// Whether this file has been explicitly trashed, as opposed to recursively |
+ /// trashed. |
core.bool explicitlyTrashed; |
- /** Links for exporting Google Docs to specific formats. */ |
+ |
+ /// Links for exporting Google Docs to specific formats. |
core.Map<core.String, core.String> exportLinks; |
- /** |
- * The final component of fullFileExtension with trailing text that does not |
- * appear to be part of the extension removed. This field is only populated |
- * for files with content stored in Drive; it is not populated for Google Docs |
- * or shortcut files. |
- */ |
+ |
+ /// The final component of fullFileExtension with trailing text that does not |
+ /// appear to be part of the extension removed. This field is only populated |
+ /// for files with content stored in Drive; it is not populated for Google |
+ /// Docs or shortcut files. |
core.String fileExtension; |
- /** |
- * The size of the file in bytes. This field is only populated for files with |
- * content stored in Drive; it is not populated for Google Docs or shortcut |
- * files. |
- */ |
+ |
+ /// The size of the file in bytes. This field is only populated for files |
+ /// with content stored in Drive; it is not populated for Google Docs or |
+ /// shortcut files. |
core.String fileSize; |
- /** |
- * Folder color as an RGB hex string if the file is a folder. The list of |
- * supported colors is available in the folderColorPalette field of the About |
- * resource. If an unsupported color is specified, it will be changed to the |
- * closest color in the palette. Not populated for Team Drive files. |
- */ |
+ |
+ /// Folder color as an RGB hex string if the file is a folder. The list of |
+ /// supported colors is available in the folderColorPalette field of the |
+ /// About resource. If an unsupported color is specified, it will be changed |
+ /// to the closest color in the palette. Not populated for Team Drive files. |
core.String folderColorRgb; |
- /** |
- * The full file extension; extracted from the title. May contain multiple |
- * concatenated extensions, such as "tar.gz". Removing an extension from the |
- * title does not clear this field; however, changing the extension on the |
- * title does update this field. This field is only populated for files with |
- * content stored in Drive; it is not populated for Google Docs or shortcut |
- * files. |
- */ |
+ |
+ /// The full file extension; extracted from the title. May contain multiple |
+ /// concatenated extensions, such as "tar.gz". Removing an extension from the |
+ /// title does not clear this field; however, changing the extension on the |
+ /// title does update this field. This field is only populated for files with |
+ /// content stored in Drive; it is not populated for Google Docs or shortcut |
+ /// files. |
core.String fullFileExtension; |
- /** |
- * Whether any users are granted file access directly on this file. This field |
- * is only populated for Team Drive files. |
- */ |
+ |
+ /// Whether any users are granted file access directly on this file. This |
+ /// field is only populated for Team Drive files. |
core.bool hasAugmentedPermissions; |
- /** |
- * Whether this file has a thumbnail. This does not indicate whether the |
- * requesting app has access to the thumbnail. To check access, look for the |
- * presence of the thumbnailLink field. |
- */ |
+ |
+ /// Whether this file has a thumbnail. This does not indicate whether the |
+ /// requesting app has access to the thumbnail. To check access, look for the |
+ /// presence of the thumbnailLink field. |
core.bool hasThumbnail; |
- /** |
- * The ID of the file's head revision. This field is only populated for files |
- * with content stored in Drive; it is not populated for Google Docs or |
- * shortcut files. |
- */ |
+ |
+ /// The ID of the file's head revision. This field is only populated for |
+ /// files with content stored in Drive; it is not populated for Google Docs |
+ /// or shortcut files. |
core.String headRevisionId; |
- /** A link to the file's icon. */ |
+ |
+ /// A link to the file's icon. |
core.String iconLink; |
- /** The ID of the file. */ |
+ |
+ /// The ID of the file. |
core.String id; |
- /** |
- * Metadata about image media. This will only be present for image types, and |
- * its contents will depend on what can be parsed from the image content. |
- */ |
+ |
+ /// Metadata about image media. This will only be present for image types, |
+ /// and its contents will depend on what can be parsed from the image |
+ /// content. |
FileImageMediaMetadata imageMediaMetadata; |
- /** Indexable text attributes for the file (can only be written) */ |
+ |
+ /// Indexable text attributes for the file (can only be written) |
FileIndexableText indexableText; |
- /** Whether the file was created or opened by the requesting app. */ |
+ |
+ /// Whether the file was created or opened by the requesting app. |
core.bool isAppAuthorized; |
- /** The type of file. This is always drive#file. */ |
+ |
+ /// The type of file. This is always drive#file. |
core.String kind; |
- /** A group of labels for the file. */ |
+ |
+ /// A group of labels for the file. |
FileLabels labels; |
- /** The last user to modify this file. */ |
+ |
+ /// The last user to modify this file. |
User lastModifyingUser; |
- /** Name of the last user to modify this file. */ |
+ |
+ /// Name of the last user to modify this file. |
core.String lastModifyingUserName; |
- /** |
- * Last time this file was viewed by the user (formatted RFC 3339 timestamp). |
- */ |
+ |
+ /// Last time this file was viewed by the user (formatted RFC 3339 |
+ /// timestamp). |
core.DateTime lastViewedByMeDate; |
- /** Deprecated. */ |
+ |
+ /// Deprecated. |
core.DateTime markedViewedByMeDate; |
- /** |
- * An MD5 checksum for the content of this file. This field is only populated |
- * for files with content stored in Drive; it is not populated for Google Docs |
- * or shortcut files. |
- */ |
+ |
+ /// An MD5 checksum for the content of this file. This field is only |
+ /// populated for files with content stored in Drive; it is not populated for |
+ /// Google Docs or shortcut files. |
core.String md5Checksum; |
- /** |
- * The MIME type of the file. This is only mutable on update when uploading |
- * new content. This field can be left blank, and the mimetype will be |
- * determined from the uploaded content's MIME type. |
- */ |
+ |
+ /// The MIME type of the file. This is only mutable on update when uploading |
+ /// new content. This field can be left blank, and the mimetype will be |
+ /// determined from the uploaded content's MIME type. |
core.String mimeType; |
- /** |
- * Last time this file was modified by the user (formatted RFC 3339 |
- * timestamp). Note that setting modifiedDate will also update the |
- * modifiedByMe date for the user which set the date. |
- */ |
+ |
+ /// Last time this file was modified by the user (formatted RFC 3339 |
+ /// timestamp). Note that setting modifiedDate will also update the |
+ /// modifiedByMe date for the user which set the date. |
core.DateTime modifiedByMeDate; |
- /** |
- * Last time this file was modified by anyone (formatted RFC 3339 timestamp). |
- * This is only mutable on update when the setModifiedDate parameter is set. |
- */ |
+ |
+ /// Last time this file was modified by anyone (formatted RFC 3339 |
+ /// timestamp). This is only mutable on update when the setModifiedDate |
+ /// parameter is set. |
core.DateTime modifiedDate; |
- /** |
- * A map of the id of each of the user's apps to a link to open this file with |
- * that app. Only populated when the drive.apps.readonly scope is used. |
- */ |
+ |
+ /// A map of the id of each of the user's apps to a link to open this file |
+ /// with that app. Only populated when the drive.apps.readonly scope is used. |
core.Map<core.String, core.String> openWithLinks; |
- /** |
- * The original filename of the uploaded content if available, or else the |
- * original value of the title field. This is only available for files with |
- * binary content in Drive. |
- */ |
+ |
+ /// The original filename of the uploaded content if available, or else the |
+ /// original value of the title field. This is only available for files with |
+ /// binary content in Drive. |
core.String originalFilename; |
- /** |
- * Whether the file is owned by the current user. Not populated for Team Drive |
- * files. |
- */ |
+ |
+ /// Whether the file is owned by the current user. Not populated for Team |
+ /// Drive files. |
core.bool ownedByMe; |
- /** |
- * Name(s) of the owner(s) of this file. Not populated for Team Drive files. |
- */ |
+ |
+ /// Name(s) of the owner(s) of this file. Not populated for Team Drive files. |
core.List<core.String> ownerNames; |
- /** The owner(s) of this file. Not populated for Team Drive files. */ |
+ |
+ /// The owner(s) of this file. Not populated for Team Drive files. |
core.List<User> owners; |
- /** |
- * Collection of parent folders which contain this file. |
- * Setting this field will put the file in all of the provided folders. On |
- * insert, if no folders are provided, the file will be placed in the default |
- * root folder. |
- */ |
+ |
+ /// Collection of parent folders which contain this file. |
+ /// Setting this field will put the file in all of the provided folders. On |
+ /// insert, if no folders are provided, the file will be placed in the |
+ /// default root folder. |
core.List<ParentReference> parents; |
- /** |
- * The list of permissions for users with access to this file. Not populated |
- * for Team Drive files. |
- */ |
+ |
+ /// List of permission IDs for users with access to this file. |
+ core.List<core.String> permissionIds; |
+ |
+ /// The list of permissions for users with access to this file. Not populated |
+ /// for Team Drive files. |
core.List<Permission> permissions; |
- /** The list of properties. */ |
+ |
+ /// The list of properties. |
core.List<Property> properties; |
- /** The number of quota bytes used by this file. */ |
+ |
+ /// The number of quota bytes used by this file. |
core.String quotaBytesUsed; |
- /** A link back to this file. */ |
+ |
+ /// A link back to this file. |
core.String selfLink; |
- /** Deprecated: use capabilities/canShare. */ |
+ |
+ /// Deprecated: use capabilities/canShare. |
core.bool shareable; |
- /** Whether the file has been shared. Not populated for Team Drive files. */ |
+ |
+ /// Whether the file has been shared. Not populated for Team Drive files. |
core.bool shared; |
- /** |
- * Time at which this file was shared with the user (formatted RFC 3339 |
- * timestamp). |
- */ |
+ |
+ /// Time at which this file was shared with the user (formatted RFC 3339 |
+ /// timestamp). |
core.DateTime sharedWithMeDate; |
- /** User that shared the item with the current user, if available. */ |
+ |
+ /// User that shared the item with the current user, if available. |
User sharingUser; |
- /** |
- * The list of spaces which contain the file. Supported values are 'drive', |
- * 'appDataFolder' and 'photos'. |
- */ |
+ |
+ /// The list of spaces which contain the file. Supported values are 'drive', |
+ /// 'appDataFolder' and 'photos'. |
core.List<core.String> spaces; |
- /** ID of the Team Drive the file resides in. */ |
+ |
+ /// ID of the Team Drive the file resides in. |
core.String teamDriveId; |
- /** |
- * A thumbnail for the file. This will only be used if Drive cannot generate a |
- * standard thumbnail. |
- */ |
+ |
+ /// A thumbnail for the file. This will only be used if Drive cannot generate |
+ /// a standard thumbnail. |
FileThumbnail thumbnail; |
- /** |
- * A short-lived link to the file's thumbnail. Typically lasts on the order of |
- * hours. Only populated when the requesting app can access the file's |
- * content. |
- */ |
+ |
+ /// A short-lived link to the file's thumbnail. Typically lasts on the order |
+ /// of hours. Only populated when the requesting app can access the file's |
+ /// content. |
core.String thumbnailLink; |
- /** The thumbnail version for use in thumbnail cache invalidation. */ |
+ |
+ /// The thumbnail version for use in thumbnail cache invalidation. |
core.String thumbnailVersion; |
- /** |
- * The title of this file. Note that for immutable items such as the top level |
- * folders of Team Drives, My Drive root folder, and Application Data folder |
- * the title is constant. |
- */ |
+ |
+ /// The title of this file. Note that for immutable items such as the top |
+ /// level folders of Team Drives, My Drive root folder, and Application Data |
+ /// folder the title is constant. |
core.String title; |
- /** |
- * The time that the item was trashed (formatted RFC 3339 timestamp). Only |
- * populated for Team Drive files. |
- */ |
+ |
+ /// The time that the item was trashed (formatted RFC 3339 timestamp). Only |
+ /// populated for Team Drive files. |
core.DateTime trashedDate; |
- /** |
- * If the file has been explicitly trashed, the user who trashed it. Only |
- * populated for Team Drive files. |
- */ |
+ |
+ /// If the file has been explicitly trashed, the user who trashed it. Only |
+ /// populated for Team Drive files. |
User trashingUser; |
- /** The permissions for the authenticated user on this file. */ |
+ |
+ /// The permissions for the authenticated user on this file. |
Permission userPermission; |
- /** |
- * A monotonically increasing version number for the file. This reflects every |
- * change made to the file on the server, even those not visible to the |
- * requesting user. |
- */ |
+ |
+ /// A monotonically increasing version number for the file. This reflects |
+ /// every change made to the file on the server, even those not visible to |
+ /// the requesting user. |
core.String version; |
- /** Metadata about video media. This will only be present for video types. */ |
+ |
+ /// Metadata about video media. This will only be present for video types. |
FileVideoMediaMetadata videoMediaMetadata; |
- /** |
- * A link for downloading the content of the file in a browser using cookie |
- * based authentication. In cases where the content is shared publicly, the |
- * content can be downloaded without any credentials. |
- */ |
+ |
+ /// A link for downloading the content of the file in a browser using cookie |
+ /// based authentication. In cases where the content is shared publicly, the |
+ /// content can be downloaded without any credentials. |
core.String webContentLink; |
- /** |
- * A link only available on public folders for viewing their static web assets |
- * (HTML, CSS, JS, etc) via Google Drive's Website Hosting. |
- */ |
+ |
+ /// A link only available on public folders for viewing their static web |
+ /// assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting. |
core.String webViewLink; |
- /** |
- * Whether writers can share the document with other users. Not populated for |
- * Team Drive files. |
- */ |
+ |
+ /// Whether writers can share the document with other users. Not populated |
+ /// for Team Drive files. |
core.bool writersCanShare; |
File(); |
@@ -6603,7 +6758,8 @@ class File { |
id = _json["id"]; |
} |
if (_json.containsKey("imageMediaMetadata")) { |
- imageMediaMetadata = new FileImageMediaMetadata.fromJson(_json["imageMediaMetadata"]); |
+ imageMediaMetadata = |
+ new FileImageMediaMetadata.fromJson(_json["imageMediaMetadata"]); |
} |
if (_json.containsKey("indexableText")) { |
indexableText = new FileIndexableText.fromJson(_json["indexableText"]); |
@@ -6654,16 +6810,26 @@ class File { |
ownerNames = _json["ownerNames"]; |
} |
if (_json.containsKey("owners")) { |
- owners = _json["owners"].map((value) => new User.fromJson(value)).toList(); |
+ owners = |
+ _json["owners"].map((value) => new User.fromJson(value)).toList(); |
} |
if (_json.containsKey("parents")) { |
- parents = _json["parents"].map((value) => new ParentReference.fromJson(value)).toList(); |
+ parents = _json["parents"] |
+ .map((value) => new ParentReference.fromJson(value)) |
+ .toList(); |
+ } |
+ if (_json.containsKey("permissionIds")) { |
+ permissionIds = _json["permissionIds"]; |
} |
if (_json.containsKey("permissions")) { |
- permissions = _json["permissions"].map((value) => new Permission.fromJson(value)).toList(); |
+ permissions = _json["permissions"] |
+ .map((value) => new Permission.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("properties")) { |
- properties = _json["properties"].map((value) => new Property.fromJson(value)).toList(); |
+ properties = _json["properties"] |
+ .map((value) => new Property.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("quotaBytesUsed")) { |
quotaBytesUsed = _json["quotaBytesUsed"]; |
@@ -6714,7 +6880,8 @@ class File { |
version = _json["version"]; |
} |
if (_json.containsKey("videoMediaMetadata")) { |
- videoMediaMetadata = new FileVideoMediaMetadata.fromJson(_json["videoMediaMetadata"]); |
+ videoMediaMetadata = |
+ new FileVideoMediaMetadata.fromJson(_json["videoMediaMetadata"]); |
} |
if (_json.containsKey("webContentLink")) { |
webContentLink = _json["webContentLink"]; |
@@ -6728,7 +6895,8 @@ class File { |
} |
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 (alternateLink != null) { |
_json["alternateLink"] = alternateLink; |
} |
@@ -6858,11 +7026,16 @@ class File { |
if (parents != null) { |
_json["parents"] = parents.map((value) => (value).toJson()).toList(); |
} |
+ if (permissionIds != null) { |
+ _json["permissionIds"] = permissionIds; |
+ } |
if (permissions != null) { |
- _json["permissions"] = permissions.map((value) => (value).toJson()).toList(); |
+ _json["permissions"] = |
+ permissions.map((value) => (value).toJson()).toList(); |
} |
if (properties != null) { |
- _json["properties"] = properties.map((value) => (value).toJson()).toList(); |
+ _json["properties"] = |
+ properties.map((value) => (value).toJson()).toList(); |
} |
if (quotaBytesUsed != null) { |
_json["quotaBytesUsed"] = quotaBytesUsed; |
@@ -6928,36 +7101,36 @@ class File { |
} |
} |
-/** A list of files. */ |
+/// A list of files. |
class FileList { |
- /** The ETag of the list. */ |
+ /// The ETag of the list. |
core.String etag; |
- /** |
- * Whether the search process was incomplete. If true, then some search |
- * results may be missing, since all documents were not searched. This may |
- * occur when searching multiple Team Drives with the "default,allTeamDrives" |
- * corpora, but all corpora could not be searched. When this happens, it is |
- * suggested that clients narrow their query by choosing a different corpus |
- * such as "default" or "teamDrive". |
- */ |
+ |
+ /// Whether the search process was incomplete. If true, then some search |
+ /// results may be missing, since all documents were not searched. This may |
+ /// occur when searching multiple Team Drives with the |
+ /// "default,allTeamDrives" corpora, but all corpora could not be searched. |
+ /// When this happens, it is suggested that clients narrow their query by |
+ /// choosing a different corpus such as "default" or "teamDrive". |
core.bool incompleteSearch; |
- /** |
- * The list of files. If nextPageToken is populated, then this list may be |
- * incomplete and an additional page of results should be fetched. |
- */ |
+ |
+ /// The list of files. If nextPageToken is populated, then this list may be |
+ /// incomplete and an additional page of results should be fetched. |
core.List<File> items; |
- /** This is always drive#fileList. */ |
+ |
+ /// This is always drive#fileList. |
core.String kind; |
- /** A link to the next page of files. */ |
+ |
+ /// A link to the next page of files. |
core.String nextLink; |
- /** |
- * The page token for the next page of files. This will be absent if the end |
- * of the files list has been reached. If the token is rejected for any |
- * reason, it should be discarded, and pagination should be restarted from the |
- * first page of results. |
- */ |
+ |
+ /// The page token for the next page of files. This will be absent if the end |
+ /// of the files list has been reached. If the token is rejected for any |
+ /// reason, it should be discarded, and pagination should be restarted from |
+ /// the first page of results. |
core.String nextPageToken; |
- /** A link back to this list. */ |
+ |
+ /// A link back to this list. |
core.String selfLink; |
FileList(); |
@@ -6987,7 +7160,8 @@ class FileList { |
} |
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 (etag != null) { |
_json["etag"] = etag; |
} |
@@ -7013,13 +7187,15 @@ class FileList { |
} |
} |
-/** A list of generated IDs which can be provided in insert requests */ |
+/// A list of generated IDs which can be provided in insert requests |
class GeneratedIds { |
- /** The IDs generated for the requesting user in the specified space. */ |
+ /// The IDs generated for the requesting user in the specified space. |
core.List<core.String> ids; |
- /** This is always drive#generatedIds */ |
+ |
+ /// This is always drive#generatedIds |
core.String kind; |
- /** The type of file that can be created with these IDs. */ |
+ |
+ /// The type of file that can be created with these IDs. |
core.String space; |
GeneratedIds(); |
@@ -7037,7 +7213,8 @@ class GeneratedIds { |
} |
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; |
} |
@@ -7051,15 +7228,18 @@ class GeneratedIds { |
} |
} |
-/** A list of a file's parents. */ |
+/// A list of a file's parents. |
class ParentList { |
- /** The ETag of the list. */ |
+ /// The ETag of the list. |
core.String etag; |
- /** The list of parents. */ |
+ |
+ /// The list of parents. |
core.List<ParentReference> items; |
- /** This is always drive#parentList. */ |
+ |
+ /// This is always drive#parentList. |
core.String kind; |
- /** A link back to this list. */ |
+ |
+ /// A link back to this list. |
core.String selfLink; |
ParentList(); |
@@ -7069,7 +7249,9 @@ class ParentList { |
etag = _json["etag"]; |
} |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new ParentReference.fromJson(value)).toList(); |
+ items = _json["items"] |
+ .map((value) => new ParentReference.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -7080,7 +7262,8 @@ class ParentList { |
} |
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 (etag != null) { |
_json["etag"] = etag; |
} |
@@ -7097,17 +7280,21 @@ class ParentList { |
} |
} |
-/** A reference to a file's parent. */ |
+/// A reference to a file's parent. |
class ParentReference { |
- /** The ID of the parent. */ |
+ /// The ID of the parent. |
core.String id; |
- /** Whether or not the parent is the root folder. */ |
+ |
+ /// Whether or not the parent is the root folder. |
core.bool isRoot; |
- /** This is always drive#parentReference. */ |
+ |
+ /// This is always drive#parentReference. |
core.String kind; |
- /** A link to the parent. */ |
+ |
+ /// A link to the parent. |
core.String parentLink; |
- /** A link back to this reference. */ |
+ |
+ /// A link back to this reference. |
core.String selfLink; |
ParentReference(); |
@@ -7131,7 +7318,8 @@ class ParentReference { |
} |
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; |
} |
@@ -7152,35 +7340,29 @@ class ParentReference { |
} |
class PermissionTeamDrivePermissionDetails { |
- /** |
- * Additional roles for this user. Only commenter is currently possible, |
- * though more may be supported in the future. |
- */ |
+ /// Additional roles for this user. Only commenter is currently possible, |
+ /// though more may be supported in the future. |
core.List<core.String> additionalRoles; |
- /** |
- * Whether this permission is inherited. This field is always populated. This |
- * is an output-only field. |
- */ |
+ |
+ /// Whether this permission is inherited. This field is always populated. |
+ /// This is an output-only field. |
core.bool inherited; |
- /** |
- * The ID of the item from which this permission is inherited. This is an |
- * output-only field and is only populated for members of the Team Drive. |
- */ |
+ |
+ /// The ID of the item from which this permission is inherited. This is an |
+ /// output-only field and is only populated for members of the Team Drive. |
core.String inheritedFrom; |
- /** |
- * The primary role for this user. While new values may be added in the |
- * future, the following are currently possible: |
- * - organizer |
- * - reader |
- * - writer |
- */ |
+ |
+ /// The primary role for this user. While new values may be added in the |
+ /// future, the following are currently possible: |
+ /// - organizer |
+ /// - reader |
+ /// - writer |
core.String role; |
- /** |
- * The Team Drive permission type for this user. While new values may be added |
- * in future, the following are currently possible: |
- * - file |
- * - member |
- */ |
+ |
+ /// The Team Drive permission type for this user. While new values may be |
+ /// added in future, the following are currently possible: |
+ /// - file |
+ /// - member |
core.String teamDrivePermissionType; |
PermissionTeamDrivePermissionDetails(); |
@@ -7204,7 +7386,8 @@ class PermissionTeamDrivePermissionDetails { |
} |
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 (additionalRoles != null) { |
_json["additionalRoles"] = additionalRoles; |
} |
@@ -7224,91 +7407,87 @@ class PermissionTeamDrivePermissionDetails { |
} |
} |
-/** A permission for a file. */ |
+/// A permission for a file. |
class Permission { |
- /** |
- * Additional roles for this user. Only commenter is currently allowed, though |
- * more may be supported in the future. |
- */ |
+ /// Additional roles for this user. Only commenter is currently allowed, |
+ /// though more may be supported in the future. |
core.List<core.String> additionalRoles; |
- /** Deprecated. */ |
+ |
+ /// Deprecated. |
core.String authKey; |
- /** |
- * Whether the account associated with this permission has been deleted. This |
- * field only pertains to user and group permissions. |
- */ |
+ |
+ /// Whether the account associated with this permission has been deleted. |
+ /// This field only pertains to user and group permissions. |
core.bool deleted; |
- /** |
- * The domain name of the entity this permission refers to. This is an |
- * output-only field which is present when the permission type is user, group |
- * or domain. |
- */ |
+ |
+ /// The domain name of the entity this permission refers to. This is an |
+ /// output-only field which is present when the permission type is user, |
+ /// group or domain. |
core.String domain; |
- /** |
- * The email address of the user or group this permission refers to. This is |
- * an output-only field which is present when the permission type is user or |
- * group. |
- */ |
+ |
+ /// The email address of the user or group this permission refers to. This is |
+ /// an output-only field which is present when the permission type is user or |
+ /// group. |
core.String emailAddress; |
- /** The ETag of the permission. */ |
+ |
+ /// The ETag of the permission. |
core.String etag; |
- /** |
- * The time at which this permission will expire (RFC 3339 date-time). |
- * Expiration dates have the following restrictions: |
- * - They can only be set on user and group permissions |
- * - The date must be in the future |
- * - The date cannot be more than a year in the future |
- * - The date can only be set on drive.permissions.update requests |
- */ |
+ |
+ /// The time at which this permission will expire (RFC 3339 date-time). |
+ /// Expiration dates have the following restrictions: |
+ /// - They can only be set on user and group permissions |
+ /// - The date must be in the future |
+ /// - The date cannot be more than a year in the future |
+ /// - The date can only be set on drive.permissions.update requests |
core.DateTime expirationDate; |
- /** |
- * The ID of the user this permission refers to, and identical to the |
- * permissionId in the About and Files resources. When making a |
- * drive.permissions.insert request, exactly one of the id or value fields |
- * must be specified unless the permission type is anyone, in which case both |
- * id and value are ignored. |
- */ |
+ |
+ /// The ID of the user this permission refers to, and identical to the |
+ /// permissionId in the About and Files resources. When making a |
+ /// drive.permissions.insert request, exactly one of the id or value fields |
+ /// must be specified unless the permission type is anyone, in which case |
+ /// both id and value are ignored. |
core.String id; |
- /** This is always drive#permission. */ |
+ |
+ /// This is always drive#permission. |
core.String kind; |
- /** The name for this permission. */ |
+ |
+ /// The name for this permission. |
core.String name; |
- /** A link to the profile photo, if available. */ |
+ |
+ /// A link to the profile photo, if available. |
core.String photoLink; |
- /** |
- * The primary role for this user. While new values may be supported in the |
- * future, the following are currently allowed: |
- * - organizer |
- * - owner |
- * - reader |
- * - writer |
- */ |
+ |
+ /// The primary role for this user. While new values may be supported in the |
+ /// future, the following are currently allowed: |
+ /// - organizer |
+ /// - owner |
+ /// - reader |
+ /// - writer |
core.String role; |
- /** A link back to this permission. */ |
+ |
+ /// A link back to this permission. |
core.String selfLink; |
- /** |
- * Details of whether the permissions on this Team Drive item are inherited or |
- * directly on this item. This is an output-only field which is present only |
- * for Team Drive items. |
- */ |
+ |
+ /// Details of whether the permissions on this Team Drive item are inherited |
+ /// or directly on this item. This is an output-only field which is present |
+ /// only for Team Drive items. |
core.List<PermissionTeamDrivePermissionDetails> teamDrivePermissionDetails; |
- /** |
- * The account type. Allowed values are: |
- * - user |
- * - group |
- * - domain |
- * - anyone |
- */ |
+ |
+ /// The account type. Allowed values are: |
+ /// - user |
+ /// - group |
+ /// - domain |
+ /// - anyone |
core.String type; |
- /** |
- * The email address or domain name for the entity. This is used during |
- * inserts and is not populated in responses. When making a |
- * drive.permissions.insert request, exactly one of the id or value fields |
- * must be specified unless the permission type is anyone, in which case both |
- * id and value are ignored. |
- */ |
+ |
+ /// The email address or domain name for the entity. This is used during |
+ /// inserts and is not populated in responses. When making a |
+ /// drive.permissions.insert request, exactly one of the id or value fields |
+ /// must be specified unless the permission type is anyone, in which case |
+ /// both id and value are ignored. |
core.String value; |
- /** Whether the link is required for this permission. */ |
+ |
+ /// Whether the link is required for this permission. |
core.bool withLink; |
Permission(); |
@@ -7354,7 +7533,10 @@ class Permission { |
selfLink = _json["selfLink"]; |
} |
if (_json.containsKey("teamDrivePermissionDetails")) { |
- teamDrivePermissionDetails = _json["teamDrivePermissionDetails"].map((value) => new PermissionTeamDrivePermissionDetails.fromJson(value)).toList(); |
+ teamDrivePermissionDetails = _json["teamDrivePermissionDetails"] |
+ .map((value) => |
+ new PermissionTeamDrivePermissionDetails.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("type")) { |
type = _json["type"]; |
@@ -7368,7 +7550,8 @@ class Permission { |
} |
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 (additionalRoles != null) { |
_json["additionalRoles"] = additionalRoles; |
} |
@@ -7409,7 +7592,8 @@ class Permission { |
_json["selfLink"] = selfLink; |
} |
if (teamDrivePermissionDetails != null) { |
- _json["teamDrivePermissionDetails"] = teamDrivePermissionDetails.map((value) => (value).toJson()).toList(); |
+ _json["teamDrivePermissionDetails"] = |
+ teamDrivePermissionDetails.map((value) => (value).toJson()).toList(); |
} |
if (type != null) { |
_json["type"] = type; |
@@ -7424,11 +7608,12 @@ class Permission { |
} |
} |
-/** An ID for a user or group as seen in Permission items. */ |
+/// An ID for a user or group as seen in Permission items. |
class PermissionId { |
- /** The permission ID. */ |
+ /// The permission ID. |
core.String id; |
- /** This is always drive#permissionId. */ |
+ |
+ /// This is always drive#permissionId. |
core.String kind; |
PermissionId(); |
@@ -7443,7 +7628,8 @@ class PermissionId { |
} |
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; |
} |
@@ -7454,22 +7640,24 @@ class PermissionId { |
} |
} |
-/** A list of permissions associated with a file. */ |
+/// A list of permissions associated with a file. |
class PermissionList { |
- /** The ETag of the list. */ |
+ /// The ETag of the list. |
core.String etag; |
- /** The list of permissions. */ |
+ |
+ /// The list of permissions. |
core.List<Permission> items; |
- /** This is always drive#permissionList. */ |
+ |
+ /// This is always drive#permissionList. |
core.String kind; |
- /** |
- * The page token for the next page of permissions. This field will be absent |
- * if the end of the permissions list has been reached. If the token is |
- * rejected for any reason, it should be discarded, and pagination should be |
- * restarted from the first page of results. |
- */ |
+ |
+ /// The page token for the next page of permissions. This field will be |
+ /// absent if the end of the permissions list has been reached. If the token |
+ /// is rejected for any reason, it should be discarded, and pagination should |
+ /// be restarted from the first page of results. |
core.String nextPageToken; |
- /** A link back to this list. */ |
+ |
+ /// A link back to this list. |
core.String selfLink; |
PermissionList(); |
@@ -7479,7 +7667,9 @@ class PermissionList { |
etag = _json["etag"]; |
} |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new Permission.fromJson(value)).toList(); |
+ items = _json["items"] |
+ .map((value) => new Permission.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -7493,7 +7683,8 @@ class PermissionList { |
} |
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 (etag != null) { |
_json["etag"] = etag; |
} |
@@ -7513,28 +7704,31 @@ class PermissionList { |
} |
} |
-/** |
- * A key-value pair attached to a file that is either public or private to an |
- * application. |
- * The following limits apply to file properties: |
- * - Maximum of 100 properties total per file |
- * - Maximum of 30 private properties per app |
- * - Maximum of 30 public properties |
- * - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding |
- * for a single property. |
- */ |
+/// A key-value pair attached to a file that is either public or private to an |
+/// application. |
+/// The following limits apply to file properties: |
+/// - Maximum of 100 properties total per file |
+/// - Maximum of 30 private properties per app |
+/// - Maximum of 30 public properties |
+/// - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding |
+/// for a single property. |
class Property { |
- /** ETag of the property. */ |
+ /// ETag of the property. |
core.String etag; |
- /** The key of this property. */ |
+ |
+ /// The key of this property. |
core.String key; |
- /** This is always drive#property. */ |
+ |
+ /// This is always drive#property. |
core.String kind; |
- /** The link back to this property. */ |
+ |
+ /// The link back to this property. |
core.String selfLink; |
- /** The value of this property. */ |
+ |
+ /// The value of this property. |
core.String value; |
- /** The visibility of this property. */ |
+ |
+ /// The visibility of this property. |
core.String visibility; |
Property(); |
@@ -7561,7 +7755,8 @@ class Property { |
} |
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 (etag != null) { |
_json["etag"] = etag; |
} |
@@ -7584,18 +7779,19 @@ class Property { |
} |
} |
-/** |
- * A collection of properties, key-value pairs that are either public or private |
- * to an application. |
- */ |
+/// A collection of properties, key-value pairs that are either public or |
+/// private to an application. |
class PropertyList { |
- /** The ETag of the list. */ |
+ /// The ETag of the list. |
core.String etag; |
- /** The list of properties. */ |
+ |
+ /// The list of properties. |
core.List<Property> items; |
- /** This is always drive#propertyList. */ |
+ |
+ /// This is always drive#propertyList. |
core.String kind; |
- /** The link back to this list. */ |
+ |
+ /// The link back to this list. |
core.String selfLink; |
PropertyList(); |
@@ -7605,7 +7801,8 @@ class PropertyList { |
etag = _json["etag"]; |
} |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new Property.fromJson(value)).toList(); |
+ items = |
+ _json["items"].map((value) => new Property.fromJson(value)).toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -7616,7 +7813,8 @@ class PropertyList { |
} |
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 (etag != null) { |
_json["etag"] = etag; |
} |
@@ -7633,70 +7831,71 @@ class PropertyList { |
} |
} |
-/** A revision of a file. */ |
+/// A revision of a file. |
class Revision { |
- /** |
- * Short term download URL for the file. This will only be populated on files |
- * with content stored in Drive. |
- */ |
+ /// Short term download URL for the file. This will only be populated on |
+ /// files with content stored in Drive. |
core.String downloadUrl; |
- /** The ETag of the revision. */ |
+ |
+ /// The ETag of the revision. |
core.String etag; |
- /** Links for exporting Google Docs to specific formats. */ |
+ |
+ /// Links for exporting Google Docs to specific formats. |
core.Map<core.String, core.String> exportLinks; |
- /** |
- * The size of the revision in bytes. This will only be populated on files |
- * with content stored in Drive. |
- */ |
+ |
+ /// The size of the revision in bytes. This will only be populated on files |
+ /// with content stored in Drive. |
core.String fileSize; |
- /** The ID of the revision. */ |
+ |
+ /// The ID of the revision. |
core.String id; |
- /** This is always drive#revision. */ |
+ |
+ /// This is always drive#revision. |
core.String kind; |
- /** The last user to modify this revision. */ |
+ |
+ /// The last user to modify this revision. |
User lastModifyingUser; |
- /** Name of the last user to modify this revision. */ |
+ |
+ /// Name of the last user to modify this revision. |
core.String lastModifyingUserName; |
- /** |
- * An MD5 checksum for the content of this revision. This will only be |
- * populated on files with content stored in Drive. |
- */ |
+ |
+ /// An MD5 checksum for the content of this revision. This will only be |
+ /// populated on files with content stored in Drive. |
core.String md5Checksum; |
- /** The MIME type of the revision. */ |
+ |
+ /// The MIME type of the revision. |
core.String mimeType; |
- /** Last time this revision was modified (formatted RFC 3339 timestamp). */ |
+ |
+ /// Last time this revision was modified (formatted RFC 3339 timestamp). |
core.DateTime modifiedDate; |
- /** |
- * The original filename when this revision was created. This will only be |
- * populated on files with content stored in Drive. |
- */ |
+ |
+ /// The original filename when this revision was created. This will only be |
+ /// populated on files with content stored in Drive. |
core.String originalFilename; |
- /** |
- * Whether this revision is pinned to prevent automatic purging. This will |
- * only be populated and can only be modified on files with content stored in |
- * Drive which are not Google Docs. Revisions can also be pinned when they are |
- * created through the drive.files.insert/update/copy by using the pinned |
- * query parameter. |
- */ |
+ |
+ /// Whether this revision is pinned to prevent automatic purging. This will |
+ /// only be populated and can only be modified on files with content stored |
+ /// in Drive which are not Google Docs. Revisions can also be pinned when |
+ /// they are created through the drive.files.insert/update/copy by using the |
+ /// pinned query parameter. |
core.bool pinned; |
- /** |
- * Whether subsequent revisions will be automatically republished. This is |
- * only populated and can only be modified for Google Docs. |
- */ |
+ |
+ /// Whether subsequent revisions will be automatically republished. This is |
+ /// only populated and can only be modified for Google Docs. |
core.bool publishAuto; |
- /** |
- * Whether this revision is published. This is only populated and can only be |
- * modified for Google Docs. |
- */ |
+ |
+ /// Whether this revision is published. This is only populated and can only |
+ /// be modified for Google Docs. |
core.bool published; |
- /** A link to the published revision. */ |
+ |
+ /// A link to the published revision. |
core.String publishedLink; |
- /** |
- * Whether this revision is published outside the domain. This is only |
- * populated and can only be modified for Google Docs. |
- */ |
+ |
+ /// Whether this revision is published outside the domain. This is only |
+ /// populated and can only be modified for Google Docs. |
core.bool publishedOutsideDomain; |
- /** A link back to this revision. */ |
+ |
+ /// A link back to this revision. |
core.String selfLink; |
Revision(); |
@@ -7759,7 +7958,8 @@ class Revision { |
} |
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 (downloadUrl != null) { |
_json["downloadUrl"] = downloadUrl; |
} |
@@ -7818,25 +8018,25 @@ class Revision { |
} |
} |
-/** A list of revisions of a file. */ |
+/// A list of revisions of a file. |
class RevisionList { |
- /** The ETag of the list. */ |
+ /// The ETag of the list. |
core.String etag; |
- /** |
- * The list of revisions. If nextPageToken is populated, then this list may be |
- * incomplete and an additional page of results should be fetched. |
- */ |
+ |
+ /// The list of revisions. If nextPageToken is populated, then this list may |
+ /// be incomplete and an additional page of results should be fetched. |
core.List<Revision> items; |
- /** This is always drive#revisionList. */ |
+ |
+ /// This is always drive#revisionList. |
core.String kind; |
- /** |
- * The page token for the next page of revisions. This field will be absent if |
- * the end of the revisions list has been reached. If the token is rejected |
- * for any reason, it should be discarded and pagination should be restarted |
- * from the first page of results. |
- */ |
+ |
+ /// The page token for the next page of revisions. This field will be absent |
+ /// if the end of the revisions list has been reached. If the token is |
+ /// rejected for any reason, it should be discarded and pagination should be |
+ /// restarted from the first page of results. |
core.String nextPageToken; |
- /** A link back to this list. */ |
+ |
+ /// A link back to this list. |
core.String selfLink; |
RevisionList(); |
@@ -7846,7 +8046,8 @@ class RevisionList { |
etag = _json["etag"]; |
} |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new Revision.fromJson(value)).toList(); |
+ items = |
+ _json["items"].map((value) => new Revision.fromJson(value)).toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -7860,7 +8061,8 @@ class RevisionList { |
} |
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 (etag != null) { |
_json["etag"] = etag; |
} |
@@ -7881,12 +8083,11 @@ class RevisionList { |
} |
class StartPageToken { |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "drive#startPageToken". |
- */ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "drive#startPageToken". |
core.String kind; |
- /** The starting page token for listing changes. */ |
+ |
+ /// The starting page token for listing changes. |
core.String startPageToken; |
StartPageToken(); |
@@ -7901,7 +8102,8 @@ class StartPageToken { |
} |
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 (kind != null) { |
_json["kind"] = kind; |
} |
@@ -7912,38 +8114,33 @@ class StartPageToken { |
} |
} |
-/** |
- * An image file and cropping parameters from which a background image for this |
- * Team Drive is set. This is a write only field; it can only be set on |
- * drive.teamdrives.update requests that don't set themeId. When specified, all |
- * fields of the backgroundImageFile must be set. |
- */ |
+/// An image file and cropping parameters from which a background image for |
+/// this Team Drive is set. This is a write only field; it can only be set on |
+/// drive.teamdrives.update requests that don't set themeId. When specified, |
+/// all fields of the backgroundImageFile must be set. |
class TeamDriveBackgroundImageFile { |
- /** The ID of an image file in Drive to use for the background image. */ |
+ /// The ID of an image file in Drive to use for the background image. |
core.String id; |
- /** |
- * The width of the cropped image in the closed range of 0 to 1. This value |
- * represents the width of the cropped image divided by the width of the |
- * entire image. The height is computed by applying a width to height aspect |
- * ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and |
- * 144 pixels high. |
- */ |
+ |
+ /// The width of the cropped image in the closed range of 0 to 1. This value |
+ /// represents the width of the cropped image divided by the width of the |
+ /// entire image. The height is computed by applying a width to height aspect |
+ /// ratio of 80 to 9. The resulting image must be at least 1280 pixels wide |
+ /// and 144 pixels high. |
core.double width; |
- /** |
- * The X coordinate of the upper left corner of the cropping area in the |
- * background image. This is a value in the closed range of 0 to 1. This value |
- * represents the horizontal distance from the left side of the entire image |
- * to the left side of the cropping area divided by the width of the entire |
- * image. |
- */ |
+ |
+ /// The X coordinate of the upper left corner of the cropping area in the |
+ /// background image. This is a value in the closed range of 0 to 1. This |
+ /// value represents the horizontal distance from the left side of the entire |
+ /// image to the left side of the cropping area divided by the width of the |
+ /// entire image. |
core.double xCoordinate; |
- /** |
- * The Y coordinate of the upper left corner of the cropping area in the |
- * background image. This is a value in the closed range of 0 to 1. This value |
- * represents the vertical distance from the top side of the entire image to |
- * the top side of the cropping area divided by the height of the entire |
- * image. |
- */ |
+ |
+ /// The Y coordinate of the upper left corner of the cropping area in the |
+ /// background image. This is a value in the closed range of 0 to 1. This |
+ /// value represents the vertical distance from the top side of the entire |
+ /// image to the top side of the cropping area divided by the height of the |
+ /// entire image. |
core.double yCoordinate; |
TeamDriveBackgroundImageFile(); |
@@ -7964,7 +8161,8 @@ class TeamDriveBackgroundImageFile { |
} |
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; |
} |
@@ -7981,57 +8179,54 @@ class TeamDriveBackgroundImageFile { |
} |
} |
-/** Capabilities the current user has on this Team Drive. */ |
+/// Capabilities the current user has on this Team Drive. |
class TeamDriveCapabilities { |
- /** |
- * Whether the current user can add children to folders in this Team Drive. |
- */ |
+ /// Whether the current user can add children to folders in this Team Drive. |
core.bool canAddChildren; |
- /** Whether the current user can change the background of this Team Drive. */ |
+ |
+ /// Whether the current user can change the background of this Team Drive. |
core.bool canChangeTeamDriveBackground; |
- /** Whether the current user can comment on files in this Team Drive. */ |
+ |
+ /// Whether the current user can comment on files in this Team Drive. |
core.bool canComment; |
- /** Whether the current user can copy files in this Team Drive. */ |
+ |
+ /// Whether the current user can copy files in this Team Drive. |
core.bool canCopy; |
- /** |
- * Whether the current user can delete this Team Drive. Attempting to delete |
- * the Team Drive may still fail if there are untrashed items inside the Team |
- * Drive. |
- */ |
+ |
+ /// Whether the current user can delete this Team Drive. Attempting to delete |
+ /// the Team Drive may still fail if there are untrashed items inside the |
+ /// Team Drive. |
core.bool canDeleteTeamDrive; |
- /** Whether the current user can download files in this Team Drive. */ |
+ |
+ /// Whether the current user can download files in this Team Drive. |
core.bool canDownload; |
- /** Whether the current user can edit files in this Team Drive */ |
+ |
+ /// Whether the current user can edit files in this Team Drive |
core.bool canEdit; |
- /** |
- * Whether the current user can list the children of folders in this Team |
- * Drive. |
- */ |
+ |
+ /// Whether the current user can list the children of folders in this Team |
+ /// Drive. |
core.bool canListChildren; |
- /** |
- * Whether the current user can add members to this Team Drive or remove them |
- * or change their role. |
- */ |
+ |
+ /// Whether the current user can add members to this Team Drive or remove |
+ /// them or change their role. |
core.bool canManageMembers; |
- /** |
- * Whether the current user can read the revisions resource of files in this |
- * Team Drive. |
- */ |
+ |
+ /// Whether the current user can read the revisions resource of files in this |
+ /// Team Drive. |
core.bool canReadRevisions; |
- /** |
- * Whether the current user can remove children from folders in this Team |
- * Drive. |
- */ |
+ |
+ /// Whether the current user can remove children from folders in this Team |
+ /// Drive. |
core.bool canRemoveChildren; |
- /** |
- * Whether the current user can rename files or folders in this Team Drive. |
- */ |
+ |
+ /// Whether the current user can rename files or folders in this Team Drive. |
core.bool canRename; |
- /** Whether the current user can rename this Team Drive. */ |
+ |
+ /// Whether the current user can rename this Team Drive. |
core.bool canRenameTeamDrive; |
- /** |
- * Whether the current user can share files or folders in this Team Drive. |
- */ |
+ |
+ /// Whether the current user can share files or folders in this Team Drive. |
core.bool canShare; |
TeamDriveCapabilities(); |
@@ -8082,7 +8277,8 @@ class TeamDriveCapabilities { |
} |
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 (canAddChildren != null) { |
_json["canAddChildren"] = canAddChildren; |
} |
@@ -8129,48 +8325,48 @@ class TeamDriveCapabilities { |
} |
} |
-/** Representation of a Team Drive. */ |
+/// Representation of a Team Drive. |
class TeamDrive { |
- /** |
- * An image file and cropping parameters from which a background image for |
- * this Team Drive is set. This is a write only field; it can only be set on |
- * drive.teamdrives.update requests that don't set themeId. When specified, |
- * all fields of the backgroundImageFile must be set. |
- */ |
+ /// An image file and cropping parameters from which a background image for |
+ /// this Team Drive is set. This is a write only field; it can only be set on |
+ /// drive.teamdrives.update requests that don't set themeId. When specified, |
+ /// all fields of the backgroundImageFile must be set. |
TeamDriveBackgroundImageFile backgroundImageFile; |
- /** A short-lived link to this Team Drive's background image. */ |
+ |
+ /// A short-lived link to this Team Drive's background image. |
core.String backgroundImageLink; |
- /** Capabilities the current user has on this Team Drive. */ |
+ |
+ /// Capabilities the current user has on this Team Drive. |
TeamDriveCapabilities capabilities; |
- /** |
- * The color of this Team Drive as an RGB hex string. It can only be set on a |
- * drive.teamdrives.update request that does not set themeId. |
- */ |
+ |
+ /// The color of this Team Drive as an RGB hex string. It can only be set on |
+ /// a drive.teamdrives.update request that does not set themeId. |
core.String colorRgb; |
- /** |
- * The ID of this Team Drive which is also the ID of the top level folder for |
- * this Team Drive. |
- */ |
+ |
+ /// The ID of this Team Drive which is also the ID of the top level folder |
+ /// for this Team Drive. |
core.String id; |
- /** This is always drive#teamDrive */ |
+ |
+ /// This is always drive#teamDrive |
core.String kind; |
- /** The name of this Team Drive. */ |
+ |
+ /// The name of this Team Drive. |
core.String name; |
- /** |
- * The ID of the theme from which the background image and color will be set. |
- * The set of possible teamDriveThemes can be retrieved from a drive.about.get |
- * response. When not specified on a drive.teamdrives.insert request, a random |
- * theme is chosen from which the background image and color are set. This is |
- * a write-only field; it can only be set on requests that don't set colorRgb |
- * or backgroundImageFile. |
- */ |
+ |
+ /// The ID of the theme from which the background image and color will be |
+ /// set. The set of possible teamDriveThemes can be retrieved from a |
+ /// drive.about.get response. When not specified on a drive.teamdrives.insert |
+ /// request, a random theme is chosen from which the background image and |
+ /// color are set. This is a write-only field; it can only be set on requests |
+ /// that don't set colorRgb or backgroundImageFile. |
core.String themeId; |
TeamDrive(); |
TeamDrive.fromJson(core.Map _json) { |
if (_json.containsKey("backgroundImageFile")) { |
- backgroundImageFile = new TeamDriveBackgroundImageFile.fromJson(_json["backgroundImageFile"]); |
+ backgroundImageFile = new TeamDriveBackgroundImageFile.fromJson( |
+ _json["backgroundImageFile"]); |
} |
if (_json.containsKey("backgroundImageLink")) { |
backgroundImageLink = _json["backgroundImageLink"]; |
@@ -8196,7 +8392,8 @@ class TeamDrive { |
} |
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 (backgroundImageFile != null) { |
_json["backgroundImageFile"] = (backgroundImageFile).toJson(); |
} |
@@ -8225,20 +8422,23 @@ class TeamDrive { |
} |
} |
-/** A list of Team Drives. */ |
+/// A list of Team Drives. |
class TeamDriveList { |
- /** The list of Team Drives. */ |
+ /// The list of Team Drives. |
core.List<TeamDrive> items; |
- /** This is always drive#teamDriveList */ |
+ |
+ /// This is always drive#teamDriveList |
core.String kind; |
- /** The page token for the next page of Team Drives. */ |
+ |
+ /// The page token for the next page of Team Drives. |
core.String nextPageToken; |
TeamDriveList(); |
TeamDriveList.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new TeamDrive.fromJson(value)).toList(); |
+ items = |
+ _json["items"].map((value) => new TeamDrive.fromJson(value)).toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -8249,7 +8449,8 @@ class TeamDriveList { |
} |
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 (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -8263,9 +8464,9 @@ class TeamDriveList { |
} |
} |
-/** The user's profile picture. */ |
+/// The user's profile picture. |
class UserPicture { |
- /** A URL that points to a profile picture of this user. */ |
+ /// A URL that points to a profile picture of this user. |
core.String url; |
UserPicture(); |
@@ -8277,7 +8478,8 @@ class UserPicture { |
} |
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 (url != null) { |
_json["url"] = url; |
} |
@@ -8285,22 +8487,25 @@ class UserPicture { |
} |
} |
-/** Information about a Drive user. */ |
+/// Information about a Drive user. |
class User { |
- /** A plain text displayable name for this user. */ |
+ /// A plain text displayable name for this user. |
core.String displayName; |
- /** The email address of the user. */ |
+ |
+ /// The email address of the user. |
core.String emailAddress; |
- /** |
- * Whether this user is the same as the authenticated user for whom the |
- * request was made. |
- */ |
+ |
+ /// Whether this user is the same as the authenticated user for whom the |
+ /// request was made. |
core.bool isAuthenticatedUser; |
- /** This is always drive#user. */ |
+ |
+ /// This is always drive#user. |
core.String kind; |
- /** The user's ID as visible in the permissions collection. */ |
+ |
+ /// The user's ID as visible in the permissions collection. |
core.String permissionId; |
- /** The user's profile picture. */ |
+ |
+ /// The user's profile picture. |
UserPicture picture; |
User(); |
@@ -8327,7 +8532,8 @@ class User { |
} |
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; |
} |