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/5vvnUnaYZD7vqEjmjYVCOzuEk5s\"", | 41 "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/yOLelwNe1_ffRHSPwl2spgscA0Q\"", |
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 "id": "drive.changes.get", | 210 "id": "drive.changes.get", |
211 "parameterOrder": [ | 211 "parameterOrder": [ |
212 "changeId" | 212 "changeId" |
213 ], | 213 ], |
214 "parameters": { | 214 "parameters": { |
215 "changeId": { | 215 "changeId": { |
216 "description": "The ID of the change.", | 216 "description": "The ID of the change.", |
217 "location": "path", | 217 "location": "path", |
218 "required": true, | 218 "required": true, |
219 "type": "string" | 219 "type": "string" |
| 220 }, |
| 221 "supportsTeamDrives": { |
| 222 "default": "false", |
| 223 "description": "Whether the requesting application s
upports Team Drives.", |
| 224 "location": "query", |
| 225 "type": "boolean" |
| 226 }, |
| 227 "teamDriveId": { |
| 228 "description": "The Team Drive from which the change
will be returned.", |
| 229 "location": "query", |
| 230 "type": "string" |
220 } | 231 } |
221 }, | 232 }, |
222 "path": "changes/{changeId}", | 233 "path": "changes/{changeId}", |
223 "response": { | 234 "response": { |
224 "$ref": "Change" | 235 "$ref": "Change" |
225 }, | 236 }, |
226 "scopes": [ | 237 "scopes": [ |
227 "https://www.googleapis.com/auth/drive", | 238 "https://www.googleapis.com/auth/drive", |
228 "https://www.googleapis.com/auth/drive.appdata", | 239 "https://www.googleapis.com/auth/drive.appdata", |
229 "https://www.googleapis.com/auth/drive.apps.readonly", | 240 "https://www.googleapis.com/auth/drive.apps.readonly", |
230 "https://www.googleapis.com/auth/drive.file", | 241 "https://www.googleapis.com/auth/drive.file", |
231 "https://www.googleapis.com/auth/drive.metadata", | 242 "https://www.googleapis.com/auth/drive.metadata", |
232 "https://www.googleapis.com/auth/drive.metadata.readonly
", | 243 "https://www.googleapis.com/auth/drive.metadata.readonly
", |
233 "https://www.googleapis.com/auth/drive.photos.readonly", | 244 "https://www.googleapis.com/auth/drive.photos.readonly", |
234 "https://www.googleapis.com/auth/drive.readonly" | 245 "https://www.googleapis.com/auth/drive.readonly" |
235 ] | 246 ] |
236 }, | 247 }, |
237 "getStartPageToken": { | 248 "getStartPageToken": { |
238 "description": "Gets the starting pageToken for listing futu
re changes.", | 249 "description": "Gets the starting pageToken for listing futu
re changes.", |
239 "httpMethod": "GET", | 250 "httpMethod": "GET", |
240 "id": "drive.changes.getStartPageToken", | 251 "id": "drive.changes.getStartPageToken", |
| 252 "parameters": { |
| 253 "supportsTeamDrives": { |
| 254 "default": "false", |
| 255 "description": "Whether the requesting application s
upports Team Drives.", |
| 256 "location": "query", |
| 257 "type": "boolean" |
| 258 }, |
| 259 "teamDriveId": { |
| 260 "description": "The ID of the Team Drive for which t
he starting pageToken for listing future changes from that Team Drive will be re
turned.", |
| 261 "location": "query", |
| 262 "type": "string" |
| 263 } |
| 264 }, |
241 "path": "changes/startPageToken", | 265 "path": "changes/startPageToken", |
242 "response": { | 266 "response": { |
243 "$ref": "StartPageToken" | 267 "$ref": "StartPageToken" |
244 }, | 268 }, |
245 "scopes": [ | 269 "scopes": [ |
246 "https://www.googleapis.com/auth/drive", | 270 "https://www.googleapis.com/auth/drive", |
247 "https://www.googleapis.com/auth/drive.appdata", | 271 "https://www.googleapis.com/auth/drive.appdata", |
248 "https://www.googleapis.com/auth/drive.apps.readonly", | 272 "https://www.googleapis.com/auth/drive.apps.readonly", |
249 "https://www.googleapis.com/auth/drive.file", | 273 "https://www.googleapis.com/auth/drive.file", |
250 "https://www.googleapis.com/auth/drive.metadata", | 274 "https://www.googleapis.com/auth/drive.metadata", |
251 "https://www.googleapis.com/auth/drive.metadata.readonly
", | 275 "https://www.googleapis.com/auth/drive.metadata.readonly
", |
252 "https://www.googleapis.com/auth/drive.photos.readonly", | 276 "https://www.googleapis.com/auth/drive.photos.readonly", |
253 "https://www.googleapis.com/auth/drive.readonly" | 277 "https://www.googleapis.com/auth/drive.readonly" |
254 ] | 278 ] |
255 }, | 279 }, |
256 "list": { | 280 "list": { |
257 "description": "Lists the changes for a user.", | 281 "description": "Lists the changes for a user or Team Drive."
, |
258 "httpMethod": "GET", | 282 "httpMethod": "GET", |
259 "id": "drive.changes.list", | 283 "id": "drive.changes.list", |
260 "parameters": { | 284 "parameters": { |
261 "includeDeleted": { | 285 "includeCorpusRemovals": { |
262 "default": "true", | 286 "default": "false", |
263 "description": "Whether to include deleted items.", | 287 "description": "Whether changes should include the f
ile resource if the file is still accessible by the user at the time of the requ
est, even when a file was removed from the list of changes and there will be no
further change entries for this file.", |
264 "location": "query", | 288 "location": "query", |
265 "type": "boolean" | 289 "type": "boolean" |
266 }, | 290 }, |
| 291 "includeDeleted": { |
| 292 "default": "true", |
| 293 "description": "Whether to include changes indicatin
g that items have been removed from the list of changes, for example by deletion
or loss of access.", |
| 294 "location": "query", |
| 295 "type": "boolean" |
| 296 }, |
267 "includeSubscribed": { | 297 "includeSubscribed": { |
268 "default": "true", | 298 "default": "true", |
269 "description": "Whether to include public files the
user has opened and shared files. When set to false, the list only includes owne
d files plus any shared or public files the user has explicitly added to a folde
r they own.", | 299 "description": "Whether to include public files the
user has opened and shared files. When set to false, the list only includes owne
d files plus any shared or public files the user has explicitly added to a folde
r they own.", |
270 "location": "query", | 300 "location": "query", |
271 "type": "boolean" | 301 "type": "boolean" |
272 }, | 302 }, |
| 303 "includeTeamDriveItems": { |
| 304 "default": "false", |
| 305 "description": "Whether Team Drive files or changes
should be included in results.", |
| 306 "location": "query", |
| 307 "type": "boolean" |
| 308 }, |
273 "maxResults": { | 309 "maxResults": { |
274 "default": "100", | 310 "default": "100", |
275 "description": "Maximum number of changes to return.
", | 311 "description": "Maximum number of changes to return.
", |
276 "format": "int32", | 312 "format": "int32", |
277 "location": "query", | 313 "location": "query", |
278 "minimum": "1", | 314 "minimum": "1", |
279 "type": "integer" | 315 "type": "integer" |
280 }, | 316 }, |
281 "pageToken": { | 317 "pageToken": { |
282 "description": "The token for continuing a previous
list request on the next page. This should be set to the value of 'nextPageToken
' from the previous response or to the response from the getStartPageToken metho
d.", | 318 "description": "The token for continuing a previous
list request on the next page. This should be set to the value of 'nextPageToken
' from the previous response or to the response from the getStartPageToken metho
d.", |
283 "location": "query", | 319 "location": "query", |
284 "type": "string" | 320 "type": "string" |
285 }, | 321 }, |
286 "spaces": { | 322 "spaces": { |
287 "description": "A comma-separated list of spaces to
query. Supported values are 'drive', 'appDataFolder' and 'photos'.", | 323 "description": "A comma-separated list of spaces to
query. Supported values are 'drive', 'appDataFolder' and 'photos'.", |
288 "location": "query", | 324 "location": "query", |
289 "type": "string" | 325 "type": "string" |
290 }, | 326 }, |
291 "startChangeId": { | 327 "startChangeId": { |
292 "description": "Change ID to start listing changes f
rom.", | 328 "description": "Change ID to start listing changes f
rom.", |
293 "format": "int64", | 329 "format": "int64", |
294 "location": "query", | 330 "location": "query", |
295 "type": "string" | 331 "type": "string" |
| 332 }, |
| 333 "supportsTeamDrives": { |
| 334 "default": "false", |
| 335 "description": "Whether the requesting application s
upports Team Drives.", |
| 336 "location": "query", |
| 337 "type": "boolean" |
| 338 }, |
| 339 "teamDriveId": { |
| 340 "description": "The Team Drive from which changes wi
ll be returned. If specified the change IDs will be reflective of the Team Drive
; use the combined Team Drive ID and change ID as an identifier.", |
| 341 "location": "query", |
| 342 "type": "string" |
296 } | 343 } |
297 }, | 344 }, |
298 "path": "changes", | 345 "path": "changes", |
299 "response": { | 346 "response": { |
300 "$ref": "ChangeList" | 347 "$ref": "ChangeList" |
301 }, | 348 }, |
302 "scopes": [ | 349 "scopes": [ |
303 "https://www.googleapis.com/auth/drive", | 350 "https://www.googleapis.com/auth/drive", |
304 "https://www.googleapis.com/auth/drive.appdata", | 351 "https://www.googleapis.com/auth/drive.appdata", |
305 "https://www.googleapis.com/auth/drive.apps.readonly", | 352 "https://www.googleapis.com/auth/drive.apps.readonly", |
306 "https://www.googleapis.com/auth/drive.file", | 353 "https://www.googleapis.com/auth/drive.file", |
307 "https://www.googleapis.com/auth/drive.metadata", | 354 "https://www.googleapis.com/auth/drive.metadata", |
308 "https://www.googleapis.com/auth/drive.metadata.readonly
", | 355 "https://www.googleapis.com/auth/drive.metadata.readonly
", |
309 "https://www.googleapis.com/auth/drive.photos.readonly", | 356 "https://www.googleapis.com/auth/drive.photos.readonly", |
310 "https://www.googleapis.com/auth/drive.readonly" | 357 "https://www.googleapis.com/auth/drive.readonly" |
311 ], | 358 ], |
312 "supportsSubscription": true | 359 "supportsSubscription": true |
313 }, | 360 }, |
314 "watch": { | 361 "watch": { |
315 "description": "Subscribe to changes for a user.", | 362 "description": "Subscribe to changes for a user.", |
316 "httpMethod": "POST", | 363 "httpMethod": "POST", |
317 "id": "drive.changes.watch", | 364 "id": "drive.changes.watch", |
318 "parameters": { | 365 "parameters": { |
319 "includeDeleted": { | 366 "includeCorpusRemovals": { |
320 "default": "true", | 367 "default": "false", |
321 "description": "Whether to include deleted items.", | 368 "description": "Whether changes should include the f
ile resource if the file is still accessible by the user at the time of the requ
est, even when a file was removed from the list of changes and there will be no
further change entries for this file.", |
322 "location": "query", | 369 "location": "query", |
323 "type": "boolean" | 370 "type": "boolean" |
324 }, | 371 }, |
| 372 "includeDeleted": { |
| 373 "default": "true", |
| 374 "description": "Whether to include changes indicatin
g that items have been removed from the list of changes, for example by deletion
or loss of access.", |
| 375 "location": "query", |
| 376 "type": "boolean" |
| 377 }, |
325 "includeSubscribed": { | 378 "includeSubscribed": { |
326 "default": "true", | 379 "default": "true", |
327 "description": "Whether to include public files the
user has opened and shared files. When set to false, the list only includes owne
d files plus any shared or public files the user has explicitly added to a folde
r they own.", | 380 "description": "Whether to include public files the
user has opened and shared files. When set to false, the list only includes owne
d files plus any shared or public files the user has explicitly added to a folde
r they own.", |
328 "location": "query", | 381 "location": "query", |
329 "type": "boolean" | 382 "type": "boolean" |
330 }, | 383 }, |
| 384 "includeTeamDriveItems": { |
| 385 "default": "false", |
| 386 "description": "Whether Team Drive files or changes
should be included in results.", |
| 387 "location": "query", |
| 388 "type": "boolean" |
| 389 }, |
331 "maxResults": { | 390 "maxResults": { |
332 "default": "100", | 391 "default": "100", |
333 "description": "Maximum number of changes to return.
", | 392 "description": "Maximum number of changes to return.
", |
334 "format": "int32", | 393 "format": "int32", |
335 "location": "query", | 394 "location": "query", |
336 "minimum": "1", | 395 "minimum": "1", |
337 "type": "integer" | 396 "type": "integer" |
338 }, | 397 }, |
339 "pageToken": { | 398 "pageToken": { |
340 "description": "The token for continuing a previous
list request on the next page. This should be set to the value of 'nextPageToken
' from the previous response or to the response from the getStartPageToken metho
d.", | 399 "description": "The token for continuing a previous
list request on the next page. This should be set to the value of 'nextPageToken
' from the previous response or to the response from the getStartPageToken metho
d.", |
341 "location": "query", | 400 "location": "query", |
342 "type": "string" | 401 "type": "string" |
343 }, | 402 }, |
344 "spaces": { | 403 "spaces": { |
345 "description": "A comma-separated list of spaces to
query. Supported values are 'drive', 'appDataFolder' and 'photos'.", | 404 "description": "A comma-separated list of spaces to
query. Supported values are 'drive', 'appDataFolder' and 'photos'.", |
346 "location": "query", | 405 "location": "query", |
347 "type": "string" | 406 "type": "string" |
348 }, | 407 }, |
349 "startChangeId": { | 408 "startChangeId": { |
350 "description": "Change ID to start listing changes f
rom.", | 409 "description": "Change ID to start listing changes f
rom.", |
351 "format": "int64", | 410 "format": "int64", |
352 "location": "query", | 411 "location": "query", |
353 "type": "string" | 412 "type": "string" |
| 413 }, |
| 414 "supportsTeamDrives": { |
| 415 "default": "false", |
| 416 "description": "Whether the requesting application s
upports Team Drives.", |
| 417 "location": "query", |
| 418 "type": "boolean" |
| 419 }, |
| 420 "teamDriveId": { |
| 421 "description": "The Team Drive from which changes wi
ll be returned. If specified the change IDs will be reflective of the Team Drive
; use the combined Team Drive ID and change ID as an identifier.", |
| 422 "location": "query", |
| 423 "type": "string" |
354 } | 424 } |
355 }, | 425 }, |
356 "path": "changes/watch", | 426 "path": "changes/watch", |
357 "request": { | 427 "request": { |
358 "$ref": "Channel", | 428 "$ref": "Channel", |
359 "parameterName": "resource" | 429 "parameterName": "resource" |
360 }, | 430 }, |
361 "response": { | 431 "response": { |
362 "$ref": "Channel" | 432 "$ref": "Channel" |
363 }, | 433 }, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 "id": "drive.children.insert", | 541 "id": "drive.children.insert", |
472 "parameterOrder": [ | 542 "parameterOrder": [ |
473 "folderId" | 543 "folderId" |
474 ], | 544 ], |
475 "parameters": { | 545 "parameters": { |
476 "folderId": { | 546 "folderId": { |
477 "description": "The ID of the folder.", | 547 "description": "The ID of the folder.", |
478 "location": "path", | 548 "location": "path", |
479 "required": true, | 549 "required": true, |
480 "type": "string" | 550 "type": "string" |
| 551 }, |
| 552 "supportsTeamDrives": { |
| 553 "default": "false", |
| 554 "description": "Whether the requesting application s
upports Team Drives.", |
| 555 "location": "query", |
| 556 "type": "boolean" |
481 } | 557 } |
482 }, | 558 }, |
483 "path": "files/{folderId}/children", | 559 "path": "files/{folderId}/children", |
484 "request": { | 560 "request": { |
485 "$ref": "ChildReference" | 561 "$ref": "ChildReference" |
486 }, | 562 }, |
487 "response": { | 563 "response": { |
488 "$ref": "ChildReference" | 564 "$ref": "ChildReference" |
489 }, | 565 }, |
490 "scopes": [ | 566 "scopes": [ |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 "description": "If ocr is true, hints at the languag
e to use. Valid values are BCP 47 codes.", | 870 "description": "If ocr is true, hints at the languag
e to use. Valid values are BCP 47 codes.", |
795 "location": "query", | 871 "location": "query", |
796 "type": "string" | 872 "type": "string" |
797 }, | 873 }, |
798 "pinned": { | 874 "pinned": { |
799 "default": "false", | 875 "default": "false", |
800 "description": "Whether to pin the head revision of
the new copy. A file can have a maximum of 200 pinned revisions.", | 876 "description": "Whether to pin the head revision of
the new copy. A file can have a maximum of 200 pinned revisions.", |
801 "location": "query", | 877 "location": "query", |
802 "type": "boolean" | 878 "type": "boolean" |
803 }, | 879 }, |
| 880 "supportsTeamDrives": { |
| 881 "default": "false", |
| 882 "description": "Whether the requesting application s
upports Team Drives.", |
| 883 "location": "query", |
| 884 "type": "boolean" |
| 885 }, |
804 "timedTextLanguage": { | 886 "timedTextLanguage": { |
805 "description": "The language of the timed text.", | 887 "description": "The language of the timed text.", |
806 "location": "query", | 888 "location": "query", |
807 "type": "string" | 889 "type": "string" |
808 }, | 890 }, |
809 "timedTextTrackName": { | 891 "timedTextTrackName": { |
810 "description": "The timed text track name.", | 892 "description": "The timed text track name.", |
811 "location": "query", | 893 "location": "query", |
812 "type": "string" | 894 "type": "string" |
813 }, | 895 }, |
(...skipping 21 matching lines...) Expand all Loading... |
835 }, | 917 }, |
836 "scopes": [ | 918 "scopes": [ |
837 "https://www.googleapis.com/auth/drive", | 919 "https://www.googleapis.com/auth/drive", |
838 "https://www.googleapis.com/auth/drive.appdata", | 920 "https://www.googleapis.com/auth/drive.appdata", |
839 "https://www.googleapis.com/auth/drive.apps.readonly", | 921 "https://www.googleapis.com/auth/drive.apps.readonly", |
840 "https://www.googleapis.com/auth/drive.file", | 922 "https://www.googleapis.com/auth/drive.file", |
841 "https://www.googleapis.com/auth/drive.photos.readonly" | 923 "https://www.googleapis.com/auth/drive.photos.readonly" |
842 ] | 924 ] |
843 }, | 925 }, |
844 "delete": { | 926 "delete": { |
845 "description": "Permanently deletes a file by ID. Skips the
trash. The currently authenticated user must own the file.", | 927 "description": "Permanently deletes a file by ID. Skips the
trash. The currently authenticated user must own the file or be an organizer on
the parent for Team Drive files.", |
846 "httpMethod": "DELETE", | 928 "httpMethod": "DELETE", |
847 "id": "drive.files.delete", | 929 "id": "drive.files.delete", |
848 "parameterOrder": [ | 930 "parameterOrder": [ |
849 "fileId" | 931 "fileId" |
850 ], | 932 ], |
851 "parameters": { | 933 "parameters": { |
852 "fileId": { | 934 "fileId": { |
853 "description": "The ID of the file to delete.", | 935 "description": "The ID of the file to delete.", |
854 "location": "path", | 936 "location": "path", |
855 "required": true, | 937 "required": true, |
856 "type": "string" | 938 "type": "string" |
| 939 }, |
| 940 "supportsTeamDrives": { |
| 941 "default": "false", |
| 942 "description": "Whether the requesting application s
upports Team Drives.", |
| 943 "location": "query", |
| 944 "type": "boolean" |
857 } | 945 } |
858 }, | 946 }, |
859 "path": "files/{fileId}", | 947 "path": "files/{fileId}", |
860 "scopes": [ | 948 "scopes": [ |
861 "https://www.googleapis.com/auth/drive", | 949 "https://www.googleapis.com/auth/drive", |
862 "https://www.googleapis.com/auth/drive.appdata", | 950 "https://www.googleapis.com/auth/drive.appdata", |
863 "https://www.googleapis.com/auth/drive.file" | 951 "https://www.googleapis.com/auth/drive.file" |
864 ] | 952 ] |
865 }, | 953 }, |
866 "emptyTrash": { | 954 "emptyTrash": { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 "Deprecated" | 1052 "Deprecated" |
965 ], | 1053 ], |
966 "location": "query", | 1054 "location": "query", |
967 "type": "string" | 1055 "type": "string" |
968 }, | 1056 }, |
969 "revisionId": { | 1057 "revisionId": { |
970 "description": "Specifies the Revision ID that shoul
d be downloaded. Ignored unless alt=media is specified.", | 1058 "description": "Specifies the Revision ID that shoul
d be downloaded. Ignored unless alt=media is specified.", |
971 "location": "query", | 1059 "location": "query", |
972 "type": "string" | 1060 "type": "string" |
973 }, | 1061 }, |
| 1062 "supportsTeamDrives": { |
| 1063 "default": "false", |
| 1064 "description": "Whether the requesting application s
upports Team Drives.", |
| 1065 "location": "query", |
| 1066 "type": "boolean" |
| 1067 }, |
974 "updateViewedDate": { | 1068 "updateViewedDate": { |
975 "default": "false", | 1069 "default": "false", |
976 "description": "Deprecated: Use files.update with mo
difiedDateBehavior=noChange, updateViewedDate=true and an empty request body.", | 1070 "description": "Deprecated: Use files.update with mo
difiedDateBehavior=noChange, updateViewedDate=true and an empty request body.", |
977 "location": "query", | 1071 "location": "query", |
978 "type": "boolean" | 1072 "type": "boolean" |
979 } | 1073 } |
980 }, | 1074 }, |
981 "path": "files/{fileId}", | 1075 "path": "files/{fileId}", |
982 "response": { | 1076 "response": { |
983 "$ref": "File" | 1077 "$ref": "File" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 "description": "If ocr is true, hints at the languag
e to use. Valid values are BCP 47 codes.", | 1125 "description": "If ocr is true, hints at the languag
e to use. Valid values are BCP 47 codes.", |
1032 "location": "query", | 1126 "location": "query", |
1033 "type": "string" | 1127 "type": "string" |
1034 }, | 1128 }, |
1035 "pinned": { | 1129 "pinned": { |
1036 "default": "false", | 1130 "default": "false", |
1037 "description": "Whether to pin the head revision of
the uploaded file. A file can have a maximum of 200 pinned revisions.", | 1131 "description": "Whether to pin the head revision of
the uploaded file. A file can have a maximum of 200 pinned revisions.", |
1038 "location": "query", | 1132 "location": "query", |
1039 "type": "boolean" | 1133 "type": "boolean" |
1040 }, | 1134 }, |
| 1135 "supportsTeamDrives": { |
| 1136 "default": "false", |
| 1137 "description": "Whether the requesting application s
upports Team Drives.", |
| 1138 "location": "query", |
| 1139 "type": "boolean" |
| 1140 }, |
1041 "timedTextLanguage": { | 1141 "timedTextLanguage": { |
1042 "description": "The language of the timed text.", | 1142 "description": "The language of the timed text.", |
1043 "location": "query", | 1143 "location": "query", |
1044 "type": "string" | 1144 "type": "string" |
1045 }, | 1145 }, |
1046 "timedTextTrackName": { | 1146 "timedTextTrackName": { |
1047 "description": "The timed text track name.", | 1147 "description": "The timed text track name.", |
1048 "location": "query", | 1148 "location": "query", |
1049 "type": "string" | 1149 "type": "string" |
1050 }, | 1150 }, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1083 "https://www.googleapis.com/auth/drive.file" | 1183 "https://www.googleapis.com/auth/drive.file" |
1084 ], | 1184 ], |
1085 "supportsMediaUpload": true, | 1185 "supportsMediaUpload": true, |
1086 "supportsSubscription": true | 1186 "supportsSubscription": true |
1087 }, | 1187 }, |
1088 "list": { | 1188 "list": { |
1089 "description": "Lists the user's files.", | 1189 "description": "Lists the user's files.", |
1090 "httpMethod": "GET", | 1190 "httpMethod": "GET", |
1091 "id": "drive.files.list", | 1191 "id": "drive.files.list", |
1092 "parameters": { | 1192 "parameters": { |
| 1193 "corpora": { |
| 1194 "description": "Comma-separated list of bodies of it
ems (files/documents) to which the query applies. Supported bodies are 'default'
, 'domain', 'teamDrive' and 'allTeamDrives'. 'allTeamDrives' must be combined wi
th 'default'; all other values must be used in isolation. Prefer 'default' or 't
eamDrive' to 'allTeamDrives' for efficiency.", |
| 1195 "location": "query", |
| 1196 "type": "string" |
| 1197 }, |
1093 "corpus": { | 1198 "corpus": { |
1094 "description": "The body of items (files/documents)
to which the query applies.", | 1199 "description": "The body of items (files/documents)
to which the query applies. Deprecated: use 'corpora' instead.", |
1095 "enum": [ | 1200 "enum": [ |
1096 "DEFAULT", | 1201 "DEFAULT", |
1097 "DOMAIN" | 1202 "DOMAIN" |
1098 ], | 1203 ], |
1099 "enumDescriptions": [ | 1204 "enumDescriptions": [ |
1100 "The items that the user has accessed.", | 1205 "The items that the user has accessed.", |
1101 "Items shared to the user's domain." | 1206 "Items shared to the user's domain." |
1102 ], | 1207 ], |
1103 "location": "query", | 1208 "location": "query", |
1104 "type": "string" | 1209 "type": "string" |
1105 }, | 1210 }, |
| 1211 "includeTeamDriveItems": { |
| 1212 "default": "false", |
| 1213 "description": "Whether Team Drive items should be i
ncluded in results.", |
| 1214 "location": "query", |
| 1215 "type": "boolean" |
| 1216 }, |
1106 "maxResults": { | 1217 "maxResults": { |
1107 "default": "100", | 1218 "default": "100", |
1108 "description": "Maximum number of files to return.", | 1219 "description": "Maximum number of files to return.", |
1109 "format": "int32", | 1220 "format": "int32", |
1110 "location": "query", | 1221 "location": "query", |
1111 "minimum": "0", | 1222 "minimum": "0", |
1112 "type": "integer" | 1223 "type": "integer" |
1113 }, | 1224 }, |
1114 "orderBy": { | 1225 "orderBy": { |
1115 "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.", |
(...skipping 20 matching lines...) Expand all Loading... |
1136 }, | 1247 }, |
1137 "q": { | 1248 "q": { |
1138 "description": "Query string for searching files.", | 1249 "description": "Query string for searching files.", |
1139 "location": "query", | 1250 "location": "query", |
1140 "type": "string" | 1251 "type": "string" |
1141 }, | 1252 }, |
1142 "spaces": { | 1253 "spaces": { |
1143 "description": "A comma-separated list of spaces to
query. Supported values are 'drive', 'appDataFolder' and 'photos'.", | 1254 "description": "A comma-separated list of spaces to
query. Supported values are 'drive', 'appDataFolder' and 'photos'.", |
1144 "location": "query", | 1255 "location": "query", |
1145 "type": "string" | 1256 "type": "string" |
| 1257 }, |
| 1258 "supportsTeamDrives": { |
| 1259 "default": "false", |
| 1260 "description": "Whether the requesting application s
upports Team Drives.", |
| 1261 "location": "query", |
| 1262 "type": "boolean" |
| 1263 }, |
| 1264 "teamDriveId": { |
| 1265 "description": "ID of Team Drive to search.", |
| 1266 "location": "query", |
| 1267 "type": "string" |
1146 } | 1268 } |
1147 }, | 1269 }, |
1148 "path": "files", | 1270 "path": "files", |
1149 "response": { | 1271 "response": { |
1150 "$ref": "FileList" | 1272 "$ref": "FileList" |
1151 }, | 1273 }, |
1152 "scopes": [ | 1274 "scopes": [ |
1153 "https://www.googleapis.com/auth/drive", | 1275 "https://www.googleapis.com/auth/drive", |
1154 "https://www.googleapis.com/auth/drive.appdata", | 1276 "https://www.googleapis.com/auth/drive.appdata", |
1155 "https://www.googleapis.com/auth/drive.apps.readonly", | 1277 "https://www.googleapis.com/auth/drive.apps.readonly", |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1233 "description": "Comma-separated list of parent IDs t
o remove.", | 1355 "description": "Comma-separated list of parent IDs t
o remove.", |
1234 "location": "query", | 1356 "location": "query", |
1235 "type": "string" | 1357 "type": "string" |
1236 }, | 1358 }, |
1237 "setModifiedDate": { | 1359 "setModifiedDate": { |
1238 "default": "false", | 1360 "default": "false", |
1239 "description": "Whether to set the modified date wit
h the supplied modified date.", | 1361 "description": "Whether to set the modified date wit
h the supplied modified date.", |
1240 "location": "query", | 1362 "location": "query", |
1241 "type": "boolean" | 1363 "type": "boolean" |
1242 }, | 1364 }, |
| 1365 "supportsTeamDrives": { |
| 1366 "default": "false", |
| 1367 "description": "Whether the requesting application s
upports Team Drives.", |
| 1368 "location": "query", |
| 1369 "type": "boolean" |
| 1370 }, |
1243 "timedTextLanguage": { | 1371 "timedTextLanguage": { |
1244 "description": "The language of the timed text.", | 1372 "description": "The language of the timed text.", |
1245 "location": "query", | 1373 "location": "query", |
1246 "type": "string" | 1374 "type": "string" |
1247 }, | 1375 }, |
1248 "timedTextTrackName": { | 1376 "timedTextTrackName": { |
1249 "description": "The timed text track name.", | 1377 "description": "The timed text track name.", |
1250 "location": "query", | 1378 "location": "query", |
1251 "type": "string" | 1379 "type": "string" |
1252 }, | 1380 }, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1285 "id": "drive.files.touch", | 1413 "id": "drive.files.touch", |
1286 "parameterOrder": [ | 1414 "parameterOrder": [ |
1287 "fileId" | 1415 "fileId" |
1288 ], | 1416 ], |
1289 "parameters": { | 1417 "parameters": { |
1290 "fileId": { | 1418 "fileId": { |
1291 "description": "The ID of the file to update.", | 1419 "description": "The ID of the file to update.", |
1292 "location": "path", | 1420 "location": "path", |
1293 "required": true, | 1421 "required": true, |
1294 "type": "string" | 1422 "type": "string" |
| 1423 }, |
| 1424 "supportsTeamDrives": { |
| 1425 "default": "false", |
| 1426 "description": "Whether the requesting application s
upports Team Drives.", |
| 1427 "location": "query", |
| 1428 "type": "boolean" |
1295 } | 1429 } |
1296 }, | 1430 }, |
1297 "path": "files/{fileId}/touch", | 1431 "path": "files/{fileId}/touch", |
1298 "response": { | 1432 "response": { |
1299 "$ref": "File" | 1433 "$ref": "File" |
1300 }, | 1434 }, |
1301 "scopes": [ | 1435 "scopes": [ |
1302 "https://www.googleapis.com/auth/drive", | 1436 "https://www.googleapis.com/auth/drive", |
1303 "https://www.googleapis.com/auth/drive.appdata", | 1437 "https://www.googleapis.com/auth/drive.appdata", |
1304 "https://www.googleapis.com/auth/drive.apps.readonly", | 1438 "https://www.googleapis.com/auth/drive.apps.readonly", |
1305 "https://www.googleapis.com/auth/drive.file", | 1439 "https://www.googleapis.com/auth/drive.file", |
1306 "https://www.googleapis.com/auth/drive.metadata" | 1440 "https://www.googleapis.com/auth/drive.metadata" |
1307 ] | 1441 ] |
1308 }, | 1442 }, |
1309 "trash": { | 1443 "trash": { |
1310 "description": "Moves a file to the trash. The currently aut
henticated user must own the file.", | 1444 "description": "Moves a file to the trash. The currently aut
henticated user must own the file or be an organizer on the parent for Team Driv
e files.", |
1311 "httpMethod": "POST", | 1445 "httpMethod": "POST", |
1312 "id": "drive.files.trash", | 1446 "id": "drive.files.trash", |
1313 "parameterOrder": [ | 1447 "parameterOrder": [ |
1314 "fileId" | 1448 "fileId" |
1315 ], | 1449 ], |
1316 "parameters": { | 1450 "parameters": { |
1317 "fileId": { | 1451 "fileId": { |
1318 "description": "The ID of the file to trash.", | 1452 "description": "The ID of the file to trash.", |
1319 "location": "path", | 1453 "location": "path", |
1320 "required": true, | 1454 "required": true, |
1321 "type": "string" | 1455 "type": "string" |
| 1456 }, |
| 1457 "supportsTeamDrives": { |
| 1458 "default": "false", |
| 1459 "description": "Whether the requesting application s
upports Team Drives.", |
| 1460 "location": "query", |
| 1461 "type": "boolean" |
1322 } | 1462 } |
1323 }, | 1463 }, |
1324 "path": "files/{fileId}/trash", | 1464 "path": "files/{fileId}/trash", |
1325 "response": { | 1465 "response": { |
1326 "$ref": "File" | 1466 "$ref": "File" |
1327 }, | 1467 }, |
1328 "scopes": [ | 1468 "scopes": [ |
1329 "https://www.googleapis.com/auth/drive", | 1469 "https://www.googleapis.com/auth/drive", |
1330 "https://www.googleapis.com/auth/drive.appdata", | 1470 "https://www.googleapis.com/auth/drive.appdata", |
1331 "https://www.googleapis.com/auth/drive.apps.readonly", | 1471 "https://www.googleapis.com/auth/drive.apps.readonly", |
1332 "https://www.googleapis.com/auth/drive.file" | 1472 "https://www.googleapis.com/auth/drive.file" |
1333 ] | 1473 ] |
1334 }, | 1474 }, |
1335 "untrash": { | 1475 "untrash": { |
1336 "description": "Restores a file from the trash.", | 1476 "description": "Restores a file from the trash.", |
1337 "httpMethod": "POST", | 1477 "httpMethod": "POST", |
1338 "id": "drive.files.untrash", | 1478 "id": "drive.files.untrash", |
1339 "parameterOrder": [ | 1479 "parameterOrder": [ |
1340 "fileId" | 1480 "fileId" |
1341 ], | 1481 ], |
1342 "parameters": { | 1482 "parameters": { |
1343 "fileId": { | 1483 "fileId": { |
1344 "description": "The ID of the file to untrash.", | 1484 "description": "The ID of the file to untrash.", |
1345 "location": "path", | 1485 "location": "path", |
1346 "required": true, | 1486 "required": true, |
1347 "type": "string" | 1487 "type": "string" |
| 1488 }, |
| 1489 "supportsTeamDrives": { |
| 1490 "default": "false", |
| 1491 "description": "Whether the requesting application s
upports Team Drives.", |
| 1492 "location": "query", |
| 1493 "type": "boolean" |
1348 } | 1494 } |
1349 }, | 1495 }, |
1350 "path": "files/{fileId}/untrash", | 1496 "path": "files/{fileId}/untrash", |
1351 "response": { | 1497 "response": { |
1352 "$ref": "File" | 1498 "$ref": "File" |
1353 }, | 1499 }, |
1354 "scopes": [ | 1500 "scopes": [ |
1355 "https://www.googleapis.com/auth/drive", | 1501 "https://www.googleapis.com/auth/drive", |
1356 "https://www.googleapis.com/auth/drive.appdata", | 1502 "https://www.googleapis.com/auth/drive.appdata", |
1357 "https://www.googleapis.com/auth/drive.apps.readonly", | 1503 "https://www.googleapis.com/auth/drive.apps.readonly", |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 "description": "Comma-separated list of parent IDs t
o remove.", | 1593 "description": "Comma-separated list of parent IDs t
o remove.", |
1448 "location": "query", | 1594 "location": "query", |
1449 "type": "string" | 1595 "type": "string" |
1450 }, | 1596 }, |
1451 "setModifiedDate": { | 1597 "setModifiedDate": { |
1452 "default": "false", | 1598 "default": "false", |
1453 "description": "Whether to set the modified date wit
h the supplied modified date.", | 1599 "description": "Whether to set the modified date wit
h the supplied modified date.", |
1454 "location": "query", | 1600 "location": "query", |
1455 "type": "boolean" | 1601 "type": "boolean" |
1456 }, | 1602 }, |
| 1603 "supportsTeamDrives": { |
| 1604 "default": "false", |
| 1605 "description": "Whether the requesting application s
upports Team Drives.", |
| 1606 "location": "query", |
| 1607 "type": "boolean" |
| 1608 }, |
1457 "timedTextLanguage": { | 1609 "timedTextLanguage": { |
1458 "description": "The language of the timed text.", | 1610 "description": "The language of the timed text.", |
1459 "location": "query", | 1611 "location": "query", |
1460 "type": "string" | 1612 "type": "string" |
1461 }, | 1613 }, |
1462 "timedTextTrackName": { | 1614 "timedTextTrackName": { |
1463 "description": "The timed text track name.", | 1615 "description": "The timed text track name.", |
1464 "location": "query", | 1616 "location": "query", |
1465 "type": "string" | 1617 "type": "string" |
1466 }, | 1618 }, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1525 "Deprecated" | 1677 "Deprecated" |
1526 ], | 1678 ], |
1527 "location": "query", | 1679 "location": "query", |
1528 "type": "string" | 1680 "type": "string" |
1529 }, | 1681 }, |
1530 "revisionId": { | 1682 "revisionId": { |
1531 "description": "Specifies the Revision ID that shoul
d be downloaded. Ignored unless alt=media is specified.", | 1683 "description": "Specifies the Revision ID that shoul
d be downloaded. Ignored unless alt=media is specified.", |
1532 "location": "query", | 1684 "location": "query", |
1533 "type": "string" | 1685 "type": "string" |
1534 }, | 1686 }, |
| 1687 "supportsTeamDrives": { |
| 1688 "default": "false", |
| 1689 "description": "Whether the requesting application s
upports Team Drives.", |
| 1690 "location": "query", |
| 1691 "type": "boolean" |
| 1692 }, |
1535 "updateViewedDate": { | 1693 "updateViewedDate": { |
1536 "default": "false", | 1694 "default": "false", |
1537 "description": "Deprecated: Use files.update with mo
difiedDateBehavior=noChange, updateViewedDate=true and an empty request body.", | 1695 "description": "Deprecated: Use files.update with mo
difiedDateBehavior=noChange, updateViewedDate=true and an empty request body.", |
1538 "location": "query", | 1696 "location": "query", |
1539 "type": "boolean" | 1697 "type": "boolean" |
1540 } | 1698 } |
1541 }, | 1699 }, |
1542 "path": "files/{fileId}/watch", | 1700 "path": "files/{fileId}/watch", |
1543 "request": { | 1701 "request": { |
1544 "$ref": "Channel", | 1702 "$ref": "Channel", |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 "id": "drive.parents.insert", | 1791 "id": "drive.parents.insert", |
1634 "parameterOrder": [ | 1792 "parameterOrder": [ |
1635 "fileId" | 1793 "fileId" |
1636 ], | 1794 ], |
1637 "parameters": { | 1795 "parameters": { |
1638 "fileId": { | 1796 "fileId": { |
1639 "description": "The ID of the file.", | 1797 "description": "The ID of the file.", |
1640 "location": "path", | 1798 "location": "path", |
1641 "required": true, | 1799 "required": true, |
1642 "type": "string" | 1800 "type": "string" |
| 1801 }, |
| 1802 "supportsTeamDrives": { |
| 1803 "default": "false", |
| 1804 "description": "Whether the requesting application s
upports Team Drives.", |
| 1805 "location": "query", |
| 1806 "type": "boolean" |
1643 } | 1807 } |
1644 }, | 1808 }, |
1645 "path": "files/{fileId}/parents", | 1809 "path": "files/{fileId}/parents", |
1646 "request": { | 1810 "request": { |
1647 "$ref": "ParentReference" | 1811 "$ref": "ParentReference" |
1648 }, | 1812 }, |
1649 "response": { | 1813 "response": { |
1650 "$ref": "ParentReference" | 1814 "$ref": "ParentReference" |
1651 }, | 1815 }, |
1652 "scopes": [ | 1816 "scopes": [ |
(...skipping 29 matching lines...) Expand all Loading... |
1682 "https://www.googleapis.com/auth/drive.metadata.readonly
", | 1846 "https://www.googleapis.com/auth/drive.metadata.readonly
", |
1683 "https://www.googleapis.com/auth/drive.photos.readonly", | 1847 "https://www.googleapis.com/auth/drive.photos.readonly", |
1684 "https://www.googleapis.com/auth/drive.readonly" | 1848 "https://www.googleapis.com/auth/drive.readonly" |
1685 ] | 1849 ] |
1686 } | 1850 } |
1687 } | 1851 } |
1688 }, | 1852 }, |
1689 "permissions": { | 1853 "permissions": { |
1690 "methods": { | 1854 "methods": { |
1691 "delete": { | 1855 "delete": { |
1692 "description": "Deletes a permission from a file.", | 1856 "description": "Deletes a permission from a file or Team Dri
ve.", |
1693 "httpMethod": "DELETE", | 1857 "httpMethod": "DELETE", |
1694 "id": "drive.permissions.delete", | 1858 "id": "drive.permissions.delete", |
1695 "parameterOrder": [ | 1859 "parameterOrder": [ |
1696 "fileId", | 1860 "fileId", |
1697 "permissionId" | 1861 "permissionId" |
1698 ], | 1862 ], |
1699 "parameters": { | 1863 "parameters": { |
1700 "fileId": { | 1864 "fileId": { |
1701 "description": "The ID for the file.", | 1865 "description": "The ID for the file or Team Drive.", |
1702 "location": "path", | 1866 "location": "path", |
1703 "required": true, | 1867 "required": true, |
1704 "type": "string" | 1868 "type": "string" |
1705 }, | 1869 }, |
1706 "permissionId": { | 1870 "permissionId": { |
1707 "description": "The ID for the permission.", | 1871 "description": "The ID for the permission.", |
1708 "location": "path", | 1872 "location": "path", |
1709 "required": true, | 1873 "required": true, |
1710 "type": "string" | 1874 "type": "string" |
| 1875 }, |
| 1876 "supportsTeamDrives": { |
| 1877 "default": "false", |
| 1878 "description": "Whether the requesting application s
upports Team Drives.", |
| 1879 "location": "query", |
| 1880 "type": "boolean" |
1711 } | 1881 } |
1712 }, | 1882 }, |
1713 "path": "files/{fileId}/permissions/{permissionId}", | 1883 "path": "files/{fileId}/permissions/{permissionId}", |
1714 "scopes": [ | 1884 "scopes": [ |
1715 "https://www.googleapis.com/auth/drive", | 1885 "https://www.googleapis.com/auth/drive", |
1716 "https://www.googleapis.com/auth/drive.file" | 1886 "https://www.googleapis.com/auth/drive.file" |
1717 ] | 1887 ] |
1718 }, | 1888 }, |
1719 "get": { | 1889 "get": { |
1720 "description": "Gets a permission by ID.", | 1890 "description": "Gets a permission by ID.", |
1721 "httpMethod": "GET", | 1891 "httpMethod": "GET", |
1722 "id": "drive.permissions.get", | 1892 "id": "drive.permissions.get", |
1723 "parameterOrder": [ | 1893 "parameterOrder": [ |
1724 "fileId", | 1894 "fileId", |
1725 "permissionId" | 1895 "permissionId" |
1726 ], | 1896 ], |
1727 "parameters": { | 1897 "parameters": { |
1728 "fileId": { | 1898 "fileId": { |
1729 "description": "The ID for the file.", | 1899 "description": "The ID for the file or Team Drive.", |
1730 "location": "path", | 1900 "location": "path", |
1731 "required": true, | 1901 "required": true, |
1732 "type": "string" | 1902 "type": "string" |
1733 }, | 1903 }, |
1734 "permissionId": { | 1904 "permissionId": { |
1735 "description": "The ID for the permission.", | 1905 "description": "The ID for the permission.", |
1736 "location": "path", | 1906 "location": "path", |
1737 "required": true, | 1907 "required": true, |
1738 "type": "string" | 1908 "type": "string" |
| 1909 }, |
| 1910 "supportsTeamDrives": { |
| 1911 "default": "false", |
| 1912 "description": "Whether the requesting application s
upports Team Drives.", |
| 1913 "location": "query", |
| 1914 "type": "boolean" |
1739 } | 1915 } |
1740 }, | 1916 }, |
1741 "path": "files/{fileId}/permissions/{permissionId}", | 1917 "path": "files/{fileId}/permissions/{permissionId}", |
1742 "response": { | 1918 "response": { |
1743 "$ref": "Permission" | 1919 "$ref": "Permission" |
1744 }, | 1920 }, |
1745 "scopes": [ | 1921 "scopes": [ |
1746 "https://www.googleapis.com/auth/drive", | 1922 "https://www.googleapis.com/auth/drive", |
1747 "https://www.googleapis.com/auth/drive.file", | 1923 "https://www.googleapis.com/auth/drive.file", |
1748 "https://www.googleapis.com/auth/drive.metadata", | 1924 "https://www.googleapis.com/auth/drive.metadata", |
(...skipping 26 matching lines...) Expand all Loading... |
1775 "https://www.googleapis.com/auth/drive.appdata", | 1951 "https://www.googleapis.com/auth/drive.appdata", |
1776 "https://www.googleapis.com/auth/drive.apps.readonly", | 1952 "https://www.googleapis.com/auth/drive.apps.readonly", |
1777 "https://www.googleapis.com/auth/drive.file", | 1953 "https://www.googleapis.com/auth/drive.file", |
1778 "https://www.googleapis.com/auth/drive.metadata", | 1954 "https://www.googleapis.com/auth/drive.metadata", |
1779 "https://www.googleapis.com/auth/drive.metadata.readonly
", | 1955 "https://www.googleapis.com/auth/drive.metadata.readonly
", |
1780 "https://www.googleapis.com/auth/drive.photos.readonly", | 1956 "https://www.googleapis.com/auth/drive.photos.readonly", |
1781 "https://www.googleapis.com/auth/drive.readonly" | 1957 "https://www.googleapis.com/auth/drive.readonly" |
1782 ] | 1958 ] |
1783 }, | 1959 }, |
1784 "insert": { | 1960 "insert": { |
1785 "description": "Inserts a permission for a file.", | 1961 "description": "Inserts a permission for a file or Team Driv
e.", |
1786 "httpMethod": "POST", | 1962 "httpMethod": "POST", |
1787 "id": "drive.permissions.insert", | 1963 "id": "drive.permissions.insert", |
1788 "parameterOrder": [ | 1964 "parameterOrder": [ |
1789 "fileId" | 1965 "fileId" |
1790 ], | 1966 ], |
1791 "parameters": { | 1967 "parameters": { |
1792 "emailMessage": { | 1968 "emailMessage": { |
1793 "description": "A custom message to include in notif
ication emails.", | 1969 "description": "A custom message to include in notif
ication emails.", |
1794 "location": "query", | 1970 "location": "query", |
1795 "type": "string" | 1971 "type": "string" |
1796 }, | 1972 }, |
1797 "fileId": { | 1973 "fileId": { |
1798 "description": "The ID for the file.", | 1974 "description": "The ID for the file or Team Drive.", |
1799 "location": "path", | 1975 "location": "path", |
1800 "required": true, | 1976 "required": true, |
1801 "type": "string" | 1977 "type": "string" |
1802 }, | 1978 }, |
1803 "sendNotificationEmails": { | 1979 "sendNotificationEmails": { |
1804 "default": "true", | 1980 "default": "true", |
1805 "description": "Whether to send notification emails
when sharing to users or groups. This parameter is ignored and an email is sent
if the role is owner.", | 1981 "description": "Whether to send notification emails
when sharing to users or groups. This parameter is ignored and an email is sent
if the role is owner.", |
1806 "location": "query", | 1982 "location": "query", |
1807 "type": "boolean" | 1983 "type": "boolean" |
| 1984 }, |
| 1985 "supportsTeamDrives": { |
| 1986 "default": "false", |
| 1987 "description": "Whether the requesting application s
upports Team Drives.", |
| 1988 "location": "query", |
| 1989 "type": "boolean" |
1808 } | 1990 } |
1809 }, | 1991 }, |
1810 "path": "files/{fileId}/permissions", | 1992 "path": "files/{fileId}/permissions", |
1811 "request": { | 1993 "request": { |
1812 "$ref": "Permission" | 1994 "$ref": "Permission" |
1813 }, | 1995 }, |
1814 "response": { | 1996 "response": { |
1815 "$ref": "Permission" | 1997 "$ref": "Permission" |
1816 }, | 1998 }, |
1817 "scopes": [ | 1999 "scopes": [ |
1818 "https://www.googleapis.com/auth/drive", | 2000 "https://www.googleapis.com/auth/drive", |
1819 "https://www.googleapis.com/auth/drive.file" | 2001 "https://www.googleapis.com/auth/drive.file" |
1820 ] | 2002 ] |
1821 }, | 2003 }, |
1822 "list": { | 2004 "list": { |
1823 "description": "Lists a file's permissions.", | 2005 "description": "Lists a file's or Team Drive's permissions."
, |
1824 "httpMethod": "GET", | 2006 "httpMethod": "GET", |
1825 "id": "drive.permissions.list", | 2007 "id": "drive.permissions.list", |
1826 "parameterOrder": [ | 2008 "parameterOrder": [ |
1827 "fileId" | 2009 "fileId" |
1828 ], | 2010 ], |
1829 "parameters": { | 2011 "parameters": { |
1830 "fileId": { | 2012 "fileId": { |
1831 "description": "The ID for the file.", | 2013 "description": "The ID for the file or Team Drive.", |
1832 "location": "path", | 2014 "location": "path", |
1833 "required": true, | 2015 "required": true, |
1834 "type": "string" | 2016 "type": "string" |
| 2017 }, |
| 2018 "maxResults": { |
| 2019 "description": "The maximum number of permissions to
return per page. When not set for files in a Team Drive, at most 100 results wi
ll be returned. When not set for files that are not in a Team Drive, the entire
list will be returned.", |
| 2020 "format": "int32", |
| 2021 "location": "query", |
| 2022 "maximum": "100", |
| 2023 "minimum": "1", |
| 2024 "type": "integer" |
| 2025 }, |
| 2026 "pageToken": { |
| 2027 "description": "The token for continuing a previous
list request on the next page. This should be set to the value of 'nextPageToken
' from the previous response.", |
| 2028 "location": "query", |
| 2029 "type": "string" |
| 2030 }, |
| 2031 "supportsTeamDrives": { |
| 2032 "default": "false", |
| 2033 "description": "Whether the requesting application s
upports Team Drives.", |
| 2034 "location": "query", |
| 2035 "type": "boolean" |
1835 } | 2036 } |
1836 }, | 2037 }, |
1837 "path": "files/{fileId}/permissions", | 2038 "path": "files/{fileId}/permissions", |
1838 "response": { | 2039 "response": { |
1839 "$ref": "PermissionList" | 2040 "$ref": "PermissionList" |
1840 }, | 2041 }, |
1841 "scopes": [ | 2042 "scopes": [ |
1842 "https://www.googleapis.com/auth/drive", | 2043 "https://www.googleapis.com/auth/drive", |
1843 "https://www.googleapis.com/auth/drive.file", | 2044 "https://www.googleapis.com/auth/drive.file", |
1844 "https://www.googleapis.com/auth/drive.metadata", | 2045 "https://www.googleapis.com/auth/drive.metadata", |
1845 "https://www.googleapis.com/auth/drive.metadata.readonly
", | 2046 "https://www.googleapis.com/auth/drive.metadata.readonly
", |
1846 "https://www.googleapis.com/auth/drive.photos.readonly", | 2047 "https://www.googleapis.com/auth/drive.photos.readonly", |
1847 "https://www.googleapis.com/auth/drive.readonly" | 2048 "https://www.googleapis.com/auth/drive.readonly" |
1848 ] | 2049 ] |
1849 }, | 2050 }, |
1850 "patch": { | 2051 "patch": { |
1851 "description": "Updates a permission using patch semantics."
, | 2052 "description": "Updates a permission using patch semantics."
, |
1852 "httpMethod": "PATCH", | 2053 "httpMethod": "PATCH", |
1853 "id": "drive.permissions.patch", | 2054 "id": "drive.permissions.patch", |
1854 "parameterOrder": [ | 2055 "parameterOrder": [ |
1855 "fileId", | 2056 "fileId", |
1856 "permissionId" | 2057 "permissionId" |
1857 ], | 2058 ], |
1858 "parameters": { | 2059 "parameters": { |
1859 "fileId": { | 2060 "fileId": { |
1860 "description": "The ID for the file.", | 2061 "description": "The ID for the file or Team Drive.", |
1861 "location": "path", | 2062 "location": "path", |
1862 "required": true, | 2063 "required": true, |
1863 "type": "string" | 2064 "type": "string" |
1864 }, | 2065 }, |
1865 "permissionId": { | 2066 "permissionId": { |
1866 "description": "The ID for the permission.", | 2067 "description": "The ID for the permission.", |
1867 "location": "path", | 2068 "location": "path", |
1868 "required": true, | 2069 "required": true, |
1869 "type": "string" | 2070 "type": "string" |
1870 }, | 2071 }, |
1871 "removeExpiration": { | 2072 "removeExpiration": { |
1872 "default": "false", | 2073 "default": "false", |
1873 "description": "Whether to remove the expiration dat
e.", | 2074 "description": "Whether to remove the expiration dat
e.", |
1874 "location": "query", | 2075 "location": "query", |
1875 "type": "boolean" | 2076 "type": "boolean" |
1876 }, | 2077 }, |
| 2078 "supportsTeamDrives": { |
| 2079 "default": "false", |
| 2080 "description": "Whether the requesting application s
upports Team Drives.", |
| 2081 "location": "query", |
| 2082 "type": "boolean" |
| 2083 }, |
1877 "transferOwnership": { | 2084 "transferOwnership": { |
1878 "default": "false", | 2085 "default": "false", |
1879 "description": "Whether changing a role to 'owner' d
owngrades the current owners to writers. Does nothing if the specified role is n
ot 'owner'.", | 2086 "description": "Whether changing a role to 'owner' d
owngrades the current owners to writers. Does nothing if the specified role is n
ot 'owner'.", |
1880 "location": "query", | 2087 "location": "query", |
1881 "type": "boolean" | 2088 "type": "boolean" |
1882 } | 2089 } |
1883 }, | 2090 }, |
1884 "path": "files/{fileId}/permissions/{permissionId}", | 2091 "path": "files/{fileId}/permissions/{permissionId}", |
1885 "request": { | 2092 "request": { |
1886 "$ref": "Permission" | 2093 "$ref": "Permission" |
1887 }, | 2094 }, |
1888 "response": { | 2095 "response": { |
1889 "$ref": "Permission" | 2096 "$ref": "Permission" |
1890 }, | 2097 }, |
1891 "scopes": [ | 2098 "scopes": [ |
1892 "https://www.googleapis.com/auth/drive", | 2099 "https://www.googleapis.com/auth/drive", |
1893 "https://www.googleapis.com/auth/drive.file" | 2100 "https://www.googleapis.com/auth/drive.file" |
1894 ] | 2101 ] |
1895 }, | 2102 }, |
1896 "update": { | 2103 "update": { |
1897 "description": "Updates a permission.", | 2104 "description": "Updates a permission.", |
1898 "httpMethod": "PUT", | 2105 "httpMethod": "PUT", |
1899 "id": "drive.permissions.update", | 2106 "id": "drive.permissions.update", |
1900 "parameterOrder": [ | 2107 "parameterOrder": [ |
1901 "fileId", | 2108 "fileId", |
1902 "permissionId" | 2109 "permissionId" |
1903 ], | 2110 ], |
1904 "parameters": { | 2111 "parameters": { |
1905 "fileId": { | 2112 "fileId": { |
1906 "description": "The ID for the file.", | 2113 "description": "The ID for the file or Team Drive.", |
1907 "location": "path", | 2114 "location": "path", |
1908 "required": true, | 2115 "required": true, |
1909 "type": "string" | 2116 "type": "string" |
1910 }, | 2117 }, |
1911 "permissionId": { | 2118 "permissionId": { |
1912 "description": "The ID for the permission.", | 2119 "description": "The ID for the permission.", |
1913 "location": "path", | 2120 "location": "path", |
1914 "required": true, | 2121 "required": true, |
1915 "type": "string" | 2122 "type": "string" |
1916 }, | 2123 }, |
1917 "removeExpiration": { | 2124 "removeExpiration": { |
1918 "default": "false", | 2125 "default": "false", |
1919 "description": "Whether to remove the expiration dat
e.", | 2126 "description": "Whether to remove the expiration dat
e.", |
1920 "location": "query", | 2127 "location": "query", |
1921 "type": "boolean" | 2128 "type": "boolean" |
1922 }, | 2129 }, |
| 2130 "supportsTeamDrives": { |
| 2131 "default": "false", |
| 2132 "description": "Whether the requesting application s
upports Team Drives.", |
| 2133 "location": "query", |
| 2134 "type": "boolean" |
| 2135 }, |
1923 "transferOwnership": { | 2136 "transferOwnership": { |
1924 "default": "false", | 2137 "default": "false", |
1925 "description": "Whether changing a role to 'owner' d
owngrades the current owners to writers. Does nothing if the specified role is n
ot 'owner'.", | 2138 "description": "Whether changing a role to 'owner' d
owngrades the current owners to writers. Does nothing if the specified role is n
ot 'owner'.", |
1926 "location": "query", | 2139 "location": "query", |
1927 "type": "boolean" | 2140 "type": "boolean" |
1928 } | 2141 } |
1929 }, | 2142 }, |
1930 "path": "files/{fileId}/permissions/{permissionId}", | 2143 "path": "files/{fileId}/permissions/{permissionId}", |
1931 "request": { | 2144 "request": { |
1932 "$ref": "Permission" | 2145 "$ref": "Permission" |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2668 "response": { | 2881 "response": { |
2669 "$ref": "Revision" | 2882 "$ref": "Revision" |
2670 }, | 2883 }, |
2671 "scopes": [ | 2884 "scopes": [ |
2672 "https://www.googleapis.com/auth/drive", | 2885 "https://www.googleapis.com/auth/drive", |
2673 "https://www.googleapis.com/auth/drive.appdata", | 2886 "https://www.googleapis.com/auth/drive.appdata", |
2674 "https://www.googleapis.com/auth/drive.file" | 2887 "https://www.googleapis.com/auth/drive.file" |
2675 ] | 2888 ] |
2676 } | 2889 } |
2677 } | 2890 } |
| 2891 }, |
| 2892 "teamdrives": { |
| 2893 "methods": { |
| 2894 "delete": { |
| 2895 "description": "Permanently deletes a Team Drive for which t
he user is an organizer. The Team Drive cannot contain any untrashed items.", |
| 2896 "httpMethod": "DELETE", |
| 2897 "id": "drive.teamdrives.delete", |
| 2898 "parameterOrder": [ |
| 2899 "teamDriveId" |
| 2900 ], |
| 2901 "parameters": { |
| 2902 "teamDriveId": { |
| 2903 "description": "The ID of the Team Drive", |
| 2904 "location": "path", |
| 2905 "required": true, |
| 2906 "type": "string" |
| 2907 } |
| 2908 }, |
| 2909 "path": "teamdrives/{teamDriveId}", |
| 2910 "scopes": [ |
| 2911 "https://www.googleapis.com/auth/drive" |
| 2912 ] |
| 2913 }, |
| 2914 "get": { |
| 2915 "description": "Gets a Team Drive's metadata by ID.", |
| 2916 "httpMethod": "GET", |
| 2917 "id": "drive.teamdrives.get", |
| 2918 "parameterOrder": [ |
| 2919 "teamDriveId" |
| 2920 ], |
| 2921 "parameters": { |
| 2922 "teamDriveId": { |
| 2923 "description": "The ID of the Team Drive", |
| 2924 "location": "path", |
| 2925 "required": true, |
| 2926 "type": "string" |
| 2927 } |
| 2928 }, |
| 2929 "path": "teamdrives/{teamDriveId}", |
| 2930 "response": { |
| 2931 "$ref": "TeamDrive" |
| 2932 }, |
| 2933 "scopes": [ |
| 2934 "https://www.googleapis.com/auth/drive", |
| 2935 "https://www.googleapis.com/auth/drive.readonly" |
| 2936 ] |
| 2937 }, |
| 2938 "insert": { |
| 2939 "description": "Creates a new Team Drive.", |
| 2940 "httpMethod": "POST", |
| 2941 "id": "drive.teamdrives.insert", |
| 2942 "parameterOrder": [ |
| 2943 "requestId" |
| 2944 ], |
| 2945 "parameters": { |
| 2946 "requestId": { |
| 2947 "description": "An ID, such as a random UUID, which
uniquely identifies this user's request for idempotent creation of a Team Drive.
A repeated request by the same user and with the same request ID will avoid cre
ating duplicates by attempting to create the same Team Drive. If the Team Drive
already exists a 409 error will be returned.", |
| 2948 "location": "query", |
| 2949 "required": true, |
| 2950 "type": "string" |
| 2951 } |
| 2952 }, |
| 2953 "path": "teamdrives", |
| 2954 "request": { |
| 2955 "$ref": "TeamDrive" |
| 2956 }, |
| 2957 "response": { |
| 2958 "$ref": "TeamDrive" |
| 2959 }, |
| 2960 "scopes": [ |
| 2961 "https://www.googleapis.com/auth/drive" |
| 2962 ] |
| 2963 }, |
| 2964 "list": { |
| 2965 "description": "Lists the user's Team Drives.", |
| 2966 "httpMethod": "GET", |
| 2967 "id": "drive.teamdrives.list", |
| 2968 "parameters": { |
| 2969 "maxResults": { |
| 2970 "default": "10", |
| 2971 "description": "Maximum number of Team Drives to ret
urn.", |
| 2972 "format": "int32", |
| 2973 "location": "query", |
| 2974 "maximum": "100", |
| 2975 "minimum": "1", |
| 2976 "type": "integer" |
| 2977 }, |
| 2978 "pageToken": { |
| 2979 "description": "Page token for Team Drives.", |
| 2980 "location": "query", |
| 2981 "type": "string" |
| 2982 } |
| 2983 }, |
| 2984 "path": "teamdrives", |
| 2985 "response": { |
| 2986 "$ref": "TeamDriveList" |
| 2987 }, |
| 2988 "scopes": [ |
| 2989 "https://www.googleapis.com/auth/drive", |
| 2990 "https://www.googleapis.com/auth/drive.readonly" |
| 2991 ] |
| 2992 }, |
| 2993 "update": { |
| 2994 "description": "Updates a Team Drive's metadata", |
| 2995 "httpMethod": "PUT", |
| 2996 "id": "drive.teamdrives.update", |
| 2997 "parameterOrder": [ |
| 2998 "teamDriveId" |
| 2999 ], |
| 3000 "parameters": { |
| 3001 "teamDriveId": { |
| 3002 "description": "The ID of the Team Drive", |
| 3003 "location": "path", |
| 3004 "required": true, |
| 3005 "type": "string" |
| 3006 } |
| 3007 }, |
| 3008 "path": "teamdrives/{teamDriveId}", |
| 3009 "request": { |
| 3010 "$ref": "TeamDrive" |
| 3011 }, |
| 3012 "response": { |
| 3013 "$ref": "TeamDrive" |
| 3014 }, |
| 3015 "scopes": [ |
| 3016 "https://www.googleapis.com/auth/drive" |
| 3017 ] |
| 3018 } |
| 3019 } |
2678 } | 3020 } |
2679 }, | 3021 }, |
2680 "revision": "20170207", | 3022 "revision": "20170228", |
2681 "rootUrl": "https://www.googleapis.com/", | 3023 "rootUrl": "https://www.googleapis.com/", |
2682 "schemas": { | 3024 "schemas": { |
2683 "About": { | 3025 "About": { |
2684 "description": "An item with user information and settings.", | 3026 "description": "An item with user information and settings.", |
2685 "id": "About", | 3027 "id": "About", |
2686 "properties": { | 3028 "properties": { |
2687 "additionalRoleInfo": { | 3029 "additionalRoleInfo": { |
2688 "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.", |
2689 "items": { | 3031 "items": { |
2690 "properties": { | 3032 "properties": { |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3058 "type": "string" | 3400 "type": "string" |
3059 }, | 3401 }, |
3060 "selfLink": { | 3402 "selfLink": { |
3061 "description": "A link back to this list.", | 3403 "description": "A link back to this list.", |
3062 "type": "string" | 3404 "type": "string" |
3063 } | 3405 } |
3064 }, | 3406 }, |
3065 "type": "object" | 3407 "type": "object" |
3066 }, | 3408 }, |
3067 "Change": { | 3409 "Change": { |
3068 "description": "Representation of a change to a file.", | 3410 "description": "Representation of a change to a file or Team Drive."
, |
3069 "id": "Change", | 3411 "id": "Change", |
3070 "properties": { | 3412 "properties": { |
3071 "deleted": { | 3413 "deleted": { |
3072 "description": "Whether the file has been deleted.", | 3414 "description": "Whether the file or Team Drive has been remo
ved from this list of changes, for example by deletion or loss of access.", |
3073 "type": "boolean" | 3415 "type": "boolean" |
3074 }, | 3416 }, |
3075 "file": { | 3417 "file": { |
3076 "$ref": "File", | 3418 "$ref": "File", |
3077 "description": "The updated state of the file. Present if th
e file has not been deleted." | 3419 "description": "The updated state of the file. Present if th
e type is file and the file has not been removed from this list of changes." |
3078 }, | 3420 }, |
3079 "fileId": { | 3421 "fileId": { |
3080 "description": "The ID of the file associated with this chan
ge.", | 3422 "description": "The ID of the file associated with this chan
ge.", |
3081 "type": "string" | 3423 "type": "string" |
3082 }, | 3424 }, |
3083 "id": { | 3425 "id": { |
3084 "description": "The ID of the change.", | 3426 "description": "The ID of the change.", |
3085 "format": "int64", | 3427 "format": "int64", |
3086 "type": "string" | 3428 "type": "string" |
3087 }, | 3429 }, |
3088 "kind": { | 3430 "kind": { |
3089 "default": "drive#change", | 3431 "default": "drive#change", |
3090 "description": "This is always drive#change.", | 3432 "description": "This is always drive#change.", |
3091 "type": "string" | 3433 "type": "string" |
3092 }, | 3434 }, |
3093 "modificationDate": { | 3435 "modificationDate": { |
3094 "description": "The time of this modification.", | 3436 "description": "The time of this modification.", |
3095 "format": "date-time", | 3437 "format": "date-time", |
3096 "type": "string" | 3438 "type": "string" |
3097 }, | 3439 }, |
3098 "selfLink": { | 3440 "selfLink": { |
3099 "description": "A link back to this change.", | 3441 "description": "A link back to this change.", |
3100 "type": "string" | 3442 "type": "string" |
| 3443 }, |
| 3444 "teamDrive": { |
| 3445 "$ref": "TeamDrive", |
| 3446 "description": "The updated state of the Team Drive. Present
if the type is teamDrive, the user is still a member of the Team Drive, and the
Team Drive has not been deleted." |
| 3447 }, |
| 3448 "teamDriveId": { |
| 3449 "description": "The ID of the Team Drive associated with thi
s change.", |
| 3450 "type": "string" |
| 3451 }, |
| 3452 "type": { |
| 3453 "description": "The type of the change. Possible values are
file and teamDrive.", |
| 3454 "type": "string" |
3101 } | 3455 } |
3102 }, | 3456 }, |
3103 "type": "object" | 3457 "type": "object" |
3104 }, | 3458 }, |
3105 "ChangeList": { | 3459 "ChangeList": { |
3106 "description": "A list of changes for a user.", | 3460 "description": "A list of changes for a user.", |
3107 "id": "ChangeList", | 3461 "id": "ChangeList", |
3108 "properties": { | 3462 "properties": { |
3109 "etag": { | 3463 "etag": { |
3110 "description": "The ETag of the list.", | 3464 "description": "The ETag of the list.", |
3111 "type": "string" | 3465 "type": "string" |
3112 }, | 3466 }, |
3113 "items": { | 3467 "items": { |
3114 "description": "The list of changes. If nextPageToken is pop
ulated, then this list may be incomplete and an additional page of results shoul
d be fetched.", | 3468 "description": "The list of changes. If nextPageToken is pop
ulated, then this list may be incomplete and an additional page of results shoul
d be fetched.", |
3115 "items": { | 3469 "items": { |
3116 "$ref": "Change" | 3470 "$ref": "Change" |
3117 }, | 3471 }, |
3118 "type": "array" | 3472 "type": "array" |
3119 }, | 3473 }, |
3120 "kind": { | 3474 "kind": { |
3121 "default": "drive#changeList", | 3475 "default": "drive#changeList", |
3122 "description": "This is always drive#changeList.", | 3476 "description": "This is always drive#changeList.", |
3123 "type": "string" | 3477 "type": "string" |
3124 }, | 3478 }, |
3125 "largestChangeId": { | 3479 "largestChangeId": { |
3126 "description": "The current largest change ID.", | 3480 "description": "The current largest change ID.", |
3127 "format": "int64", | 3481 "format": "int64", |
3128 "type": "string" | 3482 "type": "string" |
3129 }, | 3483 }, |
| 3484 "newStartPageToken": { |
| 3485 "description": "The starting page token for future changes.
This will be present only if the end of the current changes list has been reache
d.", |
| 3486 "type": "string" |
| 3487 }, |
3130 "nextLink": { | 3488 "nextLink": { |
3131 "description": "A link to the next page of changes.", | 3489 "description": "A link to the next page of changes.", |
3132 "type": "string" | 3490 "type": "string" |
3133 }, | 3491 }, |
3134 "nextPageToken": { | 3492 "nextPageToken": { |
3135 "description": "The page token for the next page of changes.
This will be absent if the end of the changes list has been reached. If the tok
en is rejected for any reason, it should be discarded, and pagination should be
restarted from the first page of results.", | 3493 "description": "The page token for the next page of changes.
This will be absent if the end of the changes list has been reached. If the tok
en is rejected for any reason, it should be discarded, and pagination should be
restarted from the first page of results.", |
3136 "type": "string" | 3494 "type": "string" |
3137 }, | 3495 }, |
3138 "selfLink": { | 3496 "selfLink": { |
3139 "description": "A link back to this list.", | 3497 "description": "A link back to this list.", |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3467 "properties": { | 3825 "properties": { |
3468 "alternateLink": { | 3826 "alternateLink": { |
3469 "description": "A link for opening the file in a relevant Go
ogle editor or viewer.", | 3827 "description": "A link for opening the file in a relevant Go
ogle editor or viewer.", |
3470 "type": "string" | 3828 "type": "string" |
3471 }, | 3829 }, |
3472 "appDataContents": { | 3830 "appDataContents": { |
3473 "description": "Whether this file is in the Application Data
folder.", | 3831 "description": "Whether this file is in the Application Data
folder.", |
3474 "type": "boolean" | 3832 "type": "boolean" |
3475 }, | 3833 }, |
3476 "canComment": { | 3834 "canComment": { |
3477 "description": "Whether the current user can comment on the
file.", | 3835 "description": "Whether the current user can comment on the
file. Deprecated: use capabilities/canComment.", |
3478 "type": "boolean" | 3836 "type": "boolean" |
3479 }, | 3837 }, |
3480 "canReadRevisions": { | 3838 "canReadRevisions": { |
3481 "description": "Whether the current user has read access to
the Revisions resource of the file.", | 3839 "description": "Whether the current user has read access to
the Revisions resource of the file. Deprecated: use capabilities/canReadRevision
s.", |
3482 "type": "boolean" | 3840 "type": "boolean" |
3483 }, | 3841 }, |
| 3842 "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.", |
| 3844 "properties": { |
| 3845 "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.", |
| 3847 "type": "boolean" |
| 3848 }, |
| 3849 "canComment": { |
| 3850 "description": "Whether the current user can comment
on the file.", |
| 3851 "type": "boolean" |
| 3852 }, |
| 3853 "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.", |
| 3855 "type": "boolean" |
| 3856 }, |
| 3857 "canDelete": { |
| 3858 "description": "Whether the file can be deleted by t
he current user.", |
| 3859 "type": "boolean" |
| 3860 }, |
| 3861 "canDownload": { |
| 3862 "description": "Whether the file can be downloaded b
y the current user.", |
| 3863 "type": "boolean" |
| 3864 }, |
| 3865 "canEdit": { |
| 3866 "description": "Whether the file can be edited by th
e current user.", |
| 3867 "type": "boolean" |
| 3868 }, |
| 3869 "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.", |
| 3871 "type": "boolean" |
| 3872 }, |
| 3873 "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.", |
| 3875 "type": "boolean" |
| 3876 }, |
| 3877 "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.", |
| 3879 "type": "boolean" |
| 3880 }, |
| 3881 "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.", |
| 3883 "type": "boolean" |
| 3884 }, |
| 3885 "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.", |
| 3887 "type": "boolean" |
| 3888 }, |
| 3889 "canRemoveChildren": { |
| 3890 "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" |
| 3892 }, |
| 3893 "canRename": { |
| 3894 "description": "Whether the file can be renamed by t
he current user.", |
| 3895 "type": "boolean" |
| 3896 }, |
| 3897 "canShare": { |
| 3898 "description": "Whether the file's sharing settings
can be modified by the current user.", |
| 3899 "type": "boolean" |
| 3900 }, |
| 3901 "canTrash": { |
| 3902 "description": "Whether the file can be trashed by t
he current user.", |
| 3903 "type": "boolean" |
| 3904 }, |
| 3905 "canUntrash": { |
| 3906 "description": "Whether the file can be restored fro
m the trash by the current user.", |
| 3907 "type": "boolean" |
| 3908 } |
| 3909 }, |
| 3910 "type": "object" |
| 3911 }, |
3484 "copyable": { | 3912 "copyable": { |
3485 "description": "Whether the file can be copied by the curren
t user.", | 3913 "description": "Whether the file can be copied by the curren
t user. Deprecated: use capabilities/canCopy.", |
3486 "type": "boolean" | 3914 "type": "boolean" |
3487 }, | 3915 }, |
3488 "createdDate": { | 3916 "createdDate": { |
3489 "description": "Create time for this file (formatted RFC 333
9 timestamp).", | 3917 "description": "Create time for this file (formatted RFC 333
9 timestamp).", |
3490 "format": "date-time", | 3918 "format": "date-time", |
3491 "type": "string" | 3919 "type": "string" |
3492 }, | 3920 }, |
3493 "defaultOpenWithLink": { | 3921 "defaultOpenWithLink": { |
3494 "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.", | 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.", |
3495 "type": "string" | 3923 "type": "string" |
3496 }, | 3924 }, |
3497 "description": { | 3925 "description": { |
3498 "description": "A short description of the file.", | 3926 "description": "A short description of the file.", |
3499 "type": "string" | 3927 "type": "string" |
3500 }, | 3928 }, |
3501 "downloadUrl": { | 3929 "downloadUrl": { |
3502 "type": "string" | 3930 "type": "string" |
3503 }, | 3931 }, |
3504 "editable": { | 3932 "editable": { |
3505 "description": "Whether the file can be edited by the curren
t user.", | 3933 "description": "Whether the file can be edited by the curren
t user. Deprecated: use capabilities/canEdit.", |
3506 "type": "boolean" | 3934 "type": "boolean" |
3507 }, | 3935 }, |
3508 "embedLink": { | 3936 "embedLink": { |
3509 "description": "A link for embedding the file.", | 3937 "description": "A link for embedding the file.", |
3510 "type": "string" | 3938 "type": "string" |
3511 }, | 3939 }, |
3512 "etag": { | 3940 "etag": { |
3513 "description": "ETag of the file.", | 3941 "description": "ETag of the file.", |
3514 "type": "string" | 3942 "type": "string" |
3515 }, | 3943 }, |
(...skipping 12 matching lines...) Expand all Loading... |
3528 "fileExtension": { | 3956 "fileExtension": { |
3529 "description": "The final component of fullFileExtension wit
h trailing text that does not appear to be part of the extension removed. This f
ield is only populated for files with content stored in Drive; it is not populat
ed for Google Docs or shortcut files.", | 3957 "description": "The final component of fullFileExtension wit
h trailing text that does not appear to be part of the extension removed. This f
ield is only populated for files with content stored in Drive; it is not populat
ed for Google Docs or shortcut files.", |
3530 "type": "string" | 3958 "type": "string" |
3531 }, | 3959 }, |
3532 "fileSize": { | 3960 "fileSize": { |
3533 "description": "The size of the file in bytes. This field is
only populated for files with content stored in Drive; it is not populated for
Google Docs or shortcut files.", | 3961 "description": "The size of the file in bytes. This field is
only populated for files with content stored in Drive; it is not populated for
Google Docs or shortcut files.", |
3534 "format": "int64", | 3962 "format": "int64", |
3535 "type": "string" | 3963 "type": "string" |
3536 }, | 3964 }, |
3537 "folderColorRgb": { | 3965 "folderColorRgb": { |
3538 "description": "Folder color as an RGB hex string if the fil
e is a folder. The list of supported colors is available in the folderColorPalet
te field of the About resource. If an unsupported color is specified, it will be
changed to the closest color in the palette.", | 3966 "description": "Folder color as an RGB hex string if the fil
e is a folder. The list of supported colors is available in the folderColorPalet
te field of the About resource. If an unsupported color is specified, it will be
changed to the closest color in the palette. Not populated for Team Drive files
.", |
3539 "type": "string" | 3967 "type": "string" |
3540 }, | 3968 }, |
3541 "fullFileExtension": { | 3969 "fullFileExtension": { |
3542 "description": "The full file extension; extracted from the
title. May contain multiple concatenated extensions, such as \"tar.gz\". Removin
g an extension from the title does not clear this field; however, changing the e
xtension on the title does update this field. This field is only populated for f
iles with content stored in Drive; it is not populated for Google Docs or shortc
ut files.", | 3970 "description": "The full file extension; extracted from the
title. May contain multiple concatenated extensions, such as \"tar.gz\". Removin
g an extension from the title does not clear this field; however, changing the e
xtension on the title does update this field. This field is only populated for f
iles with content stored in Drive; it is not populated for Google Docs or shortc
ut files.", |
3543 "type": "string" | 3971 "type": "string" |
3544 }, | 3972 }, |
| 3973 "hasAugmentedPermissions": { |
| 3974 "description": "Whether any users are granted file access di
rectly on this file. This field is only populated for Team Drive files.", |
| 3975 "type": "boolean" |
| 3976 }, |
3545 "hasThumbnail": { | 3977 "hasThumbnail": { |
3546 "description": "Whether this file has a thumbnail.", | 3978 "description": "Whether this file has a thumbnail.", |
3547 "type": "boolean" | 3979 "type": "boolean" |
3548 }, | 3980 }, |
3549 "headRevisionId": { | 3981 "headRevisionId": { |
3550 "description": "The ID of the file's head revision. This fie
ld is only populated for files with content stored in Drive; it is not populated
for Google Docs or shortcut files.", | 3982 "description": "The ID of the file's head revision. This fie
ld is only populated for files with content stored in Drive; it is not populated
for Google Docs or shortcut files.", |
3551 "type": "string" | 3983 "type": "string" |
3552 }, | 3984 }, |
3553 "iconLink": { | 3985 "iconLink": { |
3554 "description": "A link to the file's icon.", | 3986 "description": "A link to the file's icon.", |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3765 "type": "string" | 4197 "type": "string" |
3766 }, | 4198 }, |
3767 "description": "A map of the id of each of the user's apps t
o a link to open this file with that app. Only populated when the drive.apps.rea
donly scope is used.", | 4199 "description": "A map of the id of each of the user's apps t
o a link to open this file with that app. Only populated when the drive.apps.rea
donly scope is used.", |
3768 "type": "object" | 4200 "type": "object" |
3769 }, | 4201 }, |
3770 "originalFilename": { | 4202 "originalFilename": { |
3771 "description": "The original filename of the uploaded conten
t if available, or else the original value of the title field. This is only avai
lable for files with binary content in Drive.", | 4203 "description": "The original filename of the uploaded conten
t if available, or else the original value of the title field. This is only avai
lable for files with binary content in Drive.", |
3772 "type": "string" | 4204 "type": "string" |
3773 }, | 4205 }, |
3774 "ownedByMe": { | 4206 "ownedByMe": { |
3775 "description": "Whether the file is owned by the current use
r.", | 4207 "description": "Whether the file is owned by the current use
r. Not populated for Team Drive files.", |
3776 "type": "boolean" | 4208 "type": "boolean" |
3777 }, | 4209 }, |
3778 "ownerNames": { | 4210 "ownerNames": { |
3779 "description": "Name(s) of the owner(s) of this file.", | 4211 "description": "Name(s) of the owner(s) of this file. Not po
pulated for Team Drive files.", |
3780 "items": { | 4212 "items": { |
3781 "type": "string" | 4213 "type": "string" |
3782 }, | 4214 }, |
3783 "type": "array" | 4215 "type": "array" |
3784 }, | 4216 }, |
3785 "owners": { | 4217 "owners": { |
3786 "description": "The owner(s) of this file.", | 4218 "description": "The owner(s) of this file. Not populated for
Team Drive files.", |
3787 "items": { | 4219 "items": { |
3788 "$ref": "User" | 4220 "$ref": "User" |
3789 }, | 4221 }, |
3790 "type": "array" | 4222 "type": "array" |
3791 }, | 4223 }, |
3792 "parents": { | 4224 "parents": { |
3793 "description": "Collection of parent folders which contain t
his file.\nSetting this field will put the file in all of the provided folders.
On insert, if no folders are provided, the file will be placed in the default ro
ot folder.", | 4225 "description": "Collection of parent folders which contain t
his file.\nSetting this field will put the file in all of the provided folders.
On insert, if no folders are provided, the file will be placed in the default ro
ot folder.", |
3794 "items": { | 4226 "items": { |
3795 "$ref": "ParentReference" | 4227 "$ref": "ParentReference" |
3796 }, | 4228 }, |
3797 "type": "array" | 4229 "type": "array" |
3798 }, | 4230 }, |
3799 "permissions": { | 4231 "permissions": { |
3800 "description": "The list of permissions for users with acces
s to this file.", | 4232 "description": "The list of permissions for users with acces
s to this file. Not populated for Team Drive files.", |
3801 "items": { | 4233 "items": { |
3802 "$ref": "Permission" | 4234 "$ref": "Permission" |
3803 }, | 4235 }, |
3804 "type": "array" | 4236 "type": "array" |
3805 }, | 4237 }, |
3806 "properties": { | 4238 "properties": { |
3807 "description": "The list of properties.", | 4239 "description": "The list of properties.", |
3808 "items": { | 4240 "items": { |
3809 "$ref": "Property" | 4241 "$ref": "Property" |
3810 }, | 4242 }, |
3811 "type": "array" | 4243 "type": "array" |
3812 }, | 4244 }, |
3813 "quotaBytesUsed": { | 4245 "quotaBytesUsed": { |
3814 "description": "The number of quota bytes used by this file.
", | 4246 "description": "The number of quota bytes used by this file.
", |
3815 "format": "int64", | 4247 "format": "int64", |
3816 "type": "string" | 4248 "type": "string" |
3817 }, | 4249 }, |
3818 "selfLink": { | 4250 "selfLink": { |
3819 "description": "A link back to this file.", | 4251 "description": "A link back to this file.", |
3820 "type": "string" | 4252 "type": "string" |
3821 }, | 4253 }, |
3822 "shareable": { | 4254 "shareable": { |
3823 "description": "Whether the file's sharing settings can be m
odified by the current user.", | 4255 "description": "Whether the file's sharing settings can be m
odified by the current user. Deprecated: use capabilities/canShare.", |
3824 "type": "boolean" | 4256 "type": "boolean" |
3825 }, | 4257 }, |
3826 "shared": { | 4258 "shared": { |
3827 "description": "Whether the file has been shared.", | 4259 "description": "Whether the file has been shared. Not popula
ted for Team Drive files.", |
3828 "type": "boolean" | 4260 "type": "boolean" |
3829 }, | 4261 }, |
3830 "sharedWithMeDate": { | 4262 "sharedWithMeDate": { |
3831 "description": "Time at which this file was shared with the
user (formatted RFC 3339 timestamp).", | 4263 "description": "Time at which this file was shared with the
user (formatted RFC 3339 timestamp).", |
3832 "format": "date-time", | 4264 "format": "date-time", |
3833 "type": "string" | 4265 "type": "string" |
3834 }, | 4266 }, |
3835 "sharingUser": { | 4267 "sharingUser": { |
3836 "$ref": "User", | 4268 "$ref": "User", |
3837 "description": "User that shared the item with the current u
ser, if available." | 4269 "description": "User that shared the item with the current u
ser, if available." |
3838 }, | 4270 }, |
3839 "spaces": { | 4271 "spaces": { |
3840 "description": "The list of spaces which contain the file. S
upported values are 'drive', 'appDataFolder' and 'photos'.", | 4272 "description": "The list of spaces which contain the file. S
upported values are 'drive', 'appDataFolder' and 'photos'.", |
3841 "items": { | 4273 "items": { |
3842 "type": "string" | 4274 "type": "string" |
3843 }, | 4275 }, |
3844 "type": "array" | 4276 "type": "array" |
3845 }, | 4277 }, |
| 4278 "teamDriveId": { |
| 4279 "description": "ID of the Team Drive the file resides in.", |
| 4280 "type": "string" |
| 4281 }, |
3846 "thumbnail": { | 4282 "thumbnail": { |
3847 "description": "A thumbnail for the file. This will only be
used if Drive cannot generate a standard thumbnail.", | 4283 "description": "A thumbnail for the file. This will only be
used if Drive cannot generate a standard thumbnail.", |
3848 "properties": { | 4284 "properties": { |
3849 "image": { | 4285 "image": { |
3850 "description": "The URL-safe Base64 encoded bytes of
the thumbnail image. It should conform to RFC 4648 section 5.", | 4286 "description": "The URL-safe Base64 encoded bytes of
the thumbnail image. It should conform to RFC 4648 section 5.", |
3851 "format": "byte", | 4287 "format": "byte", |
3852 "type": "string" | 4288 "type": "string" |
3853 }, | 4289 }, |
3854 "mimeType": { | 4290 "mimeType": { |
3855 "description": "The MIME type of the thumbnail.", | 4291 "description": "The MIME type of the thumbnail.", |
3856 "type": "string" | 4292 "type": "string" |
3857 } | 4293 } |
3858 }, | 4294 }, |
3859 "type": "object" | 4295 "type": "object" |
3860 }, | 4296 }, |
3861 "thumbnailLink": { | 4297 "thumbnailLink": { |
3862 "description": "A short-lived link to the file's thumbnail.
Typically lasts on the order of hours. Only populated when the requesting app ca
n access the file's content.", | 4298 "description": "A short-lived link to the file's thumbnail.
Typically lasts on the order of hours. Only populated when the requesting app ca
n access the file's content.", |
3863 "type": "string" | 4299 "type": "string" |
3864 }, | 4300 }, |
3865 "thumbnailVersion": { | 4301 "thumbnailVersion": { |
3866 "description": "The thumbnail version for use in thumbnail c
ache invalidation.", | 4302 "description": "The thumbnail version for use in thumbnail c
ache invalidation.", |
3867 "format": "int64", | 4303 "format": "int64", |
3868 "type": "string" | 4304 "type": "string" |
3869 }, | 4305 }, |
3870 "title": { | 4306 "title": { |
3871 "description": "The title of this file.", | 4307 "description": "The title of this file.", |
3872 "type": "string" | 4308 "type": "string" |
3873 }, | 4309 }, |
| 4310 "trashedDate": { |
| 4311 "description": "The time that the item was trashed (formatte
d RFC 3339 timestamp). Only populated for Team Drive files.", |
| 4312 "format": "date-time", |
| 4313 "type": "string" |
| 4314 }, |
| 4315 "trashingUser": { |
| 4316 "$ref": "User", |
| 4317 "description": "If the file has been explicitly trashed, the
user who trashed it. Only populated for Team Drive files." |
| 4318 }, |
3874 "userPermission": { | 4319 "userPermission": { |
3875 "$ref": "Permission", | 4320 "$ref": "Permission", |
3876 "description": "The permissions for the authenticated user o
n this file." | 4321 "description": "The permissions for the authenticated user o
n this file." |
3877 }, | 4322 }, |
3878 "version": { | 4323 "version": { |
3879 "description": "A monotonically increasing version number fo
r the file. This reflects every change made to the file on the server, even thos
e not visible to the requesting user.", | 4324 "description": "A monotonically increasing version number fo
r the file. This reflects every change made to the file on the server, even thos
e not visible to the requesting user.", |
3880 "format": "int64", | 4325 "format": "int64", |
3881 "type": "string" | 4326 "type": "string" |
3882 }, | 4327 }, |
3883 "videoMediaMetadata": { | 4328 "videoMediaMetadata": { |
(...skipping 19 matching lines...) Expand all Loading... |
3903 }, | 4348 }, |
3904 "webContentLink": { | 4349 "webContentLink": { |
3905 "description": "A link for downloading the content of the fi
le in a browser using cookie based authentication. In cases where the content is
shared publicly, the content can be downloaded without any credentials.", | 4350 "description": "A link for downloading the content of the fi
le in a browser using cookie based authentication. In cases where the content is
shared publicly, the content can be downloaded without any credentials.", |
3906 "type": "string" | 4351 "type": "string" |
3907 }, | 4352 }, |
3908 "webViewLink": { | 4353 "webViewLink": { |
3909 "description": "A link only available on public folders for
viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website
Hosting.", | 4354 "description": "A link only available on public folders for
viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website
Hosting.", |
3910 "type": "string" | 4355 "type": "string" |
3911 }, | 4356 }, |
3912 "writersCanShare": { | 4357 "writersCanShare": { |
3913 "description": "Whether writers can share the document with
other users.", | 4358 "description": "Whether writers can share the document with
other users. Not populated for Team Drive files.", |
3914 "type": "boolean" | 4359 "type": "boolean" |
3915 } | 4360 } |
3916 }, | 4361 }, |
3917 "type": "object" | 4362 "type": "object" |
3918 }, | 4363 }, |
3919 "FileList": { | 4364 "FileList": { |
3920 "description": "A list of files.", | 4365 "description": "A list of files.", |
3921 "id": "FileList", | 4366 "id": "FileList", |
3922 "properties": { | 4367 "properties": { |
3923 "etag": { | 4368 "etag": { |
3924 "description": "The ETag of the list.", | 4369 "description": "The ETag of the list.", |
3925 "type": "string" | 4370 "type": "string" |
3926 }, | 4371 }, |
| 4372 "incompleteSearch": { |
| 4373 "description": "Whether the search process was incomplete. I
f true, then some search results may be missing, since all documents were not se
arched. This may occur when searching multiple Team Drives with the \"default,al
lTeamDrives\" corpora, but all corpora could not be searched. When this happens,
it is suggested that clients narrow their query by choosing a different corpus
such as \"default\" or \"teamDrive\".", |
| 4374 "type": "boolean" |
| 4375 }, |
3927 "items": { | 4376 "items": { |
3928 "description": "The list of files. If nextPageToken is popul
ated, then this list may be incomplete and an additional page of results should
be fetched.", | 4377 "description": "The list of files. If nextPageToken is popul
ated, then this list may be incomplete and an additional page of results should
be fetched.", |
3929 "items": { | 4378 "items": { |
3930 "$ref": "File" | 4379 "$ref": "File" |
3931 }, | 4380 }, |
3932 "type": "array" | 4381 "type": "array" |
3933 }, | 4382 }, |
3934 "kind": { | 4383 "kind": { |
3935 "default": "drive#fileList", | 4384 "default": "drive#fileList", |
3936 "description": "This is always drive#fileList.", | 4385 "description": "This is always drive#fileList.", |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4032 "type": "string" | 4481 "type": "string" |
4033 } | 4482 } |
4034 }, | 4483 }, |
4035 "type": "object" | 4484 "type": "object" |
4036 }, | 4485 }, |
4037 "Permission": { | 4486 "Permission": { |
4038 "description": "A permission for a file.", | 4487 "description": "A permission for a file.", |
4039 "id": "Permission", | 4488 "id": "Permission", |
4040 "properties": { | 4489 "properties": { |
4041 "additionalRoles": { | 4490 "additionalRoles": { |
4042 "description": "Additional roles for this user. Only comment
er is currently allowed.", | 4491 "description": "Additional roles for this user. Only comment
er is currently allowed, though more may be supported in the future.", |
4043 "items": { | 4492 "items": { |
4044 "type": "string" | 4493 "type": "string" |
4045 }, | 4494 }, |
4046 "type": "array" | 4495 "type": "array" |
4047 }, | 4496 }, |
4048 "authKey": { | 4497 "authKey": { |
4049 "description": "The authkey parameter required for this perm
ission.", | 4498 "description": "The authkey parameter required for this perm
ission.", |
4050 "type": "string" | 4499 "type": "string" |
4051 }, | 4500 }, |
4052 "domain": { | 4501 "domain": { |
4053 "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.", | 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.", |
4054 "type": "string" | 4503 "type": "string" |
4055 }, | 4504 }, |
4056 "emailAddress": { | 4505 "emailAddress": { |
4057 "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.", | 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.", |
4058 "type": "string" | 4507 "type": "string" |
4059 }, | 4508 }, |
4060 "etag": { | 4509 "etag": { |
4061 "description": "The ETag of the permission.", | 4510 "description": "The ETag of the permission.", |
4062 "type": "string" | 4511 "type": "string" |
4063 }, | 4512 }, |
4064 "expirationDate": { | 4513 "expirationDate": { |
4065 "description": "The time at which this permission will expir
e (RFC 3339 date-time).", | 4514 "description": "The time at which this permission will expir
e (RFC 3339 date-time). Expiration dates have the following restrictions: \n- T
hey can only be set on user and group permissions \n- The date must be in the fu
ture \n- The date cannot be more than a year in the future \n- The date can only
be set on drive.permissions.update requests", |
4066 "format": "date-time", | 4515 "format": "date-time", |
4067 "type": "string" | 4516 "type": "string" |
4068 }, | 4517 }, |
4069 "id": { | 4518 "id": { |
4070 "description": "The ID of the user this permission refers to
, and identical to the permissionId in the About and Files resources. When makin
g a drive.permissions.insert request, exactly one of the id or value fields must
be specified unless the permission type is anyone, in which case both id and va
lue are ignored.", | 4519 "description": "The ID of the user this permission refers to
, and identical to the permissionId in the About and Files resources. When makin
g a drive.permissions.insert request, exactly one of the id or value fields must
be specified unless the permission type is anyone, in which case both id and va
lue are ignored.", |
4071 "type": "string" | 4520 "type": "string" |
4072 }, | 4521 }, |
4073 "kind": { | 4522 "kind": { |
4074 "default": "drive#permission", | 4523 "default": "drive#permission", |
4075 "description": "This is always drive#permission.", | 4524 "description": "This is always drive#permission.", |
4076 "type": "string" | 4525 "type": "string" |
4077 }, | 4526 }, |
4078 "name": { | 4527 "name": { |
4079 "description": "The name for this permission.", | 4528 "description": "The name for this permission.", |
4080 "type": "string" | 4529 "type": "string" |
4081 }, | 4530 }, |
4082 "photoLink": { | 4531 "photoLink": { |
4083 "description": "A link to the profile photo, if available.", | 4532 "description": "A link to the profile photo, if available.", |
4084 "type": "string" | 4533 "type": "string" |
4085 }, | 4534 }, |
4086 "role": { | 4535 "role": { |
4087 "annotations": { | 4536 "annotations": { |
4088 "required": [ | 4537 "required": [ |
4089 "drive.permissions.insert" | 4538 "drive.permissions.insert" |
4090 ] | 4539 ] |
4091 }, | 4540 }, |
4092 "description": "The primary role for this user. Allowed valu
es are: \n- owner \n- reader \n- writer", | 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", |
4093 "type": "string" | 4542 "type": "string" |
4094 }, | 4543 }, |
4095 "selfLink": { | 4544 "selfLink": { |
4096 "description": "A link back to this permission.", | 4545 "description": "A link back to this permission.", |
4097 "type": "string" | 4546 "type": "string" |
4098 }, | 4547 }, |
| 4548 "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.", |
| 4550 "items": { |
| 4551 "properties": { |
| 4552 "additionalRoles": { |
| 4553 "description": "Additional roles for this user.
Only commenter is currently possible, though more may be supported in the future
.", |
| 4554 "items": { |
| 4555 "type": "string" |
| 4556 }, |
| 4557 "type": "array" |
| 4558 }, |
| 4559 "inherited": { |
| 4560 "description": "Whether this permission is inher
ited. This field is always populated. This is an output-only field.", |
| 4561 "type": "boolean" |
| 4562 }, |
| 4563 "inheritedFrom": { |
| 4564 "description": "The ID of the item from which th
is permission is inherited. This is an output-only field and is only populated f
or members of the Team Drive.", |
| 4565 "type": "string" |
| 4566 }, |
| 4567 "role": { |
| 4568 "description": "The primary role for this user.
While new values may be added in the future, the following are currently possibl
e: \n- organizer \n- reader \n- writer", |
| 4569 "type": "string" |
| 4570 }, |
| 4571 "teamDrivePermissionType": { |
| 4572 "description": "The Team Drive permission type f
or this user. While new values may be added in future, the following are current
ly possible: \n- file \n- member", |
| 4573 "type": "string" |
| 4574 } |
| 4575 }, |
| 4576 "type": "object" |
| 4577 }, |
| 4578 "type": "array" |
| 4579 }, |
4099 "type": { | 4580 "type": { |
4100 "annotations": { | 4581 "annotations": { |
4101 "required": [ | 4582 "required": [ |
4102 "drive.permissions.insert" | 4583 "drive.permissions.insert" |
4103 ] | 4584 ] |
4104 }, | 4585 }, |
4105 "description": "The account type. Allowed values are: \n- u
ser \n- group \n- domain \n- anyone", | 4586 "description": "The account type. Allowed values are: \n- u
ser \n- group \n- domain \n- anyone", |
4106 "type": "string" | 4587 "type": "string" |
4107 }, | 4588 }, |
4108 "value": { | 4589 "value": { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4145 "items": { | 4626 "items": { |
4146 "$ref": "Permission" | 4627 "$ref": "Permission" |
4147 }, | 4628 }, |
4148 "type": "array" | 4629 "type": "array" |
4149 }, | 4630 }, |
4150 "kind": { | 4631 "kind": { |
4151 "default": "drive#permissionList", | 4632 "default": "drive#permissionList", |
4152 "description": "This is always drive#permissionList.", | 4633 "description": "This is always drive#permissionList.", |
4153 "type": "string" | 4634 "type": "string" |
4154 }, | 4635 }, |
| 4636 "nextPageToken": { |
| 4637 "description": "The page token for the next page of permissi
ons. This field will be absent if the end of the permissions list has been reach
ed. If the token is rejected for any reason, it should be discarded, and paginat
ion should be restarted from the first page of results.", |
| 4638 "type": "string" |
| 4639 }, |
4155 "selfLink": { | 4640 "selfLink": { |
4156 "description": "A link back to this list.", | 4641 "description": "A link back to this list.", |
4157 "type": "string" | 4642 "type": "string" |
4158 } | 4643 } |
4159 }, | 4644 }, |
4160 "type": "object" | 4645 "type": "object" |
4161 }, | 4646 }, |
4162 "Property": { | 4647 "Property": { |
4163 "description": "A key-value pair attached to a file that is either p
ublic or private to an application.\nThe following limits apply to file properti
es: \n- Maximum of 100 properties total per file\n- Maximum of 30 private prope
rties per app\n- Maximum of 30 public properties\n- Maximum of 124 bytes size li
mit on (key + value) string in UTF-8 encoding for a single property.", | 4648 "description": "A key-value pair attached to a file that is either p
ublic or private to an application.\nThe following limits apply to file properti
es: \n- Maximum of 100 properties total per file\n- Maximum of 30 private prope
rties per app\n- Maximum of 30 public properties\n- Maximum of 124 bytes size li
mit on (key + value) string in UTF-8 encoding for a single property.", |
4164 "id": "Property", | 4649 "id": "Property", |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4343 "description": "Identifies what kind of resource this is. Va
lue: the fixed string \"drive#startPageToken\".", | 4828 "description": "Identifies what kind of resource this is. Va
lue: the fixed string \"drive#startPageToken\".", |
4344 "type": "string" | 4829 "type": "string" |
4345 }, | 4830 }, |
4346 "startPageToken": { | 4831 "startPageToken": { |
4347 "description": "The starting page token for listing changes.
", | 4832 "description": "The starting page token for listing changes.
", |
4348 "type": "string" | 4833 "type": "string" |
4349 } | 4834 } |
4350 }, | 4835 }, |
4351 "type": "object" | 4836 "type": "object" |
4352 }, | 4837 }, |
| 4838 "TeamDrive": { |
| 4839 "description": "Representation of a Team Drive.", |
| 4840 "id": "TeamDrive", |
| 4841 "properties": { |
| 4842 "capabilities": { |
| 4843 "description": "Capabilities the current user has on this Te
am Drive.", |
| 4844 "properties": { |
| 4845 "canAddChildren": { |
| 4846 "description": "Whether the current user can add chi
ldren to folders in this Team Drive.", |
| 4847 "type": "boolean" |
| 4848 }, |
| 4849 "canComment": { |
| 4850 "description": "Whether the current user can comment
on files in this Team Drive.", |
| 4851 "type": "boolean" |
| 4852 }, |
| 4853 "canCopy": { |
| 4854 "description": "Whether files in this Team Drive can
be copied by the current user.", |
| 4855 "type": "boolean" |
| 4856 }, |
| 4857 "canDeleteTeamDrive": { |
| 4858 "description": "Whether this Team Drive can be delet
ed by the current user.", |
| 4859 "type": "boolean" |
| 4860 }, |
| 4861 "canDownload": { |
| 4862 "description": "Whether files in this Team Drive can
be downloaded by the current user.", |
| 4863 "type": "boolean" |
| 4864 }, |
| 4865 "canEdit": { |
| 4866 "description": "Whether files in this Team Drive can
be edited by the current user.", |
| 4867 "type": "boolean" |
| 4868 }, |
| 4869 "canListChildren": { |
| 4870 "description": "Whether the current user can list th
e children of folders in this Team Drive.", |
| 4871 "type": "boolean" |
| 4872 }, |
| 4873 "canManageMembers": { |
| 4874 "description": "Whether the current user can add mem
bers to this Team Drive or remove them or change their role.", |
| 4875 "type": "boolean" |
| 4876 }, |
| 4877 "canReadRevisions": { |
| 4878 "description": "Whether the current user has read ac
cess to the Revisions resource of files in this Team Drive.", |
| 4879 "type": "boolean" |
| 4880 }, |
| 4881 "canRemoveChildren": { |
| 4882 "description": "Whether the current user can remove
children from folders in this Team Drive.", |
| 4883 "type": "boolean" |
| 4884 }, |
| 4885 "canRename": { |
| 4886 "description": "Whether files or folders in this Tea
m Drive can be renamed by the current user.", |
| 4887 "type": "boolean" |
| 4888 }, |
| 4889 "canRenameTeamDrive": { |
| 4890 "description": "Whether this Team Drive can be renam
ed by the current user.", |
| 4891 "type": "boolean" |
| 4892 }, |
| 4893 "canShare": { |
| 4894 "description": "Whether the current user can share f
iles or folders in this Team Drive.", |
| 4895 "type": "boolean" |
| 4896 } |
| 4897 }, |
| 4898 "type": "object" |
| 4899 }, |
| 4900 "id": { |
| 4901 "description": "The ID of this Team Drive which is also the
ID of the top level folder for this Team Drive.", |
| 4902 "type": "string" |
| 4903 }, |
| 4904 "kind": { |
| 4905 "default": "drive#teamDrive", |
| 4906 "description": "This is always drive#teamDrive", |
| 4907 "type": "string" |
| 4908 }, |
| 4909 "name": { |
| 4910 "description": "The name of this Team Drive.", |
| 4911 "type": "string" |
| 4912 } |
| 4913 }, |
| 4914 "type": "object" |
| 4915 }, |
| 4916 "TeamDriveList": { |
| 4917 "description": "A list of Team Drives.", |
| 4918 "id": "TeamDriveList", |
| 4919 "properties": { |
| 4920 "items": { |
| 4921 "description": "The list of Team Drives.", |
| 4922 "items": { |
| 4923 "$ref": "TeamDrive" |
| 4924 }, |
| 4925 "type": "array" |
| 4926 }, |
| 4927 "kind": { |
| 4928 "default": "drive#teamDriveList", |
| 4929 "description": "This is always drive#teamDriveList", |
| 4930 "type": "string" |
| 4931 }, |
| 4932 "nextPageToken": { |
| 4933 "description": "The page token for the next page of Team Dri
ves.", |
| 4934 "type": "string" |
| 4935 } |
| 4936 }, |
| 4937 "type": "object" |
| 4938 }, |
4353 "User": { | 4939 "User": { |
4354 "description": "Information about a Drive user.", | 4940 "description": "Information about a Drive user.", |
4355 "id": "User", | 4941 "id": "User", |
4356 "properties": { | 4942 "properties": { |
4357 "displayName": { | 4943 "displayName": { |
4358 "description": "A plain text displayable name for this user.
", | 4944 "description": "A plain text displayable name for this user.
", |
4359 "type": "string" | 4945 "type": "string" |
4360 }, | 4946 }, |
4361 "emailAddress": { | 4947 "emailAddress": { |
4362 "description": "The email address of the user.", | 4948 "description": "The email address of the user.", |
(...skipping 23 matching lines...) Expand all Loading... |
4386 "type": "object" | 4972 "type": "object" |
4387 } | 4973 } |
4388 }, | 4974 }, |
4389 "type": "object" | 4975 "type": "object" |
4390 } | 4976 } |
4391 }, | 4977 }, |
4392 "servicePath": "drive/v2/", | 4978 "servicePath": "drive/v2/", |
4393 "title": "Drive API", | 4979 "title": "Drive API", |
4394 "version": "v2" | 4980 "version": "v2" |
4395 } | 4981 } |
OLD | NEW |