| 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.v3; | 3 library googleapis.drive.v3; |
| 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; | 7 import 'dart:convert' as convert; |
| 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 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2194 } | 2194 } |
| 2195 if (time != null) { | 2195 if (time != null) { |
| 2196 _json["time"] = (time).toIso8601String(); | 2196 _json["time"] = (time).toIso8601String(); |
| 2197 } | 2197 } |
| 2198 return _json; | 2198 return _json; |
| 2199 } | 2199 } |
| 2200 } | 2200 } |
| 2201 | 2201 |
| 2202 /** A list of changes for a user. */ | 2202 /** A list of changes for a user. */ |
| 2203 class ChangeList { | 2203 class ChangeList { |
| 2204 /** The page of changes. */ | 2204 /** |
| 2205 * The list of changes. If nextPageToken is populated, then this list may be |
| 2206 * incomplete and an additional page of results should be fetched. |
| 2207 */ |
| 2205 core.List<Change> changes; | 2208 core.List<Change> changes; |
| 2206 /** | 2209 /** |
| 2207 * Identifies what kind of resource this is. Value: the fixed string | 2210 * Identifies what kind of resource this is. Value: the fixed string |
| 2208 * "drive#changeList". | 2211 * "drive#changeList". |
| 2209 */ | 2212 */ |
| 2210 core.String kind; | 2213 core.String kind; |
| 2211 /** | 2214 /** |
| 2212 * The starting page token for future changes. This will be present only if | 2215 * The starting page token for future changes. This will be present only if |
| 2213 * the end of the current changes list has been reached. | 2216 * the end of the current changes list has been reached. |
| 2214 */ | 2217 */ |
| 2215 core.String newStartPageToken; | 2218 core.String newStartPageToken; |
| 2216 /** | 2219 /** |
| 2217 * The page token for the next page of changes. This will be absent if the end | 2220 * The page token for the next page of changes. This will be absent if the end |
| 2218 * of the current changes list has been reached. | 2221 * of the changes list has been reached. If the token is rejected for any |
| 2222 * reason, it should be discarded, and pagination should be restarted from the |
| 2223 * first page of results. |
| 2219 */ | 2224 */ |
| 2220 core.String nextPageToken; | 2225 core.String nextPageToken; |
| 2221 | 2226 |
| 2222 ChangeList(); | 2227 ChangeList(); |
| 2223 | 2228 |
| 2224 ChangeList.fromJson(core.Map _json) { | 2229 ChangeList.fromJson(core.Map _json) { |
| 2225 if (_json.containsKey("changes")) { | 2230 if (_json.containsKey("changes")) { |
| 2226 changes = _json["changes"].map((value) => new Change.fromJson(value)).toLi
st(); | 2231 changes = _json["changes"].map((value) => new Change.fromJson(value)).toLi
st(); |
| 2227 } | 2232 } |
| 2228 if (_json.containsKey("kind")) { | 2233 if (_json.containsKey("kind")) { |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2520 } | 2525 } |
| 2521 if (resolved != null) { | 2526 if (resolved != null) { |
| 2522 _json["resolved"] = resolved; | 2527 _json["resolved"] = resolved; |
| 2523 } | 2528 } |
| 2524 return _json; | 2529 return _json; |
| 2525 } | 2530 } |
| 2526 } | 2531 } |
| 2527 | 2532 |
| 2528 /** A list of comments on a file. */ | 2533 /** A list of comments on a file. */ |
| 2529 class CommentList { | 2534 class CommentList { |
| 2530 /** The page of comments. */ | 2535 /** |
| 2536 * The list of comments. If nextPageToken is populated, then this list may be |
| 2537 * incomplete and an additional page of results should be fetched. |
| 2538 */ |
| 2531 core.List<Comment> comments; | 2539 core.List<Comment> comments; |
| 2532 /** | 2540 /** |
| 2533 * Identifies what kind of resource this is. Value: the fixed string | 2541 * Identifies what kind of resource this is. Value: the fixed string |
| 2534 * "drive#commentList". | 2542 * "drive#commentList". |
| 2535 */ | 2543 */ |
| 2536 core.String kind; | 2544 core.String kind; |
| 2537 /** | 2545 /** |
| 2538 * The page token for the next page of comments. This will be absent if the | 2546 * The page token for the next page of comments. This will be absent if the |
| 2539 * end of the comments list has been reached. | 2547 * end of the comments list has been reached. If the token is rejected for any |
| 2548 * reason, it should be discarded, and pagination should be restarted from the |
| 2549 * first page of results. |
| 2540 */ | 2550 */ |
| 2541 core.String nextPageToken; | 2551 core.String nextPageToken; |
| 2542 | 2552 |
| 2543 CommentList(); | 2553 CommentList(); |
| 2544 | 2554 |
| 2545 CommentList.fromJson(core.Map _json) { | 2555 CommentList.fromJson(core.Map _json) { |
| 2546 if (_json.containsKey("comments")) { | 2556 if (_json.containsKey("comments")) { |
| 2547 comments = _json["comments"].map((value) => new Comment.fromJson(value)).t
oList(); | 2557 comments = _json["comments"].map((value) => new Comment.fromJson(value)).t
oList(); |
| 2548 } | 2558 } |
| 2549 if (_json.containsKey("kind")) { | 2559 if (_json.containsKey("kind")) { |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3121 */ | 3131 */ |
| 3122 core.List<core.String> spaces; | 3132 core.List<core.String> spaces; |
| 3123 /** Whether the user has starred the file. */ | 3133 /** Whether the user has starred the file. */ |
| 3124 core.bool starred; | 3134 core.bool starred; |
| 3125 /** | 3135 /** |
| 3126 * A short-lived link to the file's thumbnail, if available. Typically lasts | 3136 * A short-lived link to the file's thumbnail, if available. Typically lasts |
| 3127 * on the order of hours. Only populated when the requesting app can access | 3137 * on the order of hours. Only populated when the requesting app can access |
| 3128 * the file's content. | 3138 * the file's content. |
| 3129 */ | 3139 */ |
| 3130 core.String thumbnailLink; | 3140 core.String thumbnailLink; |
| 3131 /** | 3141 /** The thumbnail version for use in thumbnail cache invalidation. */ |
| 3132 * The thumbnail version for use in client-contructable thumbnail URLs or | |
| 3133 * thumbnail cache invalidation. | |
| 3134 */ | |
| 3135 core.String thumbnailVersion; | 3142 core.String thumbnailVersion; |
| 3136 /** | 3143 /** |
| 3137 * Whether the file has been trashed, either explicitly or from a trashed | 3144 * Whether the file has been trashed, either explicitly or from a trashed |
| 3138 * parent folder. Only the owner may trash a file, and other users cannot see | 3145 * parent folder. Only the owner may trash a file, and other users cannot see |
| 3139 * files in the owner's trash. | 3146 * files in the owner's trash. |
| 3140 */ | 3147 */ |
| 3141 core.bool trashed; | 3148 core.bool trashed; |
| 3142 /** | 3149 /** |
| 3143 * A monotonically increasing version number for the file. This reflects every | 3150 * A monotonically increasing version number for the file. This reflects every |
| 3144 * change made to the file on the server, even those not visible to the user. | 3151 * change made to the file on the server, even those not visible to the user. |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3462 } | 3469 } |
| 3463 if (writersCanShare != null) { | 3470 if (writersCanShare != null) { |
| 3464 _json["writersCanShare"] = writersCanShare; | 3471 _json["writersCanShare"] = writersCanShare; |
| 3465 } | 3472 } |
| 3466 return _json; | 3473 return _json; |
| 3467 } | 3474 } |
| 3468 } | 3475 } |
| 3469 | 3476 |
| 3470 /** A list of files. */ | 3477 /** A list of files. */ |
| 3471 class FileList { | 3478 class FileList { |
| 3472 /** The page of files. */ | 3479 /** |
| 3480 * The list of files. If nextPageToken is populated, then this list may be |
| 3481 * incomplete and an additional page of results should be fetched. |
| 3482 */ |
| 3473 core.List<File> files; | 3483 core.List<File> files; |
| 3474 /** | 3484 /** |
| 3475 * Identifies what kind of resource this is. Value: the fixed string | 3485 * Identifies what kind of resource this is. Value: the fixed string |
| 3476 * "drive#fileList". | 3486 * "drive#fileList". |
| 3477 */ | 3487 */ |
| 3478 core.String kind; | 3488 core.String kind; |
| 3479 /** | 3489 /** |
| 3480 * The page token for the next page of files. This will be absent if the end | 3490 * The page token for the next page of files. This will be absent if the end |
| 3481 * of the files list has been reached. | 3491 * of the files list has been reached. If the token is rejected for any |
| 3492 * reason, it should be discarded, and pagination should be restarted from the |
| 3493 * first page of results. |
| 3482 */ | 3494 */ |
| 3483 core.String nextPageToken; | 3495 core.String nextPageToken; |
| 3484 | 3496 |
| 3485 FileList(); | 3497 FileList(); |
| 3486 | 3498 |
| 3487 FileList.fromJson(core.Map _json) { | 3499 FileList.fromJson(core.Map _json) { |
| 3488 if (_json.containsKey("files")) { | 3500 if (_json.containsKey("files")) { |
| 3489 files = _json["files"].map((value) => new File.fromJson(value)).toList(); | 3501 files = _json["files"].map((value) => new File.fromJson(value)).toList(); |
| 3490 } | 3502 } |
| 3491 if (_json.containsKey("kind")) { | 3503 if (_json.containsKey("kind")) { |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3672 } | 3684 } |
| 3673 } | 3685 } |
| 3674 | 3686 |
| 3675 /** A list of permissions for a file. */ | 3687 /** A list of permissions for a file. */ |
| 3676 class PermissionList { | 3688 class PermissionList { |
| 3677 /** | 3689 /** |
| 3678 * Identifies what kind of resource this is. Value: the fixed string | 3690 * Identifies what kind of resource this is. Value: the fixed string |
| 3679 * "drive#permissionList". | 3691 * "drive#permissionList". |
| 3680 */ | 3692 */ |
| 3681 core.String kind; | 3693 core.String kind; |
| 3682 /** The full list of permissions. */ | 3694 /** The list of permissions. */ |
| 3683 core.List<Permission> permissions; | 3695 core.List<Permission> permissions; |
| 3684 | 3696 |
| 3685 PermissionList(); | 3697 PermissionList(); |
| 3686 | 3698 |
| 3687 PermissionList.fromJson(core.Map _json) { | 3699 PermissionList.fromJson(core.Map _json) { |
| 3688 if (_json.containsKey("kind")) { | 3700 if (_json.containsKey("kind")) { |
| 3689 kind = _json["kind"]; | 3701 kind = _json["kind"]; |
| 3690 } | 3702 } |
| 3691 if (_json.containsKey("permissions")) { | 3703 if (_json.containsKey("permissions")) { |
| 3692 permissions = _json["permissions"].map((value) => new Permission.fromJson(
value)).toList(); | 3704 permissions = _json["permissions"].map((value) => new Permission.fromJson(
value)).toList(); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3804 | 3816 |
| 3805 /** A list of replies to a comment on a file. */ | 3817 /** A list of replies to a comment on a file. */ |
| 3806 class ReplyList { | 3818 class ReplyList { |
| 3807 /** | 3819 /** |
| 3808 * Identifies what kind of resource this is. Value: the fixed string | 3820 * Identifies what kind of resource this is. Value: the fixed string |
| 3809 * "drive#replyList". | 3821 * "drive#replyList". |
| 3810 */ | 3822 */ |
| 3811 core.String kind; | 3823 core.String kind; |
| 3812 /** | 3824 /** |
| 3813 * The page token for the next page of replies. This will be absent if the end | 3825 * The page token for the next page of replies. This will be absent if the end |
| 3814 * of the replies list has been reached. | 3826 * of the replies list has been reached. If the token is rejected for any |
| 3827 * reason, it should be discarded, and pagination should be restarted from the |
| 3828 * first page of results. |
| 3815 */ | 3829 */ |
| 3816 core.String nextPageToken; | 3830 core.String nextPageToken; |
| 3817 /** The page of replies. */ | 3831 /** |
| 3832 * The list of replies. If nextPageToken is populated, then this list may be |
| 3833 * incomplete and an additional page of results should be fetched. |
| 3834 */ |
| 3818 core.List<Reply> replies; | 3835 core.List<Reply> replies; |
| 3819 | 3836 |
| 3820 ReplyList(); | 3837 ReplyList(); |
| 3821 | 3838 |
| 3822 ReplyList.fromJson(core.Map _json) { | 3839 ReplyList.fromJson(core.Map _json) { |
| 3823 if (_json.containsKey("kind")) { | 3840 if (_json.containsKey("kind")) { |
| 3824 kind = _json["kind"]; | 3841 kind = _json["kind"]; |
| 3825 } | 3842 } |
| 3826 if (_json.containsKey("nextPageToken")) { | 3843 if (_json.containsKey("nextPageToken")) { |
| 3827 nextPageToken = _json["nextPageToken"]; | 3844 nextPageToken = _json["nextPageToken"]; |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3984 | 4001 |
| 3985 /** A list of revisions of a file. */ | 4002 /** A list of revisions of a file. */ |
| 3986 class RevisionList { | 4003 class RevisionList { |
| 3987 /** | 4004 /** |
| 3988 * Identifies what kind of resource this is. Value: the fixed string | 4005 * Identifies what kind of resource this is. Value: the fixed string |
| 3989 * "drive#revisionList". | 4006 * "drive#revisionList". |
| 3990 */ | 4007 */ |
| 3991 core.String kind; | 4008 core.String kind; |
| 3992 /** | 4009 /** |
| 3993 * The page token for the next page of revisions. This will be absent if the | 4010 * The page token for the next page of revisions. This will be absent if the |
| 3994 * end of the revisions list has been reached. | 4011 * end of the revisions list has been reached. If the token is rejected for |
| 4012 * any reason, it should be discarded, and pagination should be restarted from |
| 4013 * the first page of results. |
| 3995 */ | 4014 */ |
| 3996 core.String nextPageToken; | 4015 core.String nextPageToken; |
| 3997 /** The full list of revisions. */ | 4016 /** |
| 4017 * The list of revisions. If nextPageToken is populated, then this list may be |
| 4018 * incomplete and an additional page of results should be fetched. |
| 4019 */ |
| 3998 core.List<Revision> revisions; | 4020 core.List<Revision> revisions; |
| 3999 | 4021 |
| 4000 RevisionList(); | 4022 RevisionList(); |
| 4001 | 4023 |
| 4002 RevisionList.fromJson(core.Map _json) { | 4024 RevisionList.fromJson(core.Map _json) { |
| 4003 if (_json.containsKey("kind")) { | 4025 if (_json.containsKey("kind")) { |
| 4004 kind = _json["kind"]; | 4026 kind = _json["kind"]; |
| 4005 } | 4027 } |
| 4006 if (_json.containsKey("nextPageToken")) { | 4028 if (_json.containsKey("nextPageToken")) { |
| 4007 nextPageToken = _json["nextPageToken"]; | 4029 nextPageToken = _json["nextPageToken"]; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4118 } | 4140 } |
| 4119 if (permissionId != null) { | 4141 if (permissionId != null) { |
| 4120 _json["permissionId"] = permissionId; | 4142 _json["permissionId"] = permissionId; |
| 4121 } | 4143 } |
| 4122 if (photoLink != null) { | 4144 if (photoLink != null) { |
| 4123 _json["photoLink"] = photoLink; | 4145 _json["photoLink"] = photoLink; |
| 4124 } | 4146 } |
| 4125 return _json; | 4147 return _json; |
| 4126 } | 4148 } |
| 4127 } | 4149 } |
| OLD | NEW |