OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/drive": { | 5 "https://www.googleapis.com/auth/drive": { |
6 "description": "View and manage the files in your Google Dri
ve" | 6 "description": "View and manage the files in your Google Dri
ve" |
7 }, | 7 }, |
8 "https://www.googleapis.com/auth/drive.appdata": { | 8 "https://www.googleapis.com/auth/drive.appdata": { |
9 "description": "View and manage its own configuration data i
n your Google Drive" | 9 "description": "View and manage its own configuration data i
n your Google Drive" |
10 }, | 10 }, |
(...skipping 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 } | 32 } |
33 } | 33 } |
34 }, | 34 }, |
35 "basePath": "/drive/v2/", | 35 "basePath": "/drive/v2/", |
36 "baseUrl": "https://www.googleapis.com/drive/v2/", | 36 "baseUrl": "https://www.googleapis.com/drive/v2/", |
37 "batchPath": "batch", | 37 "batchPath": "batch", |
38 "description": "Manages files in Drive including uploading, downloading, sea
rching, detecting changes, and updating sharing permissions.", | 38 "description": "Manages files in Drive including uploading, downloading, sea
rching, detecting changes, and updating sharing permissions.", |
39 "discoveryVersion": "v1", | 39 "discoveryVersion": "v1", |
40 "documentationLink": "https://developers.google.com/drive/", | 40 "documentationLink": "https://developers.google.com/drive/", |
41 "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/k95lUH_zhTckcacGeDVZVmgaiTM\"", | 41 "etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/EbtNcB6XTkXxPp1AxlMf5BZZggs\"", |
42 "icons": { | 42 "icons": { |
43 "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png", | 43 "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png", |
44 "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png" | 44 "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png" |
45 }, | 45 }, |
46 "id": "drive:v2", | 46 "id": "drive:v2", |
47 "kind": "discovery#restDescription", | 47 "kind": "discovery#restDescription", |
48 "name": "drive", | 48 "name": "drive", |
49 "ownerDomain": "google.com", | 49 "ownerDomain": "google.com", |
50 "ownerName": "Google", | 50 "ownerName": "Google", |
51 "parameters": { | 51 "parameters": { |
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1209 "type": "string" | 1209 "type": "string" |
1210 }, | 1210 }, |
1211 "includeTeamDriveItems": { | 1211 "includeTeamDriveItems": { |
1212 "default": "false", | 1212 "default": "false", |
1213 "description": "Whether Team Drive items should be i
ncluded in results.", | 1213 "description": "Whether Team Drive items should be i
ncluded in results.", |
1214 "location": "query", | 1214 "location": "query", |
1215 "type": "boolean" | 1215 "type": "boolean" |
1216 }, | 1216 }, |
1217 "maxResults": { | 1217 "maxResults": { |
1218 "default": "100", | 1218 "default": "100", |
1219 "description": "Maximum number of files to return.", | 1219 "description": "The maximum number of files to retur
n per page. Partial or empty result pages are possible even before the end of th
e files list has been reached.", |
1220 "format": "int32", | 1220 "format": "int32", |
1221 "location": "query", | 1221 "location": "query", |
1222 "minimum": "0", | 1222 "minimum": "0", |
1223 "type": "integer" | 1223 "type": "integer" |
1224 }, | 1224 }, |
1225 "orderBy": { | 1225 "orderBy": { |
1226 "description": "A comma-separated list of sort keys.
Valid keys are 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate
', 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', a
nd 'title'. Each key sorts ascending by default, but may be reversed with the 'd
esc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. Please no
te that there is a current limitation for users with approximately one million f
iles in which the requested sort order is ignored.", | 1226 "description": "A comma-separated list of sort keys.
Valid keys are 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate
', 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', a
nd 'title'. Each key sorts ascending by default, but may be reversed with the 'd
esc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. Please no
te that there is a current limitation for users with approximately one million f
iles in which the requested sort order is ignored.", |
1227 "location": "query", | 1227 "location": "query", |
1228 "type": "string" | 1228 "type": "string" |
1229 }, | 1229 }, |
(...skipping 1782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3012 "response": { | 3012 "response": { |
3013 "$ref": "TeamDrive" | 3013 "$ref": "TeamDrive" |
3014 }, | 3014 }, |
3015 "scopes": [ | 3015 "scopes": [ |
3016 "https://www.googleapis.com/auth/drive" | 3016 "https://www.googleapis.com/auth/drive" |
3017 ] | 3017 ] |
3018 } | 3018 } |
3019 } | 3019 } |
3020 } | 3020 } |
3021 }, | 3021 }, |
3022 "revision": "20170320", | 3022 "revision": "20170406", |
3023 "rootUrl": "https://www.googleapis.com/", | 3023 "rootUrl": "https://www.googleapis.com/", |
3024 "schemas": { | 3024 "schemas": { |
3025 "About": { | 3025 "About": { |
3026 "description": "An item with user information and settings.", | 3026 "description": "An item with user information and settings.", |
3027 "id": "About", | 3027 "id": "About", |
3028 "properties": { | 3028 "properties": { |
3029 "additionalRoleInfo": { | 3029 "additionalRoleInfo": { |
3030 "description": "Information about supported additional roles
per file type. The most specific type takes precedence.", | 3030 "description": "Information about supported additional roles
per file type. The most specific type takes precedence.", |
3031 "items": { | 3031 "items": { |
3032 "properties": { | 3032 "properties": { |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3224 "type": "string" | 3224 "type": "string" |
3225 }, | 3225 }, |
3226 "rootFolderId": { | 3226 "rootFolderId": { |
3227 "description": "The id of the root folder.", | 3227 "description": "The id of the root folder.", |
3228 "type": "string" | 3228 "type": "string" |
3229 }, | 3229 }, |
3230 "selfLink": { | 3230 "selfLink": { |
3231 "description": "A link back to this item.", | 3231 "description": "A link back to this item.", |
3232 "type": "string" | 3232 "type": "string" |
3233 }, | 3233 }, |
| 3234 "teamDriveThemes": { |
| 3235 "description": "A list of themes that are supported for Team
Drives.", |
| 3236 "items": { |
| 3237 "properties": { |
| 3238 "backgroundImageLink": { |
| 3239 "description": "A link to this Team Drive theme'
s background image.", |
| 3240 "type": "string" |
| 3241 }, |
| 3242 "colorRgb": { |
| 3243 "description": "The color of this Team Drive the
me as an RGB hex string.", |
| 3244 "type": "string" |
| 3245 }, |
| 3246 "id": { |
| 3247 "description": "The ID of the theme.", |
| 3248 "type": "string" |
| 3249 } |
| 3250 }, |
| 3251 "type": "object" |
| 3252 }, |
| 3253 "type": "array" |
| 3254 }, |
3234 "user": { | 3255 "user": { |
3235 "$ref": "User", | 3256 "$ref": "User", |
3236 "description": "The authenticated user." | 3257 "description": "The authenticated user." |
3237 } | 3258 } |
3238 }, | 3259 }, |
3239 "type": "object" | 3260 "type": "object" |
3240 }, | 3261 }, |
3241 "App": { | 3262 "App": { |
3242 "description": "The apps resource provides a list of the apps that a
user has installed, with information about each app's supported MIME types, fil
e extensions, and other details.", | 3263 "description": "The apps resource provides a list of the apps that a
user has installed, with information about each app's supported MIME types, fil
e extensions, and other details.", |
3243 "id": "App", | 3264 "id": "App", |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3825 "properties": { | 3846 "properties": { |
3826 "alternateLink": { | 3847 "alternateLink": { |
3827 "description": "A link for opening the file in a relevant Go
ogle editor or viewer.", | 3848 "description": "A link for opening the file in a relevant Go
ogle editor or viewer.", |
3828 "type": "string" | 3849 "type": "string" |
3829 }, | 3850 }, |
3830 "appDataContents": { | 3851 "appDataContents": { |
3831 "description": "Whether this file is in the Application Data
folder.", | 3852 "description": "Whether this file is in the Application Data
folder.", |
3832 "type": "boolean" | 3853 "type": "boolean" |
3833 }, | 3854 }, |
3834 "canComment": { | 3855 "canComment": { |
3835 "description": "Whether the current user can comment on the
file. Deprecated: use capabilities/canComment.", | 3856 "description": "Deprecated: use capabilities/canComment.", |
3836 "type": "boolean" | 3857 "type": "boolean" |
3837 }, | 3858 }, |
3838 "canReadRevisions": { | 3859 "canReadRevisions": { |
3839 "description": "Whether the current user has read access to
the Revisions resource of the file. Deprecated: use capabilities/canReadRevision
s.", | 3860 "description": "Deprecated: use capabilities/canReadRevision
s.", |
3840 "type": "boolean" | 3861 "type": "boolean" |
3841 }, | 3862 }, |
3842 "capabilities": { | 3863 "capabilities": { |
3843 "description": "Capabilities the current user has on the fil
e. Each capability corresponds to a fine-grained action that a user may take.", | 3864 "description": "Capabilities the current user has on this fi
le. Each capability corresponds to a fine-grained action that a user may take.", |
3844 "properties": { | 3865 "properties": { |
3845 "canAddChildren": { | 3866 "canAddChildren": { |
3846 "description": "Whether the current user can add chi
ldren to this folder. This is always false when the item is not a folder.", | 3867 "description": "Whether the current user can add chi
ldren to this folder. This is always false when the item is not a folder.", |
3847 "type": "boolean" | 3868 "type": "boolean" |
3848 }, | 3869 }, |
3849 "canComment": { | 3870 "canComment": { |
3850 "description": "Whether the current user can comment
on the file.", | 3871 "description": "Whether the current user can comment
on this file.", |
3851 "type": "boolean" | 3872 "type": "boolean" |
3852 }, | 3873 }, |
3853 "canCopy": { | 3874 "canCopy": { |
3854 "description": "Whether the file can be copied by th
e current user. For a Team Drive item, whether non-folder descendants of this it
em, or this item itself if it is not a folder, can be copied.", | 3875 "description": "Whether the current user can copy th
is file. For a Team Drive item, whether the current user can copy non-folder des
cendants of this item, or this item itself if it is not a folder.", |
3855 "type": "boolean" | 3876 "type": "boolean" |
3856 }, | 3877 }, |
3857 "canDelete": { | 3878 "canDelete": { |
3858 "description": "Whether the file can be deleted by t
he current user.", | 3879 "description": "Whether the current user can delete
this file.", |
3859 "type": "boolean" | 3880 "type": "boolean" |
3860 }, | 3881 }, |
3861 "canDownload": { | 3882 "canDownload": { |
3862 "description": "Whether the file can be downloaded b
y the current user.", | 3883 "description": "Whether the current user can downloa
d this file.", |
3863 "type": "boolean" | 3884 "type": "boolean" |
3864 }, | 3885 }, |
3865 "canEdit": { | 3886 "canEdit": { |
3866 "description": "Whether the file can be edited by th
e current user.", | 3887 "description": "Whether the current user can edit th
is file.", |
3867 "type": "boolean" | 3888 "type": "boolean" |
3868 }, | 3889 }, |
3869 "canListChildren": { | 3890 "canListChildren": { |
3870 "description": "Whether the current user can list th
e children of this folder. This is always false when the item is not a folder.", | 3891 "description": "Whether the current user can list th
e children of this folder. This is always false when the item is not a folder.", |
3871 "type": "boolean" | 3892 "type": "boolean" |
3872 }, | 3893 }, |
3873 "canMoveItemIntoTeamDrive": { | 3894 "canMoveItemIntoTeamDrive": { |
3874 "description": "Whether the current user can move th
is item into a Team Drive. If the item is in a Team Drive, this field is equival
ent to canMoveTeamDriveItem.", | 3895 "description": "Whether the current user can move th
is item into a Team Drive. If the item is in a Team Drive, this field is equival
ent to canMoveTeamDriveItem.", |
3875 "type": "boolean" | 3896 "type": "boolean" |
3876 }, | 3897 }, |
3877 "canMoveTeamDriveItem": { | 3898 "canMoveTeamDriveItem": { |
3878 "description": "Whether the current user can move th
is Team Drive item by changing its parent. Note that a request to change the par
ent for this item may still fail depending on the new parent that is being added
. Only populated for Team Drive files.", | 3899 "description": "Whether the current user can move th
is Team Drive item by changing its parent. Note that a request to change the par
ent for this item may still fail depending on the new parent that is being added
. Only populated for Team Drive files.", |
3879 "type": "boolean" | 3900 "type": "boolean" |
3880 }, | 3901 }, |
3881 "canReadRevisions": { | 3902 "canReadRevisions": { |
3882 "description": "Whether the current user has read ac
cess to the Revisions resource of the file. For a Team Drive item, whether revis
ions of non-folder descendants of this item, or this item itself if it is not a
folder, can be read.", | 3903 "description": "Whether the current user can read th
e revisions resource of this file. For a Team Drive item, whether revisions of n
on-folder descendants of this item, or this item itself if it is not a folder, c
an be read.", |
3883 "type": "boolean" | 3904 "type": "boolean" |
3884 }, | 3905 }, |
3885 "canReadTeamDrive": { | 3906 "canReadTeamDrive": { |
3886 "description": "Whether the current user has read ac
cess to the Team Drive to which this file belongs. Only populated for Team Drive
files.", | 3907 "description": "Whether the current user can read th
e Team Drive to which this file belongs. Only populated for Team Drive files.", |
3887 "type": "boolean" | 3908 "type": "boolean" |
3888 }, | 3909 }, |
3889 "canRemoveChildren": { | 3910 "canRemoveChildren": { |
3890 "description": "Whether the current user can remove
children from this folder. This is always false when the item is not a folder.", | 3911 "description": "Whether the current user can remove
children from this folder. This is always false when the item is not a folder.", |
3891 "type": "boolean" | 3912 "type": "boolean" |
3892 }, | 3913 }, |
3893 "canRename": { | 3914 "canRename": { |
3894 "description": "Whether the file can be renamed by t
he current user.", | 3915 "description": "Whether the current user can rename
this file.", |
3895 "type": "boolean" | 3916 "type": "boolean" |
3896 }, | 3917 }, |
3897 "canShare": { | 3918 "canShare": { |
3898 "description": "Whether the file's sharing settings
can be modified by the current user.", | 3919 "description": "Whether the current user can modify
the sharing settings for this file.", |
3899 "type": "boolean" | 3920 "type": "boolean" |
3900 }, | 3921 }, |
3901 "canTrash": { | 3922 "canTrash": { |
3902 "description": "Whether the file can be trashed by t
he current user.", | 3923 "description": "Whether the current user can move th
is file to trash.", |
3903 "type": "boolean" | 3924 "type": "boolean" |
3904 }, | 3925 }, |
3905 "canUntrash": { | 3926 "canUntrash": { |
3906 "description": "Whether the file can be restored fro
m the trash by the current user.", | 3927 "description": "Whether the current user can restore
this file from trash.", |
3907 "type": "boolean" | 3928 "type": "boolean" |
3908 } | 3929 } |
3909 }, | 3930 }, |
3910 "type": "object" | 3931 "type": "object" |
3911 }, | 3932 }, |
3912 "copyable": { | 3933 "copyable": { |
3913 "description": "Whether the file can be copied by the curren
t user. Deprecated: use capabilities/canCopy.", | 3934 "description": "Deprecated: use capabilities/canCopy.", |
3914 "type": "boolean" | 3935 "type": "boolean" |
3915 }, | 3936 }, |
3916 "createdDate": { | 3937 "createdDate": { |
3917 "description": "Create time for this file (formatted RFC 333
9 timestamp).", | 3938 "description": "Create time for this file (formatted RFC 333
9 timestamp).", |
3918 "format": "date-time", | 3939 "format": "date-time", |
3919 "type": "string" | 3940 "type": "string" |
3920 }, | 3941 }, |
3921 "defaultOpenWithLink": { | 3942 "defaultOpenWithLink": { |
3922 "description": "A link to open this file with the user's def
ault app for this file. Only populated when the drive.apps.readonly scope is use
d.", | 3943 "description": "A link to open this file with the user's def
ault app for this file. Only populated when the drive.apps.readonly scope is use
d.", |
3923 "type": "string" | 3944 "type": "string" |
3924 }, | 3945 }, |
3925 "description": { | 3946 "description": { |
3926 "description": "A short description of the file.", | 3947 "description": "A short description of the file.", |
3927 "type": "string" | 3948 "type": "string" |
3928 }, | 3949 }, |
3929 "downloadUrl": { | 3950 "downloadUrl": { |
3930 "type": "string" | 3951 "type": "string" |
3931 }, | 3952 }, |
3932 "editable": { | 3953 "editable": { |
3933 "description": "Whether the file can be edited by the curren
t user. Deprecated: use capabilities/canEdit.", | 3954 "description": "Deprecated: use capabilities/canEdit.", |
3934 "type": "boolean" | 3955 "type": "boolean" |
3935 }, | 3956 }, |
3936 "embedLink": { | 3957 "embedLink": { |
3937 "description": "A link for embedding the file.", | 3958 "description": "A link for embedding the file.", |
3938 "type": "string" | 3959 "type": "string" |
3939 }, | 3960 }, |
3940 "etag": { | 3961 "etag": { |
3941 "description": "ETag of the file.", | 3962 "description": "ETag of the file.", |
3942 "type": "string" | 3963 "type": "string" |
3943 }, | 3964 }, |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4245 "quotaBytesUsed": { | 4266 "quotaBytesUsed": { |
4246 "description": "The number of quota bytes used by this file.
", | 4267 "description": "The number of quota bytes used by this file.
", |
4247 "format": "int64", | 4268 "format": "int64", |
4248 "type": "string" | 4269 "type": "string" |
4249 }, | 4270 }, |
4250 "selfLink": { | 4271 "selfLink": { |
4251 "description": "A link back to this file.", | 4272 "description": "A link back to this file.", |
4252 "type": "string" | 4273 "type": "string" |
4253 }, | 4274 }, |
4254 "shareable": { | 4275 "shareable": { |
4255 "description": "Whether the file's sharing settings can be m
odified by the current user. Deprecated: use capabilities/canShare.", | 4276 "description": "Deprecated: use capabilities/canShare.", |
4256 "type": "boolean" | 4277 "type": "boolean" |
4257 }, | 4278 }, |
4258 "shared": { | 4279 "shared": { |
4259 "description": "Whether the file has been shared. Not popula
ted for Team Drive files.", | 4280 "description": "Whether the file has been shared. Not popula
ted for Team Drive files.", |
4260 "type": "boolean" | 4281 "type": "boolean" |
4261 }, | 4282 }, |
4262 "sharedWithMeDate": { | 4283 "sharedWithMeDate": { |
4263 "description": "Time at which this file was shared with the
user (formatted RFC 3339 timestamp).", | 4284 "description": "Time at which this file was shared with the
user (formatted RFC 3339 timestamp).", |
4264 "format": "date-time", | 4285 "format": "date-time", |
4265 "type": "string" | 4286 "type": "string" |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4491 "description": "Additional roles for this user. Only comment
er is currently allowed, though more may be supported in the future.", | 4512 "description": "Additional roles for this user. Only comment
er is currently allowed, though more may be supported in the future.", |
4492 "items": { | 4513 "items": { |
4493 "type": "string" | 4514 "type": "string" |
4494 }, | 4515 }, |
4495 "type": "array" | 4516 "type": "array" |
4496 }, | 4517 }, |
4497 "authKey": { | 4518 "authKey": { |
4498 "description": "The authkey parameter required for this perm
ission.", | 4519 "description": "The authkey parameter required for this perm
ission.", |
4499 "type": "string" | 4520 "type": "string" |
4500 }, | 4521 }, |
| 4522 "deleted": { |
| 4523 "description": "Whether the account of the permission has be
en deleted. This field only pertains to user and group permissions.", |
| 4524 "type": "boolean" |
| 4525 }, |
4501 "domain": { | 4526 "domain": { |
4502 "description": "The domain name of the entity this permissio
n refers to. This is an output-only field which is present when the permission t
ype is user, group or domain.", | 4527 "description": "The domain name of the entity this permissio
n refers to. This is an output-only field which is present when the permission t
ype is user, group or domain.", |
4503 "type": "string" | 4528 "type": "string" |
4504 }, | 4529 }, |
4505 "emailAddress": { | 4530 "emailAddress": { |
4506 "description": "The email address of the user or group this
permission refers to. This is an output-only field which is present when the per
mission type is user or group.", | 4531 "description": "The email address of the user or group this
permission refers to. This is an output-only field which is present when the per
mission type is user or group.", |
4507 "type": "string" | 4532 "type": "string" |
4508 }, | 4533 }, |
4509 "etag": { | 4534 "etag": { |
4510 "description": "The ETag of the permission.", | 4535 "description": "The ETag of the permission.", |
(...skipping 28 matching lines...) Expand all Loading... |
4539 ] | 4564 ] |
4540 }, | 4565 }, |
4541 "description": "The primary role for this user. While new va
lues may be supported in the future, the following are currently allowed: \n- o
rganizer \n- owner \n- reader \n- writer", | 4566 "description": "The primary role for this user. While new va
lues may be supported in the future, the following are currently allowed: \n- o
rganizer \n- owner \n- reader \n- writer", |
4542 "type": "string" | 4567 "type": "string" |
4543 }, | 4568 }, |
4544 "selfLink": { | 4569 "selfLink": { |
4545 "description": "A link back to this permission.", | 4570 "description": "A link back to this permission.", |
4546 "type": "string" | 4571 "type": "string" |
4547 }, | 4572 }, |
4548 "teamDrivePermissionDetails": { | 4573 "teamDrivePermissionDetails": { |
4549 "description": "Details of whether the Permissions on this T
eam Drive item are inherited or directly on this item. This is an output-only fi
eld which is present only for Team Drive items.", | 4574 "description": "Details of whether the permissions on this T
eam Drive item are inherited or directly on this item. This is an output-only fi
eld which is present only for Team Drive items.", |
4550 "items": { | 4575 "items": { |
4551 "properties": { | 4576 "properties": { |
4552 "additionalRoles": { | 4577 "additionalRoles": { |
4553 "description": "Additional roles for this user.
Only commenter is currently possible, though more may be supported in the future
.", | 4578 "description": "Additional roles for this user.
Only commenter is currently possible, though more may be supported in the future
.", |
4554 "items": { | 4579 "items": { |
4555 "type": "string" | 4580 "type": "string" |
4556 }, | 4581 }, |
4557 "type": "array" | 4582 "type": "array" |
4558 }, | 4583 }, |
4559 "inherited": { | 4584 "inherited": { |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4832 "description": "The starting page token for listing changes.
", | 4857 "description": "The starting page token for listing changes.
", |
4833 "type": "string" | 4858 "type": "string" |
4834 } | 4859 } |
4835 }, | 4860 }, |
4836 "type": "object" | 4861 "type": "object" |
4837 }, | 4862 }, |
4838 "TeamDrive": { | 4863 "TeamDrive": { |
4839 "description": "Representation of a Team Drive.", | 4864 "description": "Representation of a Team Drive.", |
4840 "id": "TeamDrive", | 4865 "id": "TeamDrive", |
4841 "properties": { | 4866 "properties": { |
| 4867 "backgroundImageFile": { |
| 4868 "description": "An image file and cropping parameters from w
hich a background image for this Team Drive is set. This is a write only field t
hat can only be set on a drive.teamdrives.update request that does not set theme
Id. When specified, all fields of the backgroundImageFile must be set.", |
| 4869 "properties": { |
| 4870 "id": { |
| 4871 "description": "The ID of an image file in Drive to
use for the background image.", |
| 4872 "type": "string" |
| 4873 }, |
| 4874 "width": { |
| 4875 "description": "The width of the cropped image in th
e closed range of 0 to 1, which is the width of the cropped image divided by the
width of the entire image. The height is computed by applying a width to height
aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide
and 144 pixels high.", |
| 4876 "format": "float", |
| 4877 "type": "number" |
| 4878 }, |
| 4879 "xCoordinate": { |
| 4880 "description": "The X coordinate of the upper left c
orner of the cropping area in the background image. This is a value in the close
d range of 0 to 1 which is the horizontal distance from the left side of the ent
ire image to the left side of the cropping area divided by the width of the enti
re image.", |
| 4881 "format": "float", |
| 4882 "type": "number" |
| 4883 }, |
| 4884 "yCoordinate": { |
| 4885 "description": "The Y coordinate of the upper left c
orner of the cropping area in the background image. This is a value in the close
d range of 0 to 1 which is the vertical distance from the top side of the entire
image to the top side of the cropping area divided by the height of the entire
image.", |
| 4886 "format": "float", |
| 4887 "type": "number" |
| 4888 } |
| 4889 }, |
| 4890 "type": "object" |
| 4891 }, |
| 4892 "backgroundImageLink": { |
| 4893 "description": "A short-lived link to this Team Drive's back
ground image.", |
| 4894 "type": "string" |
| 4895 }, |
4842 "capabilities": { | 4896 "capabilities": { |
4843 "description": "Capabilities the current user has on this Te
am Drive.", | 4897 "description": "Capabilities the current user has on this Te
am Drive.", |
4844 "properties": { | 4898 "properties": { |
4845 "canAddChildren": { | 4899 "canAddChildren": { |
4846 "description": "Whether the current user can add chi
ldren to folders in this Team Drive.", | 4900 "description": "Whether the current user can add chi
ldren to folders in this Team Drive.", |
4847 "type": "boolean" | 4901 "type": "boolean" |
4848 }, | 4902 }, |
| 4903 "canChangeTeamDriveBackground": { |
| 4904 "description": "Whether the current user can change
the background of this Team Drive.", |
| 4905 "type": "boolean" |
| 4906 }, |
4849 "canComment": { | 4907 "canComment": { |
4850 "description": "Whether the current user can comment
on files in this Team Drive.", | 4908 "description": "Whether the current user can comment
on files in this Team Drive.", |
4851 "type": "boolean" | 4909 "type": "boolean" |
4852 }, | 4910 }, |
4853 "canCopy": { | 4911 "canCopy": { |
4854 "description": "Whether files in this Team Drive can
be copied by the current user.", | 4912 "description": "Whether the current user can copy fi
les in this Team Drive.", |
4855 "type": "boolean" | 4913 "type": "boolean" |
4856 }, | 4914 }, |
4857 "canDeleteTeamDrive": { | 4915 "canDeleteTeamDrive": { |
4858 "description": "Whether this Team Drive can be delet
ed by the current user.", | 4916 "description": "Whether the current user can delete
this Team Drive. Attempting to delete the Team Drive may still fail if there are
untrashed items inside the Team Drive.", |
4859 "type": "boolean" | 4917 "type": "boolean" |
4860 }, | 4918 }, |
4861 "canDownload": { | 4919 "canDownload": { |
4862 "description": "Whether files in this Team Drive can
be downloaded by the current user.", | 4920 "description": "Whether the current user can downloa
d files in this Team Drive.", |
4863 "type": "boolean" | 4921 "type": "boolean" |
4864 }, | 4922 }, |
4865 "canEdit": { | 4923 "canEdit": { |
4866 "description": "Whether files in this Team Drive can
be edited by the current user.", | 4924 "description": "Whether the current user can edit fi
les in this Team Drive", |
4867 "type": "boolean" | 4925 "type": "boolean" |
4868 }, | 4926 }, |
4869 "canListChildren": { | 4927 "canListChildren": { |
4870 "description": "Whether the current user can list th
e children of folders in this Team Drive.", | 4928 "description": "Whether the current user can list th
e children of folders in this Team Drive.", |
4871 "type": "boolean" | 4929 "type": "boolean" |
4872 }, | 4930 }, |
4873 "canManageMembers": { | 4931 "canManageMembers": { |
4874 "description": "Whether the current user can add mem
bers to this Team Drive or remove them or change their role.", | 4932 "description": "Whether the current user can add mem
bers to this Team Drive or remove them or change their role.", |
4875 "type": "boolean" | 4933 "type": "boolean" |
4876 }, | 4934 }, |
4877 "canReadRevisions": { | 4935 "canReadRevisions": { |
4878 "description": "Whether the current user has read ac
cess to the Revisions resource of files in this Team Drive.", | 4936 "description": "Whether the current user can read th
e revisions resource of files in this Team Drive.", |
4879 "type": "boolean" | 4937 "type": "boolean" |
4880 }, | 4938 }, |
4881 "canRemoveChildren": { | 4939 "canRemoveChildren": { |
4882 "description": "Whether the current user can remove
children from folders in this Team Drive.", | 4940 "description": "Whether the current user can remove
children from folders in this Team Drive.", |
4883 "type": "boolean" | 4941 "type": "boolean" |
4884 }, | 4942 }, |
4885 "canRename": { | 4943 "canRename": { |
4886 "description": "Whether files or folders in this Tea
m Drive can be renamed by the current user.", | 4944 "description": "Whether the current user can rename
files or folders in this Team Drive.", |
4887 "type": "boolean" | 4945 "type": "boolean" |
4888 }, | 4946 }, |
4889 "canRenameTeamDrive": { | 4947 "canRenameTeamDrive": { |
4890 "description": "Whether this Team Drive can be renam
ed by the current user.", | 4948 "description": "Whether the current user can rename
this Team Drive.", |
4891 "type": "boolean" | 4949 "type": "boolean" |
4892 }, | 4950 }, |
4893 "canShare": { | 4951 "canShare": { |
4894 "description": "Whether the current user can share f
iles or folders in this Team Drive.", | 4952 "description": "Whether the current user can share f
iles or folders in this Team Drive.", |
4895 "type": "boolean" | 4953 "type": "boolean" |
4896 } | 4954 } |
4897 }, | 4955 }, |
4898 "type": "object" | 4956 "type": "object" |
4899 }, | 4957 }, |
| 4958 "colorRgb": { |
| 4959 "description": "The color of this Team Drive as an RGB hex s
tring. It can only be set on a drive.teamdrives.update request that does not set
themeId.", |
| 4960 "type": "string" |
| 4961 }, |
4900 "id": { | 4962 "id": { |
4901 "description": "The ID of this Team Drive which is also the
ID of the top level folder for this Team Drive.", | 4963 "description": "The ID of this Team Drive which is also the
ID of the top level folder for this Team Drive.", |
4902 "type": "string" | 4964 "type": "string" |
4903 }, | 4965 }, |
4904 "kind": { | 4966 "kind": { |
4905 "default": "drive#teamDrive", | 4967 "default": "drive#teamDrive", |
4906 "description": "This is always drive#teamDrive", | 4968 "description": "This is always drive#teamDrive", |
4907 "type": "string" | 4969 "type": "string" |
4908 }, | 4970 }, |
4909 "name": { | 4971 "name": { |
4910 "description": "The name of this Team Drive.", | 4972 "description": "The name of this Team Drive.", |
4911 "type": "string" | 4973 "type": "string" |
| 4974 }, |
| 4975 "themeId": { |
| 4976 "description": "The ID of the theme from which the backgroun
d image and color will be set. The set of possible teamDriveThemes can be retrie
ved from a drive.about.get response. When not specified on a drive.teamdrives.in
sert request, a random theme is chosen from which the background image and color
are set. This is a write only field that can only be set on a request that does
not set colorRgb or backgroundImageFile.", |
| 4977 "type": "string" |
4912 } | 4978 } |
4913 }, | 4979 }, |
4914 "type": "object" | 4980 "type": "object" |
4915 }, | 4981 }, |
4916 "TeamDriveList": { | 4982 "TeamDriveList": { |
4917 "description": "A list of Team Drives.", | 4983 "description": "A list of Team Drives.", |
4918 "id": "TeamDriveList", | 4984 "id": "TeamDriveList", |
4919 "properties": { | 4985 "properties": { |
4920 "items": { | 4986 "items": { |
4921 "description": "The list of Team Drives.", | 4987 "description": "The list of Team Drives.", |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4972 "type": "object" | 5038 "type": "object" |
4973 } | 5039 } |
4974 }, | 5040 }, |
4975 "type": "object" | 5041 "type": "object" |
4976 } | 5042 } |
4977 }, | 5043 }, |
4978 "servicePath": "drive/v2/", | 5044 "servicePath": "drive/v2/", |
4979 "title": "Drive API", | 5045 "title": "Drive API", |
4980 "version": "v2" | 5046 "version": "v2" |
4981 } | 5047 } |
OLD | NEW |