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

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

Issue 595873002: Api roll 1: 2014-09-23 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 2 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 library googleapis.drive.v2; 1 library googleapis.drive.v2;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert_1; 6 import "dart:convert" as convert_1;
7 7
8 import "package:crypto/crypto.dart" as crypto; 8 import "package:crypto/crypto.dart" as crypto;
9 import 'package:http/http.dart' as http; 9 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal; 10 import '../src/common_internal.dart' as common_internal;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 CommentsResourceApi get comments => new CommentsResourceApi(_requester); 50 CommentsResourceApi get comments => new CommentsResourceApi(_requester);
51 FilesResourceApi get files => new FilesResourceApi(_requester); 51 FilesResourceApi get files => new FilesResourceApi(_requester);
52 ParentsResourceApi get parents => new ParentsResourceApi(_requester); 52 ParentsResourceApi get parents => new ParentsResourceApi(_requester);
53 PermissionsResourceApi get permissions => new PermissionsResourceApi(_requeste r); 53 PermissionsResourceApi get permissions => new PermissionsResourceApi(_requeste r);
54 PropertiesResourceApi get properties => new PropertiesResourceApi(_requester); 54 PropertiesResourceApi get properties => new PropertiesResourceApi(_requester);
55 RealtimeResourceApi get realtime => new RealtimeResourceApi(_requester); 55 RealtimeResourceApi get realtime => new RealtimeResourceApi(_requester);
56 RepliesResourceApi get replies => new RepliesResourceApi(_requester); 56 RepliesResourceApi get replies => new RepliesResourceApi(_requester);
57 RevisionsResourceApi get revisions => new RevisionsResourceApi(_requester); 57 RevisionsResourceApi get revisions => new RevisionsResourceApi(_requester);
58 58
59 DriveApi(http.Client client) : 59 DriveApi(http.Client client) :
60 _requester = new common_internal.ApiRequester(client, "https://www.googlea pis.com/", "/drive/v2/"); 60 _requester = new common_internal.ApiRequester(client, "https://www.googlea pis.com/", "drive/v2/");
61 } 61 }
62 62
63 63
64 /** Not documented yet. */ 64 /** Not documented yet. */
65 class AboutResourceApi { 65 class AboutResourceApi {
66 final common_internal.ApiRequester _requester; 66 final common_internal.ApiRequester _requester;
67 67
68 AboutResourceApi(common_internal.ApiRequester client) : 68 AboutResourceApi(common_internal.ApiRequester client) :
69 _requester = client; 69 _requester = client;
70 70
(...skipping 5311 matching lines...) Expand 10 before | Expand all | Expand 10 after
5382 _json["image"] = image; 5382 _json["image"] = image;
5383 } 5383 }
5384 if (mimeType != null) { 5384 if (mimeType != null) {
5385 _json["mimeType"] = mimeType; 5385 _json["mimeType"] = mimeType;
5386 } 5386 }
5387 return _json; 5387 return _json;
5388 } 5388 }
5389 } 5389 }
5390 5390
5391 5391
5392 /** Metadata about video media. This will only be present for video types. */
5393 class FileVideoMediaMetadata {
5394 /** The duration of the video in milliseconds. */
5395 core.String durationMillis;
5396
5397 /** The height of the video in pixels. */
5398 core.int height;
5399
5400 /** The width of the video in pixels. */
5401 core.int width;
5402
5403
5404 FileVideoMediaMetadata();
5405
5406 FileVideoMediaMetadata.fromJson(core.Map _json) {
5407 if (_json.containsKey("durationMillis")) {
5408 durationMillis = _json["durationMillis"];
5409 }
5410 if (_json.containsKey("height")) {
5411 height = _json["height"];
5412 }
5413 if (_json.containsKey("width")) {
5414 width = _json["width"];
5415 }
5416 }
5417
5418 core.Map toJson() {
5419 var _json = new core.Map();
5420 if (durationMillis != null) {
5421 _json["durationMillis"] = durationMillis;
5422 }
5423 if (height != null) {
5424 _json["height"] = height;
5425 }
5426 if (width != null) {
5427 _json["width"] = width;
5428 }
5429 return _json;
5430 }
5431 }
5432
5433
5392 /** The metadata for a file. */ 5434 /** The metadata for a file. */
5393 class File { 5435 class File {
5394 /** A link for opening the file in a relevant Google editor or viewer. */ 5436 /** A link for opening the file in a relevant Google editor or viewer. */
5395 core.String alternateLink; 5437 core.String alternateLink;
5396 5438
5397 /** Whether this file is in the Application Data folder. */ 5439 /** Whether this file is in the Application Data folder. */
5398 core.bool appDataContents; 5440 core.bool appDataContents;
5399 5441
5400 /** Whether the file can be copied by the current user. */ 5442 /** Whether the file can be copied by the current user. */
5401 core.bool copyable; 5443 core.bool copyable;
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
5586 /** The permissions for the authenticated user on this file. */ 5628 /** The permissions for the authenticated user on this file. */
5587 Permission userPermission; 5629 Permission userPermission;
5588 5630
5589 /** 5631 /**
5590 * A monotonically increasing version number for the file. This reflects every 5632 * A monotonically increasing version number for the file. This reflects every
5591 * change made to the file on the server, even those not visible to the 5633 * change made to the file on the server, even those not visible to the
5592 * requesting user. 5634 * requesting user.
5593 */ 5635 */
5594 core.String version; 5636 core.String version;
5595 5637
5638 /** Metadata about video media. This will only be present for video types. */
5639 FileVideoMediaMetadata videoMediaMetadata;
5640
5596 /** 5641 /**
5597 * A link for downloading the content of the file in a browser using cookie 5642 * A link for downloading the content of the file in a browser using cookie
5598 * based authentication. In cases where the content is shared publicly, the 5643 * based authentication. In cases where the content is shared publicly, the
5599 * content can be downloaded without any credentials. 5644 * content can be downloaded without any credentials.
5600 */ 5645 */
5601 core.String webContentLink; 5646 core.String webContentLink;
5602 5647
5603 /** 5648 /**
5604 * A link only available on public folders for viewing their static web assets 5649 * A link only available on public folders for viewing their static web assets
5605 * (HTML, CSS, JS, etc) via Google Drive's Website Hosting. 5650 * (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
5744 } 5789 }
5745 if (_json.containsKey("title")) { 5790 if (_json.containsKey("title")) {
5746 title = _json["title"]; 5791 title = _json["title"];
5747 } 5792 }
5748 if (_json.containsKey("userPermission")) { 5793 if (_json.containsKey("userPermission")) {
5749 userPermission = new Permission.fromJson(_json["userPermission"]); 5794 userPermission = new Permission.fromJson(_json["userPermission"]);
5750 } 5795 }
5751 if (_json.containsKey("version")) { 5796 if (_json.containsKey("version")) {
5752 version = _json["version"]; 5797 version = _json["version"];
5753 } 5798 }
5799 if (_json.containsKey("videoMediaMetadata")) {
5800 videoMediaMetadata = new FileVideoMediaMetadata.fromJson(_json["videoMedia Metadata"]);
5801 }
5754 if (_json.containsKey("webContentLink")) { 5802 if (_json.containsKey("webContentLink")) {
5755 webContentLink = _json["webContentLink"]; 5803 webContentLink = _json["webContentLink"];
5756 } 5804 }
5757 if (_json.containsKey("webViewLink")) { 5805 if (_json.containsKey("webViewLink")) {
5758 webViewLink = _json["webViewLink"]; 5806 webViewLink = _json["webViewLink"];
5759 } 5807 }
5760 if (_json.containsKey("writersCanShare")) { 5808 if (_json.containsKey("writersCanShare")) {
5761 writersCanShare = _json["writersCanShare"]; 5809 writersCanShare = _json["writersCanShare"];
5762 } 5810 }
5763 } 5811 }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
5895 } 5943 }
5896 if (title != null) { 5944 if (title != null) {
5897 _json["title"] = title; 5945 _json["title"] = title;
5898 } 5946 }
5899 if (userPermission != null) { 5947 if (userPermission != null) {
5900 _json["userPermission"] = (userPermission).toJson(); 5948 _json["userPermission"] = (userPermission).toJson();
5901 } 5949 }
5902 if (version != null) { 5950 if (version != null) {
5903 _json["version"] = version; 5951 _json["version"] = version;
5904 } 5952 }
5953 if (videoMediaMetadata != null) {
5954 _json["videoMediaMetadata"] = (videoMediaMetadata).toJson();
5955 }
5905 if (webContentLink != null) { 5956 if (webContentLink != null) {
5906 _json["webContentLink"] = webContentLink; 5957 _json["webContentLink"] = webContentLink;
5907 } 5958 }
5908 if (webViewLink != null) { 5959 if (webViewLink != null) {
5909 _json["webViewLink"] = webViewLink; 5960 _json["webViewLink"] = webViewLink;
5910 } 5961 }
5911 if (writersCanShare != null) { 5962 if (writersCanShare != null) {
5912 _json["writersCanShare"] = writersCanShare; 5963 _json["writersCanShare"] = writersCanShare;
5913 } 5964 }
5914 return _json; 5965 return _json;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
6106 6157
6107 /** 6158 /**
6108 * The domain name of the entity this permission refers to. This is an 6159 * The domain name of the entity this permission refers to. This is an
6109 * output-only field which is present when the permission type is user, group 6160 * output-only field which is present when the permission type is user, group
6110 * or domain. 6161 * or domain.
6111 */ 6162 */
6112 core.String domain; 6163 core.String domain;
6113 6164
6114 /** 6165 /**
6115 * The email address of the user this permission refers to. This is an 6166 * The email address of the user this permission refers to. This is an
6116 * output-only field which is present when the permission type is user and the 6167 * output-only field which is present when the permission type is user.
6117 * given user's Google+ profile privacy settings allow exposing their email
6118 * address.
6119 */ 6168 */
6120 core.String emailAddress; 6169 core.String emailAddress;
6121 6170
6122 /** The ETag of the permission. */ 6171 /** The ETag of the permission. */
6123 core.String etag; 6172 core.String etag;
6124 6173
6125 /** 6174 /**
6126 * The ID of the user this permission refers to, and identical to the 6175 * The ID of the user this permission refers to, and identical to the
6127 * permissionId in the About and Files resources. When making a 6176 * permissionId in the About and Files resources. When making a
6128 * drive.permissions.insert request, exactly one of the id or value fields 6177 * drive.permissions.insert request, exactly one of the id or value fields
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
6818 _json["permissionId"] = permissionId; 6867 _json["permissionId"] = permissionId;
6819 } 6868 }
6820 if (picture != null) { 6869 if (picture != null) {
6821 _json["picture"] = (picture).toJson(); 6870 _json["picture"] = (picture).toJson();
6822 } 6871 }
6823 return _json; 6872 return _json;
6824 } 6873 }
6825 } 6874 }
6826 6875
6827 6876
OLDNEW
« no previous file with comments | « generated/googleapis/lib/doubleclicksearch/v2.dart ('k') | generated/googleapis/lib/freebase/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698