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

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

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 3395 matching lines...) Expand 10 before | Expand all | Expand 10 after
3406 return _response.then((data) => new Revision.fromJson(data)); 3406 return _response.then((data) => new Revision.fromJson(data));
3407 } 3407 }
3408 3408
3409 /** 3409 /**
3410 * Lists a file's revisions. 3410 * Lists a file's revisions.
3411 * 3411 *
3412 * Request parameters: 3412 * Request parameters:
3413 * 3413 *
3414 * [fileId] - The ID of the file. 3414 * [fileId] - The ID of the file.
3415 * 3415 *
3416 * [maxResults] - Maximum number of revisions to return.
3417 *
3418 * [pageToken] - Page token for revisions. To get the next page of results,
3419 * set this parameter to the value of "nextPageToken" from the previous
3420 * response.
3421 *
3416 * Completes with a [RevisionList]. 3422 * Completes with a [RevisionList].
3417 * 3423 *
3418 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3424 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3419 * error. 3425 * error.
3420 * 3426 *
3421 * If the used [http.Client] completes with an error when making a REST call, 3427 * If the used [http.Client] completes with an error when making a REST call,
3422 * this method will complete with the same error. 3428 * this method will complete with the same error.
3423 */ 3429 */
3424 async.Future<RevisionList> list(core.String fileId) { 3430 async.Future<RevisionList> list(core.String fileId, {core.int maxResults, core .String pageToken}) {
3425 var _url = null; 3431 var _url = null;
3426 var _queryParams = new core.Map(); 3432 var _queryParams = new core.Map();
3427 var _uploadMedia = null; 3433 var _uploadMedia = null;
3428 var _uploadOptions = null; 3434 var _uploadOptions = null;
3429 var _downloadOptions = commons.DownloadOptions.Metadata; 3435 var _downloadOptions = commons.DownloadOptions.Metadata;
3430 var _body = null; 3436 var _body = null;
3431 3437
3432 if (fileId == null) { 3438 if (fileId == null) {
3433 throw new core.ArgumentError("Parameter fileId is required."); 3439 throw new core.ArgumentError("Parameter fileId is required.");
3434 } 3440 }
3441 if (maxResults != null) {
3442 _queryParams["maxResults"] = ["${maxResults}"];
3443 }
3444 if (pageToken != null) {
3445 _queryParams["pageToken"] = [pageToken];
3446 }
3435 3447
3436 _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/revisions'; 3448 _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/revisions';
3437 3449
3438 var _response = _requester.request(_url, 3450 var _response = _requester.request(_url,
3439 "GET", 3451 "GET",
3440 body: _body, 3452 body: _body,
3441 queryParams: _queryParams, 3453 queryParams: _queryParams,
3442 uploadOptions: _uploadOptions, 3454 uploadOptions: _uploadOptions,
3443 uploadMedia: _uploadMedia, 3455 uploadMedia: _uploadMedia,
3444 downloadOptions: _downloadOptions); 3456 downloadOptions: _downloadOptions);
(...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after
5305 _json["text"] = text; 5317 _json["text"] = text;
5306 } 5318 }
5307 return _json; 5319 return _json;
5308 } 5320 }
5309 } 5321 }
5310 5322
5311 /** A group of labels for the file. */ 5323 /** A group of labels for the file. */
5312 class FileLabels { 5324 class FileLabels {
5313 /** Deprecated. */ 5325 /** Deprecated. */
5314 core.bool hidden; 5326 core.bool hidden;
5327 /** Whether the file has been modified by this user. */
5328 core.bool modified;
5315 /** 5329 /**
5316 * Whether viewers and commenters are prevented from downloading, printing, 5330 * Whether viewers and commenters are prevented from downloading, printing,
5317 * and copying this file. 5331 * and copying this file.
5318 */ 5332 */
5319 core.bool restricted; 5333 core.bool restricted;
5320 /** Whether this file is starred by the user. */ 5334 /** Whether this file is starred by the user. */
5321 core.bool starred; 5335 core.bool starred;
5322 /** 5336 /**
5323 * Whether this file has been trashed. This label applies to all users 5337 * Whether this file has been trashed. This label applies to all users
5324 * accessing the file; however, only owners are allowed to see and untrash 5338 * accessing the file; however, only owners are allowed to see and untrash
5325 * files. 5339 * files.
5326 */ 5340 */
5327 core.bool trashed; 5341 core.bool trashed;
5328 /** Whether this file has been viewed by this user. */ 5342 /** Whether this file has been viewed by this user. */
5329 core.bool viewed; 5343 core.bool viewed;
5330 5344
5331 FileLabels(); 5345 FileLabels();
5332 5346
5333 FileLabels.fromJson(core.Map _json) { 5347 FileLabels.fromJson(core.Map _json) {
5334 if (_json.containsKey("hidden")) { 5348 if (_json.containsKey("hidden")) {
5335 hidden = _json["hidden"]; 5349 hidden = _json["hidden"];
5336 } 5350 }
5351 if (_json.containsKey("modified")) {
5352 modified = _json["modified"];
5353 }
5337 if (_json.containsKey("restricted")) { 5354 if (_json.containsKey("restricted")) {
5338 restricted = _json["restricted"]; 5355 restricted = _json["restricted"];
5339 } 5356 }
5340 if (_json.containsKey("starred")) { 5357 if (_json.containsKey("starred")) {
5341 starred = _json["starred"]; 5358 starred = _json["starred"];
5342 } 5359 }
5343 if (_json.containsKey("trashed")) { 5360 if (_json.containsKey("trashed")) {
5344 trashed = _json["trashed"]; 5361 trashed = _json["trashed"];
5345 } 5362 }
5346 if (_json.containsKey("viewed")) { 5363 if (_json.containsKey("viewed")) {
5347 viewed = _json["viewed"]; 5364 viewed = _json["viewed"];
5348 } 5365 }
5349 } 5366 }
5350 5367
5351 core.Map toJson() { 5368 core.Map toJson() {
5352 var _json = new core.Map(); 5369 var _json = new core.Map();
5353 if (hidden != null) { 5370 if (hidden != null) {
5354 _json["hidden"] = hidden; 5371 _json["hidden"] = hidden;
5355 } 5372 }
5373 if (modified != null) {
5374 _json["modified"] = modified;
5375 }
5356 if (restricted != null) { 5376 if (restricted != null) {
5357 _json["restricted"] = restricted; 5377 _json["restricted"] = restricted;
5358 } 5378 }
5359 if (starred != null) { 5379 if (starred != null) {
5360 _json["starred"] = starred; 5380 _json["starred"] = starred;
5361 } 5381 }
5362 if (trashed != null) { 5382 if (trashed != null) {
5363 _json["trashed"] = trashed; 5383 _json["trashed"] = trashed;
5364 } 5384 }
5365 if (viewed != null) { 5385 if (viewed != null) {
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
6765 } 6785 }
6766 6786
6767 /** A list of revisions of a file. */ 6787 /** A list of revisions of a file. */
6768 class RevisionList { 6788 class RevisionList {
6769 /** The ETag of the list. */ 6789 /** The ETag of the list. */
6770 core.String etag; 6790 core.String etag;
6771 /** The actual list of revisions. */ 6791 /** The actual list of revisions. */
6772 core.List<Revision> items; 6792 core.List<Revision> items;
6773 /** This is always drive#revisionList. */ 6793 /** This is always drive#revisionList. */
6774 core.String kind; 6794 core.String kind;
6795 /**
6796 * The page token for the next page of revisions. This field will be absent if
6797 * the end of the revisions list has been reached. If the token is rejected
6798 * for any reason, it should be discarded and pagination should be restarted
6799 * from the first page of results.
6800 */
6801 core.String nextPageToken;
6775 /** A link back to this list. */ 6802 /** A link back to this list. */
6776 core.String selfLink; 6803 core.String selfLink;
6777 6804
6778 RevisionList(); 6805 RevisionList();
6779 6806
6780 RevisionList.fromJson(core.Map _json) { 6807 RevisionList.fromJson(core.Map _json) {
6781 if (_json.containsKey("etag")) { 6808 if (_json.containsKey("etag")) {
6782 etag = _json["etag"]; 6809 etag = _json["etag"];
6783 } 6810 }
6784 if (_json.containsKey("items")) { 6811 if (_json.containsKey("items")) {
6785 items = _json["items"].map((value) => new Revision.fromJson(value)).toList (); 6812 items = _json["items"].map((value) => new Revision.fromJson(value)).toList ();
6786 } 6813 }
6787 if (_json.containsKey("kind")) { 6814 if (_json.containsKey("kind")) {
6788 kind = _json["kind"]; 6815 kind = _json["kind"];
6789 } 6816 }
6817 if (_json.containsKey("nextPageToken")) {
6818 nextPageToken = _json["nextPageToken"];
6819 }
6790 if (_json.containsKey("selfLink")) { 6820 if (_json.containsKey("selfLink")) {
6791 selfLink = _json["selfLink"]; 6821 selfLink = _json["selfLink"];
6792 } 6822 }
6793 } 6823 }
6794 6824
6795 core.Map toJson() { 6825 core.Map toJson() {
6796 var _json = new core.Map(); 6826 var _json = new core.Map();
6797 if (etag != null) { 6827 if (etag != null) {
6798 _json["etag"] = etag; 6828 _json["etag"] = etag;
6799 } 6829 }
6800 if (items != null) { 6830 if (items != null) {
6801 _json["items"] = items.map((value) => (value).toJson()).toList(); 6831 _json["items"] = items.map((value) => (value).toJson()).toList();
6802 } 6832 }
6803 if (kind != null) { 6833 if (kind != null) {
6804 _json["kind"] = kind; 6834 _json["kind"] = kind;
6805 } 6835 }
6836 if (nextPageToken != null) {
6837 _json["nextPageToken"] = nextPageToken;
6838 }
6806 if (selfLink != null) { 6839 if (selfLink != null) {
6807 _json["selfLink"] = selfLink; 6840 _json["selfLink"] = selfLink;
6808 } 6841 }
6809 return _json; 6842 return _json;
6810 } 6843 }
6811 } 6844 }
6812 6845
6813 /** The user's profile picture. */ 6846 /** The user's profile picture. */
6814 class UserPicture { 6847 class UserPicture {
6815 /** A URL that points to a profile picture of this user. */ 6848 /** A URL that points to a profile picture of this user. */
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
6889 } 6922 }
6890 if (permissionId != null) { 6923 if (permissionId != null) {
6891 _json["permissionId"] = permissionId; 6924 _json["permissionId"] = permissionId;
6892 } 6925 }
6893 if (picture != null) { 6926 if (picture != null) {
6894 _json["picture"] = (picture).toJson(); 6927 _json["picture"] = (picture).toJson();
6895 } 6928 }
6896 return _json; 6929 return _json;
6897 } 6930 }
6898 } 6931 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/doubleclickbidmanager/v1.dart ('k') | generated/googleapis/lib/drive/v3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698