| OLD | NEW |
| 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 4257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4268 * access to Google Drive. | 4268 * access to Google Drive. |
| 4269 */ | 4269 */ |
| 4270 class AppList { | 4270 class AppList { |
| 4271 /** | 4271 /** |
| 4272 * List of app IDs that the user has specified to use by default. The list is | 4272 * List of app IDs that the user has specified to use by default. The list is |
| 4273 * in reverse-priority order (lowest to highest). | 4273 * in reverse-priority order (lowest to highest). |
| 4274 */ | 4274 */ |
| 4275 core.List<core.String> defaultAppIds; | 4275 core.List<core.String> defaultAppIds; |
| 4276 /** The ETag of the list. */ | 4276 /** The ETag of the list. */ |
| 4277 core.String etag; | 4277 core.String etag; |
| 4278 /** The actual list of apps. */ | 4278 /** The list of apps. */ |
| 4279 core.List<App> items; | 4279 core.List<App> items; |
| 4280 /** This is always drive#appList. */ | 4280 /** This is always drive#appList. */ |
| 4281 core.String kind; | 4281 core.String kind; |
| 4282 /** A link back to this list. */ | 4282 /** A link back to this list. */ |
| 4283 core.String selfLink; | 4283 core.String selfLink; |
| 4284 | 4284 |
| 4285 AppList(); | 4285 AppList(); |
| 4286 | 4286 |
| 4287 AppList.fromJson(core.Map _json) { | 4287 AppList.fromJson(core.Map _json) { |
| 4288 if (_json.containsKey("defaultAppIds")) { | 4288 if (_json.containsKey("defaultAppIds")) { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4392 _json["selfLink"] = selfLink; | 4392 _json["selfLink"] = selfLink; |
| 4393 } | 4393 } |
| 4394 return _json; | 4394 return _json; |
| 4395 } | 4395 } |
| 4396 } | 4396 } |
| 4397 | 4397 |
| 4398 /** A list of changes for a user. */ | 4398 /** A list of changes for a user. */ |
| 4399 class ChangeList { | 4399 class ChangeList { |
| 4400 /** The ETag of the list. */ | 4400 /** The ETag of the list. */ |
| 4401 core.String etag; | 4401 core.String etag; |
| 4402 /** The actual list of changes. */ | 4402 /** |
| 4403 * The list of changes. If nextPageToken is populated, then this list may be |
| 4404 * incomplete and an additional page of results should be fetched. |
| 4405 */ |
| 4403 core.List<Change> items; | 4406 core.List<Change> items; |
| 4404 /** This is always drive#changeList. */ | 4407 /** This is always drive#changeList. */ |
| 4405 core.String kind; | 4408 core.String kind; |
| 4406 /** The current largest change ID. */ | 4409 /** The current largest change ID. */ |
| 4407 core.String largestChangeId; | 4410 core.String largestChangeId; |
| 4408 /** A link to the next page of changes. */ | 4411 /** A link to the next page of changes. */ |
| 4409 core.String nextLink; | 4412 core.String nextLink; |
| 4410 /** The page token for the next page of changes. */ | 4413 /** |
| 4414 * The page token for the next page of changes. This will be absent if the end |
| 4415 * of the changes list has been reached. If the token is rejected for any |
| 4416 * reason, it should be discarded, and pagination should be restarted from the |
| 4417 * first page of results. |
| 4418 */ |
| 4411 core.String nextPageToken; | 4419 core.String nextPageToken; |
| 4412 /** A link back to this list. */ | 4420 /** A link back to this list. */ |
| 4413 core.String selfLink; | 4421 core.String selfLink; |
| 4414 | 4422 |
| 4415 ChangeList(); | 4423 ChangeList(); |
| 4416 | 4424 |
| 4417 ChangeList.fromJson(core.Map _json) { | 4425 ChangeList.fromJson(core.Map _json) { |
| 4418 if (_json.containsKey("etag")) { | 4426 if (_json.containsKey("etag")) { |
| 4419 etag = _json["etag"]; | 4427 etag = _json["etag"]; |
| 4420 } | 4428 } |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4568 _json["type"] = type; | 4576 _json["type"] = type; |
| 4569 } | 4577 } |
| 4570 return _json; | 4578 return _json; |
| 4571 } | 4579 } |
| 4572 } | 4580 } |
| 4573 | 4581 |
| 4574 /** A list of children of a file. */ | 4582 /** A list of children of a file. */ |
| 4575 class ChildList { | 4583 class ChildList { |
| 4576 /** The ETag of the list. */ | 4584 /** The ETag of the list. */ |
| 4577 core.String etag; | 4585 core.String etag; |
| 4578 /** The actual list of children. */ | 4586 /** |
| 4587 * The list of children. If nextPageToken is populated, then this list may be |
| 4588 * incomplete and an additional page of results should be fetched. |
| 4589 */ |
| 4579 core.List<ChildReference> items; | 4590 core.List<ChildReference> items; |
| 4580 /** This is always drive#childList. */ | 4591 /** This is always drive#childList. */ |
| 4581 core.String kind; | 4592 core.String kind; |
| 4582 /** A link to the next page of children. */ | 4593 /** A link to the next page of children. */ |
| 4583 core.String nextLink; | 4594 core.String nextLink; |
| 4584 /** The page token for the next page of children. */ | 4595 /** |
| 4596 * The page token for the next page of children. This will be absent if the |
| 4597 * end of the children list has been reached. If the token is rejected for any |
| 4598 * reason, it should be discarded, and pagination should be restarted from the |
| 4599 * first page of results. |
| 4600 */ |
| 4585 core.String nextPageToken; | 4601 core.String nextPageToken; |
| 4586 /** A link back to this list. */ | 4602 /** A link back to this list. */ |
| 4587 core.String selfLink; | 4603 core.String selfLink; |
| 4588 | 4604 |
| 4589 ChildList(); | 4605 ChildList(); |
| 4590 | 4606 |
| 4591 ChildList.fromJson(core.Map _json) { | 4607 ChildList.fromJson(core.Map _json) { |
| 4592 if (_json.containsKey("etag")) { | 4608 if (_json.containsKey("etag")) { |
| 4593 etag = _json["etag"]; | 4609 etag = _json["etag"]; |
| 4594 } | 4610 } |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4858 } | 4874 } |
| 4859 if (status != null) { | 4875 if (status != null) { |
| 4860 _json["status"] = status; | 4876 _json["status"] = status; |
| 4861 } | 4877 } |
| 4862 return _json; | 4878 return _json; |
| 4863 } | 4879 } |
| 4864 } | 4880 } |
| 4865 | 4881 |
| 4866 /** A list of comments on a file in Google Drive. */ | 4882 /** A list of comments on a file in Google Drive. */ |
| 4867 class CommentList { | 4883 class CommentList { |
| 4868 /** List of comments. */ | 4884 /** |
| 4885 * The list of comments. If nextPageToken is populated, then this list may be |
| 4886 * incomplete and an additional page of results should be fetched. |
| 4887 */ |
| 4869 core.List<Comment> items; | 4888 core.List<Comment> items; |
| 4870 /** This is always drive#commentList. */ | 4889 /** This is always drive#commentList. */ |
| 4871 core.String kind; | 4890 core.String kind; |
| 4872 /** A link to the next page of comments. */ | 4891 /** A link to the next page of comments. */ |
| 4873 core.String nextLink; | 4892 core.String nextLink; |
| 4874 /** The token to use to request the next page of results. */ | 4893 /** |
| 4894 * The page token for the next page of comments. This will be absent if the |
| 4895 * end of the comments list has been reached. If the token is rejected for any |
| 4896 * reason, it should be discarded, and pagination should be restarted from the |
| 4897 * first page of results. |
| 4898 */ |
| 4875 core.String nextPageToken; | 4899 core.String nextPageToken; |
| 4876 /** A link back to this list. */ | 4900 /** A link back to this list. */ |
| 4877 core.String selfLink; | 4901 core.String selfLink; |
| 4878 | 4902 |
| 4879 CommentList(); | 4903 CommentList(); |
| 4880 | 4904 |
| 4881 CommentList.fromJson(core.Map _json) { | 4905 CommentList.fromJson(core.Map _json) { |
| 4882 if (_json.containsKey("items")) { | 4906 if (_json.containsKey("items")) { |
| 4883 items = _json["items"].map((value) => new Comment.fromJson(value)).toList(
); | 4907 items = _json["items"].map((value) => new Comment.fromJson(value)).toList(
); |
| 4884 } | 4908 } |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5012 } | 5036 } |
| 5013 if (verb != null) { | 5037 if (verb != null) { |
| 5014 _json["verb"] = verb; | 5038 _json["verb"] = verb; |
| 5015 } | 5039 } |
| 5016 return _json; | 5040 return _json; |
| 5017 } | 5041 } |
| 5018 } | 5042 } |
| 5019 | 5043 |
| 5020 /** A list of replies to a comment on a file in Google Drive. */ | 5044 /** A list of replies to a comment on a file in Google Drive. */ |
| 5021 class CommentReplyList { | 5045 class CommentReplyList { |
| 5022 /** List of reply. */ | 5046 /** |
| 5047 * The list of replies. If nextPageToken is populated, then this list may be |
| 5048 * incomplete and an additional page of results should be fetched. |
| 5049 */ |
| 5023 core.List<CommentReply> items; | 5050 core.List<CommentReply> items; |
| 5024 /** This is always drive#commentReplyList. */ | 5051 /** This is always drive#commentReplyList. */ |
| 5025 core.String kind; | 5052 core.String kind; |
| 5026 /** A link to the next page of replies. */ | 5053 /** A link to the next page of replies. */ |
| 5027 core.String nextLink; | 5054 core.String nextLink; |
| 5028 /** The token to use to request the next page of results. */ | 5055 /** |
| 5056 * The page token for the next page of replies. This will be absent if the end |
| 5057 * of the replies list has been reached. If the token is rejected for any |
| 5058 * reason, it should be discarded, and pagination should be restarted from the |
| 5059 * first page of results. |
| 5060 */ |
| 5029 core.String nextPageToken; | 5061 core.String nextPageToken; |
| 5030 /** A link back to this list. */ | 5062 /** A link back to this list. */ |
| 5031 core.String selfLink; | 5063 core.String selfLink; |
| 5032 | 5064 |
| 5033 CommentReplyList(); | 5065 CommentReplyList(); |
| 5034 | 5066 |
| 5035 CommentReplyList.fromJson(core.Map _json) { | 5067 CommentReplyList.fromJson(core.Map _json) { |
| 5036 if (_json.containsKey("items")) { | 5068 if (_json.containsKey("items")) { |
| 5037 items = _json["items"].map((value) => new CommentReply.fromJson(value)).to
List(); | 5069 items = _json["items"].map((value) => new CommentReply.fromJson(value)).to
List(); |
| 5038 } | 5070 } |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5650 * A thumbnail for the file. This will only be used if Drive cannot generate a | 5682 * A thumbnail for the file. This will only be used if Drive cannot generate a |
| 5651 * standard thumbnail. | 5683 * standard thumbnail. |
| 5652 */ | 5684 */ |
| 5653 FileThumbnail thumbnail; | 5685 FileThumbnail thumbnail; |
| 5654 /** | 5686 /** |
| 5655 * A short-lived link to the file's thumbnail. Typically lasts on the order of | 5687 * A short-lived link to the file's thumbnail. Typically lasts on the order of |
| 5656 * hours. Only populated when the requesting app can access the file's | 5688 * hours. Only populated when the requesting app can access the file's |
| 5657 * content. | 5689 * content. |
| 5658 */ | 5690 */ |
| 5659 core.String thumbnailLink; | 5691 core.String thumbnailLink; |
| 5660 /** | 5692 /** The thumbnail version for use in thumbnail cache invalidation. */ |
| 5661 * The thumbnail version for use in client-contructable thumbnail URLs or | |
| 5662 * thumbnail cache invalidation. | |
| 5663 */ | |
| 5664 core.String thumbnailVersion; | 5693 core.String thumbnailVersion; |
| 5665 /** The title of this file. */ | 5694 /** The title of this file. */ |
| 5666 core.String title; | 5695 core.String title; |
| 5667 /** The permissions for the authenticated user on this file. */ | 5696 /** The permissions for the authenticated user on this file. */ |
| 5668 Permission userPermission; | 5697 Permission userPermission; |
| 5669 /** | 5698 /** |
| 5670 * A monotonically increasing version number for the file. This reflects every | 5699 * A monotonically increasing version number for the file. This reflects every |
| 5671 * change made to the file on the server, even those not visible to the | 5700 * change made to the file on the server, even those not visible to the |
| 5672 * requesting user. | 5701 * requesting user. |
| 5673 */ | 5702 */ |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6056 _json["writersCanShare"] = writersCanShare; | 6085 _json["writersCanShare"] = writersCanShare; |
| 6057 } | 6086 } |
| 6058 return _json; | 6087 return _json; |
| 6059 } | 6088 } |
| 6060 } | 6089 } |
| 6061 | 6090 |
| 6062 /** A list of files. */ | 6091 /** A list of files. */ |
| 6063 class FileList { | 6092 class FileList { |
| 6064 /** The ETag of the list. */ | 6093 /** The ETag of the list. */ |
| 6065 core.String etag; | 6094 core.String etag; |
| 6066 /** The actual list of files. */ | 6095 /** |
| 6096 * The list of files. If nextPageToken is populated, then this list may be |
| 6097 * incomplete and an additional page of results should be fetched. |
| 6098 */ |
| 6067 core.List<File> items; | 6099 core.List<File> items; |
| 6068 /** This is always drive#fileList. */ | 6100 /** This is always drive#fileList. */ |
| 6069 core.String kind; | 6101 core.String kind; |
| 6070 /** A link to the next page of files. */ | 6102 /** A link to the next page of files. */ |
| 6071 core.String nextLink; | 6103 core.String nextLink; |
| 6072 /** The page token for the next page of files. */ | 6104 /** |
| 6105 * The page token for the next page of files. This will be absent if the end |
| 6106 * of the files list has been reached. If the token is rejected for any |
| 6107 * reason, it should be discarded, and pagination should be restarted from the |
| 6108 * first page of results. |
| 6109 */ |
| 6073 core.String nextPageToken; | 6110 core.String nextPageToken; |
| 6074 /** A link back to this list. */ | 6111 /** A link back to this list. */ |
| 6075 core.String selfLink; | 6112 core.String selfLink; |
| 6076 | 6113 |
| 6077 FileList(); | 6114 FileList(); |
| 6078 | 6115 |
| 6079 FileList.fromJson(core.Map _json) { | 6116 FileList.fromJson(core.Map _json) { |
| 6080 if (_json.containsKey("etag")) { | 6117 if (_json.containsKey("etag")) { |
| 6081 etag = _json["etag"]; | 6118 etag = _json["etag"]; |
| 6082 } | 6119 } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6156 _json["space"] = space; | 6193 _json["space"] = space; |
| 6157 } | 6194 } |
| 6158 return _json; | 6195 return _json; |
| 6159 } | 6196 } |
| 6160 } | 6197 } |
| 6161 | 6198 |
| 6162 /** A list of a file's parents. */ | 6199 /** A list of a file's parents. */ |
| 6163 class ParentList { | 6200 class ParentList { |
| 6164 /** The ETag of the list. */ | 6201 /** The ETag of the list. */ |
| 6165 core.String etag; | 6202 core.String etag; |
| 6166 /** The actual list of parents. */ | 6203 /** The list of parents. */ |
| 6167 core.List<ParentReference> items; | 6204 core.List<ParentReference> items; |
| 6168 /** This is always drive#parentList. */ | 6205 /** This is always drive#parentList. */ |
| 6169 core.String kind; | 6206 core.String kind; |
| 6170 /** A link back to this list. */ | 6207 /** A link back to this list. */ |
| 6171 core.String selfLink; | 6208 core.String selfLink; |
| 6172 | 6209 |
| 6173 ParentList(); | 6210 ParentList(); |
| 6174 | 6211 |
| 6175 ParentList.fromJson(core.Map _json) { | 6212 ParentList.fromJson(core.Map _json) { |
| 6176 if (_json.containsKey("etag")) { | 6213 if (_json.containsKey("etag")) { |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6451 _json["kind"] = kind; | 6488 _json["kind"] = kind; |
| 6452 } | 6489 } |
| 6453 return _json; | 6490 return _json; |
| 6454 } | 6491 } |
| 6455 } | 6492 } |
| 6456 | 6493 |
| 6457 /** A list of permissions associated with a file. */ | 6494 /** A list of permissions associated with a file. */ |
| 6458 class PermissionList { | 6495 class PermissionList { |
| 6459 /** The ETag of the list. */ | 6496 /** The ETag of the list. */ |
| 6460 core.String etag; | 6497 core.String etag; |
| 6461 /** The actual list of permissions. */ | 6498 /** The list of permissions. */ |
| 6462 core.List<Permission> items; | 6499 core.List<Permission> items; |
| 6463 /** This is always drive#permissionList. */ | 6500 /** This is always drive#permissionList. */ |
| 6464 core.String kind; | 6501 core.String kind; |
| 6465 /** A link back to this list. */ | 6502 /** A link back to this list. */ |
| 6466 core.String selfLink; | 6503 core.String selfLink; |
| 6467 | 6504 |
| 6468 PermissionList(); | 6505 PermissionList(); |
| 6469 | 6506 |
| 6470 PermissionList.fromJson(core.Map _json) { | 6507 PermissionList.fromJson(core.Map _json) { |
| 6471 if (_json.containsKey("etag")) { | 6508 if (_json.containsKey("etag")) { |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6802 _json["selfLink"] = selfLink; | 6839 _json["selfLink"] = selfLink; |
| 6803 } | 6840 } |
| 6804 return _json; | 6841 return _json; |
| 6805 } | 6842 } |
| 6806 } | 6843 } |
| 6807 | 6844 |
| 6808 /** A list of revisions of a file. */ | 6845 /** A list of revisions of a file. */ |
| 6809 class RevisionList { | 6846 class RevisionList { |
| 6810 /** The ETag of the list. */ | 6847 /** The ETag of the list. */ |
| 6811 core.String etag; | 6848 core.String etag; |
| 6812 /** The actual list of revisions. */ | 6849 /** |
| 6850 * The list of revisions. If nextPageToken is populated, then this list may be |
| 6851 * incomplete and an additional page of results should be fetched. |
| 6852 */ |
| 6813 core.List<Revision> items; | 6853 core.List<Revision> items; |
| 6814 /** This is always drive#revisionList. */ | 6854 /** This is always drive#revisionList. */ |
| 6815 core.String kind; | 6855 core.String kind; |
| 6816 /** | 6856 /** |
| 6817 * The page token for the next page of revisions. This field will be absent if | 6857 * The page token for the next page of revisions. This field will be absent if |
| 6818 * the end of the revisions list has been reached. If the token is rejected | 6858 * the end of the revisions list has been reached. If the token is rejected |
| 6819 * for any reason, it should be discarded and pagination should be restarted | 6859 * for any reason, it should be discarded and pagination should be restarted |
| 6820 * from the first page of results. | 6860 * from the first page of results. |
| 6821 */ | 6861 */ |
| 6822 core.String nextPageToken; | 6862 core.String nextPageToken; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6943 } | 6983 } |
| 6944 if (permissionId != null) { | 6984 if (permissionId != null) { |
| 6945 _json["permissionId"] = permissionId; | 6985 _json["permissionId"] = permissionId; |
| 6946 } | 6986 } |
| 6947 if (picture != null) { | 6987 if (picture != null) { |
| 6948 _json["picture"] = (picture).toJson(); | 6988 _json["picture"] = (picture).toJson(); |
| 6949 } | 6989 } |
| 6950 return _json; | 6990 return _json; |
| 6951 } | 6991 } |
| 6952 } | 6992 } |
| OLD | NEW |