-
Notifications
You must be signed in to change notification settings - Fork 0
/
drive.v2.json
6478 lines (6478 loc) · 251 KB
/
drive.v2.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/drive": {
"description": "See, edit, create, and delete all of your Google Drive files"
},
"https://www.googleapis.com/auth/drive.appdata": {
"description": "See, create, and delete its own configuration data in your Google Drive"
},
"https://www.googleapis.com/auth/drive.apps.readonly": {
"description": "View your Google Drive apps"
},
"https://www.googleapis.com/auth/drive.file": {
"description": "See, edit, create, and delete only the specific Google Drive files you use with this app"
},
"https://www.googleapis.com/auth/drive.metadata": {
"description": "View and manage metadata of files in your Google Drive"
},
"https://www.googleapis.com/auth/drive.metadata.readonly": {
"description": "See information about your Google Drive files"
},
"https://www.googleapis.com/auth/drive.photos.readonly": {
"description": "View the photos, videos and albums in your Google Photos"
},
"https://www.googleapis.com/auth/drive.readonly": {
"description": "See and download all your Google Drive files"
},
"https://www.googleapis.com/auth/drive.scripts": {
"description": "Modify your Google Apps Script scripts' behavior"
}
}
}
},
"basePath": "/drive/v2/",
"baseUrl": "https://www.googleapis.com/drive/v2/",
"batchPath": "batch/drive/v2",
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/drive/",
"etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/59qKpBQ13kRxDFphzsZpWMRVfcM\"",
"icons": {
"x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png",
"x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png"
},
"id": "drive:v2",
"kind": "discovery#restDescription",
"name": "drive",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"alt": {
"default": "json",
"description": "Data format for the response.",
"enum": [
"json"
],
"enumDescriptions": [
"Responses with Content-Type of application/json"
],
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
},
"quotaUser": {
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "Deprecated. Please use quotaUser instead.",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"about": {
"methods": {
"get": {
"description": "Gets the information about the current user along with Drive API settings",
"httpMethod": "GET",
"id": "drive.about.get",
"parameters": {
"includeSubscribed": {
"default": "true",
"description": "Whether to count changes outside the My Drive hierarchy. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive will be omitted from the maxChangeIdCount.",
"location": "query",
"type": "boolean"
},
"maxChangeIdCount": {
"default": "1",
"description": "Maximum number of remaining change IDs to count",
"format": "int64",
"location": "query",
"type": "string"
},
"startChangeId": {
"description": "Change ID to start counting from when calculating number of remaining change IDs",
"format": "int64",
"location": "query",
"type": "string"
}
},
"path": "about",
"response": {
"$ref": "About"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
}
}
},
"apps": {
"methods": {
"get": {
"description": "Gets a specific app.",
"httpMethod": "GET",
"id": "drive.apps.get",
"parameterOrder": [
"appId"
],
"parameters": {
"appId": {
"description": "The ID of the app.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "apps/{appId}",
"response": {
"$ref": "App"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.apps.readonly",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
"list": {
"description": "Lists a user's installed apps.",
"httpMethod": "GET",
"id": "drive.apps.list",
"parameters": {
"appFilterExtensions": {
"default": "",
"description": "A comma-separated list of file extensions for open with filtering. All apps within the given app query scope which can open any of the given file extensions will be included in the response. If appFilterMimeTypes are provided as well, the result is a union of the two resulting app lists.",
"location": "query",
"type": "string"
},
"appFilterMimeTypes": {
"default": "",
"description": "A comma-separated list of MIME types for open with filtering. All apps within the given app query scope which can open any of the given MIME types will be included in the response. If appFilterExtensions are provided as well, the result is a union of the two resulting app lists.",
"location": "query",
"type": "string"
},
"languageCode": {
"description": "A language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format (http://www.unicode.org/reports/tr35/).",
"location": "query",
"type": "string"
}
},
"path": "apps",
"response": {
"$ref": "AppList"
},
"scopes": [
"https://www.googleapis.com/auth/drive.apps.readonly"
]
}
}
},
"changes": {
"methods": {
"get": {
"description": "Deprecated - Use changes.getStartPageToken and changes.list to retrieve recent changes.",
"httpMethod": "GET",
"id": "drive.changes.get",
"parameterOrder": [
"changeId"
],
"parameters": {
"changeId": {
"description": "The ID of the change.",
"location": "path",
"required": true,
"type": "string"
},
"driveId": {
"description": "The shared drive from which the change is returned.",
"location": "query",
"type": "string"
},
"supportsAllDrives": {
"default": "false",
"description": "Whether the requesting application supports both My Drives and shared drives.",
"location": "query",
"type": "boolean"
},
"supportsTeamDrives": {
"default": "false",
"description": "Deprecated use supportsAllDrives instead.",
"location": "query",
"type": "boolean"
},
"teamDriveId": {
"description": "Deprecated use driveId instead.",
"location": "query",
"type": "string"
}
},
"path": "changes/{changeId}",
"response": {
"$ref": "Change"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.apps.readonly",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
"getStartPageToken": {
"description": "Gets the starting pageToken for listing future changes.",
"httpMethod": "GET",
"id": "drive.changes.getStartPageToken",
"parameters": {
"driveId": {
"description": "The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive is returned.",
"location": "query",
"type": "string"
},
"supportsAllDrives": {
"default": "false",
"description": "Whether the requesting application supports both My Drives and shared drives.",
"location": "query",
"type": "boolean"
},
"supportsTeamDrives": {
"default": "false",
"description": "Deprecated use supportsAllDrives instead.",
"location": "query",
"type": "boolean"
},
"teamDriveId": {
"description": "Deprecated use driveId instead.",
"location": "query",
"type": "string"
}
},
"path": "changes/startPageToken",
"response": {
"$ref": "StartPageToken"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.apps.readonly",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
"list": {
"description": "Lists the changes for a user or shared drive.",
"httpMethod": "GET",
"id": "drive.changes.list",
"parameters": {
"driveId": {
"description": "The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.",
"location": "query",
"type": "string"
},
"includeCorpusRemovals": {
"default": "false",
"description": "Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.",
"location": "query",
"type": "boolean"
},
"includeDeleted": {
"default": "true",
"description": "Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.",
"location": "query",
"type": "boolean"
},
"includeItemsFromAllDrives": {
"default": "false",
"description": "Whether both My Drive and shared drive items should be included in results.",
"location": "query",
"type": "boolean"
},
"includeLabels": {
"description": "A comma-separated list of IDs of labels to include in the labelInfo part of the response.",
"location": "query",
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"includeSubscribed": {
"default": "true",
"description": "Whether to include changes outside the My Drive hierarchy in the result. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive are omitted from the result.",
"location": "query",
"type": "boolean"
},
"includeTeamDriveItems": {
"default": "false",
"description": "Deprecated use includeItemsFromAllDrives instead.",
"location": "query",
"type": "boolean"
},
"maxResults": {
"default": "100",
"description": "Maximum number of changes to return.",
"format": "int32",
"location": "query",
"minimum": "1",
"type": "integer"
},
"pageToken": {
"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 method.",
"location": "query",
"type": "string"
},
"spaces": {
"description": "A comma-separated list of spaces to query. Supported values are 'drive', 'appDataFolder' and 'photos'.",
"location": "query",
"type": "string"
},
"startChangeId": {
"description": "Deprecated - use pageToken instead.",
"format": "int64",
"location": "query",
"type": "string"
},
"supportsAllDrives": {
"default": "false",
"description": "Whether the requesting application supports both My Drives and shared drives.",
"location": "query",
"type": "boolean"
},
"supportsTeamDrives": {
"default": "false",
"description": "Deprecated use supportsAllDrives instead.",
"location": "query",
"type": "boolean"
},
"teamDriveId": {
"description": "Deprecated use driveId instead.",
"location": "query",
"type": "string"
}
},
"path": "changes",
"response": {
"$ref": "ChangeList"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.apps.readonly",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
],
"supportsSubscription": true
},
"watch": {
"description": "Subscribe to changes for a user.",
"httpMethod": "POST",
"id": "drive.changes.watch",
"parameters": {
"driveId": {
"description": "The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.",
"location": "query",
"type": "string"
},
"includeCorpusRemovals": {
"default": "false",
"description": "Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.",
"location": "query",
"type": "boolean"
},
"includeDeleted": {
"default": "true",
"description": "Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.",
"location": "query",
"type": "boolean"
},
"includeItemsFromAllDrives": {
"default": "false",
"description": "Whether both My Drive and shared drive items should be included in results.",
"location": "query",
"type": "boolean"
},
"includeLabels": {
"description": "A comma-separated list of IDs of labels to include in the labelInfo part of the response.",
"location": "query",
"type": "string"
},
"includePermissionsForView": {
"description": "Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
"location": "query",
"type": "string"
},
"includeSubscribed": {
"default": "true",
"description": "Whether to include changes outside the My Drive hierarchy in the result. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive are omitted from the result.",
"location": "query",
"type": "boolean"
},
"includeTeamDriveItems": {
"default": "false",
"description": "Deprecated use includeItemsFromAllDrives instead.",
"location": "query",
"type": "boolean"
},
"maxResults": {
"default": "100",
"description": "Maximum number of changes to return.",
"format": "int32",
"location": "query",
"minimum": "1",
"type": "integer"
},
"pageToken": {
"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 method.",
"location": "query",
"type": "string"
},
"spaces": {
"description": "A comma-separated list of spaces to query. Supported values are 'drive', 'appDataFolder' and 'photos'.",
"location": "query",
"type": "string"
},
"startChangeId": {
"description": "Deprecated - use pageToken instead.",
"format": "int64",
"location": "query",
"type": "string"
},
"supportsAllDrives": {
"default": "false",
"description": "Whether the requesting application supports both My Drives and shared drives.",
"location": "query",
"type": "boolean"
},
"supportsTeamDrives": {
"default": "false",
"description": "Deprecated use supportsAllDrives instead.",
"location": "query",
"type": "boolean"
},
"teamDriveId": {
"description": "Deprecated use driveId instead.",
"location": "query",
"type": "string"
}
},
"path": "changes/watch",
"request": {
"$ref": "Channel",
"parameterName": "resource"
},
"response": {
"$ref": "Channel"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.apps.readonly",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
],
"supportsSubscription": true
}
}
},
"channels": {
"methods": {
"stop": {
"description": "Stop watching resources through this channel",
"httpMethod": "POST",
"id": "drive.channels.stop",
"path": "channels/stop",
"request": {
"$ref": "Channel",
"parameterName": "resource"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.apps.readonly",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
}
}
},
"children": {
"methods": {
"delete": {
"description": "Removes a child from a folder.",
"httpMethod": "DELETE",
"id": "drive.children.delete",
"parameterOrder": [
"folderId",
"childId"
],
"parameters": {
"childId": {
"description": "The ID of the child.",
"location": "path",
"required": true,
"type": "string"
},
"enforceSingleParent": {
"default": "false",
"description": "Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.",
"location": "query",
"type": "boolean"
},
"folderId": {
"description": "The ID of the folder.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "files/{folderId}/children/{childId}",
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file"
]
},
"get": {
"description": "Gets a specific child reference.",
"httpMethod": "GET",
"id": "drive.children.get",
"parameterOrder": [
"folderId",
"childId"
],
"parameters": {
"childId": {
"description": "The ID of the child.",
"location": "path",
"required": true,
"type": "string"
},
"folderId": {
"description": "The ID of the folder.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "files/{folderId}/children/{childId}",
"response": {
"$ref": "ChildReference"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
},
"insert": {
"description": "Inserts a file into a folder.",
"httpMethod": "POST",
"id": "drive.children.insert",
"parameterOrder": [
"folderId"
],
"parameters": {
"enforceSingleParent": {
"default": "false",
"description": "Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.",
"location": "query",
"type": "boolean"
},
"folderId": {
"description": "The ID of the folder.",
"location": "path",
"required": true,
"type": "string"
},
"supportsAllDrives": {
"default": "false",
"description": "Whether the requesting application supports both My Drives and shared drives.",
"location": "query",
"type": "boolean"
},
"supportsTeamDrives": {
"default": "false",
"description": "Deprecated use supportsAllDrives instead.",
"location": "query",
"type": "boolean"
}
},
"path": "files/{folderId}/children",
"request": {
"$ref": "ChildReference"
},
"response": {
"$ref": "ChildReference"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.file"
]
},
"list": {
"description": "Lists a folder's children.",
"httpMethod": "GET",
"id": "drive.children.list",
"parameterOrder": [
"folderId"
],
"parameters": {
"folderId": {
"description": "The ID of the folder.",
"location": "path",
"required": true,
"type": "string"
},
"maxResults": {
"default": "100",
"description": "Maximum number of children to return.",
"format": "int32",
"location": "query",
"minimum": "0",
"type": "integer"
},
"orderBy": {
"description": "A comma-separated list of sort keys. Valid keys are 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', and 'title'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.",
"location": "query",
"type": "string"
},
"pageToken": {
"description": "Page token for children.",
"location": "query",
"type": "string"
},
"q": {
"description": "Query string for searching children.",
"location": "query",
"type": "string"
}
},
"path": "files/{folderId}/children",
"response": {
"$ref": "ChildList"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"
]
}
}
},
"comments": {
"methods": {
"delete": {
"description": "Deletes a comment.",
"httpMethod": "DELETE",
"id": "drive.comments.delete",
"parameterOrder": [
"fileId",
"commentId"
],
"parameters": {
"commentId": {
"description": "The ID of the comment.",
"location": "path",
"required": true,
"type": "string"
},
"fileId": {
"description": "The ID of the file.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "files/{fileId}/comments/{commentId}",
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file"
]
},
"get": {
"description": "Gets a comment by ID.",
"httpMethod": "GET",
"id": "drive.comments.get",
"parameterOrder": [
"fileId",
"commentId"
],
"parameters": {
"commentId": {
"description": "The ID of the comment.",
"location": "path",
"required": true,
"type": "string"
},
"fileId": {
"description": "The ID of the file.",
"location": "path",
"required": true,
"type": "string"
},
"includeDeleted": {
"default": "false",
"description": "If set, this will succeed when retrieving a deleted comment, and will include any deleted replies.",
"location": "query",
"type": "boolean"
}
},
"path": "files/{fileId}/comments/{commentId}",
"response": {
"$ref": "Comment"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly"
]
},
"insert": {
"description": "Creates a new comment on the given file.",
"httpMethod": "POST",
"id": "drive.comments.insert",
"parameterOrder": [
"fileId"
],
"parameters": {
"fileId": {
"description": "The ID of the file.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "files/{fileId}/comments",
"request": {
"$ref": "Comment"
},
"response": {
"$ref": "Comment"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file"
]
},
"list": {
"description": "Lists a file's comments.",
"httpMethod": "GET",
"id": "drive.comments.list",
"parameterOrder": [
"fileId"
],
"parameters": {
"fileId": {
"description": "The ID of the file.",
"location": "path",
"required": true,
"type": "string"
},
"includeDeleted": {
"default": "false",
"description": "If set, all comments and replies, including deleted comments and replies (with content stripped) will be returned.",
"location": "query",
"type": "boolean"
},
"maxResults": {
"default": "20",
"description": "The maximum number of discussions to include in the response, used for paging.",
"format": "int32",
"location": "query",
"maximum": "100",
"minimum": "0",
"type": "integer"
},
"pageToken": {
"description": "The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.",
"location": "query",
"type": "string"
},
"updatedMin": {
"description": "Only discussions that were updated after this timestamp will be returned. Formatted as an RFC 3339 timestamp.",
"location": "query",
"type": "string"
}
},
"path": "files/{fileId}/comments",
"response": {
"$ref": "CommentList"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly"
]
},
"patch": {
"description": "Updates an existing comment.",
"httpMethod": "PATCH",
"id": "drive.comments.patch",
"parameterOrder": [
"fileId",
"commentId"
],
"parameters": {
"commentId": {
"description": "The ID of the comment.",
"location": "path",
"required": true,
"type": "string"
},
"fileId": {
"description": "The ID of the file.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "files/{fileId}/comments/{commentId}",
"request": {
"$ref": "Comment"
},
"response": {
"$ref": "Comment"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file"
]
},
"update": {
"description": "Updates an existing comment.",
"httpMethod": "PUT",
"id": "drive.comments.update",
"parameterOrder": [
"fileId",
"commentId"
],
"parameters": {
"commentId": {
"description": "The ID of the comment.",
"location": "path",
"required": true,
"type": "string"
},
"fileId": {
"description": "The ID of the file.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "files/{fileId}/comments/{commentId}",
"request": {
"$ref": "Comment"
},
"response": {
"$ref": "Comment"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file"
]
}
}
},
"drives": {
"methods": {
"delete": {
"description": "Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items.",
"httpMethod": "DELETE",
"id": "drive.drives.delete",
"parameterOrder": [
"driveId"
],
"parameters": {
"allowItemDeletion": {
"default": "false",
"description": "Whether any items inside the shared drive should also be deleted. This option is only supported when useDomainAdminAccess is also set to true.",
"location": "query",
"type": "boolean"
},
"driveId": {
"description": "The ID of the shared drive.",
"location": "path",
"required": true,
"type": "string"
},
"useDomainAdminAccess": {
"default": "false",
"description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.",
"location": "query",
"type": "boolean"
}
},
"path": "drives/{driveId}",
"scopes": [
"https://www.googleapis.com/auth/drive"
]
},
"get": {
"description": "Gets a shared drive's metadata by ID.",
"httpMethod": "GET",
"id": "drive.drives.get",
"parameterOrder": [
"driveId"
],
"parameters": {
"driveId": {
"description": "The ID of the shared drive.",
"location": "path",
"required": true,
"type": "string"
},
"useDomainAdminAccess": {
"default": "false",
"description": "Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.",
"location": "query",
"type": "boolean"
}
},
"path": "drives/{driveId}",
"response": {
"$ref": "Drive"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.readonly"
]
},
"hide": {
"description": "Hides a shared drive from the default view.",