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

Side by Side Diff: generated/googleapis/lib/drive/v3.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.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 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after
1885 } 1885 }
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.
1896 *
1897 * [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 * response.
1900 *
1895 * Completes with a [RevisionList]. 1901 * Completes with a [RevisionList].
1896 * 1902 *
1897 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1903 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1898 * error. 1904 * error.
1899 * 1905 *
1900 * If the used [http.Client] completes with an error when making a REST call, 1906 * If the used [http.Client] completes with an error when making a REST call,
1901 * this method will complete with the same error. 1907 * this method will complete with the same error.
1902 */ 1908 */
1903 async.Future<RevisionList> list(core.String fileId) { 1909 async.Future<RevisionList> list(core.String fileId, {core.int pageSize, core.S tring pageToken}) {
1904 var _url = null; 1910 var _url = null;
1905 var _queryParams = new core.Map(); 1911 var _queryParams = new core.Map();
1906 var _uploadMedia = null; 1912 var _uploadMedia = null;
1907 var _uploadOptions = null; 1913 var _uploadOptions = null;
1908 var _downloadOptions = commons.DownloadOptions.Metadata; 1914 var _downloadOptions = commons.DownloadOptions.Metadata;
1909 var _body = null; 1915 var _body = null;
1910 1916
1911 if (fileId == null) { 1917 if (fileId == null) {
1912 throw new core.ArgumentError("Parameter fileId is required."); 1918 throw new core.ArgumentError("Parameter fileId is required.");
1913 } 1919 }
1920 if (pageSize != null) {
1921 _queryParams["pageSize"] = ["${pageSize}"];
1922 }
1923 if (pageToken != null) {
1924 _queryParams["pageToken"] = [pageToken];
1925 }
1914 1926
1915 _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/revisions'; 1927 _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/revisions';
1916 1928
1917 var _response = _requester.request(_url, 1929 var _response = _requester.request(_url,
1918 "GET", 1930 "GET",
1919 body: _body, 1931 body: _body,
1920 queryParams: _queryParams, 1932 queryParams: _queryParams,
1921 uploadOptions: _uploadOptions, 1933 uploadOptions: _uploadOptions,
1922 uploadMedia: _uploadMedia, 1934 uploadMedia: _uploadMedia,
1923 downloadOptions: _downloadOptions); 1935 downloadOptions: _downloadOptions);
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
2035 /** 2047 /**
2036 * A map of source MIME type to possible targets for all supported exports. 2048 * A map of source MIME type to possible targets for all supported exports.
2037 */ 2049 */
2038 core.Map<core.String, core.List<core.String>> exportFormats; 2050 core.Map<core.String, core.List<core.String>> exportFormats;
2039 /** The currently supported folder colors as RGB hex strings. */ 2051 /** The currently supported folder colors as RGB hex strings. */
2040 core.List<core.String> folderColorPalette; 2052 core.List<core.String> folderColorPalette;
2041 /** 2053 /**
2042 * A map of source MIME type to possible targets for all supported imports. 2054 * A map of source MIME type to possible targets for all supported imports.
2043 */ 2055 */
2044 core.Map<core.String, core.List<core.String>> importFormats; 2056 core.Map<core.String, core.List<core.String>> importFormats;
2045 /** This is always drive#about. */ 2057 /**
2058 * Identifies what kind of resource this is. Value: the fixed string
2059 * "drive#about".
2060 */
2046 core.String kind; 2061 core.String kind;
2047 /** A map of maximum import sizes by MIME type, in bytes. */ 2062 /** A map of maximum import sizes by MIME type, in bytes. */
2048 core.Map<core.String, core.String> maxImportSizes; 2063 core.Map<core.String, core.String> maxImportSizes;
2049 /** The maximum upload size in bytes. */ 2064 /** The maximum upload size in bytes. */
2050 core.String maxUploadSize; 2065 core.String maxUploadSize;
2051 /** 2066 /**
2052 * The user's storage quota limits and usage. All fields are measured in 2067 * The user's storage quota limits and usage. All fields are measured in
2053 * bytes. 2068 * bytes.
2054 */ 2069 */
2055 AboutStorageQuota storageQuota; 2070 AboutStorageQuota storageQuota;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
2122 } 2137 }
2123 2138
2124 /** A change to a file. */ 2139 /** A change to a file. */
2125 class Change { 2140 class Change {
2126 /** 2141 /**
2127 * The updated state of the file. Present if the file has not been removed. 2142 * The updated state of the file. Present if the file has not been removed.
2128 */ 2143 */
2129 File file; 2144 File file;
2130 /** The ID of the file which has changed. */ 2145 /** The ID of the file which has changed. */
2131 core.String fileId; 2146 core.String fileId;
2132 /** This is always drive#change. */ 2147 /**
2148 * Identifies what kind of resource this is. Value: the fixed string
2149 * "drive#change".
2150 */
2133 core.String kind; 2151 core.String kind;
2134 /** 2152 /**
2135 * Whether the file has been removed from the view of the changes list, for 2153 * Whether the file has been removed from the view of the changes list, for
2136 * example by deletion or lost access. 2154 * example by deletion or lost access.
2137 */ 2155 */
2138 core.bool removed; 2156 core.bool removed;
2139 /** The time of this change (RFC 3339 date-time). */ 2157 /** The time of this change (RFC 3339 date-time). */
2140 core.DateTime time; 2158 core.DateTime time;
2141 2159
2142 Change(); 2160 Change();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2177 _json["time"] = (time).toIso8601String(); 2195 _json["time"] = (time).toIso8601String();
2178 } 2196 }
2179 return _json; 2197 return _json;
2180 } 2198 }
2181 } 2199 }
2182 2200
2183 /** A list of changes for a user. */ 2201 /** A list of changes for a user. */
2184 class ChangeList { 2202 class ChangeList {
2185 /** The page of changes. */ 2203 /** The page of changes. */
2186 core.List<Change> changes; 2204 core.List<Change> changes;
2187 /** This is always drive#changeList. */ 2205 /**
2206 * Identifies what kind of resource this is. Value: the fixed string
2207 * "drive#changeList".
2208 */
2188 core.String kind; 2209 core.String kind;
2189 /** 2210 /**
2190 * The starting page token for future changes. This will be present only if 2211 * The starting page token for future changes. This will be present only if
2191 * the end of the current changes list has been reached. 2212 * the end of the current changes list has been reached.
2192 */ 2213 */
2193 core.String newStartPageToken; 2214 core.String newStartPageToken;
2194 /** 2215 /**
2195 * The page token for the next page of changes. This will be absent if the end 2216 * The page token for the next page of changes. This will be absent if the end
2196 * of the current changes list has been reached. 2217 * of the current changes list has been reached.
2197 */ 2218 */
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
2392 /** The time at which the comment was created (RFC 3339 date-time). */ 2413 /** The time at which the comment was created (RFC 3339 date-time). */
2393 core.DateTime createdTime; 2414 core.DateTime createdTime;
2394 /** 2415 /**
2395 * Whether the comment has been deleted. A deleted comment has no content. 2416 * Whether the comment has been deleted. A deleted comment has no content.
2396 */ 2417 */
2397 core.bool deleted; 2418 core.bool deleted;
2398 /** The content of the comment with HTML formatting. */ 2419 /** The content of the comment with HTML formatting. */
2399 core.String htmlContent; 2420 core.String htmlContent;
2400 /** The ID of the comment. */ 2421 /** The ID of the comment. */
2401 core.String id; 2422 core.String id;
2402 /** This is always drive#comment. */ 2423 /**
2424 * Identifies what kind of resource this is. Value: the fixed string
2425 * "drive#comment".
2426 */
2403 core.String kind; 2427 core.String kind;
2404 /** 2428 /**
2405 * The last time the comment or any of its replies was modified (RFC 3339 2429 * The last time the comment or any of its replies was modified (RFC 3339
2406 * date-time). 2430 * date-time).
2407 */ 2431 */
2408 core.DateTime modifiedTime; 2432 core.DateTime modifiedTime;
2409 /** 2433 /**
2410 * The file content to which the comment refers, typically within the anchor 2434 * The file content to which the comment refers, typically within the anchor
2411 * region. For a text file, for example, this would be the text at the 2435 * region. For a text file, for example, this would be the text at the
2412 * location of the comment. 2436 * location of the comment.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
2497 _json["resolved"] = resolved; 2521 _json["resolved"] = resolved;
2498 } 2522 }
2499 return _json; 2523 return _json;
2500 } 2524 }
2501 } 2525 }
2502 2526
2503 /** A list of comments on a file. */ 2527 /** A list of comments on a file. */
2504 class CommentList { 2528 class CommentList {
2505 /** The page of comments. */ 2529 /** The page of comments. */
2506 core.List<Comment> comments; 2530 core.List<Comment> comments;
2507 /** This is always drive#commentList. */ 2531 /**
2532 * Identifies what kind of resource this is. Value: the fixed string
2533 * "drive#commentList".
2534 */
2508 core.String kind; 2535 core.String kind;
2509 /** 2536 /**
2510 * The page token for the next page of comments. This will be absent if the 2537 * The page token for the next page of comments. This will be absent if the
2511 * end of the comments list has been reached. 2538 * end of the comments list has been reached.
2512 */ 2539 */
2513 core.String nextPageToken; 2540 core.String nextPageToken;
2514 2541
2515 CommentList(); 2542 CommentList();
2516 2543
2517 CommentList.fromJson(core.Map _json) { 2544 CommentList.fromJson(core.Map _json) {
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
2995 */ 3022 */
2996 core.String headRevisionId; 3023 core.String headRevisionId;
2997 /** A static, unauthenticated link to the file's icon. */ 3024 /** A static, unauthenticated link to the file's icon. */
2998 core.String iconLink; 3025 core.String iconLink;
2999 /** The ID of the file. */ 3026 /** The ID of the file. */
3000 core.String id; 3027 core.String id;
3001 /** Additional metadata about image media, if available. */ 3028 /** Additional metadata about image media, if available. */
3002 FileImageMediaMetadata imageMediaMetadata; 3029 FileImageMediaMetadata imageMediaMetadata;
3003 /** Whether the file was created or opened by the requesting app. */ 3030 /** Whether the file was created or opened by the requesting app. */
3004 core.bool isAppAuthorized; 3031 core.bool isAppAuthorized;
3005 /** This is always drive#file. */ 3032 /**
3033 * Identifies what kind of resource this is. Value: the fixed string
3034 * "drive#file".
3035 */
3006 core.String kind; 3036 core.String kind;
3007 /** The last user to modify the file. */ 3037 /** The last user to modify the file. */
3008 User lastModifyingUser; 3038 User lastModifyingUser;
3009 /** 3039 /**
3010 * The MD5 checksum for the content of the file. This is only applicable to 3040 * The MD5 checksum for the content of the file. This is only applicable to
3011 * files with binary content in Drive. 3041 * files with binary content in Drive.
3012 */ 3042 */
3013 core.String md5Checksum; 3043 core.String md5Checksum;
3014 /** 3044 /**
3015 * The MIME type of the file. 3045 * The MIME type of the file.
3016 * Drive will attempt to automatically detect an appropriate value from 3046 * Drive will attempt to automatically detect an appropriate value from
3017 * uploaded content if no value is provided. The value cannot be changed 3047 * uploaded content if no value is provided. The value cannot be changed
3018 * unless a new revision is uploaded. 3048 * unless a new revision is uploaded.
3019 * If a file is created with a Google Doc MIME type, the uploaded content will 3049 * If a file is created with a Google Doc MIME type, the uploaded content will
3020 * be imported if possible. The supported import formats are published in the 3050 * be imported if possible. The supported import formats are published in the
3021 * About resource. 3051 * About resource.
3022 */ 3052 */
3023 core.String mimeType; 3053 core.String mimeType;
3054 /** Whether the file has been modified by this user. */
3055 core.bool modifiedByMe;
3024 /** The last time the file was modified by the user (RFC 3339 date-time). */ 3056 /** The last time the file was modified by the user (RFC 3339 date-time). */
3025 core.DateTime modifiedByMeTime; 3057 core.DateTime modifiedByMeTime;
3026 /** 3058 /**
3027 * The last time the file was modified by anyone (RFC 3339 date-time). 3059 * The last time the file was modified by anyone (RFC 3339 date-time).
3028 * Note that setting modifiedTime will also update modifiedByMeTime for the 3060 * Note that setting modifiedTime will also update modifiedByMeTime for the
3029 * user. 3061 * user.
3030 */ 3062 */
3031 core.DateTime modifiedTime; 3063 core.DateTime modifiedTime;
3032 /** The name of the file. This is not necessarily unique within a folder. */ 3064 /** The name of the file. This is not necessarily unique within a folder. */
3033 core.String name; 3065 core.String name;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
3183 } 3215 }
3184 if (_json.containsKey("lastModifyingUser")) { 3216 if (_json.containsKey("lastModifyingUser")) {
3185 lastModifyingUser = new User.fromJson(_json["lastModifyingUser"]); 3217 lastModifyingUser = new User.fromJson(_json["lastModifyingUser"]);
3186 } 3218 }
3187 if (_json.containsKey("md5Checksum")) { 3219 if (_json.containsKey("md5Checksum")) {
3188 md5Checksum = _json["md5Checksum"]; 3220 md5Checksum = _json["md5Checksum"];
3189 } 3221 }
3190 if (_json.containsKey("mimeType")) { 3222 if (_json.containsKey("mimeType")) {
3191 mimeType = _json["mimeType"]; 3223 mimeType = _json["mimeType"];
3192 } 3224 }
3225 if (_json.containsKey("modifiedByMe")) {
3226 modifiedByMe = _json["modifiedByMe"];
3227 }
3193 if (_json.containsKey("modifiedByMeTime")) { 3228 if (_json.containsKey("modifiedByMeTime")) {
3194 modifiedByMeTime = core.DateTime.parse(_json["modifiedByMeTime"]); 3229 modifiedByMeTime = core.DateTime.parse(_json["modifiedByMeTime"]);
3195 } 3230 }
3196 if (_json.containsKey("modifiedTime")) { 3231 if (_json.containsKey("modifiedTime")) {
3197 modifiedTime = core.DateTime.parse(_json["modifiedTime"]); 3232 modifiedTime = core.DateTime.parse(_json["modifiedTime"]);
3198 } 3233 }
3199 if (_json.containsKey("name")) { 3234 if (_json.containsKey("name")) {
3200 name = _json["name"]; 3235 name = _json["name"];
3201 } 3236 }
3202 if (_json.containsKey("originalFilename")) { 3237 if (_json.containsKey("originalFilename")) {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
3319 } 3354 }
3320 if (lastModifyingUser != null) { 3355 if (lastModifyingUser != null) {
3321 _json["lastModifyingUser"] = (lastModifyingUser).toJson(); 3356 _json["lastModifyingUser"] = (lastModifyingUser).toJson();
3322 } 3357 }
3323 if (md5Checksum != null) { 3358 if (md5Checksum != null) {
3324 _json["md5Checksum"] = md5Checksum; 3359 _json["md5Checksum"] = md5Checksum;
3325 } 3360 }
3326 if (mimeType != null) { 3361 if (mimeType != null) {
3327 _json["mimeType"] = mimeType; 3362 _json["mimeType"] = mimeType;
3328 } 3363 }
3364 if (modifiedByMe != null) {
3365 _json["modifiedByMe"] = modifiedByMe;
3366 }
3329 if (modifiedByMeTime != null) { 3367 if (modifiedByMeTime != null) {
3330 _json["modifiedByMeTime"] = (modifiedByMeTime).toIso8601String(); 3368 _json["modifiedByMeTime"] = (modifiedByMeTime).toIso8601String();
3331 } 3369 }
3332 if (modifiedTime != null) { 3370 if (modifiedTime != null) {
3333 _json["modifiedTime"] = (modifiedTime).toIso8601String(); 3371 _json["modifiedTime"] = (modifiedTime).toIso8601String();
3334 } 3372 }
3335 if (name != null) { 3373 if (name != null) {
3336 _json["name"] = name; 3374 _json["name"] = name;
3337 } 3375 }
3338 if (originalFilename != null) { 3376 if (originalFilename != null) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
3405 _json["writersCanShare"] = writersCanShare; 3443 _json["writersCanShare"] = writersCanShare;
3406 } 3444 }
3407 return _json; 3445 return _json;
3408 } 3446 }
3409 } 3447 }
3410 3448
3411 /** A list of files. */ 3449 /** A list of files. */
3412 class FileList { 3450 class FileList {
3413 /** The page of files. */ 3451 /** The page of files. */
3414 core.List<File> files; 3452 core.List<File> files;
3415 /** This is always drive#fileList. */ 3453 /**
3454 * Identifies what kind of resource this is. Value: the fixed string
3455 * "drive#fileList".
3456 */
3416 core.String kind; 3457 core.String kind;
3417 /** 3458 /**
3418 * The page token for the next page of files. This will be absent if the end 3459 * The page token for the next page of files. This will be absent if the end
3419 * of the files list has been reached. 3460 * of the files list has been reached.
3420 */ 3461 */
3421 core.String nextPageToken; 3462 core.String nextPageToken;
3422 3463
3423 FileList(); 3464 FileList();
3424 3465
3425 FileList.fromJson(core.Map _json) { 3466 FileList.fromJson(core.Map _json) {
(...skipping 20 matching lines...) Expand all
3446 _json["nextPageToken"] = nextPageToken; 3487 _json["nextPageToken"] = nextPageToken;
3447 } 3488 }
3448 return _json; 3489 return _json;
3449 } 3490 }
3450 } 3491 }
3451 3492
3452 /** A list of generated file IDs which can be provided in create requests. */ 3493 /** A list of generated file IDs which can be provided in create requests. */
3453 class GeneratedIds { 3494 class GeneratedIds {
3454 /** The IDs generated for the requesting user in the specified space. */ 3495 /** The IDs generated for the requesting user in the specified space. */
3455 core.List<core.String> ids; 3496 core.List<core.String> ids;
3456 /** This is always drive#generatedIds */ 3497 /**
3498 * Identifies what kind of resource this is. Value: the fixed string
3499 * "drive#generatedIds".
3500 */
3457 core.String kind; 3501 core.String kind;
3458 /** The type of file that can be created with these IDs. */ 3502 /** The type of file that can be created with these IDs. */
3459 core.String space; 3503 core.String space;
3460 3504
3461 GeneratedIds(); 3505 GeneratedIds();
3462 3506
3463 GeneratedIds.fromJson(core.Map _json) { 3507 GeneratedIds.fromJson(core.Map _json) {
3464 if (_json.containsKey("ids")) { 3508 if (_json.containsKey("ids")) {
3465 ids = _json["ids"]; 3509 ids = _json["ids"];
3466 } 3510 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
3505 * The email address of the user or group to which this permission refers. 3549 * The email address of the user or group to which this permission refers.
3506 */ 3550 */
3507 core.String emailAddress; 3551 core.String emailAddress;
3508 /** The time at which this permission will expire (RFC 3339 date-time). */ 3552 /** The time at which this permission will expire (RFC 3339 date-time). */
3509 core.DateTime expirationTime; 3553 core.DateTime expirationTime;
3510 /** 3554 /**
3511 * The ID of this permission. This is a unique identifier for the grantee, and 3555 * The ID of this permission. This is a unique identifier for the grantee, and
3512 * is published in User resources as permissionId. 3556 * is published in User resources as permissionId.
3513 */ 3557 */
3514 core.String id; 3558 core.String id;
3515 /** This is always drive#permission. */ 3559 /**
3560 * Identifies what kind of resource this is. Value: the fixed string
3561 * "drive#permission".
3562 */
3516 core.String kind; 3563 core.String kind;
3517 /** A link to the user's profile photo, if available. */ 3564 /** A link to the user's profile photo, if available. */
3518 core.String photoLink; 3565 core.String photoLink;
3519 /** 3566 /**
3520 * The role granted by this permission. Valid values are: 3567 * The role granted by this permission. Valid values are:
3521 * - owner 3568 * - owner
3522 * - writer 3569 * - writer
3523 * - commenter 3570 * - commenter
3524 * - reader 3571 * - reader
3525 */ 3572 */
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
3599 } 3646 }
3600 if (type != null) { 3647 if (type != null) {
3601 _json["type"] = type; 3648 _json["type"] = type;
3602 } 3649 }
3603 return _json; 3650 return _json;
3604 } 3651 }
3605 } 3652 }
3606 3653
3607 /** A list of permissions for a file. */ 3654 /** A list of permissions for a file. */
3608 class PermissionList { 3655 class PermissionList {
3609 /** This is always drive#permissionList. */ 3656 /**
3657 * Identifies what kind of resource this is. Value: the fixed string
3658 * "drive#permissionList".
3659 */
3610 core.String kind; 3660 core.String kind;
3611 /** The full list of permissions. */ 3661 /** The full list of permissions. */
3612 core.List<Permission> permissions; 3662 core.List<Permission> permissions;
3613 3663
3614 PermissionList(); 3664 PermissionList();
3615 3665
3616 PermissionList.fromJson(core.Map _json) { 3666 PermissionList.fromJson(core.Map _json) {
3617 if (_json.containsKey("kind")) { 3667 if (_json.containsKey("kind")) {
3618 kind = _json["kind"]; 3668 kind = _json["kind"];
3619 } 3669 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
3651 */ 3701 */
3652 core.String content; 3702 core.String content;
3653 /** The time at which the reply was created (RFC 3339 date-time). */ 3703 /** The time at which the reply was created (RFC 3339 date-time). */
3654 core.DateTime createdTime; 3704 core.DateTime createdTime;
3655 /** Whether the reply has been deleted. A deleted reply has no content. */ 3705 /** Whether the reply has been deleted. A deleted reply has no content. */
3656 core.bool deleted; 3706 core.bool deleted;
3657 /** The content of the reply with HTML formatting. */ 3707 /** The content of the reply with HTML formatting. */
3658 core.String htmlContent; 3708 core.String htmlContent;
3659 /** The ID of the reply. */ 3709 /** The ID of the reply. */
3660 core.String id; 3710 core.String id;
3661 /** This is always drive#reply. */ 3711 /**
3712 * Identifies what kind of resource this is. Value: the fixed string
3713 * "drive#reply".
3714 */
3662 core.String kind; 3715 core.String kind;
3663 /** The last time the reply was modified (RFC 3339 date-time). */ 3716 /** The last time the reply was modified (RFC 3339 date-time). */
3664 core.DateTime modifiedTime; 3717 core.DateTime modifiedTime;
3665 3718
3666 Reply(); 3719 Reply();
3667 3720
3668 Reply.fromJson(core.Map _json) { 3721 Reply.fromJson(core.Map _json) {
3669 if (_json.containsKey("action")) { 3722 if (_json.containsKey("action")) {
3670 action = _json["action"]; 3723 action = _json["action"];
3671 } 3724 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
3723 } 3776 }
3724 if (modifiedTime != null) { 3777 if (modifiedTime != null) {
3725 _json["modifiedTime"] = (modifiedTime).toIso8601String(); 3778 _json["modifiedTime"] = (modifiedTime).toIso8601String();
3726 } 3779 }
3727 return _json; 3780 return _json;
3728 } 3781 }
3729 } 3782 }
3730 3783
3731 /** A list of replies to a comment on a file. */ 3784 /** A list of replies to a comment on a file. */
3732 class ReplyList { 3785 class ReplyList {
3733 /** This is always drive#replyList. */ 3786 /**
3787 * Identifies what kind of resource this is. Value: the fixed string
3788 * "drive#replyList".
3789 */
3734 core.String kind; 3790 core.String kind;
3735 /** 3791 /**
3736 * The page token for the next page of replies. This will be absent if the end 3792 * The page token for the next page of replies. This will be absent if the end
3737 * of the replies list has been reached. 3793 * of the replies list has been reached.
3738 */ 3794 */
3739 core.String nextPageToken; 3795 core.String nextPageToken;
3740 /** The page of replies. */ 3796 /** The page of replies. */
3741 core.List<Reply> replies; 3797 core.List<Reply> replies;
3742 3798
3743 ReplyList(); 3799 ReplyList();
(...skipping 30 matching lines...) Expand all
3774 /** The ID of the revision. */ 3830 /** The ID of the revision. */
3775 core.String id; 3831 core.String id;
3776 /** 3832 /**
3777 * Whether to keep this revision forever, even if it is no longer the head 3833 * Whether to keep this revision forever, even if it is no longer the head
3778 * revision. If not set, the revision will be automatically purged 30 days 3834 * revision. If not set, the revision will be automatically purged 30 days
3779 * after newer content is uploaded. This can be set on a maximum of 200 3835 * after newer content is uploaded. This can be set on a maximum of 200
3780 * revisions for a file. 3836 * revisions for a file.
3781 * This field is only applicable to files with binary content in Drive. 3837 * This field is only applicable to files with binary content in Drive.
3782 */ 3838 */
3783 core.bool keepForever; 3839 core.bool keepForever;
3784 /** This is always drive#revision. */ 3840 /**
3841 * Identifies what kind of resource this is. Value: the fixed string
3842 * "drive#revision".
3843 */
3785 core.String kind; 3844 core.String kind;
3786 /** The last user to modify this revision. */ 3845 /** The last user to modify this revision. */
3787 User lastModifyingUser; 3846 User lastModifyingUser;
3788 /** 3847 /**
3789 * The MD5 checksum of the revision's content. This is only applicable to 3848 * The MD5 checksum of the revision's content. This is only applicable to
3790 * files with binary content in Drive. 3849 * files with binary content in Drive.
3791 */ 3850 */
3792 core.String md5Checksum; 3851 core.String md5Checksum;
3793 /** The MIME type of the revision. */ 3852 /** The MIME type of the revision. */
3794 core.String mimeType; 3853 core.String mimeType;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
3897 } 3956 }
3898 if (size != null) { 3957 if (size != null) {
3899 _json["size"] = size; 3958 _json["size"] = size;
3900 } 3959 }
3901 return _json; 3960 return _json;
3902 } 3961 }
3903 } 3962 }
3904 3963
3905 /** A list of revisions of a file. */ 3964 /** A list of revisions of a file. */
3906 class RevisionList { 3965 class RevisionList {
3907 /** This is always drive#revisionList. */ 3966 /**
3967 * Identifies what kind of resource this is. Value: the fixed string
3968 * "drive#revisionList".
3969 */
3908 core.String kind; 3970 core.String kind;
3971 /**
3972 * The page token for the next page of revisions. This will be absent if the
3973 * end of the revisions list has been reached.
3974 */
3975 core.String nextPageToken;
3909 /** The full list of revisions. */ 3976 /** The full list of revisions. */
3910 core.List<Revision> revisions; 3977 core.List<Revision> revisions;
3911 3978
3912 RevisionList(); 3979 RevisionList();
3913 3980
3914 RevisionList.fromJson(core.Map _json) { 3981 RevisionList.fromJson(core.Map _json) {
3915 if (_json.containsKey("kind")) { 3982 if (_json.containsKey("kind")) {
3916 kind = _json["kind"]; 3983 kind = _json["kind"];
3917 } 3984 }
3985 if (_json.containsKey("nextPageToken")) {
3986 nextPageToken = _json["nextPageToken"];
3987 }
3918 if (_json.containsKey("revisions")) { 3988 if (_json.containsKey("revisions")) {
3919 revisions = _json["revisions"].map((value) => new Revision.fromJson(value) ).toList(); 3989 revisions = _json["revisions"].map((value) => new Revision.fromJson(value) ).toList();
3920 } 3990 }
3921 } 3991 }
3922 3992
3923 core.Map toJson() { 3993 core.Map toJson() {
3924 var _json = new core.Map(); 3994 var _json = new core.Map();
3925 if (kind != null) { 3995 if (kind != null) {
3926 _json["kind"] = kind; 3996 _json["kind"] = kind;
3927 } 3997 }
3998 if (nextPageToken != null) {
3999 _json["nextPageToken"] = nextPageToken;
4000 }
3928 if (revisions != null) { 4001 if (revisions != null) {
3929 _json["revisions"] = revisions.map((value) => (value).toJson()).toList(); 4002 _json["revisions"] = revisions.map((value) => (value).toJson()).toList();
3930 } 4003 }
3931 return _json; 4004 return _json;
3932 } 4005 }
3933 } 4006 }
3934 4007
3935 class StartPageToken { 4008 class StartPageToken {
3936 /** This is always drive#startPageToken. */ 4009 /**
4010 * Identifies what kind of resource this is. Value: the fixed string
4011 * "drive#startPageToken".
4012 */
3937 core.String kind; 4013 core.String kind;
3938 /** The starting page token for listing changes. */ 4014 /** The starting page token for listing changes. */
3939 core.String startPageToken; 4015 core.String startPageToken;
3940 4016
3941 StartPageToken(); 4017 StartPageToken();
3942 4018
3943 StartPageToken.fromJson(core.Map _json) { 4019 StartPageToken.fromJson(core.Map _json) {
3944 if (_json.containsKey("kind")) { 4020 if (_json.containsKey("kind")) {
3945 kind = _json["kind"]; 4021 kind = _json["kind"];
3946 } 4022 }
(...skipping 16 matching lines...) Expand all
3963 4039
3964 /** Information about a Drive user. */ 4040 /** Information about a Drive user. */
3965 class User { 4041 class User {
3966 /** A plain text displayable name for this user. */ 4042 /** A plain text displayable name for this user. */
3967 core.String displayName; 4043 core.String displayName;
3968 /** 4044 /**
3969 * The email address of the user. This may not be present in certain contexts 4045 * The email address of the user. This may not be present in certain contexts
3970 * if the user has not made their email address visible to the requester. 4046 * if the user has not made their email address visible to the requester.
3971 */ 4047 */
3972 core.String emailAddress; 4048 core.String emailAddress;
3973 /** This is always drive#user. */ 4049 /**
4050 * Identifies what kind of resource this is. Value: the fixed string
4051 * "drive#user".
4052 */
3974 core.String kind; 4053 core.String kind;
3975 /** Whether this user is the requesting user. */ 4054 /** Whether this user is the requesting user. */
3976 core.bool me; 4055 core.bool me;
3977 /** The user's ID as visible in Permission resources. */ 4056 /** The user's ID as visible in Permission resources. */
3978 core.String permissionId; 4057 core.String permissionId;
3979 /** A link to the user's profile photo, if available. */ 4058 /** A link to the user's profile photo, if available. */
3980 core.String photoLink; 4059 core.String photoLink;
3981 4060
3982 User(); 4061 User();
3983 4062
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
4018 } 4097 }
4019 if (permissionId != null) { 4098 if (permissionId != null) {
4020 _json["permissionId"] = permissionId; 4099 _json["permissionId"] = permissionId;
4021 } 4100 }
4022 if (photoLink != null) { 4101 if (photoLink != null) {
4023 _json["photoLink"] = photoLink; 4102 _json["photoLink"] = photoLink;
4024 } 4103 }
4025 return _json; 4104 return _json;
4026 } 4105 }
4027 } 4106 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/drive/v2.dart ('k') | generated/googleapis/lib/firebasedynamiclinks/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698