google-api 0.0.1.alpha → 0.0.1.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +11 -1
- data/README.md +16 -12
- data/google-api.gemspec +4 -4
- data/lib/google-api/active_record_inclusions.rb +4 -0
- data/lib/google-api/api.rb +110 -84
- data/lib/google-api/client.rb +23 -23
- data/lib/google-api/oauth2.rb +16 -0
- data/lib/google-api/railtie.rb +1 -1
- data/lib/google-api.rb +43 -6
- data/spec/fixtures/discovery_drive.json +22 -0
- data/spec/fixtures/discovery_rest_drive.json +2348 -0
- data/spec/fixtures/drive_error.json +13 -0
- data/spec/fixtures/drive_files.json +51 -0
- data/spec/fixtures/refresh_access_token.json +5 -0
- data/spec/google-api/api_spec.rb +201 -0
- data/spec/google-api/client_spec.rb +115 -0
- data/spec/google-api_spec.rb +102 -0
- data/spec/spec_helper.rb +17 -0
- data/spec/support/faraday_stubs.rb +17 -0
- data/spec/support/fixture.rb +9 -0
- data/spec/support/oauth2_response.rb +17 -0
- data/spec/support/oauthable_object.rb +27 -0
- metadata +42 -17
- data/lib/google-api/api/calendar.rb +0 -44
- data/lib/google-api/api/drive.rb +0 -53
@@ -0,0 +1,2348 @@
|
|
1
|
+
{
|
2
|
+
"kind": "discovery#restDescription",
|
3
|
+
"discoveryVersion": "v1",
|
4
|
+
"id": "drive:v2",
|
5
|
+
"name": "drive",
|
6
|
+
"version": "v2",
|
7
|
+
"revision": "20120827",
|
8
|
+
"title": "Drive API",
|
9
|
+
"description": "The API to interact with Drive.",
|
10
|
+
"icons": {
|
11
|
+
"x16": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_16.png",
|
12
|
+
"x32": "https://ssl.gstatic.com/docs/doclist/images/drive_icon_32.png"
|
13
|
+
},
|
14
|
+
"documentationLink": "https://developers.google.com/drive/",
|
15
|
+
"protocol": "rest",
|
16
|
+
"baseUrl": "https://www.googleapis.com/drive/v2/",
|
17
|
+
"basePath": "/drive/v2/",
|
18
|
+
"rootUrl": "https://www.googleapis.com/",
|
19
|
+
"servicePath": "drive/v2/",
|
20
|
+
"batchPath": "batch",
|
21
|
+
"parameters": {
|
22
|
+
"alt": {
|
23
|
+
"type": "string",
|
24
|
+
"description": "Data format for the response.",
|
25
|
+
"default": "json",
|
26
|
+
"enum": [
|
27
|
+
"json"
|
28
|
+
],
|
29
|
+
"enumDescriptions": [
|
30
|
+
"Responses with Content-Type of application/json"
|
31
|
+
],
|
32
|
+
"location": "query"
|
33
|
+
},
|
34
|
+
"fields": {
|
35
|
+
"type": "string",
|
36
|
+
"description": "Selector specifying which fields to include in a partial response.",
|
37
|
+
"location": "query"
|
38
|
+
},
|
39
|
+
"key": {
|
40
|
+
"type": "string",
|
41
|
+
"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.",
|
42
|
+
"location": "query"
|
43
|
+
},
|
44
|
+
"oauth_token": {
|
45
|
+
"type": "string",
|
46
|
+
"description": "OAuth 2.0 token for the current user.",
|
47
|
+
"location": "query"
|
48
|
+
},
|
49
|
+
"prettyPrint": {
|
50
|
+
"type": "boolean",
|
51
|
+
"description": "Returns response with indentations and line breaks.",
|
52
|
+
"default": "true",
|
53
|
+
"location": "query"
|
54
|
+
},
|
55
|
+
"quotaUser": {
|
56
|
+
"type": "string",
|
57
|
+
"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.",
|
58
|
+
"location": "query"
|
59
|
+
},
|
60
|
+
"userIp": {
|
61
|
+
"type": "string",
|
62
|
+
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
63
|
+
"location": "query"
|
64
|
+
}
|
65
|
+
},
|
66
|
+
"auth": {
|
67
|
+
"oauth2": {
|
68
|
+
"scopes": {
|
69
|
+
"https://www.googleapis.com/auth/drive": {
|
70
|
+
"description": "View and manage the files and documents in your Google Drive"
|
71
|
+
},
|
72
|
+
"https://www.googleapis.com/auth/drive.apps.readonly": {
|
73
|
+
"description": "View your Google Drive apps"
|
74
|
+
},
|
75
|
+
"https://www.googleapis.com/auth/drive.file": {
|
76
|
+
"description": "View and manage Google Drive files that you have opened or created with this app"
|
77
|
+
},
|
78
|
+
"https://www.googleapis.com/auth/drive.metadata.readonly": {
|
79
|
+
"description": "View metadata for files and documents in your Google Drive"
|
80
|
+
},
|
81
|
+
"https://www.googleapis.com/auth/drive.readonly": {
|
82
|
+
"description": "View the files and documents in your Google Drive"
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
},
|
87
|
+
"schemas": {
|
88
|
+
"About": {
|
89
|
+
"id": "About",
|
90
|
+
"type": "object",
|
91
|
+
"description": "An item with user information and settings.",
|
92
|
+
"properties": {
|
93
|
+
"additionalRoleInfo": {
|
94
|
+
"type": "array",
|
95
|
+
"description": "Information about supported additional roles per file type. The most specific type takes precedence.",
|
96
|
+
"items": {
|
97
|
+
"type": "object",
|
98
|
+
"properties": {
|
99
|
+
"roleSets": {
|
100
|
+
"type": "array",
|
101
|
+
"description": "The supported additional roles per primary role.",
|
102
|
+
"items": {
|
103
|
+
"type": "object",
|
104
|
+
"properties": {
|
105
|
+
"additionalRoles": {
|
106
|
+
"type": "array",
|
107
|
+
"description": "The supported additional roles with the primary role.",
|
108
|
+
"items": {
|
109
|
+
"type": "string"
|
110
|
+
}
|
111
|
+
},
|
112
|
+
"primaryRole": {
|
113
|
+
"type": "string",
|
114
|
+
"description": "A primary permission role."
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
},
|
119
|
+
"type": {
|
120
|
+
"type": "string",
|
121
|
+
"description": "The content type that this additional role info applies to."
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"domainSharingPolicy": {
|
127
|
+
"type": "string",
|
128
|
+
"description": "The domain sharing policy for the current user."
|
129
|
+
},
|
130
|
+
"etag": {
|
131
|
+
"type": "string",
|
132
|
+
"description": "The ETag of the item."
|
133
|
+
},
|
134
|
+
"exportFormats": {
|
135
|
+
"type": "array",
|
136
|
+
"description": "The allowable export formats.",
|
137
|
+
"items": {
|
138
|
+
"type": "object",
|
139
|
+
"properties": {
|
140
|
+
"source": {
|
141
|
+
"type": "string",
|
142
|
+
"description": "The content type to convert from."
|
143
|
+
},
|
144
|
+
"targets": {
|
145
|
+
"type": "array",
|
146
|
+
"description": "The possible content types to convert to.",
|
147
|
+
"items": {
|
148
|
+
"type": "string"
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
},
|
154
|
+
"features": {
|
155
|
+
"type": "array",
|
156
|
+
"description": "List of additional features enabled on this account.",
|
157
|
+
"items": {
|
158
|
+
"type": "object",
|
159
|
+
"properties": {
|
160
|
+
"featureName": {
|
161
|
+
"type": "string",
|
162
|
+
"description": "The name of the feature."
|
163
|
+
},
|
164
|
+
"featureRate": {
|
165
|
+
"type": "number",
|
166
|
+
"description": "The request limit rate for this feature, in queries per second.",
|
167
|
+
"format": "double"
|
168
|
+
}
|
169
|
+
}
|
170
|
+
}
|
171
|
+
},
|
172
|
+
"importFormats": {
|
173
|
+
"type": "array",
|
174
|
+
"description": "The allowable import formats.",
|
175
|
+
"items": {
|
176
|
+
"type": "object",
|
177
|
+
"properties": {
|
178
|
+
"source": {
|
179
|
+
"type": "string",
|
180
|
+
"description": "The imported file's content type to convert from."
|
181
|
+
},
|
182
|
+
"targets": {
|
183
|
+
"type": "array",
|
184
|
+
"description": "The possible content types to convert to.",
|
185
|
+
"items": {
|
186
|
+
"type": "string"
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
},
|
192
|
+
"isCurrentAppInstalled": {
|
193
|
+
"type": "boolean",
|
194
|
+
"description": "A boolean indicating whether the authenticated app is installed by the authenticated user."
|
195
|
+
},
|
196
|
+
"kind": {
|
197
|
+
"type": "string",
|
198
|
+
"description": "This is always drive#about.",
|
199
|
+
"default": "drive#about"
|
200
|
+
},
|
201
|
+
"largestChangeId": {
|
202
|
+
"type": "string",
|
203
|
+
"description": "The largest change id.",
|
204
|
+
"format": "int64"
|
205
|
+
},
|
206
|
+
"maxUploadSizes": {
|
207
|
+
"type": "array",
|
208
|
+
"description": "List of max upload sizes for each file type. The most specific type takes precedence.",
|
209
|
+
"items": {
|
210
|
+
"type": "object",
|
211
|
+
"properties": {
|
212
|
+
"size": {
|
213
|
+
"type": "string",
|
214
|
+
"description": "The max upload size for this type.",
|
215
|
+
"format": "int64"
|
216
|
+
},
|
217
|
+
"type": {
|
218
|
+
"type": "string",
|
219
|
+
"description": "The file type."
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|
223
|
+
},
|
224
|
+
"name": {
|
225
|
+
"type": "string",
|
226
|
+
"description": "The name of the current user."
|
227
|
+
},
|
228
|
+
"permissionId": {
|
229
|
+
"type": "string",
|
230
|
+
"description": "The current user's ID as visible in the permissions collection."
|
231
|
+
},
|
232
|
+
"quotaBytesTotal": {
|
233
|
+
"type": "string",
|
234
|
+
"description": "The total number of quota bytes.",
|
235
|
+
"format": "int64"
|
236
|
+
},
|
237
|
+
"quotaBytesUsed": {
|
238
|
+
"type": "string",
|
239
|
+
"description": "The number of quota bytes used.",
|
240
|
+
"format": "int64"
|
241
|
+
},
|
242
|
+
"quotaBytesUsedInTrash": {
|
243
|
+
"type": "string",
|
244
|
+
"description": "The number of quota bytes used by trashed items.",
|
245
|
+
"format": "int64"
|
246
|
+
},
|
247
|
+
"remainingChangeIds": {
|
248
|
+
"type": "string",
|
249
|
+
"description": "The number of remaining change ids.",
|
250
|
+
"format": "int64"
|
251
|
+
},
|
252
|
+
"rootFolderId": {
|
253
|
+
"type": "string",
|
254
|
+
"description": "The id of the root folder."
|
255
|
+
},
|
256
|
+
"selfLink": {
|
257
|
+
"type": "string",
|
258
|
+
"description": "A link back to this item."
|
259
|
+
}
|
260
|
+
}
|
261
|
+
},
|
262
|
+
"App": {
|
263
|
+
"id": "App",
|
264
|
+
"type": "object",
|
265
|
+
"description": "Information about a third-party application which the user has installed or given access to Google Drive.",
|
266
|
+
"properties": {
|
267
|
+
"authorized": {
|
268
|
+
"type": "boolean",
|
269
|
+
"description": "Whether the app is authorized to access data on the user's Drive."
|
270
|
+
},
|
271
|
+
"icons": {
|
272
|
+
"type": "array",
|
273
|
+
"description": "The various icons for the app.",
|
274
|
+
"items": {
|
275
|
+
"type": "object",
|
276
|
+
"properties": {
|
277
|
+
"category": {
|
278
|
+
"type": "string",
|
279
|
+
"description": "Category of the icon. Allowed values are: \n- application - icon for the application \n- document - icon for a file associated with the app \n- documentShared - icon for a shared file associated with the app"
|
280
|
+
},
|
281
|
+
"iconUrl": {
|
282
|
+
"type": "string",
|
283
|
+
"description": "URL for the icon."
|
284
|
+
},
|
285
|
+
"size": {
|
286
|
+
"type": "integer",
|
287
|
+
"description": "Size of the icon. Represented as the maximum of the width and height.",
|
288
|
+
"format": "int32"
|
289
|
+
}
|
290
|
+
}
|
291
|
+
}
|
292
|
+
},
|
293
|
+
"id": {
|
294
|
+
"type": "string",
|
295
|
+
"description": "The ID of the app."
|
296
|
+
},
|
297
|
+
"installed": {
|
298
|
+
"type": "boolean",
|
299
|
+
"description": "Whether the app is installed."
|
300
|
+
},
|
301
|
+
"kind": {
|
302
|
+
"type": "string",
|
303
|
+
"description": "This is always drive#app.",
|
304
|
+
"default": "drive#app"
|
305
|
+
},
|
306
|
+
"name": {
|
307
|
+
"type": "string",
|
308
|
+
"description": "The name of the app."
|
309
|
+
},
|
310
|
+
"objectType": {
|
311
|
+
"type": "string",
|
312
|
+
"description": "The type of object this app creates (e.g. Chart). If empty, the app name should be used instead."
|
313
|
+
},
|
314
|
+
"primaryFileExtensions": {
|
315
|
+
"type": "array",
|
316
|
+
"description": "The list of primary file extensions.",
|
317
|
+
"items": {
|
318
|
+
"type": "string"
|
319
|
+
}
|
320
|
+
},
|
321
|
+
"primaryMimeTypes": {
|
322
|
+
"type": "array",
|
323
|
+
"description": "The list of primary mime types.",
|
324
|
+
"items": {
|
325
|
+
"type": "string"
|
326
|
+
}
|
327
|
+
},
|
328
|
+
"productUrl": {
|
329
|
+
"type": "string",
|
330
|
+
"description": "The product URL."
|
331
|
+
},
|
332
|
+
"secondaryFileExtensions": {
|
333
|
+
"type": "array",
|
334
|
+
"description": "The list of secondary file extensions.",
|
335
|
+
"items": {
|
336
|
+
"type": "string"
|
337
|
+
}
|
338
|
+
},
|
339
|
+
"secondaryMimeTypes": {
|
340
|
+
"type": "array",
|
341
|
+
"description": "The list of secondary mime types.",
|
342
|
+
"items": {
|
343
|
+
"type": "string"
|
344
|
+
}
|
345
|
+
},
|
346
|
+
"supportsCreate": {
|
347
|
+
"type": "boolean",
|
348
|
+
"description": "Whether this app supports creating new objects."
|
349
|
+
},
|
350
|
+
"supportsImport": {
|
351
|
+
"type": "boolean",
|
352
|
+
"description": "Whether this app supports importing Google Docs."
|
353
|
+
},
|
354
|
+
"useByDefault": {
|
355
|
+
"type": "boolean",
|
356
|
+
"description": "Whether the app is selected as the default handler for the types it supports."
|
357
|
+
}
|
358
|
+
}
|
359
|
+
},
|
360
|
+
"AppList": {
|
361
|
+
"id": "AppList",
|
362
|
+
"type": "object",
|
363
|
+
"description": "A list of third-party applications which the user has installed or given access to Google Drive.",
|
364
|
+
"properties": {
|
365
|
+
"etag": {
|
366
|
+
"type": "string",
|
367
|
+
"description": "The ETag of the list."
|
368
|
+
},
|
369
|
+
"items": {
|
370
|
+
"type": "array",
|
371
|
+
"description": "The actual list of apps.",
|
372
|
+
"items": {
|
373
|
+
"$ref": "App"
|
374
|
+
}
|
375
|
+
},
|
376
|
+
"kind": {
|
377
|
+
"type": "string",
|
378
|
+
"description": "This is always drive#appList.",
|
379
|
+
"default": "drive#appList"
|
380
|
+
},
|
381
|
+
"selfLink": {
|
382
|
+
"type": "string",
|
383
|
+
"description": "A link back to this list."
|
384
|
+
}
|
385
|
+
}
|
386
|
+
},
|
387
|
+
"Change": {
|
388
|
+
"id": "Change",
|
389
|
+
"type": "object",
|
390
|
+
"description": "Representation of a change to a file.",
|
391
|
+
"properties": {
|
392
|
+
"deleted": {
|
393
|
+
"type": "boolean",
|
394
|
+
"description": "Whether the file has been deleted."
|
395
|
+
},
|
396
|
+
"file": {
|
397
|
+
"$ref": "File",
|
398
|
+
"description": "The updated state of the file. Present if the file has not been deleted."
|
399
|
+
},
|
400
|
+
"fileId": {
|
401
|
+
"type": "string",
|
402
|
+
"description": "The ID of the file associated with this change."
|
403
|
+
},
|
404
|
+
"id": {
|
405
|
+
"type": "string",
|
406
|
+
"description": "The ID of the change.",
|
407
|
+
"format": "int64"
|
408
|
+
},
|
409
|
+
"kind": {
|
410
|
+
"type": "string",
|
411
|
+
"description": "This is always drive#change.",
|
412
|
+
"default": "drive#change"
|
413
|
+
},
|
414
|
+
"selfLink": {
|
415
|
+
"type": "string",
|
416
|
+
"description": "A link back to this change."
|
417
|
+
}
|
418
|
+
}
|
419
|
+
},
|
420
|
+
"ChangeList": {
|
421
|
+
"id": "ChangeList",
|
422
|
+
"type": "object",
|
423
|
+
"description": "A list of changes for a user.",
|
424
|
+
"properties": {
|
425
|
+
"etag": {
|
426
|
+
"type": "string",
|
427
|
+
"description": "The ETag of the list."
|
428
|
+
},
|
429
|
+
"items": {
|
430
|
+
"type": "array",
|
431
|
+
"description": "The actual list of changes.",
|
432
|
+
"items": {
|
433
|
+
"$ref": "Change"
|
434
|
+
}
|
435
|
+
},
|
436
|
+
"kind": {
|
437
|
+
"type": "string",
|
438
|
+
"description": "This is always drive#changeList.",
|
439
|
+
"default": "drive#changeList"
|
440
|
+
},
|
441
|
+
"largestChangeId": {
|
442
|
+
"type": "string",
|
443
|
+
"description": "The current largest change ID.",
|
444
|
+
"format": "int64"
|
445
|
+
},
|
446
|
+
"nextLink": {
|
447
|
+
"type": "string",
|
448
|
+
"description": "A link to the next page of changes."
|
449
|
+
},
|
450
|
+
"nextPageToken": {
|
451
|
+
"type": "string",
|
452
|
+
"description": "The page token for the next page of changes."
|
453
|
+
},
|
454
|
+
"selfLink": {
|
455
|
+
"type": "string",
|
456
|
+
"description": "A link back to this list."
|
457
|
+
}
|
458
|
+
}
|
459
|
+
},
|
460
|
+
"ChildList": {
|
461
|
+
"id": "ChildList",
|
462
|
+
"type": "object",
|
463
|
+
"description": "A list of children of a file.",
|
464
|
+
"properties": {
|
465
|
+
"etag": {
|
466
|
+
"type": "string",
|
467
|
+
"description": "The ETag of the list."
|
468
|
+
},
|
469
|
+
"items": {
|
470
|
+
"type": "array",
|
471
|
+
"description": "The actual list of children.",
|
472
|
+
"items": {
|
473
|
+
"$ref": "ChildReference"
|
474
|
+
}
|
475
|
+
},
|
476
|
+
"kind": {
|
477
|
+
"type": "string",
|
478
|
+
"description": "This is always drive#childList.",
|
479
|
+
"default": "drive#childList"
|
480
|
+
},
|
481
|
+
"nextLink": {
|
482
|
+
"type": "string",
|
483
|
+
"description": "A link to the next page of children."
|
484
|
+
},
|
485
|
+
"nextPageToken": {
|
486
|
+
"type": "string",
|
487
|
+
"description": "The page token for the next page of children."
|
488
|
+
},
|
489
|
+
"selfLink": {
|
490
|
+
"type": "string",
|
491
|
+
"description": "A link back to this list."
|
492
|
+
}
|
493
|
+
}
|
494
|
+
},
|
495
|
+
"ChildReference": {
|
496
|
+
"id": "ChildReference",
|
497
|
+
"type": "object",
|
498
|
+
"description": "A reference to a file's child.",
|
499
|
+
"properties": {
|
500
|
+
"childLink": {
|
501
|
+
"type": "string",
|
502
|
+
"description": "A link to the child."
|
503
|
+
},
|
504
|
+
"id": {
|
505
|
+
"type": "string",
|
506
|
+
"description": "The ID of the child.",
|
507
|
+
"annotations": {
|
508
|
+
"required": [
|
509
|
+
"drive.children.insert"
|
510
|
+
]
|
511
|
+
}
|
512
|
+
},
|
513
|
+
"kind": {
|
514
|
+
"type": "string",
|
515
|
+
"description": "This is always drive#childReference.",
|
516
|
+
"default": "drive#childReference"
|
517
|
+
},
|
518
|
+
"selfLink": {
|
519
|
+
"type": "string",
|
520
|
+
"description": "A link back to this reference."
|
521
|
+
}
|
522
|
+
}
|
523
|
+
},
|
524
|
+
"File": {
|
525
|
+
"id": "File",
|
526
|
+
"type": "object",
|
527
|
+
"description": "The metadata for a file.",
|
528
|
+
"properties": {
|
529
|
+
"alternateLink": {
|
530
|
+
"type": "string",
|
531
|
+
"description": "A link for opening the file in using a relevant Google editor or viewer."
|
532
|
+
},
|
533
|
+
"createdDate": {
|
534
|
+
"type": "string",
|
535
|
+
"description": "Create time for this file (formatted ISO8601 timestamp).",
|
536
|
+
"format": "date-time"
|
537
|
+
},
|
538
|
+
"description": {
|
539
|
+
"type": "string",
|
540
|
+
"description": "A short description of the file."
|
541
|
+
},
|
542
|
+
"downloadUrl": {
|
543
|
+
"type": "string",
|
544
|
+
"description": "Short term download URL for the file. This will only be populated on files with content stored in Drive."
|
545
|
+
},
|
546
|
+
"editable": {
|
547
|
+
"type": "boolean",
|
548
|
+
"description": "Whether the file can be edited by the current user."
|
549
|
+
},
|
550
|
+
"embedLink": {
|
551
|
+
"type": "string",
|
552
|
+
"description": "A link for embedding the file."
|
553
|
+
},
|
554
|
+
"etag": {
|
555
|
+
"type": "string",
|
556
|
+
"description": "ETag of the file."
|
557
|
+
},
|
558
|
+
"explicitlyTrashed": {
|
559
|
+
"type": "boolean",
|
560
|
+
"description": "Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed."
|
561
|
+
},
|
562
|
+
"exportLinks": {
|
563
|
+
"type": "object",
|
564
|
+
"description": "Links for exporting Google Docs to specific formats.",
|
565
|
+
"additionalProperties": {
|
566
|
+
"type": "string",
|
567
|
+
"description": "A mapping from export format to URL"
|
568
|
+
}
|
569
|
+
},
|
570
|
+
"fileExtension": {
|
571
|
+
"type": "string",
|
572
|
+
"description": "The file extension used when downloading this file. This field is set from the title when inserting or uploading new content. This will only be populated on files with content stored in Drive."
|
573
|
+
},
|
574
|
+
"fileSize": {
|
575
|
+
"type": "string",
|
576
|
+
"description": "The size of the file in bytes. This will only be populated on files with content stored in Drive.",
|
577
|
+
"format": "int64"
|
578
|
+
},
|
579
|
+
"id": {
|
580
|
+
"type": "string",
|
581
|
+
"description": "The id of the file."
|
582
|
+
},
|
583
|
+
"imageMediaMetadata": {
|
584
|
+
"type": "object",
|
585
|
+
"description": "Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.",
|
586
|
+
"properties": {
|
587
|
+
"height": {
|
588
|
+
"type": "integer",
|
589
|
+
"description": "The height of the image in pixels.",
|
590
|
+
"format": "int32"
|
591
|
+
},
|
592
|
+
"location": {
|
593
|
+
"type": "object",
|
594
|
+
"description": "Geographic location information stored in the image.",
|
595
|
+
"properties": {
|
596
|
+
"altitude": {
|
597
|
+
"type": "number",
|
598
|
+
"description": "The altitude stored in the image.",
|
599
|
+
"format": "double"
|
600
|
+
},
|
601
|
+
"latitude": {
|
602
|
+
"type": "number",
|
603
|
+
"description": "The latitude stored in the image.",
|
604
|
+
"format": "double"
|
605
|
+
},
|
606
|
+
"longitude": {
|
607
|
+
"type": "number",
|
608
|
+
"description": "The longitude stored in the image.",
|
609
|
+
"format": "double"
|
610
|
+
}
|
611
|
+
}
|
612
|
+
},
|
613
|
+
"rotation": {
|
614
|
+
"type": "integer",
|
615
|
+
"description": "The rotation in clockwise degrees from the image's original orientation.",
|
616
|
+
"format": "int32"
|
617
|
+
},
|
618
|
+
"width": {
|
619
|
+
"type": "integer",
|
620
|
+
"description": "The width of the image in pixels.",
|
621
|
+
"format": "int32"
|
622
|
+
}
|
623
|
+
}
|
624
|
+
},
|
625
|
+
"indexableText": {
|
626
|
+
"type": "object",
|
627
|
+
"description": "Indexable text attributes for the file (can only be written)",
|
628
|
+
"properties": {
|
629
|
+
"text": {
|
630
|
+
"type": "string",
|
631
|
+
"description": "The text to be indexed for this file"
|
632
|
+
}
|
633
|
+
}
|
634
|
+
},
|
635
|
+
"kind": {
|
636
|
+
"type": "string",
|
637
|
+
"description": "The type of file. This is always drive#file.",
|
638
|
+
"default": "drive#file"
|
639
|
+
},
|
640
|
+
"labels": {
|
641
|
+
"type": "object",
|
642
|
+
"description": "A group of labels for the file.",
|
643
|
+
"properties": {
|
644
|
+
"hidden": {
|
645
|
+
"type": "boolean",
|
646
|
+
"description": "Whether this file is hidden from the user."
|
647
|
+
},
|
648
|
+
"restricted": {
|
649
|
+
"type": "boolean",
|
650
|
+
"description": "Whether viewers are prevented from downloading this file."
|
651
|
+
},
|
652
|
+
"starred": {
|
653
|
+
"type": "boolean",
|
654
|
+
"description": "Whether this file is starred by the user."
|
655
|
+
},
|
656
|
+
"trashed": {
|
657
|
+
"type": "boolean",
|
658
|
+
"description": "Whether this file has been trashed."
|
659
|
+
},
|
660
|
+
"viewed": {
|
661
|
+
"type": "boolean",
|
662
|
+
"description": "Whether this file has been viewed by this user."
|
663
|
+
}
|
664
|
+
}
|
665
|
+
},
|
666
|
+
"lastModifyingUserName": {
|
667
|
+
"type": "string",
|
668
|
+
"description": "Name of the last user to modify this file. This will only be populated if a user has edited this file."
|
669
|
+
},
|
670
|
+
"lastViewedByMeDate": {
|
671
|
+
"type": "string",
|
672
|
+
"description": "Last time this file was viewed by the user (formatted RFC 3339 timestamp).",
|
673
|
+
"format": "date-time"
|
674
|
+
},
|
675
|
+
"md5Checksum": {
|
676
|
+
"type": "string",
|
677
|
+
"description": "An MD5 checksum for the content of this file. This will only be populated on files with content stored in Drive."
|
678
|
+
},
|
679
|
+
"mimeType": {
|
680
|
+
"type": "string",
|
681
|
+
"description": "The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type."
|
682
|
+
},
|
683
|
+
"modifiedByMeDate": {
|
684
|
+
"type": "string",
|
685
|
+
"description": "Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.",
|
686
|
+
"format": "date-time"
|
687
|
+
},
|
688
|
+
"modifiedDate": {
|
689
|
+
"type": "string",
|
690
|
+
"description": "Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.",
|
691
|
+
"format": "date-time"
|
692
|
+
},
|
693
|
+
"originalFilename": {
|
694
|
+
"type": "string",
|
695
|
+
"description": "The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive."
|
696
|
+
},
|
697
|
+
"ownerNames": {
|
698
|
+
"type": "array",
|
699
|
+
"description": "Name(s) of the owner(s) of this file.",
|
700
|
+
"items": {
|
701
|
+
"type": "string"
|
702
|
+
}
|
703
|
+
},
|
704
|
+
"parents": {
|
705
|
+
"type": "array",
|
706
|
+
"description": "Collection of parent folders which contain this file.\nSetting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.",
|
707
|
+
"items": {
|
708
|
+
"$ref": "ParentReference"
|
709
|
+
}
|
710
|
+
},
|
711
|
+
"quotaBytesUsed": {
|
712
|
+
"type": "string",
|
713
|
+
"description": "The number of quota bytes used by this file.",
|
714
|
+
"format": "int64"
|
715
|
+
},
|
716
|
+
"selfLink": {
|
717
|
+
"type": "string",
|
718
|
+
"description": "A link back to this file."
|
719
|
+
},
|
720
|
+
"sharedWithMeDate": {
|
721
|
+
"type": "string",
|
722
|
+
"description": "Time at which this file was shared with the user (formatted RFC 3339 timestamp).",
|
723
|
+
"format": "date-time"
|
724
|
+
},
|
725
|
+
"thumbnailLink": {
|
726
|
+
"type": "string",
|
727
|
+
"description": "A link to the file's thumbnail."
|
728
|
+
},
|
729
|
+
"title": {
|
730
|
+
"type": "string",
|
731
|
+
"description": "The title of this file."
|
732
|
+
},
|
733
|
+
"userPermission": {
|
734
|
+
"$ref": "Permission",
|
735
|
+
"description": "The permissions for the authenticated user on this file."
|
736
|
+
},
|
737
|
+
"webContentLink": {
|
738
|
+
"type": "string",
|
739
|
+
"description": "A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials."
|
740
|
+
},
|
741
|
+
"writersCanShare": {
|
742
|
+
"type": "boolean",
|
743
|
+
"description": "Whether writers can share the document with other users."
|
744
|
+
}
|
745
|
+
}
|
746
|
+
},
|
747
|
+
"FileList": {
|
748
|
+
"id": "FileList",
|
749
|
+
"type": "object",
|
750
|
+
"description": "A list of files.",
|
751
|
+
"properties": {
|
752
|
+
"etag": {
|
753
|
+
"type": "string",
|
754
|
+
"description": "The ETag of the list."
|
755
|
+
},
|
756
|
+
"items": {
|
757
|
+
"type": "array",
|
758
|
+
"description": "The actual list of files.",
|
759
|
+
"items": {
|
760
|
+
"$ref": "File"
|
761
|
+
}
|
762
|
+
},
|
763
|
+
"kind": {
|
764
|
+
"type": "string",
|
765
|
+
"description": "This is always drive#fileList.",
|
766
|
+
"default": "drive#fileList"
|
767
|
+
},
|
768
|
+
"nextLink": {
|
769
|
+
"type": "string",
|
770
|
+
"description": "A link to the next page of files."
|
771
|
+
},
|
772
|
+
"nextPageToken": {
|
773
|
+
"type": "string",
|
774
|
+
"description": "The page token for the next page of files."
|
775
|
+
},
|
776
|
+
"selfLink": {
|
777
|
+
"type": "string",
|
778
|
+
"description": "A link back to this list."
|
779
|
+
}
|
780
|
+
}
|
781
|
+
},
|
782
|
+
"ParentList": {
|
783
|
+
"id": "ParentList",
|
784
|
+
"type": "object",
|
785
|
+
"description": "A list of a file's parents.",
|
786
|
+
"properties": {
|
787
|
+
"etag": {
|
788
|
+
"type": "string",
|
789
|
+
"description": "The ETag of the list."
|
790
|
+
},
|
791
|
+
"items": {
|
792
|
+
"type": "array",
|
793
|
+
"description": "The actual list of parents.",
|
794
|
+
"items": {
|
795
|
+
"$ref": "ParentReference"
|
796
|
+
}
|
797
|
+
},
|
798
|
+
"kind": {
|
799
|
+
"type": "string",
|
800
|
+
"description": "This is always drive#parentList.",
|
801
|
+
"default": "drive#parentList"
|
802
|
+
},
|
803
|
+
"selfLink": {
|
804
|
+
"type": "string",
|
805
|
+
"description": "A link back to this list."
|
806
|
+
}
|
807
|
+
}
|
808
|
+
},
|
809
|
+
"ParentReference": {
|
810
|
+
"id": "ParentReference",
|
811
|
+
"type": "object",
|
812
|
+
"description": "A reference to a file's parent.",
|
813
|
+
"properties": {
|
814
|
+
"id": {
|
815
|
+
"type": "string",
|
816
|
+
"description": "The ID of the parent.",
|
817
|
+
"annotations": {
|
818
|
+
"required": [
|
819
|
+
"drive.parents.insert"
|
820
|
+
]
|
821
|
+
}
|
822
|
+
},
|
823
|
+
"isRoot": {
|
824
|
+
"type": "boolean",
|
825
|
+
"description": "Whether or not the parent is the root folder."
|
826
|
+
},
|
827
|
+
"kind": {
|
828
|
+
"type": "string",
|
829
|
+
"description": "This is always drive#parentReference.",
|
830
|
+
"default": "drive#parentReference"
|
831
|
+
},
|
832
|
+
"parentLink": {
|
833
|
+
"type": "string",
|
834
|
+
"description": "A link to the parent."
|
835
|
+
},
|
836
|
+
"selfLink": {
|
837
|
+
"type": "string",
|
838
|
+
"description": "A link back to this reference."
|
839
|
+
}
|
840
|
+
}
|
841
|
+
},
|
842
|
+
"Permission": {
|
843
|
+
"id": "Permission",
|
844
|
+
"type": "object",
|
845
|
+
"description": "A single permission for a file.",
|
846
|
+
"properties": {
|
847
|
+
"additionalRoles": {
|
848
|
+
"type": "array",
|
849
|
+
"description": "Additional roles for this user. Only commenter is currently allowed.",
|
850
|
+
"items": {
|
851
|
+
"type": "string"
|
852
|
+
}
|
853
|
+
},
|
854
|
+
"authKey": {
|
855
|
+
"type": "string",
|
856
|
+
"description": "The authkey parameter required for this permission."
|
857
|
+
},
|
858
|
+
"etag": {
|
859
|
+
"type": "string",
|
860
|
+
"description": "The ETag of the permission."
|
861
|
+
},
|
862
|
+
"id": {
|
863
|
+
"type": "string",
|
864
|
+
"description": "The ID of the permission."
|
865
|
+
},
|
866
|
+
"kind": {
|
867
|
+
"type": "string",
|
868
|
+
"description": "This is always drive#permission.",
|
869
|
+
"default": "drive#permission"
|
870
|
+
},
|
871
|
+
"name": {
|
872
|
+
"type": "string",
|
873
|
+
"description": "The name for this permission."
|
874
|
+
},
|
875
|
+
"photoLink": {
|
876
|
+
"type": "string",
|
877
|
+
"description": "A link to the profile photo, if available."
|
878
|
+
},
|
879
|
+
"role": {
|
880
|
+
"type": "string",
|
881
|
+
"description": "The primary role for this user. Allowed values are: \n- owner \n- reader \n- writer",
|
882
|
+
"annotations": {
|
883
|
+
"required": [
|
884
|
+
"drive.permissions.insert"
|
885
|
+
]
|
886
|
+
}
|
887
|
+
},
|
888
|
+
"selfLink": {
|
889
|
+
"type": "string",
|
890
|
+
"description": "A link back to this permission."
|
891
|
+
},
|
892
|
+
"type": {
|
893
|
+
"type": "string",
|
894
|
+
"description": "The account type. Allowed values are: \n- user \n- group \n- domain \n- anyone",
|
895
|
+
"annotations": {
|
896
|
+
"required": [
|
897
|
+
"drive.permissions.insert"
|
898
|
+
]
|
899
|
+
}
|
900
|
+
},
|
901
|
+
"value": {
|
902
|
+
"type": "string",
|
903
|
+
"description": "The email address or domain name for the entity. This is not populated in responses.",
|
904
|
+
"annotations": {
|
905
|
+
"required": [
|
906
|
+
"drive.permissions.insert"
|
907
|
+
]
|
908
|
+
}
|
909
|
+
},
|
910
|
+
"withLink": {
|
911
|
+
"type": "boolean",
|
912
|
+
"description": "Whether the link is required for this permission."
|
913
|
+
}
|
914
|
+
}
|
915
|
+
},
|
916
|
+
"PermissionList": {
|
917
|
+
"id": "PermissionList",
|
918
|
+
"type": "object",
|
919
|
+
"description": "A list of permissions associated with a file.",
|
920
|
+
"properties": {
|
921
|
+
"etag": {
|
922
|
+
"type": "string",
|
923
|
+
"description": "The ETag of the list."
|
924
|
+
},
|
925
|
+
"items": {
|
926
|
+
"type": "array",
|
927
|
+
"description": "The actual list of permissions.",
|
928
|
+
"items": {
|
929
|
+
"$ref": "Permission"
|
930
|
+
}
|
931
|
+
},
|
932
|
+
"kind": {
|
933
|
+
"type": "string",
|
934
|
+
"description": "This is always drive#permissionList.",
|
935
|
+
"default": "drive#permissionList"
|
936
|
+
},
|
937
|
+
"selfLink": {
|
938
|
+
"type": "string",
|
939
|
+
"description": "A link back to this list."
|
940
|
+
}
|
941
|
+
}
|
942
|
+
},
|
943
|
+
"Revision": {
|
944
|
+
"id": "Revision",
|
945
|
+
"type": "object",
|
946
|
+
"description": "A single revision of a file.",
|
947
|
+
"properties": {
|
948
|
+
"downloadUrl": {
|
949
|
+
"type": "string",
|
950
|
+
"description": "Short term download URL for the file. This will only be populated on files with content stored in Drive."
|
951
|
+
},
|
952
|
+
"etag": {
|
953
|
+
"type": "string",
|
954
|
+
"description": "The ETag of the revision."
|
955
|
+
},
|
956
|
+
"exportLinks": {
|
957
|
+
"type": "object",
|
958
|
+
"description": "Links for exporting Google Docs to specific formats.",
|
959
|
+
"additionalProperties": {
|
960
|
+
"type": "string",
|
961
|
+
"description": "A mapping from export format to URL"
|
962
|
+
}
|
963
|
+
},
|
964
|
+
"fileSize": {
|
965
|
+
"type": "string",
|
966
|
+
"description": "The size of the revision in bytes. This will only be populated on files with content stored in Drive.",
|
967
|
+
"format": "int64"
|
968
|
+
},
|
969
|
+
"id": {
|
970
|
+
"type": "string",
|
971
|
+
"description": "The ID of the revision."
|
972
|
+
},
|
973
|
+
"kind": {
|
974
|
+
"type": "string",
|
975
|
+
"description": "This is always drive#revision.",
|
976
|
+
"default": "drive#revision"
|
977
|
+
},
|
978
|
+
"lastModifyingUserName": {
|
979
|
+
"type": "string",
|
980
|
+
"description": "Name of the last user to modify this revision."
|
981
|
+
},
|
982
|
+
"md5Checksum": {
|
983
|
+
"type": "string",
|
984
|
+
"description": "An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive."
|
985
|
+
},
|
986
|
+
"mimeType": {
|
987
|
+
"type": "string",
|
988
|
+
"description": "The MIME type of the revision."
|
989
|
+
},
|
990
|
+
"modifiedDate": {
|
991
|
+
"type": "string",
|
992
|
+
"description": "Last time this revision was modified (formatted RFC 3339 timestamp).",
|
993
|
+
"format": "date-time"
|
994
|
+
},
|
995
|
+
"originalFilename": {
|
996
|
+
"type": "string",
|
997
|
+
"description": "The original filename when this revision was created. This will only be populated on files with content stored in Drive."
|
998
|
+
},
|
999
|
+
"pinned": {
|
1000
|
+
"type": "boolean",
|
1001
|
+
"description": "Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter."
|
1002
|
+
},
|
1003
|
+
"publishAuto": {
|
1004
|
+
"type": "boolean",
|
1005
|
+
"description": "Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs."
|
1006
|
+
},
|
1007
|
+
"published": {
|
1008
|
+
"type": "boolean",
|
1009
|
+
"description": "Whether this revision is published. This is only populated and can only be modified for Google Docs."
|
1010
|
+
},
|
1011
|
+
"publishedLink": {
|
1012
|
+
"type": "string",
|
1013
|
+
"description": "A link to the published revision."
|
1014
|
+
},
|
1015
|
+
"publishedOutsideDomain": {
|
1016
|
+
"type": "boolean",
|
1017
|
+
"description": "Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs."
|
1018
|
+
},
|
1019
|
+
"selfLink": {
|
1020
|
+
"type": "string",
|
1021
|
+
"description": "A link back to this revision."
|
1022
|
+
}
|
1023
|
+
}
|
1024
|
+
},
|
1025
|
+
"RevisionList": {
|
1026
|
+
"id": "RevisionList",
|
1027
|
+
"type": "object",
|
1028
|
+
"description": "A list of revisions of a file.",
|
1029
|
+
"properties": {
|
1030
|
+
"etag": {
|
1031
|
+
"type": "string",
|
1032
|
+
"description": "The ETag of the list."
|
1033
|
+
},
|
1034
|
+
"items": {
|
1035
|
+
"type": "array",
|
1036
|
+
"description": "The actual list of revisions.",
|
1037
|
+
"items": {
|
1038
|
+
"$ref": "Revision"
|
1039
|
+
}
|
1040
|
+
},
|
1041
|
+
"kind": {
|
1042
|
+
"type": "string",
|
1043
|
+
"description": "This is always drive#revisionList.",
|
1044
|
+
"default": "drive#revisionList"
|
1045
|
+
},
|
1046
|
+
"selfLink": {
|
1047
|
+
"type": "string",
|
1048
|
+
"description": "A link back to this list."
|
1049
|
+
}
|
1050
|
+
}
|
1051
|
+
}
|
1052
|
+
},
|
1053
|
+
"resources": {
|
1054
|
+
"about": {
|
1055
|
+
"methods": {
|
1056
|
+
"get": {
|
1057
|
+
"id": "drive.about.get",
|
1058
|
+
"path": "about",
|
1059
|
+
"httpMethod": "GET",
|
1060
|
+
"description": "Gets the information about the current user along with Drive API settings",
|
1061
|
+
"parameters": {
|
1062
|
+
"includeSubscribed": {
|
1063
|
+
"type": "boolean",
|
1064
|
+
"description": "Whether to include subscribed items when calculating the number of remaining change IDs",
|
1065
|
+
"default": "true",
|
1066
|
+
"location": "query"
|
1067
|
+
},
|
1068
|
+
"maxChangeIdCount": {
|
1069
|
+
"type": "string",
|
1070
|
+
"description": "Maximum number of remaining change IDs to count",
|
1071
|
+
"default": "1",
|
1072
|
+
"format": "int64",
|
1073
|
+
"location": "query"
|
1074
|
+
},
|
1075
|
+
"startChangeId": {
|
1076
|
+
"type": "string",
|
1077
|
+
"description": "Change ID to start counting from when calculating number of remaining change IDs",
|
1078
|
+
"format": "int64",
|
1079
|
+
"location": "query"
|
1080
|
+
}
|
1081
|
+
},
|
1082
|
+
"response": {
|
1083
|
+
"$ref": "About"
|
1084
|
+
},
|
1085
|
+
"scopes": [
|
1086
|
+
"https://www.googleapis.com/auth/drive",
|
1087
|
+
"https://www.googleapis.com/auth/drive.file",
|
1088
|
+
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
1089
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
1090
|
+
]
|
1091
|
+
}
|
1092
|
+
}
|
1093
|
+
},
|
1094
|
+
"apps": {
|
1095
|
+
"methods": {
|
1096
|
+
"get": {
|
1097
|
+
"id": "drive.apps.get",
|
1098
|
+
"path": "apps/{appId}",
|
1099
|
+
"httpMethod": "GET",
|
1100
|
+
"description": "Gets a specific app.",
|
1101
|
+
"parameters": {
|
1102
|
+
"appId": {
|
1103
|
+
"type": "string",
|
1104
|
+
"description": "The ID of the app.",
|
1105
|
+
"required": true,
|
1106
|
+
"location": "path"
|
1107
|
+
}
|
1108
|
+
},
|
1109
|
+
"parameterOrder": [
|
1110
|
+
"appId"
|
1111
|
+
],
|
1112
|
+
"response": {
|
1113
|
+
"$ref": "App"
|
1114
|
+
},
|
1115
|
+
"scopes": [
|
1116
|
+
"https://www.googleapis.com/auth/drive.apps.readonly"
|
1117
|
+
]
|
1118
|
+
},
|
1119
|
+
"list": {
|
1120
|
+
"id": "drive.apps.list",
|
1121
|
+
"path": "apps",
|
1122
|
+
"httpMethod": "GET",
|
1123
|
+
"description": "Lists a user's apps.",
|
1124
|
+
"response": {
|
1125
|
+
"$ref": "AppList"
|
1126
|
+
},
|
1127
|
+
"scopes": [
|
1128
|
+
"https://www.googleapis.com/auth/drive.apps.readonly"
|
1129
|
+
]
|
1130
|
+
}
|
1131
|
+
}
|
1132
|
+
},
|
1133
|
+
"changes": {
|
1134
|
+
"methods": {
|
1135
|
+
"get": {
|
1136
|
+
"id": "drive.changes.get",
|
1137
|
+
"path": "changes/{changeId}",
|
1138
|
+
"httpMethod": "GET",
|
1139
|
+
"description": "Gets a specific change.",
|
1140
|
+
"parameters": {
|
1141
|
+
"changeId": {
|
1142
|
+
"type": "string",
|
1143
|
+
"description": "The ID of the change.",
|
1144
|
+
"required": true,
|
1145
|
+
"location": "path"
|
1146
|
+
}
|
1147
|
+
},
|
1148
|
+
"parameterOrder": [
|
1149
|
+
"changeId"
|
1150
|
+
],
|
1151
|
+
"response": {
|
1152
|
+
"$ref": "Change"
|
1153
|
+
},
|
1154
|
+
"scopes": [
|
1155
|
+
"https://www.googleapis.com/auth/drive",
|
1156
|
+
"https://www.googleapis.com/auth/drive.file",
|
1157
|
+
"https://www.googleapis.com/auth/drive.metadata.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 the changes for a user.",
|
1166
|
+
"parameters": {
|
1167
|
+
"includeDeleted": {
|
1168
|
+
"type": "boolean",
|
1169
|
+
"description": "Whether to include deleted items.",
|
1170
|
+
"default": "true",
|
1171
|
+
"location": "query"
|
1172
|
+
},
|
1173
|
+
"includeSubscribed": {
|
1174
|
+
"type": "boolean",
|
1175
|
+
"description": "Whether to include subscribed items.",
|
1176
|
+
"default": "true",
|
1177
|
+
"location": "query"
|
1178
|
+
},
|
1179
|
+
"maxResults": {
|
1180
|
+
"type": "integer",
|
1181
|
+
"description": "Maximum number of changes to return.",
|
1182
|
+
"default": "100",
|
1183
|
+
"format": "int32",
|
1184
|
+
"minimum": "0",
|
1185
|
+
"location": "query"
|
1186
|
+
},
|
1187
|
+
"pageToken": {
|
1188
|
+
"type": "string",
|
1189
|
+
"description": "Page token for changes.",
|
1190
|
+
"location": "query"
|
1191
|
+
},
|
1192
|
+
"startChangeId": {
|
1193
|
+
"type": "string",
|
1194
|
+
"description": "Change ID to start listing changes from.",
|
1195
|
+
"format": "int64",
|
1196
|
+
"location": "query"
|
1197
|
+
}
|
1198
|
+
},
|
1199
|
+
"response": {
|
1200
|
+
"$ref": "ChangeList"
|
1201
|
+
},
|
1202
|
+
"scopes": [
|
1203
|
+
"https://www.googleapis.com/auth/drive",
|
1204
|
+
"https://www.googleapis.com/auth/drive.file",
|
1205
|
+
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
1206
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
1207
|
+
]
|
1208
|
+
}
|
1209
|
+
}
|
1210
|
+
},
|
1211
|
+
"children": {
|
1212
|
+
"methods": {
|
1213
|
+
"delete": {
|
1214
|
+
"id": "drive.children.delete",
|
1215
|
+
"path": "files/{folderId}/children/{childId}",
|
1216
|
+
"httpMethod": "DELETE",
|
1217
|
+
"description": "Removes a child from a folder.",
|
1218
|
+
"parameters": {
|
1219
|
+
"childId": {
|
1220
|
+
"type": "string",
|
1221
|
+
"description": "The ID of the child.",
|
1222
|
+
"required": true,
|
1223
|
+
"location": "path"
|
1224
|
+
},
|
1225
|
+
"folderId": {
|
1226
|
+
"type": "string",
|
1227
|
+
"description": "The ID of the folder.",
|
1228
|
+
"required": true,
|
1229
|
+
"location": "path"
|
1230
|
+
}
|
1231
|
+
},
|
1232
|
+
"parameterOrder": [
|
1233
|
+
"folderId",
|
1234
|
+
"childId"
|
1235
|
+
],
|
1236
|
+
"scopes": [
|
1237
|
+
"https://www.googleapis.com/auth/drive",
|
1238
|
+
"https://www.googleapis.com/auth/drive.file"
|
1239
|
+
]
|
1240
|
+
},
|
1241
|
+
"get": {
|
1242
|
+
"id": "drive.children.get",
|
1243
|
+
"path": "files/{folderId}/children/{childId}",
|
1244
|
+
"httpMethod": "GET",
|
1245
|
+
"description": "Gets a specific child reference.",
|
1246
|
+
"parameters": {
|
1247
|
+
"childId": {
|
1248
|
+
"type": "string",
|
1249
|
+
"description": "The ID of the child.",
|
1250
|
+
"required": true,
|
1251
|
+
"location": "path"
|
1252
|
+
},
|
1253
|
+
"folderId": {
|
1254
|
+
"type": "string",
|
1255
|
+
"description": "The ID of the folder.",
|
1256
|
+
"required": true,
|
1257
|
+
"location": "path"
|
1258
|
+
}
|
1259
|
+
},
|
1260
|
+
"parameterOrder": [
|
1261
|
+
"folderId",
|
1262
|
+
"childId"
|
1263
|
+
],
|
1264
|
+
"response": {
|
1265
|
+
"$ref": "ChildReference"
|
1266
|
+
},
|
1267
|
+
"scopes": [
|
1268
|
+
"https://www.googleapis.com/auth/drive",
|
1269
|
+
"https://www.googleapis.com/auth/drive.file",
|
1270
|
+
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
1271
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
1272
|
+
]
|
1273
|
+
},
|
1274
|
+
"insert": {
|
1275
|
+
"id": "drive.children.insert",
|
1276
|
+
"path": "files/{folderId}/children",
|
1277
|
+
"httpMethod": "POST",
|
1278
|
+
"description": "Inserts a file into a folder.",
|
1279
|
+
"parameters": {
|
1280
|
+
"folderId": {
|
1281
|
+
"type": "string",
|
1282
|
+
"description": "The ID of the folder.",
|
1283
|
+
"required": true,
|
1284
|
+
"location": "path"
|
1285
|
+
}
|
1286
|
+
},
|
1287
|
+
"parameterOrder": [
|
1288
|
+
"folderId"
|
1289
|
+
],
|
1290
|
+
"request": {
|
1291
|
+
"$ref": "ChildReference"
|
1292
|
+
},
|
1293
|
+
"response": {
|
1294
|
+
"$ref": "ChildReference"
|
1295
|
+
},
|
1296
|
+
"scopes": [
|
1297
|
+
"https://www.googleapis.com/auth/drive",
|
1298
|
+
"https://www.googleapis.com/auth/drive.file"
|
1299
|
+
]
|
1300
|
+
},
|
1301
|
+
"list": {
|
1302
|
+
"id": "drive.children.list",
|
1303
|
+
"path": "files/{folderId}/children",
|
1304
|
+
"httpMethod": "GET",
|
1305
|
+
"description": "Lists a folder's children.",
|
1306
|
+
"parameters": {
|
1307
|
+
"folderId": {
|
1308
|
+
"type": "string",
|
1309
|
+
"description": "The ID of the folder.",
|
1310
|
+
"required": true,
|
1311
|
+
"location": "path"
|
1312
|
+
},
|
1313
|
+
"maxResults": {
|
1314
|
+
"type": "integer",
|
1315
|
+
"description": "Maximum number of children to return.",
|
1316
|
+
"default": "100",
|
1317
|
+
"format": "int32",
|
1318
|
+
"minimum": "0",
|
1319
|
+
"location": "query"
|
1320
|
+
},
|
1321
|
+
"pageToken": {
|
1322
|
+
"type": "string",
|
1323
|
+
"description": "Page token for children.",
|
1324
|
+
"location": "query"
|
1325
|
+
},
|
1326
|
+
"q": {
|
1327
|
+
"type": "string",
|
1328
|
+
"description": "Query string for searching children.",
|
1329
|
+
"location": "query"
|
1330
|
+
}
|
1331
|
+
},
|
1332
|
+
"parameterOrder": [
|
1333
|
+
"folderId"
|
1334
|
+
],
|
1335
|
+
"response": {
|
1336
|
+
"$ref": "ChildList"
|
1337
|
+
},
|
1338
|
+
"scopes": [
|
1339
|
+
"https://www.googleapis.com/auth/drive",
|
1340
|
+
"https://www.googleapis.com/auth/drive.file",
|
1341
|
+
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
1342
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
1343
|
+
]
|
1344
|
+
}
|
1345
|
+
}
|
1346
|
+
},
|
1347
|
+
"files": {
|
1348
|
+
"methods": {
|
1349
|
+
"copy": {
|
1350
|
+
"id": "drive.files.copy",
|
1351
|
+
"path": "files/{fileId}/copy",
|
1352
|
+
"httpMethod": "POST",
|
1353
|
+
"description": "Creates a copy of the specified file.",
|
1354
|
+
"parameters": {
|
1355
|
+
"convert": {
|
1356
|
+
"type": "boolean",
|
1357
|
+
"description": "Whether to convert this file to the corresponding Google Docs format.",
|
1358
|
+
"default": "false",
|
1359
|
+
"location": "query"
|
1360
|
+
},
|
1361
|
+
"fileId": {
|
1362
|
+
"type": "string",
|
1363
|
+
"description": "The ID of the file to copy.",
|
1364
|
+
"required": true,
|
1365
|
+
"location": "path"
|
1366
|
+
},
|
1367
|
+
"ocr": {
|
1368
|
+
"type": "boolean",
|
1369
|
+
"description": "Whether to attempt OCR on .jpg, .png, or .gif uploads.",
|
1370
|
+
"default": "false",
|
1371
|
+
"location": "query"
|
1372
|
+
},
|
1373
|
+
"ocrLanguage": {
|
1374
|
+
"type": "string",
|
1375
|
+
"description": "If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.",
|
1376
|
+
"location": "query"
|
1377
|
+
},
|
1378
|
+
"pinned": {
|
1379
|
+
"type": "boolean",
|
1380
|
+
"description": "Whether to pin the head revision of the new copy.",
|
1381
|
+
"default": "false",
|
1382
|
+
"location": "query"
|
1383
|
+
},
|
1384
|
+
"sourceLanguage": {
|
1385
|
+
"type": "string",
|
1386
|
+
"description": "The language of the original file to be translated.",
|
1387
|
+
"location": "query"
|
1388
|
+
},
|
1389
|
+
"targetLanguage": {
|
1390
|
+
"type": "string",
|
1391
|
+
"description": "Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.",
|
1392
|
+
"location": "query"
|
1393
|
+
},
|
1394
|
+
"timedTextLanguage": {
|
1395
|
+
"type": "string",
|
1396
|
+
"description": "The language of the timed text.",
|
1397
|
+
"location": "query"
|
1398
|
+
},
|
1399
|
+
"timedTextTrackName": {
|
1400
|
+
"type": "string",
|
1401
|
+
"description": "The timed text track name.",
|
1402
|
+
"location": "query"
|
1403
|
+
}
|
1404
|
+
},
|
1405
|
+
"parameterOrder": [
|
1406
|
+
"fileId"
|
1407
|
+
],
|
1408
|
+
"request": {
|
1409
|
+
"$ref": "File"
|
1410
|
+
},
|
1411
|
+
"response": {
|
1412
|
+
"$ref": "File"
|
1413
|
+
},
|
1414
|
+
"scopes": [
|
1415
|
+
"https://www.googleapis.com/auth/drive",
|
1416
|
+
"https://www.googleapis.com/auth/drive.file"
|
1417
|
+
]
|
1418
|
+
},
|
1419
|
+
"delete": {
|
1420
|
+
"id": "drive.files.delete",
|
1421
|
+
"path": "files/{fileId}",
|
1422
|
+
"httpMethod": "DELETE",
|
1423
|
+
"description": "Permanently deletes a file by ID. Skips the trash.",
|
1424
|
+
"parameters": {
|
1425
|
+
"fileId": {
|
1426
|
+
"type": "string",
|
1427
|
+
"description": "The ID of the file to delete.",
|
1428
|
+
"required": true,
|
1429
|
+
"location": "path"
|
1430
|
+
}
|
1431
|
+
},
|
1432
|
+
"parameterOrder": [
|
1433
|
+
"fileId"
|
1434
|
+
],
|
1435
|
+
"scopes": [
|
1436
|
+
"https://www.googleapis.com/auth/drive",
|
1437
|
+
"https://www.googleapis.com/auth/drive.file"
|
1438
|
+
]
|
1439
|
+
},
|
1440
|
+
"get": {
|
1441
|
+
"id": "drive.files.get",
|
1442
|
+
"path": "files/{fileId}",
|
1443
|
+
"httpMethod": "GET",
|
1444
|
+
"description": "Gets a file's metadata by ID.",
|
1445
|
+
"parameters": {
|
1446
|
+
"fileId": {
|
1447
|
+
"type": "string",
|
1448
|
+
"description": "The ID for the file in question.",
|
1449
|
+
"required": true,
|
1450
|
+
"location": "path"
|
1451
|
+
},
|
1452
|
+
"projection": {
|
1453
|
+
"type": "string",
|
1454
|
+
"description": "This parameter is deprecated and has no function.",
|
1455
|
+
"enum": [
|
1456
|
+
"BASIC",
|
1457
|
+
"FULL"
|
1458
|
+
],
|
1459
|
+
"enumDescriptions": [
|
1460
|
+
"Deprecated",
|
1461
|
+
"Deprecated"
|
1462
|
+
],
|
1463
|
+
"location": "query"
|
1464
|
+
},
|
1465
|
+
"updateViewedDate": {
|
1466
|
+
"type": "boolean",
|
1467
|
+
"description": "Whether to update the view date after successfully retrieving the file.",
|
1468
|
+
"default": "false",
|
1469
|
+
"location": "query"
|
1470
|
+
}
|
1471
|
+
},
|
1472
|
+
"parameterOrder": [
|
1473
|
+
"fileId"
|
1474
|
+
],
|
1475
|
+
"response": {
|
1476
|
+
"$ref": "File"
|
1477
|
+
},
|
1478
|
+
"scopes": [
|
1479
|
+
"https://www.googleapis.com/auth/drive",
|
1480
|
+
"https://www.googleapis.com/auth/drive.file",
|
1481
|
+
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
1482
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
1483
|
+
]
|
1484
|
+
},
|
1485
|
+
"insert": {
|
1486
|
+
"id": "drive.files.insert",
|
1487
|
+
"path": "files",
|
1488
|
+
"httpMethod": "POST",
|
1489
|
+
"description": "Insert a new file.",
|
1490
|
+
"parameters": {
|
1491
|
+
"convert": {
|
1492
|
+
"type": "boolean",
|
1493
|
+
"description": "Whether to convert this file to the corresponding Google Docs format.",
|
1494
|
+
"default": "false",
|
1495
|
+
"location": "query"
|
1496
|
+
},
|
1497
|
+
"ocr": {
|
1498
|
+
"type": "boolean",
|
1499
|
+
"description": "Whether to attempt OCR on .jpg, .png, or .gif uploads.",
|
1500
|
+
"default": "false",
|
1501
|
+
"location": "query"
|
1502
|
+
},
|
1503
|
+
"ocrLanguage": {
|
1504
|
+
"type": "string",
|
1505
|
+
"description": "If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.",
|
1506
|
+
"location": "query"
|
1507
|
+
},
|
1508
|
+
"pinned": {
|
1509
|
+
"type": "boolean",
|
1510
|
+
"description": "Whether to pin the head revision of the uploaded file.",
|
1511
|
+
"default": "false",
|
1512
|
+
"location": "query"
|
1513
|
+
},
|
1514
|
+
"sourceLanguage": {
|
1515
|
+
"type": "string",
|
1516
|
+
"description": "The language of the original file to be translated.",
|
1517
|
+
"location": "query"
|
1518
|
+
},
|
1519
|
+
"targetLanguage": {
|
1520
|
+
"type": "string",
|
1521
|
+
"description": "Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.",
|
1522
|
+
"location": "query"
|
1523
|
+
},
|
1524
|
+
"timedTextLanguage": {
|
1525
|
+
"type": "string",
|
1526
|
+
"description": "The language of the timed text.",
|
1527
|
+
"location": "query"
|
1528
|
+
},
|
1529
|
+
"timedTextTrackName": {
|
1530
|
+
"type": "string",
|
1531
|
+
"description": "The timed text track name.",
|
1532
|
+
"location": "query"
|
1533
|
+
}
|
1534
|
+
},
|
1535
|
+
"request": {
|
1536
|
+
"$ref": "File"
|
1537
|
+
},
|
1538
|
+
"response": {
|
1539
|
+
"$ref": "File"
|
1540
|
+
},
|
1541
|
+
"scopes": [
|
1542
|
+
"https://www.googleapis.com/auth/drive",
|
1543
|
+
"https://www.googleapis.com/auth/drive.file"
|
1544
|
+
],
|
1545
|
+
"supportsMediaUpload": true,
|
1546
|
+
"mediaUpload": {
|
1547
|
+
"accept": [
|
1548
|
+
"*/*"
|
1549
|
+
],
|
1550
|
+
"maxSize": "10GB",
|
1551
|
+
"protocols": {
|
1552
|
+
"simple": {
|
1553
|
+
"multipart": true,
|
1554
|
+
"path": "/upload/drive/v2/files"
|
1555
|
+
},
|
1556
|
+
"resumable": {
|
1557
|
+
"multipart": true,
|
1558
|
+
"path": "/resumable/upload/drive/v2/files"
|
1559
|
+
}
|
1560
|
+
}
|
1561
|
+
}
|
1562
|
+
},
|
1563
|
+
"list": {
|
1564
|
+
"id": "drive.files.list",
|
1565
|
+
"path": "files",
|
1566
|
+
"httpMethod": "GET",
|
1567
|
+
"description": "Lists the user's files.",
|
1568
|
+
"parameters": {
|
1569
|
+
"maxResults": {
|
1570
|
+
"type": "integer",
|
1571
|
+
"description": "Maximum number of files to return.",
|
1572
|
+
"default": "100",
|
1573
|
+
"format": "int32",
|
1574
|
+
"minimum": "0",
|
1575
|
+
"location": "query"
|
1576
|
+
},
|
1577
|
+
"pageToken": {
|
1578
|
+
"type": "string",
|
1579
|
+
"description": "Page token for files.",
|
1580
|
+
"location": "query"
|
1581
|
+
},
|
1582
|
+
"projection": {
|
1583
|
+
"type": "string",
|
1584
|
+
"description": "This parameter is deprecated and has no function.",
|
1585
|
+
"enum": [
|
1586
|
+
"BASIC",
|
1587
|
+
"FULL"
|
1588
|
+
],
|
1589
|
+
"enumDescriptions": [
|
1590
|
+
"Deprecated",
|
1591
|
+
"Deprecated"
|
1592
|
+
],
|
1593
|
+
"location": "query"
|
1594
|
+
},
|
1595
|
+
"q": {
|
1596
|
+
"type": "string",
|
1597
|
+
"description": "Query string for searching files.",
|
1598
|
+
"location": "query"
|
1599
|
+
}
|
1600
|
+
},
|
1601
|
+
"response": {
|
1602
|
+
"$ref": "FileList"
|
1603
|
+
},
|
1604
|
+
"scopes": [
|
1605
|
+
"https://www.googleapis.com/auth/drive",
|
1606
|
+
"https://www.googleapis.com/auth/drive.file",
|
1607
|
+
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
1608
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
1609
|
+
]
|
1610
|
+
},
|
1611
|
+
"patch": {
|
1612
|
+
"id": "drive.files.patch",
|
1613
|
+
"path": "files/{fileId}",
|
1614
|
+
"httpMethod": "PATCH",
|
1615
|
+
"description": "Updates file metadata and/or content. This method supports patch semantics.",
|
1616
|
+
"parameters": {
|
1617
|
+
"convert": {
|
1618
|
+
"type": "boolean",
|
1619
|
+
"description": "Whether to convert this file to the corresponding Google Docs format.",
|
1620
|
+
"default": "false",
|
1621
|
+
"location": "query"
|
1622
|
+
},
|
1623
|
+
"fileId": {
|
1624
|
+
"type": "string",
|
1625
|
+
"description": "The ID of the file to update.",
|
1626
|
+
"required": true,
|
1627
|
+
"location": "path"
|
1628
|
+
},
|
1629
|
+
"newRevision": {
|
1630
|
+
"type": "boolean",
|
1631
|
+
"description": "Whether a blob upload should create a new revision. If false, the blob data in the current head revision will be replaced.",
|
1632
|
+
"default": "true",
|
1633
|
+
"location": "query"
|
1634
|
+
},
|
1635
|
+
"ocr": {
|
1636
|
+
"type": "boolean",
|
1637
|
+
"description": "Whether to attempt OCR on .jpg, .png, or .gif uploads.",
|
1638
|
+
"default": "false",
|
1639
|
+
"location": "query"
|
1640
|
+
},
|
1641
|
+
"ocrLanguage": {
|
1642
|
+
"type": "string",
|
1643
|
+
"description": "If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.",
|
1644
|
+
"location": "query"
|
1645
|
+
},
|
1646
|
+
"pinned": {
|
1647
|
+
"type": "boolean",
|
1648
|
+
"description": "Whether to pin the new revision.",
|
1649
|
+
"default": "false",
|
1650
|
+
"location": "query"
|
1651
|
+
},
|
1652
|
+
"setModifiedDate": {
|
1653
|
+
"type": "boolean",
|
1654
|
+
"description": "Whether to set the modified date with the supplied modified date.",
|
1655
|
+
"default": "false",
|
1656
|
+
"location": "query"
|
1657
|
+
},
|
1658
|
+
"sourceLanguage": {
|
1659
|
+
"type": "string",
|
1660
|
+
"description": "The language of the original file to be translated.",
|
1661
|
+
"location": "query"
|
1662
|
+
},
|
1663
|
+
"targetLanguage": {
|
1664
|
+
"type": "string",
|
1665
|
+
"description": "Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.",
|
1666
|
+
"location": "query"
|
1667
|
+
},
|
1668
|
+
"timedTextLanguage": {
|
1669
|
+
"type": "string",
|
1670
|
+
"description": "The language of the timed text.",
|
1671
|
+
"location": "query"
|
1672
|
+
},
|
1673
|
+
"timedTextTrackName": {
|
1674
|
+
"type": "string",
|
1675
|
+
"description": "The timed text track name.",
|
1676
|
+
"location": "query"
|
1677
|
+
},
|
1678
|
+
"updateViewedDate": {
|
1679
|
+
"type": "boolean",
|
1680
|
+
"description": "Whether to update the view date after successfully updating the file.",
|
1681
|
+
"default": "true",
|
1682
|
+
"location": "query"
|
1683
|
+
}
|
1684
|
+
},
|
1685
|
+
"parameterOrder": [
|
1686
|
+
"fileId"
|
1687
|
+
],
|
1688
|
+
"request": {
|
1689
|
+
"$ref": "File"
|
1690
|
+
},
|
1691
|
+
"response": {
|
1692
|
+
"$ref": "File"
|
1693
|
+
},
|
1694
|
+
"scopes": [
|
1695
|
+
"https://www.googleapis.com/auth/drive",
|
1696
|
+
"https://www.googleapis.com/auth/drive.file"
|
1697
|
+
]
|
1698
|
+
},
|
1699
|
+
"touch": {
|
1700
|
+
"id": "drive.files.touch",
|
1701
|
+
"path": "files/{fileId}/touch",
|
1702
|
+
"httpMethod": "POST",
|
1703
|
+
"description": "Set the file's updated time to the current server time.",
|
1704
|
+
"parameters": {
|
1705
|
+
"fileId": {
|
1706
|
+
"type": "string",
|
1707
|
+
"description": "The ID of the file to update.",
|
1708
|
+
"required": true,
|
1709
|
+
"location": "path"
|
1710
|
+
}
|
1711
|
+
},
|
1712
|
+
"parameterOrder": [
|
1713
|
+
"fileId"
|
1714
|
+
],
|
1715
|
+
"response": {
|
1716
|
+
"$ref": "File"
|
1717
|
+
},
|
1718
|
+
"scopes": [
|
1719
|
+
"https://www.googleapis.com/auth/drive",
|
1720
|
+
"https://www.googleapis.com/auth/drive.file"
|
1721
|
+
]
|
1722
|
+
},
|
1723
|
+
"trash": {
|
1724
|
+
"id": "drive.files.trash",
|
1725
|
+
"path": "files/{fileId}/trash",
|
1726
|
+
"httpMethod": "POST",
|
1727
|
+
"description": "Moves a file to the trash.",
|
1728
|
+
"parameters": {
|
1729
|
+
"fileId": {
|
1730
|
+
"type": "string",
|
1731
|
+
"description": "The ID of the file to trash.",
|
1732
|
+
"required": true,
|
1733
|
+
"location": "path"
|
1734
|
+
}
|
1735
|
+
},
|
1736
|
+
"parameterOrder": [
|
1737
|
+
"fileId"
|
1738
|
+
],
|
1739
|
+
"response": {
|
1740
|
+
"$ref": "File"
|
1741
|
+
},
|
1742
|
+
"scopes": [
|
1743
|
+
"https://www.googleapis.com/auth/drive",
|
1744
|
+
"https://www.googleapis.com/auth/drive.file"
|
1745
|
+
]
|
1746
|
+
},
|
1747
|
+
"untrash": {
|
1748
|
+
"id": "drive.files.untrash",
|
1749
|
+
"path": "files/{fileId}/untrash",
|
1750
|
+
"httpMethod": "POST",
|
1751
|
+
"description": "Restores a file from the trash.",
|
1752
|
+
"parameters": {
|
1753
|
+
"fileId": {
|
1754
|
+
"type": "string",
|
1755
|
+
"description": "The ID of the file to untrash.",
|
1756
|
+
"required": true,
|
1757
|
+
"location": "path"
|
1758
|
+
}
|
1759
|
+
},
|
1760
|
+
"parameterOrder": [
|
1761
|
+
"fileId"
|
1762
|
+
],
|
1763
|
+
"response": {
|
1764
|
+
"$ref": "File"
|
1765
|
+
},
|
1766
|
+
"scopes": [
|
1767
|
+
"https://www.googleapis.com/auth/drive",
|
1768
|
+
"https://www.googleapis.com/auth/drive.file"
|
1769
|
+
]
|
1770
|
+
},
|
1771
|
+
"update": {
|
1772
|
+
"id": "drive.files.update",
|
1773
|
+
"path": "files/{fileId}",
|
1774
|
+
"httpMethod": "PUT",
|
1775
|
+
"description": "Updates file metadata and/or content",
|
1776
|
+
"parameters": {
|
1777
|
+
"convert": {
|
1778
|
+
"type": "boolean",
|
1779
|
+
"description": "Whether to convert this file to the corresponding Google Docs format.",
|
1780
|
+
"default": "false",
|
1781
|
+
"location": "query"
|
1782
|
+
},
|
1783
|
+
"fileId": {
|
1784
|
+
"type": "string",
|
1785
|
+
"description": "The ID of the file to update.",
|
1786
|
+
"required": true,
|
1787
|
+
"location": "path"
|
1788
|
+
},
|
1789
|
+
"newRevision": {
|
1790
|
+
"type": "boolean",
|
1791
|
+
"description": "Whether a blob upload should create a new revision. If false, the blob data in the current head revision will be replaced.",
|
1792
|
+
"default": "true",
|
1793
|
+
"location": "query"
|
1794
|
+
},
|
1795
|
+
"ocr": {
|
1796
|
+
"type": "boolean",
|
1797
|
+
"description": "Whether to attempt OCR on .jpg, .png, or .gif uploads.",
|
1798
|
+
"default": "false",
|
1799
|
+
"location": "query"
|
1800
|
+
},
|
1801
|
+
"ocrLanguage": {
|
1802
|
+
"type": "string",
|
1803
|
+
"description": "If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.",
|
1804
|
+
"location": "query"
|
1805
|
+
},
|
1806
|
+
"pinned": {
|
1807
|
+
"type": "boolean",
|
1808
|
+
"description": "Whether to pin the new revision.",
|
1809
|
+
"default": "false",
|
1810
|
+
"location": "query"
|
1811
|
+
},
|
1812
|
+
"setModifiedDate": {
|
1813
|
+
"type": "boolean",
|
1814
|
+
"description": "Whether to set the modified date with the supplied modified date.",
|
1815
|
+
"default": "false",
|
1816
|
+
"location": "query"
|
1817
|
+
},
|
1818
|
+
"sourceLanguage": {
|
1819
|
+
"type": "string",
|
1820
|
+
"description": "The language of the original file to be translated.",
|
1821
|
+
"location": "query"
|
1822
|
+
},
|
1823
|
+
"targetLanguage": {
|
1824
|
+
"type": "string",
|
1825
|
+
"description": "Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.",
|
1826
|
+
"location": "query"
|
1827
|
+
},
|
1828
|
+
"timedTextLanguage": {
|
1829
|
+
"type": "string",
|
1830
|
+
"description": "The language of the timed text.",
|
1831
|
+
"location": "query"
|
1832
|
+
},
|
1833
|
+
"timedTextTrackName": {
|
1834
|
+
"type": "string",
|
1835
|
+
"description": "The timed text track name.",
|
1836
|
+
"location": "query"
|
1837
|
+
},
|
1838
|
+
"updateViewedDate": {
|
1839
|
+
"type": "boolean",
|
1840
|
+
"description": "Whether to update the view date after successfully updating the file.",
|
1841
|
+
"default": "true",
|
1842
|
+
"location": "query"
|
1843
|
+
}
|
1844
|
+
},
|
1845
|
+
"parameterOrder": [
|
1846
|
+
"fileId"
|
1847
|
+
],
|
1848
|
+
"request": {
|
1849
|
+
"$ref": "File"
|
1850
|
+
},
|
1851
|
+
"response": {
|
1852
|
+
"$ref": "File"
|
1853
|
+
},
|
1854
|
+
"scopes": [
|
1855
|
+
"https://www.googleapis.com/auth/drive",
|
1856
|
+
"https://www.googleapis.com/auth/drive.file"
|
1857
|
+
],
|
1858
|
+
"supportsMediaUpload": true,
|
1859
|
+
"mediaUpload": {
|
1860
|
+
"accept": [
|
1861
|
+
"*/*"
|
1862
|
+
],
|
1863
|
+
"maxSize": "10GB",
|
1864
|
+
"protocols": {
|
1865
|
+
"simple": {
|
1866
|
+
"multipart": true,
|
1867
|
+
"path": "/upload/drive/v2/files/{fileId}"
|
1868
|
+
},
|
1869
|
+
"resumable": {
|
1870
|
+
"multipart": true,
|
1871
|
+
"path": "/resumable/upload/drive/v2/files/{fileId}"
|
1872
|
+
}
|
1873
|
+
}
|
1874
|
+
}
|
1875
|
+
}
|
1876
|
+
}
|
1877
|
+
},
|
1878
|
+
"parents": {
|
1879
|
+
"methods": {
|
1880
|
+
"delete": {
|
1881
|
+
"id": "drive.parents.delete",
|
1882
|
+
"path": "files/{fileId}/parents/{parentId}",
|
1883
|
+
"httpMethod": "DELETE",
|
1884
|
+
"description": "Removes a parent from a file.",
|
1885
|
+
"parameters": {
|
1886
|
+
"fileId": {
|
1887
|
+
"type": "string",
|
1888
|
+
"description": "The ID of the file.",
|
1889
|
+
"required": true,
|
1890
|
+
"location": "path"
|
1891
|
+
},
|
1892
|
+
"parentId": {
|
1893
|
+
"type": "string",
|
1894
|
+
"description": "The ID of the parent.",
|
1895
|
+
"required": true,
|
1896
|
+
"location": "path"
|
1897
|
+
}
|
1898
|
+
},
|
1899
|
+
"parameterOrder": [
|
1900
|
+
"fileId",
|
1901
|
+
"parentId"
|
1902
|
+
],
|
1903
|
+
"scopes": [
|
1904
|
+
"https://www.googleapis.com/auth/drive",
|
1905
|
+
"https://www.googleapis.com/auth/drive.file"
|
1906
|
+
]
|
1907
|
+
},
|
1908
|
+
"get": {
|
1909
|
+
"id": "drive.parents.get",
|
1910
|
+
"path": "files/{fileId}/parents/{parentId}",
|
1911
|
+
"httpMethod": "GET",
|
1912
|
+
"description": "Gets a specific parent reference.",
|
1913
|
+
"parameters": {
|
1914
|
+
"fileId": {
|
1915
|
+
"type": "string",
|
1916
|
+
"description": "The ID of the file.",
|
1917
|
+
"required": true,
|
1918
|
+
"location": "path"
|
1919
|
+
},
|
1920
|
+
"parentId": {
|
1921
|
+
"type": "string",
|
1922
|
+
"description": "The ID of the parent.",
|
1923
|
+
"required": true,
|
1924
|
+
"location": "path"
|
1925
|
+
}
|
1926
|
+
},
|
1927
|
+
"parameterOrder": [
|
1928
|
+
"fileId",
|
1929
|
+
"parentId"
|
1930
|
+
],
|
1931
|
+
"response": {
|
1932
|
+
"$ref": "ParentReference"
|
1933
|
+
},
|
1934
|
+
"scopes": [
|
1935
|
+
"https://www.googleapis.com/auth/drive",
|
1936
|
+
"https://www.googleapis.com/auth/drive.file",
|
1937
|
+
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
1938
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
1939
|
+
]
|
1940
|
+
},
|
1941
|
+
"insert": {
|
1942
|
+
"id": "drive.parents.insert",
|
1943
|
+
"path": "files/{fileId}/parents",
|
1944
|
+
"httpMethod": "POST",
|
1945
|
+
"description": "Adds a parent folder for a file.",
|
1946
|
+
"parameters": {
|
1947
|
+
"fileId": {
|
1948
|
+
"type": "string",
|
1949
|
+
"description": "The ID of the file.",
|
1950
|
+
"required": true,
|
1951
|
+
"location": "path"
|
1952
|
+
}
|
1953
|
+
},
|
1954
|
+
"parameterOrder": [
|
1955
|
+
"fileId"
|
1956
|
+
],
|
1957
|
+
"request": {
|
1958
|
+
"$ref": "ParentReference"
|
1959
|
+
},
|
1960
|
+
"response": {
|
1961
|
+
"$ref": "ParentReference"
|
1962
|
+
},
|
1963
|
+
"scopes": [
|
1964
|
+
"https://www.googleapis.com/auth/drive",
|
1965
|
+
"https://www.googleapis.com/auth/drive.file"
|
1966
|
+
]
|
1967
|
+
},
|
1968
|
+
"list": {
|
1969
|
+
"id": "drive.parents.list",
|
1970
|
+
"path": "files/{fileId}/parents",
|
1971
|
+
"httpMethod": "GET",
|
1972
|
+
"description": "Lists a file's parents.",
|
1973
|
+
"parameters": {
|
1974
|
+
"fileId": {
|
1975
|
+
"type": "string",
|
1976
|
+
"description": "The ID of the file.",
|
1977
|
+
"required": true,
|
1978
|
+
"location": "path"
|
1979
|
+
}
|
1980
|
+
},
|
1981
|
+
"parameterOrder": [
|
1982
|
+
"fileId"
|
1983
|
+
],
|
1984
|
+
"response": {
|
1985
|
+
"$ref": "ParentList"
|
1986
|
+
},
|
1987
|
+
"scopes": [
|
1988
|
+
"https://www.googleapis.com/auth/drive",
|
1989
|
+
"https://www.googleapis.com/auth/drive.file",
|
1990
|
+
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
1991
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
1992
|
+
]
|
1993
|
+
}
|
1994
|
+
}
|
1995
|
+
},
|
1996
|
+
"permissions": {
|
1997
|
+
"methods": {
|
1998
|
+
"delete": {
|
1999
|
+
"id": "drive.permissions.delete",
|
2000
|
+
"path": "files/{fileId}/permissions/{permissionId}",
|
2001
|
+
"httpMethod": "DELETE",
|
2002
|
+
"description": "Deletes a permission from a file.",
|
2003
|
+
"parameters": {
|
2004
|
+
"fileId": {
|
2005
|
+
"type": "string",
|
2006
|
+
"description": "The ID for the file.",
|
2007
|
+
"required": true,
|
2008
|
+
"location": "path"
|
2009
|
+
},
|
2010
|
+
"permissionId": {
|
2011
|
+
"type": "string",
|
2012
|
+
"description": "The ID for the permission.",
|
2013
|
+
"required": true,
|
2014
|
+
"location": "path"
|
2015
|
+
}
|
2016
|
+
},
|
2017
|
+
"parameterOrder": [
|
2018
|
+
"fileId",
|
2019
|
+
"permissionId"
|
2020
|
+
],
|
2021
|
+
"scopes": [
|
2022
|
+
"https://www.googleapis.com/auth/drive",
|
2023
|
+
"https://www.googleapis.com/auth/drive.file"
|
2024
|
+
]
|
2025
|
+
},
|
2026
|
+
"get": {
|
2027
|
+
"id": "drive.permissions.get",
|
2028
|
+
"path": "files/{fileId}/permissions/{permissionId}",
|
2029
|
+
"httpMethod": "GET",
|
2030
|
+
"description": "Gets a permission by ID.",
|
2031
|
+
"parameters": {
|
2032
|
+
"fileId": {
|
2033
|
+
"type": "string",
|
2034
|
+
"description": "The ID for the file.",
|
2035
|
+
"required": true,
|
2036
|
+
"location": "path"
|
2037
|
+
},
|
2038
|
+
"permissionId": {
|
2039
|
+
"type": "string",
|
2040
|
+
"description": "The ID for the permission.",
|
2041
|
+
"required": true,
|
2042
|
+
"location": "path"
|
2043
|
+
}
|
2044
|
+
},
|
2045
|
+
"parameterOrder": [
|
2046
|
+
"fileId",
|
2047
|
+
"permissionId"
|
2048
|
+
],
|
2049
|
+
"response": {
|
2050
|
+
"$ref": "Permission"
|
2051
|
+
},
|
2052
|
+
"scopes": [
|
2053
|
+
"https://www.googleapis.com/auth/drive",
|
2054
|
+
"https://www.googleapis.com/auth/drive.file",
|
2055
|
+
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
2056
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
2057
|
+
]
|
2058
|
+
},
|
2059
|
+
"insert": {
|
2060
|
+
"id": "drive.permissions.insert",
|
2061
|
+
"path": "files/{fileId}/permissions",
|
2062
|
+
"httpMethod": "POST",
|
2063
|
+
"description": "Inserts a permission for a file.",
|
2064
|
+
"parameters": {
|
2065
|
+
"fileId": {
|
2066
|
+
"type": "string",
|
2067
|
+
"description": "The ID for the file.",
|
2068
|
+
"required": true,
|
2069
|
+
"location": "path"
|
2070
|
+
},
|
2071
|
+
"sendNotificationEmails": {
|
2072
|
+
"type": "boolean",
|
2073
|
+
"description": "Whether to send notification emails.",
|
2074
|
+
"default": "true",
|
2075
|
+
"location": "query"
|
2076
|
+
}
|
2077
|
+
},
|
2078
|
+
"parameterOrder": [
|
2079
|
+
"fileId"
|
2080
|
+
],
|
2081
|
+
"request": {
|
2082
|
+
"$ref": "Permission"
|
2083
|
+
},
|
2084
|
+
"response": {
|
2085
|
+
"$ref": "Permission"
|
2086
|
+
},
|
2087
|
+
"scopes": [
|
2088
|
+
"https://www.googleapis.com/auth/drive",
|
2089
|
+
"https://www.googleapis.com/auth/drive.file"
|
2090
|
+
]
|
2091
|
+
},
|
2092
|
+
"list": {
|
2093
|
+
"id": "drive.permissions.list",
|
2094
|
+
"path": "files/{fileId}/permissions",
|
2095
|
+
"httpMethod": "GET",
|
2096
|
+
"description": "Lists a file's permissions.",
|
2097
|
+
"parameters": {
|
2098
|
+
"fileId": {
|
2099
|
+
"type": "string",
|
2100
|
+
"description": "The ID for the file.",
|
2101
|
+
"required": true,
|
2102
|
+
"location": "path"
|
2103
|
+
}
|
2104
|
+
},
|
2105
|
+
"parameterOrder": [
|
2106
|
+
"fileId"
|
2107
|
+
],
|
2108
|
+
"response": {
|
2109
|
+
"$ref": "PermissionList"
|
2110
|
+
},
|
2111
|
+
"scopes": [
|
2112
|
+
"https://www.googleapis.com/auth/drive",
|
2113
|
+
"https://www.googleapis.com/auth/drive.file",
|
2114
|
+
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
2115
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
2116
|
+
]
|
2117
|
+
},
|
2118
|
+
"patch": {
|
2119
|
+
"id": "drive.permissions.patch",
|
2120
|
+
"path": "files/{fileId}/permissions/{permissionId}",
|
2121
|
+
"httpMethod": "PATCH",
|
2122
|
+
"description": "Updates a permission. This method supports patch semantics.",
|
2123
|
+
"parameters": {
|
2124
|
+
"fileId": {
|
2125
|
+
"type": "string",
|
2126
|
+
"description": "The ID for the file.",
|
2127
|
+
"required": true,
|
2128
|
+
"location": "path"
|
2129
|
+
},
|
2130
|
+
"permissionId": {
|
2131
|
+
"type": "string",
|
2132
|
+
"description": "The ID for the permission.",
|
2133
|
+
"required": true,
|
2134
|
+
"location": "path"
|
2135
|
+
}
|
2136
|
+
},
|
2137
|
+
"parameterOrder": [
|
2138
|
+
"fileId",
|
2139
|
+
"permissionId"
|
2140
|
+
],
|
2141
|
+
"request": {
|
2142
|
+
"$ref": "Permission"
|
2143
|
+
},
|
2144
|
+
"response": {
|
2145
|
+
"$ref": "Permission"
|
2146
|
+
},
|
2147
|
+
"scopes": [
|
2148
|
+
"https://www.googleapis.com/auth/drive",
|
2149
|
+
"https://www.googleapis.com/auth/drive.file"
|
2150
|
+
]
|
2151
|
+
},
|
2152
|
+
"update": {
|
2153
|
+
"id": "drive.permissions.update",
|
2154
|
+
"path": "files/{fileId}/permissions/{permissionId}",
|
2155
|
+
"httpMethod": "PUT",
|
2156
|
+
"description": "Updates a permission.",
|
2157
|
+
"parameters": {
|
2158
|
+
"fileId": {
|
2159
|
+
"type": "string",
|
2160
|
+
"description": "The ID for the file.",
|
2161
|
+
"required": true,
|
2162
|
+
"location": "path"
|
2163
|
+
},
|
2164
|
+
"permissionId": {
|
2165
|
+
"type": "string",
|
2166
|
+
"description": "The ID for the permission.",
|
2167
|
+
"required": true,
|
2168
|
+
"location": "path"
|
2169
|
+
}
|
2170
|
+
},
|
2171
|
+
"parameterOrder": [
|
2172
|
+
"fileId",
|
2173
|
+
"permissionId"
|
2174
|
+
],
|
2175
|
+
"request": {
|
2176
|
+
"$ref": "Permission"
|
2177
|
+
},
|
2178
|
+
"response": {
|
2179
|
+
"$ref": "Permission"
|
2180
|
+
},
|
2181
|
+
"scopes": [
|
2182
|
+
"https://www.googleapis.com/auth/drive",
|
2183
|
+
"https://www.googleapis.com/auth/drive.file"
|
2184
|
+
]
|
2185
|
+
}
|
2186
|
+
}
|
2187
|
+
},
|
2188
|
+
"revisions": {
|
2189
|
+
"methods": {
|
2190
|
+
"delete": {
|
2191
|
+
"id": "drive.revisions.delete",
|
2192
|
+
"path": "files/{fileId}/revisions/{revisionId}",
|
2193
|
+
"httpMethod": "DELETE",
|
2194
|
+
"description": "Removes a revision.",
|
2195
|
+
"parameters": {
|
2196
|
+
"fileId": {
|
2197
|
+
"type": "string",
|
2198
|
+
"description": "The ID of the file.",
|
2199
|
+
"required": true,
|
2200
|
+
"location": "path"
|
2201
|
+
},
|
2202
|
+
"revisionId": {
|
2203
|
+
"type": "string",
|
2204
|
+
"description": "The ID of the revision.",
|
2205
|
+
"required": true,
|
2206
|
+
"location": "path"
|
2207
|
+
}
|
2208
|
+
},
|
2209
|
+
"parameterOrder": [
|
2210
|
+
"fileId",
|
2211
|
+
"revisionId"
|
2212
|
+
],
|
2213
|
+
"scopes": [
|
2214
|
+
"https://www.googleapis.com/auth/drive",
|
2215
|
+
"https://www.googleapis.com/auth/drive.file"
|
2216
|
+
]
|
2217
|
+
},
|
2218
|
+
"get": {
|
2219
|
+
"id": "drive.revisions.get",
|
2220
|
+
"path": "files/{fileId}/revisions/{revisionId}",
|
2221
|
+
"httpMethod": "GET",
|
2222
|
+
"description": "Gets a specific revision.",
|
2223
|
+
"parameters": {
|
2224
|
+
"fileId": {
|
2225
|
+
"type": "string",
|
2226
|
+
"description": "The ID of the file.",
|
2227
|
+
"required": true,
|
2228
|
+
"location": "path"
|
2229
|
+
},
|
2230
|
+
"revisionId": {
|
2231
|
+
"type": "string",
|
2232
|
+
"description": "The ID of the revision.",
|
2233
|
+
"required": true,
|
2234
|
+
"location": "path"
|
2235
|
+
}
|
2236
|
+
},
|
2237
|
+
"parameterOrder": [
|
2238
|
+
"fileId",
|
2239
|
+
"revisionId"
|
2240
|
+
],
|
2241
|
+
"response": {
|
2242
|
+
"$ref": "Revision"
|
2243
|
+
},
|
2244
|
+
"scopes": [
|
2245
|
+
"https://www.googleapis.com/auth/drive",
|
2246
|
+
"https://www.googleapis.com/auth/drive.file",
|
2247
|
+
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
2248
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
2249
|
+
]
|
2250
|
+
},
|
2251
|
+
"list": {
|
2252
|
+
"id": "drive.revisions.list",
|
2253
|
+
"path": "files/{fileId}/revisions",
|
2254
|
+
"httpMethod": "GET",
|
2255
|
+
"description": "Lists a file's revisions.",
|
2256
|
+
"parameters": {
|
2257
|
+
"fileId": {
|
2258
|
+
"type": "string",
|
2259
|
+
"description": "The ID of the file.",
|
2260
|
+
"required": true,
|
2261
|
+
"location": "path"
|
2262
|
+
}
|
2263
|
+
},
|
2264
|
+
"parameterOrder": [
|
2265
|
+
"fileId"
|
2266
|
+
],
|
2267
|
+
"response": {
|
2268
|
+
"$ref": "RevisionList"
|
2269
|
+
},
|
2270
|
+
"scopes": [
|
2271
|
+
"https://www.googleapis.com/auth/drive",
|
2272
|
+
"https://www.googleapis.com/auth/drive.file",
|
2273
|
+
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
2274
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
2275
|
+
]
|
2276
|
+
},
|
2277
|
+
"patch": {
|
2278
|
+
"id": "drive.revisions.patch",
|
2279
|
+
"path": "files/{fileId}/revisions/{revisionId}",
|
2280
|
+
"httpMethod": "PATCH",
|
2281
|
+
"description": "Updates a revision. This method supports patch semantics.",
|
2282
|
+
"parameters": {
|
2283
|
+
"fileId": {
|
2284
|
+
"type": "string",
|
2285
|
+
"description": "The ID for the file.",
|
2286
|
+
"required": true,
|
2287
|
+
"location": "path"
|
2288
|
+
},
|
2289
|
+
"revisionId": {
|
2290
|
+
"type": "string",
|
2291
|
+
"description": "The ID for the revision.",
|
2292
|
+
"required": true,
|
2293
|
+
"location": "path"
|
2294
|
+
}
|
2295
|
+
},
|
2296
|
+
"parameterOrder": [
|
2297
|
+
"fileId",
|
2298
|
+
"revisionId"
|
2299
|
+
],
|
2300
|
+
"request": {
|
2301
|
+
"$ref": "Revision"
|
2302
|
+
},
|
2303
|
+
"response": {
|
2304
|
+
"$ref": "Revision"
|
2305
|
+
},
|
2306
|
+
"scopes": [
|
2307
|
+
"https://www.googleapis.com/auth/drive",
|
2308
|
+
"https://www.googleapis.com/auth/drive.file"
|
2309
|
+
]
|
2310
|
+
},
|
2311
|
+
"update": {
|
2312
|
+
"id": "drive.revisions.update",
|
2313
|
+
"path": "files/{fileId}/revisions/{revisionId}",
|
2314
|
+
"httpMethod": "PUT",
|
2315
|
+
"description": "Updates a revision.",
|
2316
|
+
"parameters": {
|
2317
|
+
"fileId": {
|
2318
|
+
"type": "string",
|
2319
|
+
"description": "The ID for the file.",
|
2320
|
+
"required": true,
|
2321
|
+
"location": "path"
|
2322
|
+
},
|
2323
|
+
"revisionId": {
|
2324
|
+
"type": "string",
|
2325
|
+
"description": "The ID for the revision.",
|
2326
|
+
"required": true,
|
2327
|
+
"location": "path"
|
2328
|
+
}
|
2329
|
+
},
|
2330
|
+
"parameterOrder": [
|
2331
|
+
"fileId",
|
2332
|
+
"revisionId"
|
2333
|
+
],
|
2334
|
+
"request": {
|
2335
|
+
"$ref": "Revision"
|
2336
|
+
},
|
2337
|
+
"response": {
|
2338
|
+
"$ref": "Revision"
|
2339
|
+
},
|
2340
|
+
"scopes": [
|
2341
|
+
"https://www.googleapis.com/auth/drive",
|
2342
|
+
"https://www.googleapis.com/auth/drive.file"
|
2343
|
+
]
|
2344
|
+
}
|
2345
|
+
}
|
2346
|
+
}
|
2347
|
+
}
|
2348
|
+
}
|