• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2 "kind": "discovery#restDescription",
3 "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/4kaUogU191OXLH6MjJOHkd-Z-o8\"",
4 "discoveryVersion": "v1",
5 "id": "drive:v3",
6 "name": "drive",
7 "version": "v3",
8 "revision": "20161212",
9 "title": "Drive API",
10 "description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
11 "ownerDomain": "google.com",
12 "ownerName": "Google",
13 "icons": {
14  "x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png",
15  "x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png"
16 },
17 "documentationLink": "https://developers.google.com/drive/",
18 "protocol": "rest",
19 "baseUrl": "https://www.googleapis.com/drive/v3/",
20 "basePath": "/drive/v3/",
21 "rootUrl": "https://www.googleapis.com/",
22 "servicePath": "drive/v3/",
23 "batchPath": "batch",
24 "parameters": {
25  "alt": {
26   "type": "string",
27   "description": "Data format for the response.",
28   "default": "json",
29   "enum": [
30    "json"
31   ],
32   "enumDescriptions": [
33    "Responses with Content-Type of application/json"
34   ],
35   "location": "query"
36  },
37  "fields": {
38   "type": "string",
39   "description": "Selector specifying which fields to include in a partial response.",
40   "location": "query"
41  },
42  "key": {
43   "type": "string",
44   "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.",
45   "location": "query"
46  },
47  "oauth_token": {
48   "type": "string",
49   "description": "OAuth 2.0 token for the current user.",
50   "location": "query"
51  },
52  "prettyPrint": {
53   "type": "boolean",
54   "description": "Returns response with indentations and line breaks.",
55   "default": "true",
56   "location": "query"
57  },
58  "quotaUser": {
59   "type": "string",
60   "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
61   "location": "query"
62  },
63  "userIp": {
64   "type": "string",
65   "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
66   "location": "query"
67  }
68 },
69 "auth": {
70  "oauth2": {
71   "scopes": {
72    "https://www.googleapis.com/auth/drive": {
73     "description": "View and manage the files in your Google Drive"
74    },
75    "https://www.googleapis.com/auth/drive.appdata": {
76     "description": "View and manage its own configuration data in your Google Drive"
77    },
78    "https://www.googleapis.com/auth/drive.file": {
79     "description": "View and manage Google Drive files and folders that you have opened or created with this app"
80    },
81    "https://www.googleapis.com/auth/drive.metadata": {
82     "description": "View and manage metadata of files in your Google Drive"
83    },
84    "https://www.googleapis.com/auth/drive.metadata.readonly": {
85     "description": "View metadata for files in your Google Drive"
86    },
87    "https://www.googleapis.com/auth/drive.photos.readonly": {
88     "description": "View the photos, videos and albums in your Google Photos"
89    },
90    "https://www.googleapis.com/auth/drive.readonly": {
91     "description": "View the files in your Google Drive"
92    },
93    "https://www.googleapis.com/auth/drive.scripts": {
94     "description": "Modify your Google Apps Script scripts' behavior"
95    }
96   }
97  }
98 },
99 "schemas": {
100  "About": {
101   "id": "About",
102   "type": "object",
103   "description": "Information about the user, the user's Drive, and system capabilities.",
104   "properties": {
105    "appInstalled": {
106     "type": "boolean",
107     "description": "Whether the user has installed the requesting app."
108    },
109    "exportFormats": {
110     "type": "object",
111     "description": "A map of source MIME type to possible targets for all supported exports.",
112     "additionalProperties": {
113      "type": "array",
114      "items": {
115       "type": "string"
116      }
117     }
118    },
119    "folderColorPalette": {
120     "type": "array",
121     "description": "The currently supported folder colors as RGB hex strings.",
122     "items": {
123      "type": "string"
124     }
125    },
126    "importFormats": {
127     "type": "object",
128     "description": "A map of source MIME type to possible targets for all supported imports.",
129     "additionalProperties": {
130      "type": "array",
131      "items": {
132       "type": "string"
133      }
134     }
135    },
136    "kind": {
137     "type": "string",
138     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#about\".",
139     "default": "drive#about"
140    },
141    "maxImportSizes": {
142     "type": "object",
143     "description": "A map of maximum import sizes by MIME type, in bytes.",
144     "additionalProperties": {
145      "type": "string",
146      "format": "int64"
147     }
148    },
149    "maxUploadSize": {
150     "type": "string",
151     "description": "The maximum upload size in bytes.",
152     "format": "int64"
153    },
154    "storageQuota": {
155     "type": "object",
156     "description": "The user's storage quota limits and usage. All fields are measured in bytes.",
157     "properties": {
158      "limit": {
159       "type": "string",
160       "description": "The usage limit, if applicable. This will not be present if the user has unlimited storage.",
161       "format": "int64"
162      },
163      "usage": {
164       "type": "string",
165       "description": "The total usage across all services.",
166       "format": "int64"
167      },
168      "usageInDrive": {
169       "type": "string",
170       "description": "The usage by all files in Google Drive.",
171       "format": "int64"
172      },
173      "usageInDriveTrash": {
174       "type": "string",
175       "description": "The usage by trashed files in Google Drive.",
176       "format": "int64"
177      }
178     }
179    },
180    "user": {
181     "$ref": "User",
182     "description": "The authenticated user."
183    }
184   }
185  },
186  "Change": {
187   "id": "Change",
188   "type": "object",
189   "description": "A change to a file.",
190   "properties": {
191    "file": {
192     "$ref": "File",
193     "description": "The updated state of the file. Present if the file has not been removed."
194    },
195    "fileId": {
196     "type": "string",
197     "description": "The ID of the file which has changed."
198    },
199    "kind": {
200     "type": "string",
201     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#change\".",
202     "default": "drive#change"
203    },
204    "removed": {
205     "type": "boolean",
206     "description": "Whether the file has been removed from the view of the changes list, for example by deletion or lost access."
207    },
208    "time": {
209     "type": "string",
210     "description": "The time of this change (RFC 3339 date-time).",
211     "format": "date-time"
212    }
213   }
214  },
215  "ChangeList": {
216   "id": "ChangeList",
217   "type": "object",
218   "description": "A list of changes for a user.",
219   "properties": {
220    "changes": {
221     "type": "array",
222     "description": "The page of changes.",
223     "items": {
224      "$ref": "Change"
225     }
226    },
227    "kind": {
228     "type": "string",
229     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#changeList\".",
230     "default": "drive#changeList"
231    },
232    "newStartPageToken": {
233     "type": "string",
234     "description": "The starting page token for future changes. This will be present only if the end of the current changes list has been reached."
235    },
236    "nextPageToken": {
237     "type": "string",
238     "description": "The page token for the next page of changes. This will be absent if the end of the current changes list has been reached."
239    }
240   }
241  },
242  "Channel": {
243   "id": "Channel",
244   "type": "object",
245   "description": "An notification channel used to watch for resource changes.",
246   "properties": {
247    "address": {
248     "type": "string",
249     "description": "The address where notifications are delivered for this channel."
250    },
251    "expiration": {
252     "type": "string",
253     "description": "Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.",
254     "format": "int64"
255    },
256    "id": {
257     "type": "string",
258     "description": "A UUID or similar unique string that identifies this channel."
259    },
260    "kind": {
261     "type": "string",
262     "description": "Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string \"api#channel\".",
263     "default": "api#channel"
264    },
265    "params": {
266     "type": "object",
267     "description": "Additional parameters controlling delivery channel behavior. Optional.",
268     "additionalProperties": {
269      "type": "string",
270      "description": "Declares a new parameter by name."
271     }
272    },
273    "payload": {
274     "type": "boolean",
275     "description": "A Boolean value to indicate whether payload is wanted. Optional."
276    },
277    "resourceId": {
278     "type": "string",
279     "description": "An opaque ID that identifies the resource being watched on this channel. Stable across different API versions."
280    },
281    "resourceUri": {
282     "type": "string",
283     "description": "A version-specific identifier for the watched resource."
284    },
285    "token": {
286     "type": "string",
287     "description": "An arbitrary string delivered to the target address with each notification delivered over this channel. Optional."
288    },
289    "type": {
290     "type": "string",
291     "description": "The type of delivery mechanism used for this channel."
292    }
293   }
294  },
295  "Comment": {
296   "id": "Comment",
297   "type": "object",
298   "description": "A comment on a file.",
299   "properties": {
300    "anchor": {
301     "type": "string",
302     "description": "A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties."
303    },
304    "author": {
305     "$ref": "User",
306     "description": "The user who created the comment."
307    },
308    "content": {
309     "type": "string",
310     "description": "The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed.",
311     "annotations": {
312      "required": [
313       "drive.comments.create",
314       "drive.comments.update"
315      ]
316     }
317    },
318    "createdTime": {
319     "type": "string",
320     "description": "The time at which the comment was created (RFC 3339 date-time).",
321     "format": "date-time"
322    },
323    "deleted": {
324     "type": "boolean",
325     "description": "Whether the comment has been deleted. A deleted comment has no content."
326    },
327    "htmlContent": {
328     "type": "string",
329     "description": "The content of the comment with HTML formatting."
330    },
331    "id": {
332     "type": "string",
333     "description": "The ID of the comment."
334    },
335    "kind": {
336     "type": "string",
337     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#comment\".",
338     "default": "drive#comment"
339    },
340    "modifiedTime": {
341     "type": "string",
342     "description": "The last time the comment or any of its replies was modified (RFC 3339 date-time).",
343     "format": "date-time"
344    },
345    "quotedFileContent": {
346     "type": "object",
347     "description": "The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.",
348     "properties": {
349      "mimeType": {
350       "type": "string",
351       "description": "The MIME type of the quoted content."
352      },
353      "value": {
354       "type": "string",
355       "description": "The quoted content itself. This is interpreted as plain text if set through the API."
356      }
357     }
358    },
359    "replies": {
360     "type": "array",
361     "description": "The full list of replies to the comment in chronological order.",
362     "items": {
363      "$ref": "Reply"
364     }
365    },
366    "resolved": {
367     "type": "boolean",
368     "description": "Whether the comment has been resolved by one of its replies."
369    }
370   }
371  },
372  "CommentList": {
373   "id": "CommentList",
374   "type": "object",
375   "description": "A list of comments on a file.",
376   "properties": {
377    "comments": {
378     "type": "array",
379     "description": "The page of comments.",
380     "items": {
381      "$ref": "Comment"
382     }
383    },
384    "kind": {
385     "type": "string",
386     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#commentList\".",
387     "default": "drive#commentList"
388    },
389    "nextPageToken": {
390     "type": "string",
391     "description": "The page token for the next page of comments. This will be absent if the end of the comments list has been reached."
392    }
393   }
394  },
395  "File": {
396   "id": "File",
397   "type": "object",
398   "description": "The metadata for a file.",
399   "properties": {
400    "appProperties": {
401     "type": "object",
402     "description": "A collection of arbitrary key-value pairs which are private to the requesting app.\nEntries with null values are cleared in update and copy requests.",
403     "additionalProperties": {
404      "type": "string"
405     }
406    },
407    "capabilities": {
408     "type": "object",
409     "description": "Capabilities the current user has on the file.",
410     "properties": {
411      "canComment": {
412       "type": "boolean",
413       "description": "Whether the user can comment on the file."
414      },
415      "canCopy": {
416       "type": "boolean",
417       "description": "Whether the user can copy the file."
418      },
419      "canEdit": {
420       "type": "boolean",
421       "description": "Whether the user can edit the file's content."
422      },
423      "canReadRevisions": {
424       "type": "boolean",
425       "description": "Whether the current user has read access to the Revisions resource of the file."
426      },
427      "canShare": {
428       "type": "boolean",
429       "description": "Whether the user can modify the file's permissions and sharing settings."
430      }
431     }
432    },
433    "contentHints": {
434     "type": "object",
435     "description": "Additional information about the content of the file. These fields are never populated in responses.",
436     "properties": {
437      "indexableText": {
438       "type": "string",
439       "description": "Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements."
440      },
441      "thumbnail": {
442       "type": "object",
443       "description": "A thumbnail for the file. This will only be used if Drive cannot generate a standard thumbnail.",
444       "properties": {
445        "image": {
446         "type": "string",
447         "description": "The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).",
448         "format": "byte"
449        },
450        "mimeType": {
451         "type": "string",
452         "description": "The MIME type of the thumbnail."
453        }
454       }
455      }
456     }
457    },
458    "createdTime": {
459     "type": "string",
460     "description": "The time at which the file was created (RFC 3339 date-time).",
461     "format": "date-time"
462    },
463    "description": {
464     "type": "string",
465     "description": "A short description of the file."
466    },
467    "explicitlyTrashed": {
468     "type": "boolean",
469     "description": "Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder."
470    },
471    "fileExtension": {
472     "type": "string",
473     "description": "The final component of fullFileExtension. This is only available for files with binary content in Drive."
474    },
475    "folderColorRgb": {
476     "type": "string",
477     "description": "The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.\nIf an unsupported color is specified, the closest color in the palette will be used instead."
478    },
479    "fullFileExtension": {
480     "type": "string",
481     "description": "The full file extension extracted from the name field. May contain multiple concatenated extensions, such as \"tar.gz\". This is only available for files with binary content in Drive.\nThis is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension."
482    },
483    "hasThumbnail": {
484     "type": "boolean",
485     "description": "Whether this file has a thumbnail."
486    },
487    "headRevisionId": {
488     "type": "string",
489     "description": "The ID of the file's head revision. This is currently only available for files with binary content in Drive."
490    },
491    "iconLink": {
492     "type": "string",
493     "description": "A static, unauthenticated link to the file's icon."
494    },
495    "id": {
496     "type": "string",
497     "description": "The ID of the file."
498    },
499    "imageMediaMetadata": {
500     "type": "object",
501     "description": "Additional metadata about image media, if available.",
502     "properties": {
503      "aperture": {
504       "type": "number",
505       "description": "The aperture used to create the photo (f-number).",
506       "format": "float"
507      },
508      "cameraMake": {
509       "type": "string",
510       "description": "The make of the camera used to create the photo."
511      },
512      "cameraModel": {
513       "type": "string",
514       "description": "The model of the camera used to create the photo."
515      },
516      "colorSpace": {
517       "type": "string",
518       "description": "The color space of the photo."
519      },
520      "exposureBias": {
521       "type": "number",
522       "description": "The exposure bias of the photo (APEX value).",
523       "format": "float"
524      },
525      "exposureMode": {
526       "type": "string",
527       "description": "The exposure mode used to create the photo."
528      },
529      "exposureTime": {
530       "type": "number",
531       "description": "The length of the exposure, in seconds.",
532       "format": "float"
533      },
534      "flashUsed": {
535       "type": "boolean",
536       "description": "Whether a flash was used to create the photo."
537      },
538      "focalLength": {
539       "type": "number",
540       "description": "The focal length used to create the photo, in millimeters.",
541       "format": "float"
542      },
543      "height": {
544       "type": "integer",
545       "description": "The height of the image in pixels.",
546       "format": "int32"
547      },
548      "isoSpeed": {
549       "type": "integer",
550       "description": "The ISO speed used to create the photo.",
551       "format": "int32"
552      },
553      "lens": {
554       "type": "string",
555       "description": "The lens used to create the photo."
556      },
557      "location": {
558       "type": "object",
559       "description": "Geographic location information stored in the image.",
560       "properties": {
561        "altitude": {
562         "type": "number",
563         "description": "The altitude stored in the image.",
564         "format": "double"
565        },
566        "latitude": {
567         "type": "number",
568         "description": "The latitude stored in the image.",
569         "format": "double"
570        },
571        "longitude": {
572         "type": "number",
573         "description": "The longitude stored in the image.",
574         "format": "double"
575        }
576       }
577      },
578      "maxApertureValue": {
579       "type": "number",
580       "description": "The smallest f-number of the lens at the focal length used to create the photo (APEX value).",
581       "format": "float"
582      },
583      "meteringMode": {
584       "type": "string",
585       "description": "The metering mode used to create the photo."
586      },
587      "rotation": {
588       "type": "integer",
589       "description": "The rotation in clockwise degrees from the image's original orientation.",
590       "format": "int32"
591      },
592      "sensor": {
593       "type": "string",
594       "description": "The type of sensor used to create the photo."
595      },
596      "subjectDistance": {
597       "type": "integer",
598       "description": "The distance to the subject of the photo, in meters.",
599       "format": "int32"
600      },
601      "time": {
602       "type": "string",
603       "description": "The date and time the photo was taken (EXIF DateTime)."
604      },
605      "whiteBalance": {
606       "type": "string",
607       "description": "The white balance mode used to create the photo."
608      },
609      "width": {
610       "type": "integer",
611       "description": "The width of the image in pixels.",
612       "format": "int32"
613      }
614     }
615    },
616    "isAppAuthorized": {
617     "type": "boolean",
618     "description": "Whether the file was created or opened by the requesting app."
619    },
620    "kind": {
621     "type": "string",
622     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#file\".",
623     "default": "drive#file"
624    },
625    "lastModifyingUser": {
626     "$ref": "User",
627     "description": "The last user to modify the file."
628    },
629    "md5Checksum": {
630     "type": "string",
631     "description": "The MD5 checksum for the content of the file. This is only applicable to files with binary content in Drive."
632    },
633    "mimeType": {
634     "type": "string",
635     "description": "The MIME type of the file.\nDrive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.\nIf a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource."
636    },
637    "modifiedByMe": {
638     "type": "boolean",
639     "description": "Whether the file has been modified by this user."
640    },
641    "modifiedByMeTime": {
642     "type": "string",
643     "description": "The last time the file was modified by the user (RFC 3339 date-time).",
644     "format": "date-time"
645    },
646    "modifiedTime": {
647     "type": "string",
648     "description": "The last time the file was modified by anyone (RFC 3339 date-time).\nNote that setting modifiedTime will also update modifiedByMeTime for the user.",
649     "format": "date-time"
650    },
651    "name": {
652     "type": "string",
653     "description": "The name of the file. This is not necessarily unique within a folder."
654    },
655    "originalFilename": {
656     "type": "string",
657     "description": "The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Drive."
658    },
659    "ownedByMe": {
660     "type": "boolean",
661     "description": "Whether the user owns the file."
662    },
663    "owners": {
664     "type": "array",
665     "description": "The owners of the file. Currently, only certain legacy files may have more than one owner.",
666     "items": {
667      "$ref": "User"
668     }
669    },
670    "parents": {
671     "type": "array",
672     "description": "The IDs of the parent folders which contain the file.\nIf not specified as part of a create request, the file will be placed directly in the My Drive folder. Update requests must use the addParents and removeParents parameters to modify the values.",
673     "items": {
674      "type": "string"
675     }
676    },
677    "permissions": {
678     "type": "array",
679     "description": "The full list of permissions for the file. This is only available if the requesting user can share the file.",
680     "items": {
681      "$ref": "Permission"
682     }
683    },
684    "properties": {
685     "type": "object",
686     "description": "A collection of arbitrary key-value pairs which are visible to all apps.\nEntries with null values are cleared in update and copy requests.",
687     "additionalProperties": {
688      "type": "string"
689     }
690    },
691    "quotaBytesUsed": {
692     "type": "string",
693     "description": "The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.",
694     "format": "int64"
695    },
696    "shared": {
697     "type": "boolean",
698     "description": "Whether the file has been shared."
699    },
700    "sharedWithMeTime": {
701     "type": "string",
702     "description": "The time at which the file was shared with the user, if applicable (RFC 3339 date-time).",
703     "format": "date-time"
704    },
705    "sharingUser": {
706     "$ref": "User",
707     "description": "The user who shared the file with the requesting user, if applicable."
708    },
709    "size": {
710     "type": "string",
711     "description": "The size of the file's content in bytes. This is only applicable to files with binary content in Drive.",
712     "format": "int64"
713    },
714    "spaces": {
715     "type": "array",
716     "description": "The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.",
717     "items": {
718      "type": "string"
719     }
720    },
721    "starred": {
722     "type": "boolean",
723     "description": "Whether the user has starred the file."
724    },
725    "thumbnailLink": {
726     "type": "string",
727     "description": "A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content."
728    },
729    "thumbnailVersion": {
730     "type": "string",
731     "description": "The thumbnail version for use in client-contructable thumbnail URLs or thumbnail cache invalidation.",
732     "format": "int64"
733    },
734    "trashed": {
735     "type": "boolean",
736     "description": "Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, and other users cannot see files in the owner's trash."
737    },
738    "version": {
739     "type": "string",
740     "description": "A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.",
741     "format": "int64"
742    },
743    "videoMediaMetadata": {
744     "type": "object",
745     "description": "Additional metadata about video media. This may not be available immediately upon upload.",
746     "properties": {
747      "durationMillis": {
748       "type": "string",
749       "description": "The duration of the video in milliseconds.",
750       "format": "int64"
751      },
752      "height": {
753       "type": "integer",
754       "description": "The height of the video in pixels.",
755       "format": "int32"
756      },
757      "width": {
758       "type": "integer",
759       "description": "The width of the video in pixels.",
760       "format": "int32"
761      }
762     }
763    },
764    "viewedByMe": {
765     "type": "boolean",
766     "description": "Whether the file has been viewed by this user."
767    },
768    "viewedByMeTime": {
769     "type": "string",
770     "description": "The last time the file was viewed by the user (RFC 3339 date-time).",
771     "format": "date-time"
772    },
773    "viewersCanCopyContent": {
774     "type": "boolean",
775     "description": "Whether users with only reader or commenter permission can copy the file's content. This affects copy, download, and print operations."
776    },
777    "webContentLink": {
778     "type": "string",
779     "description": "A link for downloading the content of the file in a browser. This is only available for files with binary content in Drive."
780    },
781    "webViewLink": {
782     "type": "string",
783     "description": "A link for opening the file in a relevant Google editor or viewer in a browser."
784    },
785    "writersCanShare": {
786     "type": "boolean",
787     "description": "Whether users with only writer permission can modify the file's permissions."
788    }
789   }
790  },
791  "FileList": {
792   "id": "FileList",
793   "type": "object",
794   "description": "A list of files.",
795   "properties": {
796    "files": {
797     "type": "array",
798     "description": "The page of files.",
799     "items": {
800      "$ref": "File"
801     }
802    },
803    "kind": {
804     "type": "string",
805     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#fileList\".",
806     "default": "drive#fileList"
807    },
808    "nextPageToken": {
809     "type": "string",
810     "description": "The page token for the next page of files. This will be absent if the end of the files list has been reached."
811    }
812   }
813  },
814  "GeneratedIds": {
815   "id": "GeneratedIds",
816   "type": "object",
817   "description": "A list of generated file IDs which can be provided in create requests.",
818   "properties": {
819    "ids": {
820     "type": "array",
821     "description": "The IDs generated for the requesting user in the specified space.",
822     "items": {
823      "type": "string"
824     }
825    },
826    "kind": {
827     "type": "string",
828     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#generatedIds\".",
829     "default": "drive#generatedIds"
830    },
831    "space": {
832     "type": "string",
833     "description": "The type of file that can be created with these IDs."
834    }
835   }
836  },
837  "Permission": {
838   "id": "Permission",
839   "type": "object",
840   "description": "A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.",
841   "properties": {
842    "allowFileDiscovery": {
843     "type": "boolean",
844     "description": "Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone."
845    },
846    "displayName": {
847     "type": "string",
848     "description": "A displayable name for users, groups or domains."
849    },
850    "domain": {
851     "type": "string",
852     "description": "The domain to which this permission refers."
853    },
854    "emailAddress": {
855     "type": "string",
856     "description": "The email address of the user or group to which this permission refers."
857    },
858    "expirationTime": {
859     "type": "string",
860     "description": "The time at which this permission will expire (RFC 3339 date-time).",
861     "format": "date-time"
862    },
863    "id": {
864     "type": "string",
865     "description": "The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId."
866    },
867    "kind": {
868     "type": "string",
869     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#permission\".",
870     "default": "drive#permission"
871    },
872    "photoLink": {
873     "type": "string",
874     "description": "A link to the user's profile photo, if available."
875    },
876    "role": {
877     "type": "string",
878     "description": "The role granted by this permission. Valid values are:  \n- owner \n- writer \n- commenter \n- reader",
879     "annotations": {
880      "required": [
881       "drive.permissions.create"
882      ]
883     }
884    },
885    "type": {
886     "type": "string",
887     "description": "The type of the grantee. Valid values are:  \n- user \n- group \n- domain \n- anyone",
888     "annotations": {
889      "required": [
890       "drive.permissions.create"
891      ]
892     }
893    }
894   }
895  },
896  "PermissionList": {
897   "id": "PermissionList",
898   "type": "object",
899   "description": "A list of permissions for a file.",
900   "properties": {
901    "kind": {
902     "type": "string",
903     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#permissionList\".",
904     "default": "drive#permissionList"
905    },
906    "permissions": {
907     "type": "array",
908     "description": "The full list of permissions.",
909     "items": {
910      "$ref": "Permission"
911     }
912    }
913   }
914  },
915  "Reply": {
916   "id": "Reply",
917   "type": "object",
918   "description": "A reply to a comment on a file.",
919   "properties": {
920    "action": {
921     "type": "string",
922     "description": "The action the reply performed to the parent comment. Valid values are:  \n- resolve \n- reopen"
923    },
924    "author": {
925     "$ref": "User",
926     "description": "The user who created the reply."
927    },
928    "content": {
929     "type": "string",
930     "description": "The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified.",
931     "annotations": {
932      "required": [
933       "drive.replies.update"
934      ]
935     }
936    },
937    "createdTime": {
938     "type": "string",
939     "description": "The time at which the reply was created (RFC 3339 date-time).",
940     "format": "date-time"
941    },
942    "deleted": {
943     "type": "boolean",
944     "description": "Whether the reply has been deleted. A deleted reply has no content."
945    },
946    "htmlContent": {
947     "type": "string",
948     "description": "The content of the reply with HTML formatting."
949    },
950    "id": {
951     "type": "string",
952     "description": "The ID of the reply."
953    },
954    "kind": {
955     "type": "string",
956     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#reply\".",
957     "default": "drive#reply"
958    },
959    "modifiedTime": {
960     "type": "string",
961     "description": "The last time the reply was modified (RFC 3339 date-time).",
962     "format": "date-time"
963    }
964   }
965  },
966  "ReplyList": {
967   "id": "ReplyList",
968   "type": "object",
969   "description": "A list of replies to a comment on a file.",
970   "properties": {
971    "kind": {
972     "type": "string",
973     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#replyList\".",
974     "default": "drive#replyList"
975    },
976    "nextPageToken": {
977     "type": "string",
978     "description": "The page token for the next page of replies. This will be absent if the end of the replies list has been reached."
979    },
980    "replies": {
981     "type": "array",
982     "description": "The page of replies.",
983     "items": {
984      "$ref": "Reply"
985     }
986    }
987   }
988  },
989  "Revision": {
990   "id": "Revision",
991   "type": "object",
992   "description": "The metadata for a revision to a file.",
993   "properties": {
994    "id": {
995     "type": "string",
996     "description": "The ID of the revision."
997    },
998    "keepForever": {
999     "type": "boolean",
1000     "description": "Whether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This can be set on a maximum of 200 revisions for a file.\nThis field is only applicable to files with binary content in Drive."
1001    },
1002    "kind": {
1003     "type": "string",
1004     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#revision\".",
1005     "default": "drive#revision"
1006    },
1007    "lastModifyingUser": {
1008     "$ref": "User",
1009     "description": "The last user to modify this revision."
1010    },
1011    "md5Checksum": {
1012     "type": "string",
1013     "description": "The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive."
1014    },
1015    "mimeType": {
1016     "type": "string",
1017     "description": "The MIME type of the revision."
1018    },
1019    "modifiedTime": {
1020     "type": "string",
1021     "description": "The last time the revision was modified (RFC 3339 date-time).",
1022     "format": "date-time"
1023    },
1024    "originalFilename": {
1025     "type": "string",
1026     "description": "The original filename used to create this revision. This is only applicable to files with binary content in Drive."
1027    },
1028    "publishAuto": {
1029     "type": "boolean",
1030     "description": "Whether subsequent revisions will be automatically republished. This is only applicable to Google Docs."
1031    },
1032    "published": {
1033     "type": "boolean",
1034     "description": "Whether this revision is published. This is only applicable to Google Docs."
1035    },
1036    "publishedOutsideDomain": {
1037     "type": "boolean",
1038     "description": "Whether this revision is published outside the domain. This is only applicable to Google Docs."
1039    },
1040    "size": {
1041     "type": "string",
1042     "description": "The size of the revision's content in bytes. This is only applicable to files with binary content in Drive.",
1043     "format": "int64"
1044    }
1045   }
1046  },
1047  "RevisionList": {
1048   "id": "RevisionList",
1049   "type": "object",
1050   "description": "A list of revisions of a file.",
1051   "properties": {
1052    "kind": {
1053     "type": "string",
1054     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#revisionList\".",
1055     "default": "drive#revisionList"
1056    },
1057    "nextPageToken": {
1058     "type": "string",
1059     "description": "The page token for the next page of revisions. This will be absent if the end of the revisions list has been reached."
1060    },
1061    "revisions": {
1062     "type": "array",
1063     "description": "The full list of revisions.",
1064     "items": {
1065      "$ref": "Revision"
1066     }
1067    }
1068   }
1069  },
1070  "StartPageToken": {
1071   "id": "StartPageToken",
1072   "type": "object",
1073   "properties": {
1074    "kind": {
1075     "type": "string",
1076     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#startPageToken\".",
1077     "default": "drive#startPageToken"
1078    },
1079    "startPageToken": {
1080     "type": "string",
1081     "description": "The starting page token for listing changes."
1082    }
1083   }
1084  },
1085  "User": {
1086   "id": "User",
1087   "type": "object",
1088   "description": "Information about a Drive user.",
1089   "properties": {
1090    "displayName": {
1091     "type": "string",
1092     "description": "A plain text displayable name for this user."
1093    },
1094    "emailAddress": {
1095     "type": "string",
1096     "description": "The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester."
1097    },
1098    "kind": {
1099     "type": "string",
1100     "description": "Identifies what kind of resource this is. Value: the fixed string \"drive#user\".",
1101     "default": "drive#user"
1102    },
1103    "me": {
1104     "type": "boolean",
1105     "description": "Whether this user is the requesting user."
1106    },
1107    "permissionId": {
1108     "type": "string",
1109     "description": "The user's ID as visible in Permission resources."
1110    },
1111    "photoLink": {
1112     "type": "string",
1113     "description": "A link to the user's profile photo, if available."
1114    }
1115   }
1116  }
1117 },
1118 "resources": {
1119  "about": {
1120   "methods": {
1121    "get": {
1122     "id": "drive.about.get",
1123     "path": "about",
1124     "httpMethod": "GET",
1125     "description": "Gets information about the user, the user's Drive, and system capabilities.",
1126     "response": {
1127      "$ref": "About"
1128     },
1129     "scopes": [
1130      "https://www.googleapis.com/auth/drive",
1131      "https://www.googleapis.com/auth/drive.appdata",
1132      "https://www.googleapis.com/auth/drive.file",
1133      "https://www.googleapis.com/auth/drive.metadata",
1134      "https://www.googleapis.com/auth/drive.metadata.readonly",
1135      "https://www.googleapis.com/auth/drive.photos.readonly",
1136      "https://www.googleapis.com/auth/drive.readonly"
1137     ]
1138    }
1139   }
1140  },
1141  "changes": {
1142   "methods": {
1143    "getStartPageToken": {
1144     "id": "drive.changes.getStartPageToken",
1145     "path": "changes/startPageToken",
1146     "httpMethod": "GET",
1147     "description": "Gets the starting pageToken for listing future changes.",
1148     "response": {
1149      "$ref": "StartPageToken"
1150     },
1151     "scopes": [
1152      "https://www.googleapis.com/auth/drive",
1153      "https://www.googleapis.com/auth/drive.appdata",
1154      "https://www.googleapis.com/auth/drive.file",
1155      "https://www.googleapis.com/auth/drive.metadata",
1156      "https://www.googleapis.com/auth/drive.metadata.readonly",
1157      "https://www.googleapis.com/auth/drive.photos.readonly",
1158      "https://www.googleapis.com/auth/drive.readonly"
1159     ]
1160    },
1161    "list": {
1162     "id": "drive.changes.list",
1163     "path": "changes",
1164     "httpMethod": "GET",
1165     "description": "Lists changes for a user.",
1166     "parameters": {
1167      "includeRemoved": {
1168       "type": "boolean",
1169       "description": "Whether to include changes indicating that items have left the view of the changes list, for example by deletion or lost access.",
1170       "default": "true",
1171       "location": "query"
1172      },
1173      "pageSize": {
1174       "type": "integer",
1175       "description": "The maximum number of changes to return per page.",
1176       "default": "100",
1177       "format": "int32",
1178       "minimum": "1",
1179       "maximum": "1000",
1180       "location": "query"
1181      },
1182      "pageToken": {
1183       "type": "string",
1184       "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.",
1185       "required": true,
1186       "location": "query"
1187      },
1188      "restrictToMyDrive": {
1189       "type": "boolean",
1190       "description": "Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.",
1191       "default": "false",
1192       "location": "query"
1193      },
1194      "spaces": {
1195       "type": "string",
1196       "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.",
1197       "default": "drive",
1198       "location": "query"
1199      }
1200     },
1201     "parameterOrder": [
1202      "pageToken"
1203     ],
1204     "response": {
1205      "$ref": "ChangeList"
1206     },
1207     "scopes": [
1208      "https://www.googleapis.com/auth/drive",
1209      "https://www.googleapis.com/auth/drive.appdata",
1210      "https://www.googleapis.com/auth/drive.file",
1211      "https://www.googleapis.com/auth/drive.metadata",
1212      "https://www.googleapis.com/auth/drive.metadata.readonly",
1213      "https://www.googleapis.com/auth/drive.photos.readonly",
1214      "https://www.googleapis.com/auth/drive.readonly"
1215     ],
1216     "supportsSubscription": true
1217    },
1218    "watch": {
1219     "id": "drive.changes.watch",
1220     "path": "changes/watch",
1221     "httpMethod": "POST",
1222     "description": "Subscribes to changes for a user.",
1223     "parameters": {
1224      "includeRemoved": {
1225       "type": "boolean",
1226       "description": "Whether to include changes indicating that items have left the view of the changes list, for example by deletion or lost access.",
1227       "default": "true",
1228       "location": "query"
1229      },
1230      "pageSize": {
1231       "type": "integer",
1232       "description": "The maximum number of changes to return per page.",
1233       "default": "100",
1234       "format": "int32",
1235       "minimum": "1",
1236       "maximum": "1000",
1237       "location": "query"
1238      },
1239      "pageToken": {
1240       "type": "string",
1241       "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.",
1242       "required": true,
1243       "location": "query"
1244      },
1245      "restrictToMyDrive": {
1246       "type": "boolean",
1247       "description": "Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.",
1248       "default": "false",
1249       "location": "query"
1250      },
1251      "spaces": {
1252       "type": "string",
1253       "description": "A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.",
1254       "default": "drive",
1255       "location": "query"
1256      }
1257     },
1258     "parameterOrder": [
1259      "pageToken"
1260     ],
1261     "request": {
1262      "$ref": "Channel",
1263      "parameterName": "resource"
1264     },
1265     "response": {
1266      "$ref": "Channel"
1267     },
1268     "scopes": [
1269      "https://www.googleapis.com/auth/drive",
1270      "https://www.googleapis.com/auth/drive.appdata",
1271      "https://www.googleapis.com/auth/drive.file",
1272      "https://www.googleapis.com/auth/drive.metadata",
1273      "https://www.googleapis.com/auth/drive.metadata.readonly",
1274      "https://www.googleapis.com/auth/drive.photos.readonly",
1275      "https://www.googleapis.com/auth/drive.readonly"
1276     ],
1277     "supportsSubscription": true
1278    }
1279   }
1280  },
1281  "channels": {
1282   "methods": {
1283    "stop": {
1284     "id": "drive.channels.stop",
1285     "path": "channels/stop",
1286     "httpMethod": "POST",
1287     "description": "Stop watching resources through this channel",
1288     "request": {
1289      "$ref": "Channel",
1290      "parameterName": "resource"
1291     },
1292     "scopes": [
1293      "https://www.googleapis.com/auth/drive",
1294      "https://www.googleapis.com/auth/drive.appdata",
1295      "https://www.googleapis.com/auth/drive.file",
1296      "https://www.googleapis.com/auth/drive.metadata",
1297      "https://www.googleapis.com/auth/drive.metadata.readonly",
1298      "https://www.googleapis.com/auth/drive.photos.readonly",
1299      "https://www.googleapis.com/auth/drive.readonly"
1300     ]
1301    }
1302   }
1303  },
1304  "comments": {
1305   "methods": {
1306    "create": {
1307     "id": "drive.comments.create",
1308     "path": "files/{fileId}/comments",
1309     "httpMethod": "POST",
1310     "description": "Creates a new comment on a file.",
1311     "parameters": {
1312      "fileId": {
1313       "type": "string",
1314       "description": "The ID of the file.",
1315       "required": true,
1316       "location": "path"
1317      }
1318     },
1319     "parameterOrder": [
1320      "fileId"
1321     ],
1322     "request": {
1323      "$ref": "Comment"
1324     },
1325     "response": {
1326      "$ref": "Comment"
1327     },
1328     "scopes": [
1329      "https://www.googleapis.com/auth/drive",
1330      "https://www.googleapis.com/auth/drive.file"
1331     ]
1332    },
1333    "delete": {
1334     "id": "drive.comments.delete",
1335     "path": "files/{fileId}/comments/{commentId}",
1336     "httpMethod": "DELETE",
1337     "description": "Deletes a comment.",
1338     "parameters": {
1339      "commentId": {
1340       "type": "string",
1341       "description": "The ID of the comment.",
1342       "required": true,
1343       "location": "path"
1344      },
1345      "fileId": {
1346       "type": "string",
1347       "description": "The ID of the file.",
1348       "required": true,
1349       "location": "path"
1350      }
1351     },
1352     "parameterOrder": [
1353      "fileId",
1354      "commentId"
1355     ],
1356     "scopes": [
1357      "https://www.googleapis.com/auth/drive",
1358      "https://www.googleapis.com/auth/drive.file"
1359     ]
1360    },
1361    "get": {
1362     "id": "drive.comments.get",
1363     "path": "files/{fileId}/comments/{commentId}",
1364     "httpMethod": "GET",
1365     "description": "Gets a comment by ID.",
1366     "parameters": {
1367      "commentId": {
1368       "type": "string",
1369       "description": "The ID of the comment.",
1370       "required": true,
1371       "location": "path"
1372      },
1373      "fileId": {
1374       "type": "string",
1375       "description": "The ID of the file.",
1376       "required": true,
1377       "location": "path"
1378      },
1379      "includeDeleted": {
1380       "type": "boolean",
1381       "description": "Whether to return deleted comments. Deleted comments will not include their original content.",
1382       "default": "false",
1383       "location": "query"
1384      }
1385     },
1386     "parameterOrder": [
1387      "fileId",
1388      "commentId"
1389     ],
1390     "response": {
1391      "$ref": "Comment"
1392     },
1393     "scopes": [
1394      "https://www.googleapis.com/auth/drive",
1395      "https://www.googleapis.com/auth/drive.file",
1396      "https://www.googleapis.com/auth/drive.readonly"
1397     ]
1398    },
1399    "list": {
1400     "id": "drive.comments.list",
1401     "path": "files/{fileId}/comments",
1402     "httpMethod": "GET",
1403     "description": "Lists a file's comments.",
1404     "parameters": {
1405      "fileId": {
1406       "type": "string",
1407       "description": "The ID of the file.",
1408       "required": true,
1409       "location": "path"
1410      },
1411      "includeDeleted": {
1412       "type": "boolean",
1413       "description": "Whether to include deleted comments. Deleted comments will not include their original content.",
1414       "default": "false",
1415       "location": "query"
1416      },
1417      "pageSize": {
1418       "type": "integer",
1419       "description": "The maximum number of comments to return per page.",
1420       "default": "20",
1421       "format": "int32",
1422       "minimum": "1",
1423       "maximum": "100",
1424       "location": "query"
1425      },
1426      "pageToken": {
1427       "type": "string",
1428       "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.",
1429       "location": "query"
1430      },
1431      "startModifiedTime": {
1432       "type": "string",
1433       "description": "The minimum value of 'modifiedTime' for the result comments (RFC 3339 date-time).",
1434       "location": "query"
1435      }
1436     },
1437     "parameterOrder": [
1438      "fileId"
1439     ],
1440     "response": {
1441      "$ref": "CommentList"
1442     },
1443     "scopes": [
1444      "https://www.googleapis.com/auth/drive",
1445      "https://www.googleapis.com/auth/drive.file",
1446      "https://www.googleapis.com/auth/drive.readonly"
1447     ]
1448    },
1449    "update": {
1450     "id": "drive.comments.update",
1451     "path": "files/{fileId}/comments/{commentId}",
1452     "httpMethod": "PATCH",
1453     "description": "Updates a comment with patch semantics.",
1454     "parameters": {
1455      "commentId": {
1456       "type": "string",
1457       "description": "The ID of the comment.",
1458       "required": true,
1459       "location": "path"
1460      },
1461      "fileId": {
1462       "type": "string",
1463       "description": "The ID of the file.",
1464       "required": true,
1465       "location": "path"
1466      }
1467     },
1468     "parameterOrder": [
1469      "fileId",
1470      "commentId"
1471     ],
1472     "request": {
1473      "$ref": "Comment"
1474     },
1475     "response": {
1476      "$ref": "Comment"
1477     },
1478     "scopes": [
1479      "https://www.googleapis.com/auth/drive",
1480      "https://www.googleapis.com/auth/drive.file"
1481     ]
1482    }
1483   }
1484  },
1485  "files": {
1486   "methods": {
1487    "copy": {
1488     "id": "drive.files.copy",
1489     "path": "files/{fileId}/copy",
1490     "httpMethod": "POST",
1491     "description": "Creates a copy of a file and applies any requested updates with patch semantics.",
1492     "parameters": {
1493      "fileId": {
1494       "type": "string",
1495       "description": "The ID of the file.",
1496       "required": true,
1497       "location": "path"
1498      },
1499      "ignoreDefaultVisibility": {
1500       "type": "boolean",
1501       "description": "Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.",
1502       "default": "false",
1503       "location": "query"
1504      },
1505      "keepRevisionForever": {
1506       "type": "boolean",
1507       "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Drive.",
1508       "default": "false",
1509       "location": "query"
1510      },
1511      "ocrLanguage": {
1512       "type": "string",
1513       "description": "A language hint for OCR processing during image import (ISO 639-1 code).",
1514       "location": "query"
1515      }
1516     },
1517     "parameterOrder": [
1518      "fileId"
1519     ],
1520     "request": {
1521      "$ref": "File"
1522     },
1523     "response": {
1524      "$ref": "File"
1525     },
1526     "scopes": [
1527      "https://www.googleapis.com/auth/drive",
1528      "https://www.googleapis.com/auth/drive.appdata",
1529      "https://www.googleapis.com/auth/drive.file",
1530      "https://www.googleapis.com/auth/drive.photos.readonly"
1531     ]
1532    },
1533    "create": {
1534     "id": "drive.files.create",
1535     "path": "files",
1536     "httpMethod": "POST",
1537     "description": "Creates a new file.",
1538     "parameters": {
1539      "ignoreDefaultVisibility": {
1540       "type": "boolean",
1541       "description": "Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.",
1542       "default": "false",
1543       "location": "query"
1544      },
1545      "keepRevisionForever": {
1546       "type": "boolean",
1547       "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Drive.",
1548       "default": "false",
1549       "location": "query"
1550      },
1551      "ocrLanguage": {
1552       "type": "string",
1553       "description": "A language hint for OCR processing during image import (ISO 639-1 code).",
1554       "location": "query"
1555      },
1556      "useContentAsIndexableText": {
1557       "type": "boolean",
1558       "description": "Whether to use the uploaded content as indexable text.",
1559       "default": "false",
1560       "location": "query"
1561      }
1562     },
1563     "request": {
1564      "$ref": "File"
1565     },
1566     "response": {
1567      "$ref": "File"
1568     },
1569     "scopes": [
1570      "https://www.googleapis.com/auth/drive",
1571      "https://www.googleapis.com/auth/drive.appdata",
1572      "https://www.googleapis.com/auth/drive.file"
1573     ],
1574     "supportsMediaUpload": true,
1575     "mediaUpload": {
1576      "accept": [
1577       "*/*"
1578      ],
1579      "maxSize": "5120GB",
1580      "protocols": {
1581       "simple": {
1582        "multipart": true,
1583        "path": "/upload/drive/v3/files"
1584       },
1585       "resumable": {
1586        "multipart": true,
1587        "path": "/resumable/upload/drive/v3/files"
1588       }
1589      }
1590     },
1591     "supportsSubscription": true
1592    },
1593    "delete": {
1594     "id": "drive.files.delete",
1595     "path": "files/{fileId}",
1596     "httpMethod": "DELETE",
1597     "description": "Permanently deletes a file owned by the user without moving it to the trash. If the target is a folder, all descendants owned by the user are also deleted.",
1598     "parameters": {
1599      "fileId": {
1600       "type": "string",
1601       "description": "The ID of the file.",
1602       "required": true,
1603       "location": "path"
1604      }
1605     },
1606     "parameterOrder": [
1607      "fileId"
1608     ],
1609     "scopes": [
1610      "https://www.googleapis.com/auth/drive",
1611      "https://www.googleapis.com/auth/drive.appdata",
1612      "https://www.googleapis.com/auth/drive.file"
1613     ]
1614    },
1615    "emptyTrash": {
1616     "id": "drive.files.emptyTrash",
1617     "path": "files/trash",
1618     "httpMethod": "DELETE",
1619     "description": "Permanently deletes all of the user's trashed files.",
1620     "scopes": [
1621      "https://www.googleapis.com/auth/drive"
1622     ]
1623    },
1624    "export": {
1625     "id": "drive.files.export",
1626     "path": "files/{fileId}/export",
1627     "httpMethod": "GET",
1628     "description": "Exports a Google Doc to the requested MIME type and returns the exported content.",
1629     "parameters": {
1630      "fileId": {
1631       "type": "string",
1632       "description": "The ID of the file.",
1633       "required": true,
1634       "location": "path"
1635      },
1636      "mimeType": {
1637       "type": "string",
1638       "description": "The MIME type of the format requested for this export.",
1639       "required": true,
1640       "location": "query"
1641      }
1642     },
1643     "parameterOrder": [
1644      "fileId",
1645      "mimeType"
1646     ],
1647     "scopes": [
1648      "https://www.googleapis.com/auth/drive",
1649      "https://www.googleapis.com/auth/drive.file",
1650      "https://www.googleapis.com/auth/drive.readonly"
1651     ],
1652     "supportsMediaDownload": true
1653    },
1654    "generateIds": {
1655     "id": "drive.files.generateIds",
1656     "path": "files/generateIds",
1657     "httpMethod": "GET",
1658     "description": "Generates a set of file IDs which can be provided in create requests.",
1659     "parameters": {
1660      "count": {
1661       "type": "integer",
1662       "description": "The number of IDs to return.",
1663       "default": "10",
1664       "format": "int32",
1665       "minimum": "1",
1666       "maximum": "1000",
1667       "location": "query"
1668      },
1669      "space": {
1670       "type": "string",
1671       "description": "The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'.",
1672       "default": "drive",
1673       "location": "query"
1674      }
1675     },
1676     "response": {
1677      "$ref": "GeneratedIds"
1678     },
1679     "scopes": [
1680      "https://www.googleapis.com/auth/drive",
1681      "https://www.googleapis.com/auth/drive.appdata",
1682      "https://www.googleapis.com/auth/drive.file"
1683     ]
1684    },
1685    "get": {
1686     "id": "drive.files.get",
1687     "path": "files/{fileId}",
1688     "httpMethod": "GET",
1689     "description": "Gets a file's metadata or content by ID.",
1690     "parameters": {
1691      "acknowledgeAbuse": {
1692       "type": "boolean",
1693       "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.",
1694       "default": "false",
1695       "location": "query"
1696      },
1697      "fileId": {
1698       "type": "string",
1699       "description": "The ID of the file.",
1700       "required": true,
1701       "location": "path"
1702      }
1703     },
1704     "parameterOrder": [
1705      "fileId"
1706     ],
1707     "response": {
1708      "$ref": "File"
1709     },
1710     "scopes": [
1711      "https://www.googleapis.com/auth/drive",
1712      "https://www.googleapis.com/auth/drive.appdata",
1713      "https://www.googleapis.com/auth/drive.file",
1714      "https://www.googleapis.com/auth/drive.metadata",
1715      "https://www.googleapis.com/auth/drive.metadata.readonly",
1716      "https://www.googleapis.com/auth/drive.photos.readonly",
1717      "https://www.googleapis.com/auth/drive.readonly"
1718     ],
1719     "supportsMediaDownload": true,
1720     "useMediaDownloadService": true,
1721     "supportsSubscription": true
1722    },
1723    "list": {
1724     "id": "drive.files.list",
1725     "path": "files",
1726     "httpMethod": "GET",
1727     "description": "Lists or searches files.",
1728     "parameters": {
1729      "corpus": {
1730       "type": "string",
1731       "description": "The source of files to list.",
1732       "default": "user",
1733       "enum": [
1734        "domain",
1735        "user"
1736       ],
1737       "enumDescriptions": [
1738        "Files shared to the user's domain.",
1739        "Files owned by or shared to the user."
1740       ],
1741       "location": "query"
1742      },
1743      "orderBy": {
1744       "type": "string",
1745       "description": "A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.",
1746       "location": "query"
1747      },
1748      "pageSize": {
1749       "type": "integer",
1750       "description": "The maximum number of files to return per page.",
1751       "default": "100",
1752       "format": "int32",
1753       "minimum": "1",
1754       "maximum": "1000",
1755       "location": "query"
1756      },
1757      "pageToken": {
1758       "type": "string",
1759       "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.",
1760       "location": "query"
1761      },
1762      "q": {
1763       "type": "string",
1764       "description": "A query for filtering the file results. See the \"Search for Files\" guide for supported syntax.",
1765       "location": "query"
1766      },
1767      "spaces": {
1768       "type": "string",
1769       "description": "A comma-separated list of spaces to query within the corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.",
1770       "default": "drive",
1771       "location": "query"
1772      }
1773     },
1774     "response": {
1775      "$ref": "FileList"
1776     },
1777     "scopes": [
1778      "https://www.googleapis.com/auth/drive",
1779      "https://www.googleapis.com/auth/drive.appdata",
1780      "https://www.googleapis.com/auth/drive.file",
1781      "https://www.googleapis.com/auth/drive.metadata",
1782      "https://www.googleapis.com/auth/drive.metadata.readonly",
1783      "https://www.googleapis.com/auth/drive.photos.readonly",
1784      "https://www.googleapis.com/auth/drive.readonly"
1785     ]
1786    },
1787    "update": {
1788     "id": "drive.files.update",
1789     "path": "files/{fileId}",
1790     "httpMethod": "PATCH",
1791     "description": "Updates a file's metadata and/or content with patch semantics.",
1792     "parameters": {
1793      "addParents": {
1794       "type": "string",
1795       "description": "A comma-separated list of parent IDs to add.",
1796       "location": "query"
1797      },
1798      "fileId": {
1799       "type": "string",
1800       "description": "The ID of the file.",
1801       "required": true,
1802       "location": "path"
1803      },
1804      "keepRevisionForever": {
1805       "type": "boolean",
1806       "description": "Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Drive.",
1807       "default": "false",
1808       "location": "query"
1809      },
1810      "ocrLanguage": {
1811       "type": "string",
1812       "description": "A language hint for OCR processing during image import (ISO 639-1 code).",
1813       "location": "query"
1814      },
1815      "removeParents": {
1816       "type": "string",
1817       "description": "A comma-separated list of parent IDs to remove.",
1818       "location": "query"
1819      },
1820      "useContentAsIndexableText": {
1821       "type": "boolean",
1822       "description": "Whether to use the uploaded content as indexable text.",
1823       "default": "false",
1824       "location": "query"
1825      }
1826     },
1827     "parameterOrder": [
1828      "fileId"
1829     ],
1830     "request": {
1831      "$ref": "File"
1832     },
1833     "response": {
1834      "$ref": "File"
1835     },
1836     "scopes": [
1837      "https://www.googleapis.com/auth/drive",
1838      "https://www.googleapis.com/auth/drive.appdata",
1839      "https://www.googleapis.com/auth/drive.file",
1840      "https://www.googleapis.com/auth/drive.metadata",
1841      "https://www.googleapis.com/auth/drive.scripts"
1842     ],
1843     "supportsMediaUpload": true,
1844     "mediaUpload": {
1845      "accept": [
1846       "*/*"
1847      ],
1848      "maxSize": "5120GB",
1849      "protocols": {
1850       "simple": {
1851        "multipart": true,
1852        "path": "/upload/drive/v3/files/{fileId}"
1853       },
1854       "resumable": {
1855        "multipart": true,
1856        "path": "/resumable/upload/drive/v3/files/{fileId}"
1857       }
1858      }
1859     }
1860    },
1861    "watch": {
1862     "id": "drive.files.watch",
1863     "path": "files/{fileId}/watch",
1864     "httpMethod": "POST",
1865     "description": "Subscribes to changes to a file",
1866     "parameters": {
1867      "acknowledgeAbuse": {
1868       "type": "boolean",
1869       "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.",
1870       "default": "false",
1871       "location": "query"
1872      },
1873      "fileId": {
1874       "type": "string",
1875       "description": "The ID of the file.",
1876       "required": true,
1877       "location": "path"
1878      }
1879     },
1880     "parameterOrder": [
1881      "fileId"
1882     ],
1883     "request": {
1884      "$ref": "Channel",
1885      "parameterName": "resource"
1886     },
1887     "response": {
1888      "$ref": "Channel"
1889     },
1890     "scopes": [
1891      "https://www.googleapis.com/auth/drive",
1892      "https://www.googleapis.com/auth/drive.appdata",
1893      "https://www.googleapis.com/auth/drive.file",
1894      "https://www.googleapis.com/auth/drive.metadata",
1895      "https://www.googleapis.com/auth/drive.metadata.readonly",
1896      "https://www.googleapis.com/auth/drive.photos.readonly",
1897      "https://www.googleapis.com/auth/drive.readonly"
1898     ],
1899     "supportsMediaDownload": true,
1900     "useMediaDownloadService": true,
1901     "supportsSubscription": true
1902    }
1903   }
1904  },
1905  "permissions": {
1906   "methods": {
1907    "create": {
1908     "id": "drive.permissions.create",
1909     "path": "files/{fileId}/permissions",
1910     "httpMethod": "POST",
1911     "description": "Creates a permission for a file.",
1912     "parameters": {
1913      "emailMessage": {
1914       "type": "string",
1915       "description": "A custom message to include in the notification email.",
1916       "location": "query"
1917      },
1918      "fileId": {
1919       "type": "string",
1920       "description": "The ID of the file.",
1921       "required": true,
1922       "location": "path"
1923      },
1924      "sendNotificationEmail": {
1925       "type": "boolean",
1926       "description": "Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers.",
1927       "location": "query"
1928      },
1929      "transferOwnership": {
1930       "type": "boolean",
1931       "description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.",
1932       "default": "false",
1933       "location": "query"
1934      }
1935     },
1936     "parameterOrder": [
1937      "fileId"
1938     ],
1939     "request": {
1940      "$ref": "Permission"
1941     },
1942     "response": {
1943      "$ref": "Permission"
1944     },
1945     "scopes": [
1946      "https://www.googleapis.com/auth/drive",
1947      "https://www.googleapis.com/auth/drive.file"
1948     ]
1949    },
1950    "delete": {
1951     "id": "drive.permissions.delete",
1952     "path": "files/{fileId}/permissions/{permissionId}",
1953     "httpMethod": "DELETE",
1954     "description": "Deletes a permission.",
1955     "parameters": {
1956      "fileId": {
1957       "type": "string",
1958       "description": "The ID of the file.",
1959       "required": true,
1960       "location": "path"
1961      },
1962      "permissionId": {
1963       "type": "string",
1964       "description": "The ID of the permission.",
1965       "required": true,
1966       "location": "path"
1967      }
1968     },
1969     "parameterOrder": [
1970      "fileId",
1971      "permissionId"
1972     ],
1973     "scopes": [
1974      "https://www.googleapis.com/auth/drive",
1975      "https://www.googleapis.com/auth/drive.file"
1976     ]
1977    },
1978    "get": {
1979     "id": "drive.permissions.get",
1980     "path": "files/{fileId}/permissions/{permissionId}",
1981     "httpMethod": "GET",
1982     "description": "Gets a permission by ID.",
1983     "parameters": {
1984      "fileId": {
1985       "type": "string",
1986       "description": "The ID of the file.",
1987       "required": true,
1988       "location": "path"
1989      },
1990      "permissionId": {
1991       "type": "string",
1992       "description": "The ID of the permission.",
1993       "required": true,
1994       "location": "path"
1995      }
1996     },
1997     "parameterOrder": [
1998      "fileId",
1999      "permissionId"
2000     ],
2001     "response": {
2002      "$ref": "Permission"
2003     },
2004     "scopes": [
2005      "https://www.googleapis.com/auth/drive",
2006      "https://www.googleapis.com/auth/drive.file",
2007      "https://www.googleapis.com/auth/drive.metadata",
2008      "https://www.googleapis.com/auth/drive.metadata.readonly",
2009      "https://www.googleapis.com/auth/drive.photos.readonly",
2010      "https://www.googleapis.com/auth/drive.readonly"
2011     ]
2012    },
2013    "list": {
2014     "id": "drive.permissions.list",
2015     "path": "files/{fileId}/permissions",
2016     "httpMethod": "GET",
2017     "description": "Lists a file's permissions.",
2018     "parameters": {
2019      "fileId": {
2020       "type": "string",
2021       "description": "The ID of the file.",
2022       "required": true,
2023       "location": "path"
2024      }
2025     },
2026     "parameterOrder": [
2027      "fileId"
2028     ],
2029     "response": {
2030      "$ref": "PermissionList"
2031     },
2032     "scopes": [
2033      "https://www.googleapis.com/auth/drive",
2034      "https://www.googleapis.com/auth/drive.file",
2035      "https://www.googleapis.com/auth/drive.metadata",
2036      "https://www.googleapis.com/auth/drive.metadata.readonly",
2037      "https://www.googleapis.com/auth/drive.photos.readonly",
2038      "https://www.googleapis.com/auth/drive.readonly"
2039     ]
2040    },
2041    "update": {
2042     "id": "drive.permissions.update",
2043     "path": "files/{fileId}/permissions/{permissionId}",
2044     "httpMethod": "PATCH",
2045     "description": "Updates a permission with patch semantics.",
2046     "parameters": {
2047      "fileId": {
2048       "type": "string",
2049       "description": "The ID of the file.",
2050       "required": true,
2051       "location": "path"
2052      },
2053      "permissionId": {
2054       "type": "string",
2055       "description": "The ID of the permission.",
2056       "required": true,
2057       "location": "path"
2058      },
2059      "removeExpiration": {
2060       "type": "boolean",
2061       "description": "Whether to remove the expiration date.",
2062       "default": "false",
2063       "location": "query"
2064      },
2065      "transferOwnership": {
2066       "type": "boolean",
2067       "description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.",
2068       "default": "false",
2069       "location": "query"
2070      }
2071     },
2072     "parameterOrder": [
2073      "fileId",
2074      "permissionId"
2075     ],
2076     "request": {
2077      "$ref": "Permission"
2078     },
2079     "response": {
2080      "$ref": "Permission"
2081     },
2082     "scopes": [
2083      "https://www.googleapis.com/auth/drive",
2084      "https://www.googleapis.com/auth/drive.file"
2085     ]
2086    }
2087   }
2088  },
2089  "replies": {
2090   "methods": {
2091    "create": {
2092     "id": "drive.replies.create",
2093     "path": "files/{fileId}/comments/{commentId}/replies",
2094     "httpMethod": "POST",
2095     "description": "Creates a new reply to a comment.",
2096     "parameters": {
2097      "commentId": {
2098       "type": "string",
2099       "description": "The ID of the comment.",
2100       "required": true,
2101       "location": "path"
2102      },
2103      "fileId": {
2104       "type": "string",
2105       "description": "The ID of the file.",
2106       "required": true,
2107       "location": "path"
2108      }
2109     },
2110     "parameterOrder": [
2111      "fileId",
2112      "commentId"
2113     ],
2114     "request": {
2115      "$ref": "Reply"
2116     },
2117     "response": {
2118      "$ref": "Reply"
2119     },
2120     "scopes": [
2121      "https://www.googleapis.com/auth/drive",
2122      "https://www.googleapis.com/auth/drive.file"
2123     ]
2124    },
2125    "delete": {
2126     "id": "drive.replies.delete",
2127     "path": "files/{fileId}/comments/{commentId}/replies/{replyId}",
2128     "httpMethod": "DELETE",
2129     "description": "Deletes a reply.",
2130     "parameters": {
2131      "commentId": {
2132       "type": "string",
2133       "description": "The ID of the comment.",
2134       "required": true,
2135       "location": "path"
2136      },
2137      "fileId": {
2138       "type": "string",
2139       "description": "The ID of the file.",
2140       "required": true,
2141       "location": "path"
2142      },
2143      "replyId": {
2144       "type": "string",
2145       "description": "The ID of the reply.",
2146       "required": true,
2147       "location": "path"
2148      }
2149     },
2150     "parameterOrder": [
2151      "fileId",
2152      "commentId",
2153      "replyId"
2154     ],
2155     "scopes": [
2156      "https://www.googleapis.com/auth/drive",
2157      "https://www.googleapis.com/auth/drive.file"
2158     ]
2159    },
2160    "get": {
2161     "id": "drive.replies.get",
2162     "path": "files/{fileId}/comments/{commentId}/replies/{replyId}",
2163     "httpMethod": "GET",
2164     "description": "Gets a reply by ID.",
2165     "parameters": {
2166      "commentId": {
2167       "type": "string",
2168       "description": "The ID of the comment.",
2169       "required": true,
2170       "location": "path"
2171      },
2172      "fileId": {
2173       "type": "string",
2174       "description": "The ID of the file.",
2175       "required": true,
2176       "location": "path"
2177      },
2178      "includeDeleted": {
2179       "type": "boolean",
2180       "description": "Whether to return deleted replies. Deleted replies will not include their original content.",
2181       "default": "false",
2182       "location": "query"
2183      },
2184      "replyId": {
2185       "type": "string",
2186       "description": "The ID of the reply.",
2187       "required": true,
2188       "location": "path"
2189      }
2190     },
2191     "parameterOrder": [
2192      "fileId",
2193      "commentId",
2194      "replyId"
2195     ],
2196     "response": {
2197      "$ref": "Reply"
2198     },
2199     "scopes": [
2200      "https://www.googleapis.com/auth/drive",
2201      "https://www.googleapis.com/auth/drive.file",
2202      "https://www.googleapis.com/auth/drive.readonly"
2203     ]
2204    },
2205    "list": {
2206     "id": "drive.replies.list",
2207     "path": "files/{fileId}/comments/{commentId}/replies",
2208     "httpMethod": "GET",
2209     "description": "Lists a comment's replies.",
2210     "parameters": {
2211      "commentId": {
2212       "type": "string",
2213       "description": "The ID of the comment.",
2214       "required": true,
2215       "location": "path"
2216      },
2217      "fileId": {
2218       "type": "string",
2219       "description": "The ID of the file.",
2220       "required": true,
2221       "location": "path"
2222      },
2223      "includeDeleted": {
2224       "type": "boolean",
2225       "description": "Whether to include deleted replies. Deleted replies will not include their original content.",
2226       "default": "false",
2227       "location": "query"
2228      },
2229      "pageSize": {
2230       "type": "integer",
2231       "description": "The maximum number of replies to return per page.",
2232       "default": "20",
2233       "format": "int32",
2234       "minimum": "1",
2235       "maximum": "100",
2236       "location": "query"
2237      },
2238      "pageToken": {
2239       "type": "string",
2240       "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.",
2241       "location": "query"
2242      }
2243     },
2244     "parameterOrder": [
2245      "fileId",
2246      "commentId"
2247     ],
2248     "response": {
2249      "$ref": "ReplyList"
2250     },
2251     "scopes": [
2252      "https://www.googleapis.com/auth/drive",
2253      "https://www.googleapis.com/auth/drive.file",
2254      "https://www.googleapis.com/auth/drive.readonly"
2255     ]
2256    },
2257    "update": {
2258     "id": "drive.replies.update",
2259     "path": "files/{fileId}/comments/{commentId}/replies/{replyId}",
2260     "httpMethod": "PATCH",
2261     "description": "Updates a reply with patch semantics.",
2262     "parameters": {
2263      "commentId": {
2264       "type": "string",
2265       "description": "The ID of the comment.",
2266       "required": true,
2267       "location": "path"
2268      },
2269      "fileId": {
2270       "type": "string",
2271       "description": "The ID of the file.",
2272       "required": true,
2273       "location": "path"
2274      },
2275      "replyId": {
2276       "type": "string",
2277       "description": "The ID of the reply.",
2278       "required": true,
2279       "location": "path"
2280      }
2281     },
2282     "parameterOrder": [
2283      "fileId",
2284      "commentId",
2285      "replyId"
2286     ],
2287     "request": {
2288      "$ref": "Reply"
2289     },
2290     "response": {
2291      "$ref": "Reply"
2292     },
2293     "scopes": [
2294      "https://www.googleapis.com/auth/drive",
2295      "https://www.googleapis.com/auth/drive.file"
2296     ]
2297    }
2298   }
2299  },
2300  "revisions": {
2301   "methods": {
2302    "delete": {
2303     "id": "drive.revisions.delete",
2304     "path": "files/{fileId}/revisions/{revisionId}",
2305     "httpMethod": "DELETE",
2306     "description": "Permanently deletes a revision. This method is only applicable to files with binary content in Drive.",
2307     "parameters": {
2308      "fileId": {
2309       "type": "string",
2310       "description": "The ID of the file.",
2311       "required": true,
2312       "location": "path"
2313      },
2314      "revisionId": {
2315       "type": "string",
2316       "description": "The ID of the revision.",
2317       "required": true,
2318       "location": "path"
2319      }
2320     },
2321     "parameterOrder": [
2322      "fileId",
2323      "revisionId"
2324     ],
2325     "scopes": [
2326      "https://www.googleapis.com/auth/drive",
2327      "https://www.googleapis.com/auth/drive.appdata",
2328      "https://www.googleapis.com/auth/drive.file"
2329     ]
2330    },
2331    "get": {
2332     "id": "drive.revisions.get",
2333     "path": "files/{fileId}/revisions/{revisionId}",
2334     "httpMethod": "GET",
2335     "description": "Gets a revision's metadata or content by ID.",
2336     "parameters": {
2337      "acknowledgeAbuse": {
2338       "type": "boolean",
2339       "description": "Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.",
2340       "default": "false",
2341       "location": "query"
2342      },
2343      "fileId": {
2344       "type": "string",
2345       "description": "The ID of the file.",
2346       "required": true,
2347       "location": "path"
2348      },
2349      "revisionId": {
2350       "type": "string",
2351       "description": "The ID of the revision.",
2352       "required": true,
2353       "location": "path"
2354      }
2355     },
2356     "parameterOrder": [
2357      "fileId",
2358      "revisionId"
2359     ],
2360     "response": {
2361      "$ref": "Revision"
2362     },
2363     "scopes": [
2364      "https://www.googleapis.com/auth/drive",
2365      "https://www.googleapis.com/auth/drive.appdata",
2366      "https://www.googleapis.com/auth/drive.file",
2367      "https://www.googleapis.com/auth/drive.metadata",
2368      "https://www.googleapis.com/auth/drive.metadata.readonly",
2369      "https://www.googleapis.com/auth/drive.photos.readonly",
2370      "https://www.googleapis.com/auth/drive.readonly"
2371     ],
2372     "supportsMediaDownload": true,
2373     "useMediaDownloadService": true
2374    },
2375    "list": {
2376     "id": "drive.revisions.list",
2377     "path": "files/{fileId}/revisions",
2378     "httpMethod": "GET",
2379     "description": "Lists a file's revisions.",
2380     "parameters": {
2381      "fileId": {
2382       "type": "string",
2383       "description": "The ID of the file.",
2384       "required": true,
2385       "location": "path"
2386      },
2387      "pageSize": {
2388       "type": "integer",
2389       "description": "The maximum number of revisions to return per page.",
2390       "default": "200",
2391       "format": "int32",
2392       "minimum": "1",
2393       "maximum": "1000",
2394       "location": "query"
2395      },
2396      "pageToken": {
2397       "type": "string",
2398       "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.",
2399       "location": "query"
2400      }
2401     },
2402     "parameterOrder": [
2403      "fileId"
2404     ],
2405     "response": {
2406      "$ref": "RevisionList"
2407     },
2408     "scopes": [
2409      "https://www.googleapis.com/auth/drive",
2410      "https://www.googleapis.com/auth/drive.appdata",
2411      "https://www.googleapis.com/auth/drive.file",
2412      "https://www.googleapis.com/auth/drive.metadata",
2413      "https://www.googleapis.com/auth/drive.metadata.readonly",
2414      "https://www.googleapis.com/auth/drive.photos.readonly",
2415      "https://www.googleapis.com/auth/drive.readonly"
2416     ]
2417    },
2418    "update": {
2419     "id": "drive.revisions.update",
2420     "path": "files/{fileId}/revisions/{revisionId}",
2421     "httpMethod": "PATCH",
2422     "description": "Updates a revision with patch semantics.",
2423     "parameters": {
2424      "fileId": {
2425       "type": "string",
2426       "description": "The ID of the file.",
2427       "required": true,
2428       "location": "path"
2429      },
2430      "revisionId": {
2431       "type": "string",
2432       "description": "The ID of the revision.",
2433       "required": true,
2434       "location": "path"
2435      }
2436     },
2437     "parameterOrder": [
2438      "fileId",
2439      "revisionId"
2440     ],
2441     "request": {
2442      "$ref": "Revision"
2443     },
2444     "response": {
2445      "$ref": "Revision"
2446     },
2447     "scopes": [
2448      "https://www.googleapis.com/auth/drive",
2449      "https://www.googleapis.com/auth/drive.appdata",
2450      "https://www.googleapis.com/auth/drive.file"
2451     ]
2452    }
2453   }
2454  }
2455 }
2456}
2457