Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: generated/googleapis/lib/drive/v2.dart

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.drive.v2; 3 library googleapis.drive.v2;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert_1; 7 import 'dart:convert' as convert_1;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:crypto/crypto.dart' as crypto; 10 import 'package:crypto/crypto.dart' as crypto;
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 "DELETE", 1155 "DELETE",
1156 body: _body, 1156 body: _body,
1157 queryParams: _queryParams, 1157 queryParams: _queryParams,
1158 uploadOptions: _uploadOptions, 1158 uploadOptions: _uploadOptions,
1159 uploadMedia: _uploadMedia, 1159 uploadMedia: _uploadMedia,
1160 downloadOptions: _downloadOptions); 1160 downloadOptions: _downloadOptions);
1161 return _response.then((data) => null); 1161 return _response.then((data) => null);
1162 } 1162 }
1163 1163
1164 /** 1164 /**
1165 * Exports a Google Doc to the requested MIME type and returns the exported
1166 * content.
1167 *
1168 * Request parameters:
1169 *
1170 * [fileId] - The ID of the file.
1171 *
1172 * [mimeType] - The MIME type of the format requested for this export.
1173 *
1174 * [downloadOptions] - Options for downloading. A download can be either a
1175 * Metadata (default) or Media download. Partial Media downloads are possible
1176 * as well.
1177 *
1178 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1179 * error.
1180 *
1181 * If the used [http.Client] completes with an error when making a REST call,
1182 * this method will complete with the same error.
1183 */
1184 async.Future export(core.String fileId, core.String mimeType, {commons.Downloa dOptions downloadOptions: commons.DownloadOptions.Metadata}) {
1185 var _url = null;
1186 var _queryParams = new core.Map();
1187 var _uploadMedia = null;
1188 var _uploadOptions = null;
1189 var _downloadOptions = commons.DownloadOptions.Metadata;
1190 var _body = null;
1191
1192 if (fileId == null) {
1193 throw new core.ArgumentError("Parameter fileId is required.");
1194 }
1195 if (mimeType == null) {
1196 throw new core.ArgumentError("Parameter mimeType is required.");
1197 }
1198 _queryParams["mimeType"] = [mimeType];
1199
1200 _downloadOptions = downloadOptions;
1201
1202 _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/export';
1203
1204 var _response = _requester.request(_url,
1205 "GET",
1206 body: _body,
1207 queryParams: _queryParams,
1208 uploadOptions: _uploadOptions,
1209 uploadMedia: _uploadMedia,
1210 downloadOptions: _downloadOptions);
1211 if (_downloadOptions == null ||
1212 _downloadOptions == commons.DownloadOptions.Metadata) {
1213 return _response.then((data) => null);
1214 } else {
1215 return _response;
1216 }
1217 }
1218
1219 /**
1165 * Generates a set of file IDs which can be provided in insert requests. 1220 * Generates a set of file IDs which can be provided in insert requests.
1166 * 1221 *
1167 * Request parameters: 1222 * Request parameters:
1168 * 1223 *
1169 * [maxResults] - Maximum number of IDs to return. 1224 * [maxResults] - Maximum number of IDs to return.
1170 * Value must be between "1" and "1000". 1225 * Value must be between "1" and "1000".
1171 * 1226 *
1172 * [space] - The space in which the IDs can be used to create new files. 1227 * [space] - The space in which the IDs can be used to create new files.
1173 * Supported values are 'drive' and 'appDataFolder'. 1228 * Supported values are 'drive' and 'appDataFolder'.
1174 * 1229 *
(...skipping 4209 matching lines...) Expand 10 before | Expand all | Expand 10 after
5384 } 5439 }
5385 5440
5386 /** The metadata for a file. */ 5441 /** The metadata for a file. */
5387 class File { 5442 class File {
5388 /** A link for opening the file in a relevant Google editor or viewer. */ 5443 /** A link for opening the file in a relevant Google editor or viewer. */
5389 core.String alternateLink; 5444 core.String alternateLink;
5390 /** Whether this file is in the Application Data folder. */ 5445 /** Whether this file is in the Application Data folder. */
5391 core.bool appDataContents; 5446 core.bool appDataContents;
5392 /** Whether the current user can comment on the file. */ 5447 /** Whether the current user can comment on the file. */
5393 core.bool canComment; 5448 core.bool canComment;
5449 /**
5450 * Whether the current user has read access to the Revisions resource of the
5451 * file.
5452 */
5453 core.bool canReadRevisions;
5394 /** Whether the file can be copied by the current user. */ 5454 /** Whether the file can be copied by the current user. */
5395 core.bool copyable; 5455 core.bool copyable;
5396 /** Create time for this file (formatted RFC 3339 timestamp). */ 5456 /** Create time for this file (formatted RFC 3339 timestamp). */
5397 core.DateTime createdDate; 5457 core.DateTime createdDate;
5398 /** 5458 /**
5399 * A link to open this file with the user's default app for this file. Only 5459 * A link to open this file with the user's default app for this file. Only
5400 * populated when the drive.apps.readonly scope is used. 5460 * populated when the drive.apps.readonly scope is used.
5401 */ 5461 */
5402 core.String defaultOpenWithLink; 5462 core.String defaultOpenWithLink;
5403 /** A short description of the file. */ 5463 /** A short description of the file. */
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
5592 File.fromJson(core.Map _json) { 5652 File.fromJson(core.Map _json) {
5593 if (_json.containsKey("alternateLink")) { 5653 if (_json.containsKey("alternateLink")) {
5594 alternateLink = _json["alternateLink"]; 5654 alternateLink = _json["alternateLink"];
5595 } 5655 }
5596 if (_json.containsKey("appDataContents")) { 5656 if (_json.containsKey("appDataContents")) {
5597 appDataContents = _json["appDataContents"]; 5657 appDataContents = _json["appDataContents"];
5598 } 5658 }
5599 if (_json.containsKey("canComment")) { 5659 if (_json.containsKey("canComment")) {
5600 canComment = _json["canComment"]; 5660 canComment = _json["canComment"];
5601 } 5661 }
5662 if (_json.containsKey("canReadRevisions")) {
5663 canReadRevisions = _json["canReadRevisions"];
5664 }
5602 if (_json.containsKey("copyable")) { 5665 if (_json.containsKey("copyable")) {
5603 copyable = _json["copyable"]; 5666 copyable = _json["copyable"];
5604 } 5667 }
5605 if (_json.containsKey("createdDate")) { 5668 if (_json.containsKey("createdDate")) {
5606 createdDate = core.DateTime.parse(_json["createdDate"]); 5669 createdDate = core.DateTime.parse(_json["createdDate"]);
5607 } 5670 }
5608 if (_json.containsKey("defaultOpenWithLink")) { 5671 if (_json.containsKey("defaultOpenWithLink")) {
5609 defaultOpenWithLink = _json["defaultOpenWithLink"]; 5672 defaultOpenWithLink = _json["defaultOpenWithLink"];
5610 } 5673 }
5611 if (_json.containsKey("description")) { 5674 if (_json.containsKey("description")) {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
5764 var _json = new core.Map(); 5827 var _json = new core.Map();
5765 if (alternateLink != null) { 5828 if (alternateLink != null) {
5766 _json["alternateLink"] = alternateLink; 5829 _json["alternateLink"] = alternateLink;
5767 } 5830 }
5768 if (appDataContents != null) { 5831 if (appDataContents != null) {
5769 _json["appDataContents"] = appDataContents; 5832 _json["appDataContents"] = appDataContents;
5770 } 5833 }
5771 if (canComment != null) { 5834 if (canComment != null) {
5772 _json["canComment"] = canComment; 5835 _json["canComment"] = canComment;
5773 } 5836 }
5837 if (canReadRevisions != null) {
5838 _json["canReadRevisions"] = canReadRevisions;
5839 }
5774 if (copyable != null) { 5840 if (copyable != null) {
5775 _json["copyable"] = copyable; 5841 _json["copyable"] = copyable;
5776 } 5842 }
5777 if (createdDate != null) { 5843 if (createdDate != null) {
5778 _json["createdDate"] = (createdDate).toIso8601String(); 5844 _json["createdDate"] = (createdDate).toIso8601String();
5779 } 5845 }
5780 if (defaultOpenWithLink != null) { 5846 if (defaultOpenWithLink != null) {
5781 _json["defaultOpenWithLink"] = defaultOpenWithLink; 5847 _json["defaultOpenWithLink"] = defaultOpenWithLink;
5782 } 5848 }
5783 if (description != null) { 5849 if (description != null) {
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
6795 } 6861 }
6796 if (permissionId != null) { 6862 if (permissionId != null) {
6797 _json["permissionId"] = permissionId; 6863 _json["permissionId"] = permissionId;
6798 } 6864 }
6799 if (picture != null) { 6865 if (picture != null) {
6800 _json["picture"] = (picture).toJson(); 6866 _json["picture"] = (picture).toJson();
6801 } 6867 }
6802 return _json; 6868 return _json;
6803 } 6869 }
6804 } 6870 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/doubleclicksearch/v2.dart ('k') | generated/googleapis/lib/drive/v3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698