| 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 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1886 } | 1886 } |
| 1887 | 1887 |
| 1888 /** | 1888 /** |
| 1889 * Lists a file's revisions. | 1889 * Lists a file's revisions. |
| 1890 * | 1890 * |
| 1891 * Request parameters: | 1891 * Request parameters: |
| 1892 * | 1892 * |
| 1893 * [fileId] - The ID of the file. | 1893 * [fileId] - The ID of the file. |
| 1894 * | 1894 * |
| 1895 * [pageSize] - The maximum number of revisions to return per page. | 1895 * [pageSize] - The maximum number of revisions to return per page. |
| 1896 * Value must be between "1" and "1000". |
| 1896 * | 1897 * |
| 1897 * [pageToken] - The token for continuing a previous list request on the next | 1898 * [pageToken] - The token for continuing a previous list request on the next |
| 1898 * page. This should be set to the value of 'nextPageToken' from the previous | 1899 * page. This should be set to the value of 'nextPageToken' from the previous |
| 1899 * response. | 1900 * response. |
| 1900 * | 1901 * |
| 1901 * Completes with a [RevisionList]. | 1902 * Completes with a [RevisionList]. |
| 1902 * | 1903 * |
| 1903 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1904 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1904 * error. | 1905 * error. |
| 1905 * | 1906 * |
| (...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3009 */ | 3010 */ |
| 3010 core.String folderColorRgb; | 3011 core.String folderColorRgb; |
| 3011 /** | 3012 /** |
| 3012 * The full file extension extracted from the name field. May contain multiple | 3013 * The full file extension extracted from the name field. May contain multiple |
| 3013 * concatenated extensions, such as "tar.gz". This is only available for files | 3014 * concatenated extensions, such as "tar.gz". This is only available for files |
| 3014 * with binary content in Drive. | 3015 * with binary content in Drive. |
| 3015 * This is automatically updated when the name field changes, however it is | 3016 * This is automatically updated when the name field changes, however it is |
| 3016 * not cleared if the new name does not contain a valid extension. | 3017 * not cleared if the new name does not contain a valid extension. |
| 3017 */ | 3018 */ |
| 3018 core.String fullFileExtension; | 3019 core.String fullFileExtension; |
| 3020 /** Whether this file has a thumbnail. */ |
| 3021 core.bool hasThumbnail; |
| 3019 /** | 3022 /** |
| 3020 * The ID of the file's head revision. This is currently only available for | 3023 * The ID of the file's head revision. This is currently only available for |
| 3021 * files with binary content in Drive. | 3024 * files with binary content in Drive. |
| 3022 */ | 3025 */ |
| 3023 core.String headRevisionId; | 3026 core.String headRevisionId; |
| 3024 /** A static, unauthenticated link to the file's icon. */ | 3027 /** A static, unauthenticated link to the file's icon. */ |
| 3025 core.String iconLink; | 3028 core.String iconLink; |
| 3026 /** The ID of the file. */ | 3029 /** The ID of the file. */ |
| 3027 core.String id; | 3030 core.String id; |
| 3028 /** Additional metadata about image media, if available. */ | 3031 /** Additional metadata about image media, if available. */ |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3114 core.String size; | 3117 core.String size; |
| 3115 /** | 3118 /** |
| 3116 * The list of spaces which contain the file. The currently supported values | 3119 * The list of spaces which contain the file. The currently supported values |
| 3117 * are 'drive', 'appDataFolder' and 'photos'. | 3120 * are 'drive', 'appDataFolder' and 'photos'. |
| 3118 */ | 3121 */ |
| 3119 core.List<core.String> spaces; | 3122 core.List<core.String> spaces; |
| 3120 /** Whether the user has starred the file. */ | 3123 /** Whether the user has starred the file. */ |
| 3121 core.bool starred; | 3124 core.bool starred; |
| 3122 /** | 3125 /** |
| 3123 * A short-lived link to the file's thumbnail, if available. Typically lasts | 3126 * A short-lived link to the file's thumbnail, if available. Typically lasts |
| 3124 * on the order of hours. | 3127 * on the order of hours. Only populated when the requesting app can access |
| 3128 * the file's content. |
| 3125 */ | 3129 */ |
| 3126 core.String thumbnailLink; | 3130 core.String thumbnailLink; |
| 3127 /** | 3131 /** |
| 3132 * The thumbnail version for use in client-contructable thumbnail URLs or |
| 3133 * thumbnail cache invalidation. |
| 3134 */ |
| 3135 core.String thumbnailVersion; |
| 3136 /** |
| 3128 * Whether the file has been trashed, either explicitly or from a trashed | 3137 * Whether the file has been trashed, either explicitly or from a trashed |
| 3129 * parent folder. Only the owner may trash a file, and other users cannot see | 3138 * parent folder. Only the owner may trash a file, and other users cannot see |
| 3130 * files in the owner's trash. | 3139 * files in the owner's trash. |
| 3131 */ | 3140 */ |
| 3132 core.bool trashed; | 3141 core.bool trashed; |
| 3133 /** | 3142 /** |
| 3134 * A monotonically increasing version number for the file. This reflects every | 3143 * A monotonically increasing version number for the file. This reflects every |
| 3135 * change made to the file on the server, even those not visible to the user. | 3144 * change made to the file on the server, even those not visible to the user. |
| 3136 */ | 3145 */ |
| 3137 core.String version; | 3146 core.String version; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3188 } | 3197 } |
| 3189 if (_json.containsKey("fileExtension")) { | 3198 if (_json.containsKey("fileExtension")) { |
| 3190 fileExtension = _json["fileExtension"]; | 3199 fileExtension = _json["fileExtension"]; |
| 3191 } | 3200 } |
| 3192 if (_json.containsKey("folderColorRgb")) { | 3201 if (_json.containsKey("folderColorRgb")) { |
| 3193 folderColorRgb = _json["folderColorRgb"]; | 3202 folderColorRgb = _json["folderColorRgb"]; |
| 3194 } | 3203 } |
| 3195 if (_json.containsKey("fullFileExtension")) { | 3204 if (_json.containsKey("fullFileExtension")) { |
| 3196 fullFileExtension = _json["fullFileExtension"]; | 3205 fullFileExtension = _json["fullFileExtension"]; |
| 3197 } | 3206 } |
| 3207 if (_json.containsKey("hasThumbnail")) { |
| 3208 hasThumbnail = _json["hasThumbnail"]; |
| 3209 } |
| 3198 if (_json.containsKey("headRevisionId")) { | 3210 if (_json.containsKey("headRevisionId")) { |
| 3199 headRevisionId = _json["headRevisionId"]; | 3211 headRevisionId = _json["headRevisionId"]; |
| 3200 } | 3212 } |
| 3201 if (_json.containsKey("iconLink")) { | 3213 if (_json.containsKey("iconLink")) { |
| 3202 iconLink = _json["iconLink"]; | 3214 iconLink = _json["iconLink"]; |
| 3203 } | 3215 } |
| 3204 if (_json.containsKey("id")) { | 3216 if (_json.containsKey("id")) { |
| 3205 id = _json["id"]; | 3217 id = _json["id"]; |
| 3206 } | 3218 } |
| 3207 if (_json.containsKey("imageMediaMetadata")) { | 3219 if (_json.containsKey("imageMediaMetadata")) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3269 } | 3281 } |
| 3270 if (_json.containsKey("spaces")) { | 3282 if (_json.containsKey("spaces")) { |
| 3271 spaces = _json["spaces"]; | 3283 spaces = _json["spaces"]; |
| 3272 } | 3284 } |
| 3273 if (_json.containsKey("starred")) { | 3285 if (_json.containsKey("starred")) { |
| 3274 starred = _json["starred"]; | 3286 starred = _json["starred"]; |
| 3275 } | 3287 } |
| 3276 if (_json.containsKey("thumbnailLink")) { | 3288 if (_json.containsKey("thumbnailLink")) { |
| 3277 thumbnailLink = _json["thumbnailLink"]; | 3289 thumbnailLink = _json["thumbnailLink"]; |
| 3278 } | 3290 } |
| 3291 if (_json.containsKey("thumbnailVersion")) { |
| 3292 thumbnailVersion = _json["thumbnailVersion"]; |
| 3293 } |
| 3279 if (_json.containsKey("trashed")) { | 3294 if (_json.containsKey("trashed")) { |
| 3280 trashed = _json["trashed"]; | 3295 trashed = _json["trashed"]; |
| 3281 } | 3296 } |
| 3282 if (_json.containsKey("version")) { | 3297 if (_json.containsKey("version")) { |
| 3283 version = _json["version"]; | 3298 version = _json["version"]; |
| 3284 } | 3299 } |
| 3285 if (_json.containsKey("videoMediaMetadata")) { | 3300 if (_json.containsKey("videoMediaMetadata")) { |
| 3286 videoMediaMetadata = new FileVideoMediaMetadata.fromJson(_json["videoMedia
Metadata"]); | 3301 videoMediaMetadata = new FileVideoMediaMetadata.fromJson(_json["videoMedia
Metadata"]); |
| 3287 } | 3302 } |
| 3288 if (_json.containsKey("viewedByMe")) { | 3303 if (_json.containsKey("viewedByMe")) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3327 } | 3342 } |
| 3328 if (fileExtension != null) { | 3343 if (fileExtension != null) { |
| 3329 _json["fileExtension"] = fileExtension; | 3344 _json["fileExtension"] = fileExtension; |
| 3330 } | 3345 } |
| 3331 if (folderColorRgb != null) { | 3346 if (folderColorRgb != null) { |
| 3332 _json["folderColorRgb"] = folderColorRgb; | 3347 _json["folderColorRgb"] = folderColorRgb; |
| 3333 } | 3348 } |
| 3334 if (fullFileExtension != null) { | 3349 if (fullFileExtension != null) { |
| 3335 _json["fullFileExtension"] = fullFileExtension; | 3350 _json["fullFileExtension"] = fullFileExtension; |
| 3336 } | 3351 } |
| 3352 if (hasThumbnail != null) { |
| 3353 _json["hasThumbnail"] = hasThumbnail; |
| 3354 } |
| 3337 if (headRevisionId != null) { | 3355 if (headRevisionId != null) { |
| 3338 _json["headRevisionId"] = headRevisionId; | 3356 _json["headRevisionId"] = headRevisionId; |
| 3339 } | 3357 } |
| 3340 if (iconLink != null) { | 3358 if (iconLink != null) { |
| 3341 _json["iconLink"] = iconLink; | 3359 _json["iconLink"] = iconLink; |
| 3342 } | 3360 } |
| 3343 if (id != null) { | 3361 if (id != null) { |
| 3344 _json["id"] = id; | 3362 _json["id"] = id; |
| 3345 } | 3363 } |
| 3346 if (imageMediaMetadata != null) { | 3364 if (imageMediaMetadata != null) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3408 } | 3426 } |
| 3409 if (spaces != null) { | 3427 if (spaces != null) { |
| 3410 _json["spaces"] = spaces; | 3428 _json["spaces"] = spaces; |
| 3411 } | 3429 } |
| 3412 if (starred != null) { | 3430 if (starred != null) { |
| 3413 _json["starred"] = starred; | 3431 _json["starred"] = starred; |
| 3414 } | 3432 } |
| 3415 if (thumbnailLink != null) { | 3433 if (thumbnailLink != null) { |
| 3416 _json["thumbnailLink"] = thumbnailLink; | 3434 _json["thumbnailLink"] = thumbnailLink; |
| 3417 } | 3435 } |
| 3436 if (thumbnailVersion != null) { |
| 3437 _json["thumbnailVersion"] = thumbnailVersion; |
| 3438 } |
| 3418 if (trashed != null) { | 3439 if (trashed != null) { |
| 3419 _json["trashed"] = trashed; | 3440 _json["trashed"] = trashed; |
| 3420 } | 3441 } |
| 3421 if (version != null) { | 3442 if (version != null) { |
| 3422 _json["version"] = version; | 3443 _json["version"] = version; |
| 3423 } | 3444 } |
| 3424 if (videoMediaMetadata != null) { | 3445 if (videoMediaMetadata != null) { |
| 3425 _json["videoMediaMetadata"] = (videoMediaMetadata).toJson(); | 3446 _json["videoMediaMetadata"] = (videoMediaMetadata).toJson(); |
| 3426 } | 3447 } |
| 3427 if (viewedByMe != null) { | 3448 if (viewedByMe != null) { |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4097 } | 4118 } |
| 4098 if (permissionId != null) { | 4119 if (permissionId != null) { |
| 4099 _json["permissionId"] = permissionId; | 4120 _json["permissionId"] = permissionId; |
| 4100 } | 4121 } |
| 4101 if (photoLink != null) { | 4122 if (photoLink != null) { |
| 4102 _json["photoLink"] = photoLink; | 4123 _json["photoLink"] = photoLink; |
| 4103 } | 4124 } |
| 4104 return _json; | 4125 return _json; |
| 4105 } | 4126 } |
| 4106 } | 4127 } |
| OLD | NEW |