@maxim_mazurok/gapi.client.drive-v2 0.0.20220731
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +4354 -0
- package/package.json +20 -0
- package/readme.md +462 -0
- package/tests.ts +2758 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/tests.ts
ADDED
|
@@ -0,0 +1,2758 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.drive-v2 definition tests */
|
|
2
|
+
// IMPORTANT
|
|
3
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
+
|
|
6
|
+
// Revision: 20220731
|
|
7
|
+
|
|
8
|
+
gapi.load('client', async () => {
|
|
9
|
+
/** now we can use gapi.client */
|
|
10
|
+
|
|
11
|
+
await gapi.client.load('https://www.googleapis.com/discovery/v1/apis/drive/v2/rest');
|
|
12
|
+
/** now we can use gapi.client.drive */
|
|
13
|
+
|
|
14
|
+
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
+
/** declare client_id registered in Google Developers Console */
|
|
16
|
+
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
+
const scope = [
|
|
18
|
+
/** See, edit, create, and delete all of your Google Drive files */
|
|
19
|
+
'https://www.googleapis.com/auth/drive',
|
|
20
|
+
/** See, create, and delete its own configuration data in your Google Drive */
|
|
21
|
+
'https://www.googleapis.com/auth/drive.appdata',
|
|
22
|
+
/** View your Google Drive apps */
|
|
23
|
+
'https://www.googleapis.com/auth/drive.apps.readonly',
|
|
24
|
+
/** See, edit, create, and delete only the specific Google Drive files you use with this app */
|
|
25
|
+
'https://www.googleapis.com/auth/drive.file',
|
|
26
|
+
/** View and manage metadata of files in your Google Drive */
|
|
27
|
+
'https://www.googleapis.com/auth/drive.metadata',
|
|
28
|
+
/** See information about your Google Drive files */
|
|
29
|
+
'https://www.googleapis.com/auth/drive.metadata.readonly',
|
|
30
|
+
/** View the photos, videos and albums in your Google Photos */
|
|
31
|
+
'https://www.googleapis.com/auth/drive.photos.readonly',
|
|
32
|
+
/** See and download all your Google Drive files */
|
|
33
|
+
'https://www.googleapis.com/auth/drive.readonly',
|
|
34
|
+
/** Modify your Google Apps Script scripts' behavior */
|
|
35
|
+
'https://www.googleapis.com/auth/drive.scripts',
|
|
36
|
+
];
|
|
37
|
+
const immediate = false;
|
|
38
|
+
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
39
|
+
if (authResult && !authResult.error) {
|
|
40
|
+
/** handle successful authorization */
|
|
41
|
+
run();
|
|
42
|
+
} else {
|
|
43
|
+
/** handle authorization error */
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
async function run() {
|
|
48
|
+
/** Gets the information about the current user along with Drive API settings */
|
|
49
|
+
await gapi.client.drive.about.get({
|
|
50
|
+
includeSubscribed: true,
|
|
51
|
+
maxChangeIdCount: "Test string",
|
|
52
|
+
startChangeId: "Test string",
|
|
53
|
+
});
|
|
54
|
+
/** Gets a specific app. */
|
|
55
|
+
await gapi.client.drive.apps.get({
|
|
56
|
+
appId: "Test string",
|
|
57
|
+
});
|
|
58
|
+
/** Lists a user's installed apps. */
|
|
59
|
+
await gapi.client.drive.apps.list({
|
|
60
|
+
appFilterExtensions: "Test string",
|
|
61
|
+
appFilterMimeTypes: "Test string",
|
|
62
|
+
languageCode: "Test string",
|
|
63
|
+
});
|
|
64
|
+
/** Deprecated - Use changes.getStartPageToken and changes.list to retrieve recent changes. */
|
|
65
|
+
await gapi.client.drive.changes.get({
|
|
66
|
+
changeId: "Test string",
|
|
67
|
+
driveId: "Test string",
|
|
68
|
+
supportsAllDrives: true,
|
|
69
|
+
supportsTeamDrives: true,
|
|
70
|
+
teamDriveId: "Test string",
|
|
71
|
+
});
|
|
72
|
+
/** Gets the starting pageToken for listing future changes. */
|
|
73
|
+
await gapi.client.drive.changes.getStartPageToken({
|
|
74
|
+
driveId: "Test string",
|
|
75
|
+
supportsAllDrives: true,
|
|
76
|
+
supportsTeamDrives: true,
|
|
77
|
+
teamDriveId: "Test string",
|
|
78
|
+
});
|
|
79
|
+
/** Lists the changes for a user or shared drive. */
|
|
80
|
+
await gapi.client.drive.changes.list({
|
|
81
|
+
driveId: "Test string",
|
|
82
|
+
includeCorpusRemovals: true,
|
|
83
|
+
includeDeleted: true,
|
|
84
|
+
includeItemsFromAllDrives: true,
|
|
85
|
+
includeLabels: "Test string",
|
|
86
|
+
includePermissionsForView: "Test string",
|
|
87
|
+
includeSubscribed: true,
|
|
88
|
+
includeTeamDriveItems: true,
|
|
89
|
+
maxResults: 42,
|
|
90
|
+
pageToken: "Test string",
|
|
91
|
+
spaces: "Test string",
|
|
92
|
+
startChangeId: "Test string",
|
|
93
|
+
supportsAllDrives: true,
|
|
94
|
+
supportsTeamDrives: true,
|
|
95
|
+
teamDriveId: "Test string",
|
|
96
|
+
});
|
|
97
|
+
/** Subscribe to changes for a user. */
|
|
98
|
+
await gapi.client.drive.changes.watch({
|
|
99
|
+
driveId: "Test string",
|
|
100
|
+
includeCorpusRemovals: true,
|
|
101
|
+
includeDeleted: true,
|
|
102
|
+
includeItemsFromAllDrives: true,
|
|
103
|
+
includeLabels: "Test string",
|
|
104
|
+
includePermissionsForView: "Test string",
|
|
105
|
+
includeSubscribed: true,
|
|
106
|
+
includeTeamDriveItems: true,
|
|
107
|
+
maxResults: 42,
|
|
108
|
+
pageToken: "Test string",
|
|
109
|
+
spaces: "Test string",
|
|
110
|
+
startChangeId: "Test string",
|
|
111
|
+
supportsAllDrives: true,
|
|
112
|
+
supportsTeamDrives: true,
|
|
113
|
+
teamDriveId: "Test string",
|
|
114
|
+
}, {
|
|
115
|
+
address: "Test string",
|
|
116
|
+
expiration: "Test string",
|
|
117
|
+
id: "Test string",
|
|
118
|
+
kind: "Test string",
|
|
119
|
+
params: {
|
|
120
|
+
A: "Test string"
|
|
121
|
+
},
|
|
122
|
+
payload: true,
|
|
123
|
+
resourceId: "Test string",
|
|
124
|
+
resourceUri: "Test string",
|
|
125
|
+
token: "Test string",
|
|
126
|
+
type: "Test string",
|
|
127
|
+
});
|
|
128
|
+
/** Stop watching resources through this channel */
|
|
129
|
+
await gapi.client.drive.channels.stop({} , {
|
|
130
|
+
address: "Test string",
|
|
131
|
+
expiration: "Test string",
|
|
132
|
+
id: "Test string",
|
|
133
|
+
kind: "Test string",
|
|
134
|
+
params: {
|
|
135
|
+
A: "Test string"
|
|
136
|
+
},
|
|
137
|
+
payload: true,
|
|
138
|
+
resourceId: "Test string",
|
|
139
|
+
resourceUri: "Test string",
|
|
140
|
+
token: "Test string",
|
|
141
|
+
type: "Test string",
|
|
142
|
+
});
|
|
143
|
+
/** Removes a child from a folder. */
|
|
144
|
+
await gapi.client.drive.children.delete({
|
|
145
|
+
childId: "Test string",
|
|
146
|
+
enforceSingleParent: true,
|
|
147
|
+
folderId: "Test string",
|
|
148
|
+
});
|
|
149
|
+
/** Gets a specific child reference. */
|
|
150
|
+
await gapi.client.drive.children.get({
|
|
151
|
+
childId: "Test string",
|
|
152
|
+
folderId: "Test string",
|
|
153
|
+
});
|
|
154
|
+
/** Inserts a file into a folder. */
|
|
155
|
+
await gapi.client.drive.children.insert({
|
|
156
|
+
enforceSingleParent: true,
|
|
157
|
+
folderId: "Test string",
|
|
158
|
+
supportsAllDrives: true,
|
|
159
|
+
supportsTeamDrives: true,
|
|
160
|
+
}, {
|
|
161
|
+
childLink: "Test string",
|
|
162
|
+
id: "Test string",
|
|
163
|
+
kind: "Test string",
|
|
164
|
+
selfLink: "Test string",
|
|
165
|
+
});
|
|
166
|
+
/** Lists a folder's children. */
|
|
167
|
+
await gapi.client.drive.children.list({
|
|
168
|
+
folderId: "Test string",
|
|
169
|
+
maxResults: 42,
|
|
170
|
+
orderBy: "Test string",
|
|
171
|
+
pageToken: "Test string",
|
|
172
|
+
q: "Test string",
|
|
173
|
+
});
|
|
174
|
+
/** Deletes a comment. */
|
|
175
|
+
await gapi.client.drive.comments.delete({
|
|
176
|
+
commentId: "Test string",
|
|
177
|
+
fileId: "Test string",
|
|
178
|
+
});
|
|
179
|
+
/** Gets a comment by ID. */
|
|
180
|
+
await gapi.client.drive.comments.get({
|
|
181
|
+
commentId: "Test string",
|
|
182
|
+
fileId: "Test string",
|
|
183
|
+
includeDeleted: true,
|
|
184
|
+
});
|
|
185
|
+
/** Creates a new comment on the given file. */
|
|
186
|
+
await gapi.client.drive.comments.insert({
|
|
187
|
+
fileId: "Test string",
|
|
188
|
+
}, {
|
|
189
|
+
anchor: "Test string",
|
|
190
|
+
author: {
|
|
191
|
+
displayName: "Test string",
|
|
192
|
+
emailAddress: "Test string",
|
|
193
|
+
isAuthenticatedUser: true,
|
|
194
|
+
kind: "Test string",
|
|
195
|
+
permissionId: "Test string",
|
|
196
|
+
picture: {
|
|
197
|
+
url: "Test string",
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
commentId: "Test string",
|
|
201
|
+
content: "Test string",
|
|
202
|
+
context: {
|
|
203
|
+
type: "Test string",
|
|
204
|
+
value: "Test string",
|
|
205
|
+
},
|
|
206
|
+
createdDate: "Test string",
|
|
207
|
+
deleted: true,
|
|
208
|
+
fileId: "Test string",
|
|
209
|
+
fileTitle: "Test string",
|
|
210
|
+
htmlContent: "Test string",
|
|
211
|
+
kind: "Test string",
|
|
212
|
+
modifiedDate: "Test string",
|
|
213
|
+
replies: [
|
|
214
|
+
{
|
|
215
|
+
author: {
|
|
216
|
+
displayName: "Test string",
|
|
217
|
+
emailAddress: "Test string",
|
|
218
|
+
isAuthenticatedUser: true,
|
|
219
|
+
kind: "Test string",
|
|
220
|
+
permissionId: "Test string",
|
|
221
|
+
picture: {
|
|
222
|
+
url: "Test string",
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
content: "Test string",
|
|
226
|
+
createdDate: "Test string",
|
|
227
|
+
deleted: true,
|
|
228
|
+
htmlContent: "Test string",
|
|
229
|
+
kind: "Test string",
|
|
230
|
+
modifiedDate: "Test string",
|
|
231
|
+
replyId: "Test string",
|
|
232
|
+
verb: "Test string",
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
selfLink: "Test string",
|
|
236
|
+
status: "Test string",
|
|
237
|
+
});
|
|
238
|
+
/** Lists a file's comments. */
|
|
239
|
+
await gapi.client.drive.comments.list({
|
|
240
|
+
fileId: "Test string",
|
|
241
|
+
includeDeleted: true,
|
|
242
|
+
maxResults: 42,
|
|
243
|
+
pageToken: "Test string",
|
|
244
|
+
updatedMin: "Test string",
|
|
245
|
+
});
|
|
246
|
+
/** Updates an existing comment. */
|
|
247
|
+
await gapi.client.drive.comments.patch({
|
|
248
|
+
commentId: "Test string",
|
|
249
|
+
fileId: "Test string",
|
|
250
|
+
}, {
|
|
251
|
+
anchor: "Test string",
|
|
252
|
+
author: {
|
|
253
|
+
displayName: "Test string",
|
|
254
|
+
emailAddress: "Test string",
|
|
255
|
+
isAuthenticatedUser: true,
|
|
256
|
+
kind: "Test string",
|
|
257
|
+
permissionId: "Test string",
|
|
258
|
+
picture: {
|
|
259
|
+
url: "Test string",
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
commentId: "Test string",
|
|
263
|
+
content: "Test string",
|
|
264
|
+
context: {
|
|
265
|
+
type: "Test string",
|
|
266
|
+
value: "Test string",
|
|
267
|
+
},
|
|
268
|
+
createdDate: "Test string",
|
|
269
|
+
deleted: true,
|
|
270
|
+
fileId: "Test string",
|
|
271
|
+
fileTitle: "Test string",
|
|
272
|
+
htmlContent: "Test string",
|
|
273
|
+
kind: "Test string",
|
|
274
|
+
modifiedDate: "Test string",
|
|
275
|
+
replies: [
|
|
276
|
+
{
|
|
277
|
+
author: {
|
|
278
|
+
displayName: "Test string",
|
|
279
|
+
emailAddress: "Test string",
|
|
280
|
+
isAuthenticatedUser: true,
|
|
281
|
+
kind: "Test string",
|
|
282
|
+
permissionId: "Test string",
|
|
283
|
+
picture: {
|
|
284
|
+
url: "Test string",
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
content: "Test string",
|
|
288
|
+
createdDate: "Test string",
|
|
289
|
+
deleted: true,
|
|
290
|
+
htmlContent: "Test string",
|
|
291
|
+
kind: "Test string",
|
|
292
|
+
modifiedDate: "Test string",
|
|
293
|
+
replyId: "Test string",
|
|
294
|
+
verb: "Test string",
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
selfLink: "Test string",
|
|
298
|
+
status: "Test string",
|
|
299
|
+
});
|
|
300
|
+
/** Updates an existing comment. */
|
|
301
|
+
await gapi.client.drive.comments.update({
|
|
302
|
+
commentId: "Test string",
|
|
303
|
+
fileId: "Test string",
|
|
304
|
+
}, {
|
|
305
|
+
anchor: "Test string",
|
|
306
|
+
author: {
|
|
307
|
+
displayName: "Test string",
|
|
308
|
+
emailAddress: "Test string",
|
|
309
|
+
isAuthenticatedUser: true,
|
|
310
|
+
kind: "Test string",
|
|
311
|
+
permissionId: "Test string",
|
|
312
|
+
picture: {
|
|
313
|
+
url: "Test string",
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
commentId: "Test string",
|
|
317
|
+
content: "Test string",
|
|
318
|
+
context: {
|
|
319
|
+
type: "Test string",
|
|
320
|
+
value: "Test string",
|
|
321
|
+
},
|
|
322
|
+
createdDate: "Test string",
|
|
323
|
+
deleted: true,
|
|
324
|
+
fileId: "Test string",
|
|
325
|
+
fileTitle: "Test string",
|
|
326
|
+
htmlContent: "Test string",
|
|
327
|
+
kind: "Test string",
|
|
328
|
+
modifiedDate: "Test string",
|
|
329
|
+
replies: [
|
|
330
|
+
{
|
|
331
|
+
author: {
|
|
332
|
+
displayName: "Test string",
|
|
333
|
+
emailAddress: "Test string",
|
|
334
|
+
isAuthenticatedUser: true,
|
|
335
|
+
kind: "Test string",
|
|
336
|
+
permissionId: "Test string",
|
|
337
|
+
picture: {
|
|
338
|
+
url: "Test string",
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
content: "Test string",
|
|
342
|
+
createdDate: "Test string",
|
|
343
|
+
deleted: true,
|
|
344
|
+
htmlContent: "Test string",
|
|
345
|
+
kind: "Test string",
|
|
346
|
+
modifiedDate: "Test string",
|
|
347
|
+
replyId: "Test string",
|
|
348
|
+
verb: "Test string",
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
selfLink: "Test string",
|
|
352
|
+
status: "Test string",
|
|
353
|
+
});
|
|
354
|
+
/** Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items. */
|
|
355
|
+
await gapi.client.drive.drives.delete({
|
|
356
|
+
allowItemDeletion: true,
|
|
357
|
+
driveId: "Test string",
|
|
358
|
+
useDomainAdminAccess: true,
|
|
359
|
+
});
|
|
360
|
+
/** Gets a shared drive's metadata by ID. */
|
|
361
|
+
await gapi.client.drive.drives.get({
|
|
362
|
+
driveId: "Test string",
|
|
363
|
+
useDomainAdminAccess: true,
|
|
364
|
+
});
|
|
365
|
+
/** Hides a shared drive from the default view. */
|
|
366
|
+
await gapi.client.drive.drives.hide({
|
|
367
|
+
driveId: "Test string",
|
|
368
|
+
});
|
|
369
|
+
/** Creates a new shared drive. */
|
|
370
|
+
await gapi.client.drive.drives.insert({
|
|
371
|
+
requestId: "Test string",
|
|
372
|
+
}, {
|
|
373
|
+
backgroundImageFile: {
|
|
374
|
+
id: "Test string",
|
|
375
|
+
width: 42,
|
|
376
|
+
xCoordinate: 42,
|
|
377
|
+
yCoordinate: 42,
|
|
378
|
+
},
|
|
379
|
+
backgroundImageLink: "Test string",
|
|
380
|
+
capabilities: {
|
|
381
|
+
canAddChildren: true,
|
|
382
|
+
canChangeCopyRequiresWriterPermissionRestriction: true,
|
|
383
|
+
canChangeDomainUsersOnlyRestriction: true,
|
|
384
|
+
canChangeDriveBackground: true,
|
|
385
|
+
canChangeDriveMembersOnlyRestriction: true,
|
|
386
|
+
canComment: true,
|
|
387
|
+
canCopy: true,
|
|
388
|
+
canDeleteChildren: true,
|
|
389
|
+
canDeleteDrive: true,
|
|
390
|
+
canDownload: true,
|
|
391
|
+
canEdit: true,
|
|
392
|
+
canListChildren: true,
|
|
393
|
+
canManageMembers: true,
|
|
394
|
+
canReadRevisions: true,
|
|
395
|
+
canRename: true,
|
|
396
|
+
canRenameDrive: true,
|
|
397
|
+
canResetDriveRestrictions: true,
|
|
398
|
+
canShare: true,
|
|
399
|
+
canTrashChildren: true,
|
|
400
|
+
},
|
|
401
|
+
colorRgb: "Test string",
|
|
402
|
+
createdDate: "Test string",
|
|
403
|
+
hidden: true,
|
|
404
|
+
id: "Test string",
|
|
405
|
+
kind: "Test string",
|
|
406
|
+
name: "Test string",
|
|
407
|
+
orgUnitId: "Test string",
|
|
408
|
+
restrictions: {
|
|
409
|
+
adminManagedRestrictions: true,
|
|
410
|
+
copyRequiresWriterPermission: true,
|
|
411
|
+
domainUsersOnly: true,
|
|
412
|
+
driveMembersOnly: true,
|
|
413
|
+
},
|
|
414
|
+
themeId: "Test string",
|
|
415
|
+
});
|
|
416
|
+
/** Lists the user's shared drives. */
|
|
417
|
+
await gapi.client.drive.drives.list({
|
|
418
|
+
maxResults: 42,
|
|
419
|
+
pageToken: "Test string",
|
|
420
|
+
q: "Test string",
|
|
421
|
+
useDomainAdminAccess: true,
|
|
422
|
+
});
|
|
423
|
+
/** Restores a shared drive to the default view. */
|
|
424
|
+
await gapi.client.drive.drives.unhide({
|
|
425
|
+
driveId: "Test string",
|
|
426
|
+
});
|
|
427
|
+
/** Updates the metadata for a shared drive. */
|
|
428
|
+
await gapi.client.drive.drives.update({
|
|
429
|
+
driveId: "Test string",
|
|
430
|
+
useDomainAdminAccess: true,
|
|
431
|
+
}, {
|
|
432
|
+
backgroundImageFile: {
|
|
433
|
+
id: "Test string",
|
|
434
|
+
width: 42,
|
|
435
|
+
xCoordinate: 42,
|
|
436
|
+
yCoordinate: 42,
|
|
437
|
+
},
|
|
438
|
+
backgroundImageLink: "Test string",
|
|
439
|
+
capabilities: {
|
|
440
|
+
canAddChildren: true,
|
|
441
|
+
canChangeCopyRequiresWriterPermissionRestriction: true,
|
|
442
|
+
canChangeDomainUsersOnlyRestriction: true,
|
|
443
|
+
canChangeDriveBackground: true,
|
|
444
|
+
canChangeDriveMembersOnlyRestriction: true,
|
|
445
|
+
canComment: true,
|
|
446
|
+
canCopy: true,
|
|
447
|
+
canDeleteChildren: true,
|
|
448
|
+
canDeleteDrive: true,
|
|
449
|
+
canDownload: true,
|
|
450
|
+
canEdit: true,
|
|
451
|
+
canListChildren: true,
|
|
452
|
+
canManageMembers: true,
|
|
453
|
+
canReadRevisions: true,
|
|
454
|
+
canRename: true,
|
|
455
|
+
canRenameDrive: true,
|
|
456
|
+
canResetDriveRestrictions: true,
|
|
457
|
+
canShare: true,
|
|
458
|
+
canTrashChildren: true,
|
|
459
|
+
},
|
|
460
|
+
colorRgb: "Test string",
|
|
461
|
+
createdDate: "Test string",
|
|
462
|
+
hidden: true,
|
|
463
|
+
id: "Test string",
|
|
464
|
+
kind: "Test string",
|
|
465
|
+
name: "Test string",
|
|
466
|
+
orgUnitId: "Test string",
|
|
467
|
+
restrictions: {
|
|
468
|
+
adminManagedRestrictions: true,
|
|
469
|
+
copyRequiresWriterPermission: true,
|
|
470
|
+
domainUsersOnly: true,
|
|
471
|
+
driveMembersOnly: true,
|
|
472
|
+
},
|
|
473
|
+
themeId: "Test string",
|
|
474
|
+
});
|
|
475
|
+
/** Creates a copy of the specified file. Folders cannot be copied. */
|
|
476
|
+
await gapi.client.drive.files.copy({
|
|
477
|
+
convert: true,
|
|
478
|
+
enforceSingleParent: true,
|
|
479
|
+
fileId: "Test string",
|
|
480
|
+
includeLabels: "Test string",
|
|
481
|
+
includePermissionsForView: "Test string",
|
|
482
|
+
ocr: true,
|
|
483
|
+
ocrLanguage: "Test string",
|
|
484
|
+
pinned: true,
|
|
485
|
+
supportsAllDrives: true,
|
|
486
|
+
supportsTeamDrives: true,
|
|
487
|
+
timedTextLanguage: "Test string",
|
|
488
|
+
timedTextTrackName: "Test string",
|
|
489
|
+
visibility: "Test string",
|
|
490
|
+
}, {
|
|
491
|
+
alternateLink: "Test string",
|
|
492
|
+
appDataContents: true,
|
|
493
|
+
canComment: true,
|
|
494
|
+
canReadRevisions: true,
|
|
495
|
+
capabilities: {
|
|
496
|
+
canAcceptOwnership: true,
|
|
497
|
+
canAddChildren: true,
|
|
498
|
+
canAddFolderFromAnotherDrive: true,
|
|
499
|
+
canAddMyDriveParent: true,
|
|
500
|
+
canChangeCopyRequiresWriterPermission: true,
|
|
501
|
+
canChangeRestrictedDownload: true,
|
|
502
|
+
canChangeSecurityUpdateEnabled: true,
|
|
503
|
+
canComment: true,
|
|
504
|
+
canCopy: true,
|
|
505
|
+
canDelete: true,
|
|
506
|
+
canDeleteChildren: true,
|
|
507
|
+
canDownload: true,
|
|
508
|
+
canEdit: true,
|
|
509
|
+
canListChildren: true,
|
|
510
|
+
canModifyContent: true,
|
|
511
|
+
canModifyContentRestriction: true,
|
|
512
|
+
canModifyLabels: true,
|
|
513
|
+
canMoveChildrenOutOfDrive: true,
|
|
514
|
+
canMoveChildrenOutOfTeamDrive: true,
|
|
515
|
+
canMoveChildrenWithinDrive: true,
|
|
516
|
+
canMoveChildrenWithinTeamDrive: true,
|
|
517
|
+
canMoveItemIntoTeamDrive: true,
|
|
518
|
+
canMoveItemOutOfDrive: true,
|
|
519
|
+
canMoveItemOutOfTeamDrive: true,
|
|
520
|
+
canMoveItemWithinDrive: true,
|
|
521
|
+
canMoveItemWithinTeamDrive: true,
|
|
522
|
+
canMoveTeamDriveItem: true,
|
|
523
|
+
canReadDrive: true,
|
|
524
|
+
canReadLabels: true,
|
|
525
|
+
canReadRevisions: true,
|
|
526
|
+
canReadTeamDrive: true,
|
|
527
|
+
canRemoveChildren: true,
|
|
528
|
+
canRemoveMyDriveParent: true,
|
|
529
|
+
canRename: true,
|
|
530
|
+
canShare: true,
|
|
531
|
+
canTrash: true,
|
|
532
|
+
canTrashChildren: true,
|
|
533
|
+
canUntrash: true,
|
|
534
|
+
},
|
|
535
|
+
contentRestrictions: [
|
|
536
|
+
{
|
|
537
|
+
readOnly: true,
|
|
538
|
+
reason: "Test string",
|
|
539
|
+
restrictingUser: {
|
|
540
|
+
displayName: "Test string",
|
|
541
|
+
emailAddress: "Test string",
|
|
542
|
+
isAuthenticatedUser: true,
|
|
543
|
+
kind: "Test string",
|
|
544
|
+
permissionId: "Test string",
|
|
545
|
+
picture: {
|
|
546
|
+
url: "Test string",
|
|
547
|
+
},
|
|
548
|
+
},
|
|
549
|
+
restrictionDate: "Test string",
|
|
550
|
+
type: "Test string",
|
|
551
|
+
}
|
|
552
|
+
],
|
|
553
|
+
copyable: true,
|
|
554
|
+
copyRequiresWriterPermission: true,
|
|
555
|
+
createdDate: "Test string",
|
|
556
|
+
defaultOpenWithLink: "Test string",
|
|
557
|
+
description: "Test string",
|
|
558
|
+
downloadUrl: "Test string",
|
|
559
|
+
driveId: "Test string",
|
|
560
|
+
editable: true,
|
|
561
|
+
embedLink: "Test string",
|
|
562
|
+
etag: "Test string",
|
|
563
|
+
explicitlyTrashed: true,
|
|
564
|
+
exportLinks: {
|
|
565
|
+
A: "Test string"
|
|
566
|
+
},
|
|
567
|
+
fileExtension: "Test string",
|
|
568
|
+
fileSize: "Test string",
|
|
569
|
+
folderColorRgb: "Test string",
|
|
570
|
+
fullFileExtension: "Test string",
|
|
571
|
+
hasAugmentedPermissions: true,
|
|
572
|
+
hasThumbnail: true,
|
|
573
|
+
headRevisionId: "Test string",
|
|
574
|
+
iconLink: "Test string",
|
|
575
|
+
id: "Test string",
|
|
576
|
+
imageMediaMetadata: {
|
|
577
|
+
aperture: 42,
|
|
578
|
+
cameraMake: "Test string",
|
|
579
|
+
cameraModel: "Test string",
|
|
580
|
+
colorSpace: "Test string",
|
|
581
|
+
date: "Test string",
|
|
582
|
+
exposureBias: 42,
|
|
583
|
+
exposureMode: "Test string",
|
|
584
|
+
exposureTime: 42,
|
|
585
|
+
flashUsed: true,
|
|
586
|
+
focalLength: 42,
|
|
587
|
+
height: 42,
|
|
588
|
+
isoSpeed: 42,
|
|
589
|
+
lens: "Test string",
|
|
590
|
+
location: {
|
|
591
|
+
altitude: 42,
|
|
592
|
+
latitude: 42,
|
|
593
|
+
longitude: 42,
|
|
594
|
+
},
|
|
595
|
+
maxApertureValue: 42,
|
|
596
|
+
meteringMode: "Test string",
|
|
597
|
+
rotation: 42,
|
|
598
|
+
sensor: "Test string",
|
|
599
|
+
subjectDistance: 42,
|
|
600
|
+
whiteBalance: "Test string",
|
|
601
|
+
width: 42,
|
|
602
|
+
},
|
|
603
|
+
indexableText: {
|
|
604
|
+
text: "Test string",
|
|
605
|
+
},
|
|
606
|
+
isAppAuthorized: true,
|
|
607
|
+
kind: "Test string",
|
|
608
|
+
labelInfo: {
|
|
609
|
+
labels: [
|
|
610
|
+
{
|
|
611
|
+
fields: {
|
|
612
|
+
A: {
|
|
613
|
+
dateString: [
|
|
614
|
+
"Test string"
|
|
615
|
+
],
|
|
616
|
+
id: "Test string",
|
|
617
|
+
integer: [
|
|
618
|
+
"Test string"
|
|
619
|
+
],
|
|
620
|
+
kind: "Test string",
|
|
621
|
+
selection: [
|
|
622
|
+
"Test string"
|
|
623
|
+
],
|
|
624
|
+
text: [
|
|
625
|
+
"Test string"
|
|
626
|
+
],
|
|
627
|
+
user: [
|
|
628
|
+
{
|
|
629
|
+
displayName: "Test string",
|
|
630
|
+
emailAddress: "Test string",
|
|
631
|
+
isAuthenticatedUser: true,
|
|
632
|
+
kind: "Test string",
|
|
633
|
+
permissionId: "Test string",
|
|
634
|
+
picture: {
|
|
635
|
+
url: "Test string",
|
|
636
|
+
},
|
|
637
|
+
}
|
|
638
|
+
],
|
|
639
|
+
valueType: "Test string",
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
id: "Test string",
|
|
643
|
+
kind: "Test string",
|
|
644
|
+
revisionId: "Test string",
|
|
645
|
+
}
|
|
646
|
+
],
|
|
647
|
+
},
|
|
648
|
+
labels: {
|
|
649
|
+
hidden: true,
|
|
650
|
+
modified: true,
|
|
651
|
+
restricted: true,
|
|
652
|
+
starred: true,
|
|
653
|
+
trashed: true,
|
|
654
|
+
viewed: true,
|
|
655
|
+
},
|
|
656
|
+
lastModifyingUser: {
|
|
657
|
+
displayName: "Test string",
|
|
658
|
+
emailAddress: "Test string",
|
|
659
|
+
isAuthenticatedUser: true,
|
|
660
|
+
kind: "Test string",
|
|
661
|
+
permissionId: "Test string",
|
|
662
|
+
picture: {
|
|
663
|
+
url: "Test string",
|
|
664
|
+
},
|
|
665
|
+
},
|
|
666
|
+
lastModifyingUserName: "Test string",
|
|
667
|
+
lastViewedByMeDate: "Test string",
|
|
668
|
+
linkShareMetadata: {
|
|
669
|
+
securityUpdateEligible: true,
|
|
670
|
+
securityUpdateEnabled: true,
|
|
671
|
+
},
|
|
672
|
+
markedViewedByMeDate: "Test string",
|
|
673
|
+
md5Checksum: "Test string",
|
|
674
|
+
mimeType: "Test string",
|
|
675
|
+
modifiedByMeDate: "Test string",
|
|
676
|
+
modifiedDate: "Test string",
|
|
677
|
+
openWithLinks: {
|
|
678
|
+
A: "Test string"
|
|
679
|
+
},
|
|
680
|
+
originalFilename: "Test string",
|
|
681
|
+
ownedByMe: true,
|
|
682
|
+
ownerNames: [
|
|
683
|
+
"Test string"
|
|
684
|
+
],
|
|
685
|
+
owners: [
|
|
686
|
+
{
|
|
687
|
+
displayName: "Test string",
|
|
688
|
+
emailAddress: "Test string",
|
|
689
|
+
isAuthenticatedUser: true,
|
|
690
|
+
kind: "Test string",
|
|
691
|
+
permissionId: "Test string",
|
|
692
|
+
picture: {
|
|
693
|
+
url: "Test string",
|
|
694
|
+
},
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
parents: [
|
|
698
|
+
{
|
|
699
|
+
id: "Test string",
|
|
700
|
+
isRoot: true,
|
|
701
|
+
kind: "Test string",
|
|
702
|
+
parentLink: "Test string",
|
|
703
|
+
selfLink: "Test string",
|
|
704
|
+
}
|
|
705
|
+
],
|
|
706
|
+
permissionIds: [
|
|
707
|
+
"Test string"
|
|
708
|
+
],
|
|
709
|
+
permissions: [
|
|
710
|
+
{
|
|
711
|
+
additionalRoles: [
|
|
712
|
+
"Test string"
|
|
713
|
+
],
|
|
714
|
+
authKey: "Test string",
|
|
715
|
+
deleted: true,
|
|
716
|
+
domain: "Test string",
|
|
717
|
+
emailAddress: "Test string",
|
|
718
|
+
etag: "Test string",
|
|
719
|
+
expirationDate: "Test string",
|
|
720
|
+
id: "Test string",
|
|
721
|
+
kind: "Test string",
|
|
722
|
+
name: "Test string",
|
|
723
|
+
pendingOwner: true,
|
|
724
|
+
permissionDetails: [
|
|
725
|
+
{
|
|
726
|
+
additionalRoles: [
|
|
727
|
+
"Test string"
|
|
728
|
+
],
|
|
729
|
+
inherited: true,
|
|
730
|
+
inheritedFrom: "Test string",
|
|
731
|
+
permissionType: "Test string",
|
|
732
|
+
role: "Test string",
|
|
733
|
+
}
|
|
734
|
+
],
|
|
735
|
+
photoLink: "Test string",
|
|
736
|
+
role: "Test string",
|
|
737
|
+
selfLink: "Test string",
|
|
738
|
+
teamDrivePermissionDetails: [
|
|
739
|
+
{
|
|
740
|
+
additionalRoles: [
|
|
741
|
+
"Test string"
|
|
742
|
+
],
|
|
743
|
+
inherited: true,
|
|
744
|
+
inheritedFrom: "Test string",
|
|
745
|
+
role: "Test string",
|
|
746
|
+
teamDrivePermissionType: "Test string",
|
|
747
|
+
}
|
|
748
|
+
],
|
|
749
|
+
type: "Test string",
|
|
750
|
+
value: "Test string",
|
|
751
|
+
view: "Test string",
|
|
752
|
+
withLink: true,
|
|
753
|
+
}
|
|
754
|
+
],
|
|
755
|
+
properties: [
|
|
756
|
+
{
|
|
757
|
+
etag: "Test string",
|
|
758
|
+
key: "Test string",
|
|
759
|
+
kind: "Test string",
|
|
760
|
+
selfLink: "Test string",
|
|
761
|
+
value: "Test string",
|
|
762
|
+
visibility: "Test string",
|
|
763
|
+
}
|
|
764
|
+
],
|
|
765
|
+
quotaBytesUsed: "Test string",
|
|
766
|
+
resourceKey: "Test string",
|
|
767
|
+
selfLink: "Test string",
|
|
768
|
+
shareable: true,
|
|
769
|
+
shared: true,
|
|
770
|
+
sharedWithMeDate: "Test string",
|
|
771
|
+
sharingUser: {
|
|
772
|
+
displayName: "Test string",
|
|
773
|
+
emailAddress: "Test string",
|
|
774
|
+
isAuthenticatedUser: true,
|
|
775
|
+
kind: "Test string",
|
|
776
|
+
permissionId: "Test string",
|
|
777
|
+
picture: {
|
|
778
|
+
url: "Test string",
|
|
779
|
+
},
|
|
780
|
+
},
|
|
781
|
+
shortcutDetails: {
|
|
782
|
+
targetId: "Test string",
|
|
783
|
+
targetMimeType: "Test string",
|
|
784
|
+
targetResourceKey: "Test string",
|
|
785
|
+
},
|
|
786
|
+
spaces: [
|
|
787
|
+
"Test string"
|
|
788
|
+
],
|
|
789
|
+
teamDriveId: "Test string",
|
|
790
|
+
thumbnail: {
|
|
791
|
+
image: "Test string",
|
|
792
|
+
mimeType: "Test string",
|
|
793
|
+
},
|
|
794
|
+
thumbnailLink: "Test string",
|
|
795
|
+
thumbnailVersion: "Test string",
|
|
796
|
+
title: "Test string",
|
|
797
|
+
trashedDate: "Test string",
|
|
798
|
+
trashingUser: {
|
|
799
|
+
displayName: "Test string",
|
|
800
|
+
emailAddress: "Test string",
|
|
801
|
+
isAuthenticatedUser: true,
|
|
802
|
+
kind: "Test string",
|
|
803
|
+
permissionId: "Test string",
|
|
804
|
+
picture: {
|
|
805
|
+
url: "Test string",
|
|
806
|
+
},
|
|
807
|
+
},
|
|
808
|
+
userPermission: {
|
|
809
|
+
additionalRoles: [
|
|
810
|
+
"Test string"
|
|
811
|
+
],
|
|
812
|
+
authKey: "Test string",
|
|
813
|
+
deleted: true,
|
|
814
|
+
domain: "Test string",
|
|
815
|
+
emailAddress: "Test string",
|
|
816
|
+
etag: "Test string",
|
|
817
|
+
expirationDate: "Test string",
|
|
818
|
+
id: "Test string",
|
|
819
|
+
kind: "Test string",
|
|
820
|
+
name: "Test string",
|
|
821
|
+
pendingOwner: true,
|
|
822
|
+
permissionDetails: [
|
|
823
|
+
{
|
|
824
|
+
additionalRoles: [
|
|
825
|
+
"Test string"
|
|
826
|
+
],
|
|
827
|
+
inherited: true,
|
|
828
|
+
inheritedFrom: "Test string",
|
|
829
|
+
permissionType: "Test string",
|
|
830
|
+
role: "Test string",
|
|
831
|
+
}
|
|
832
|
+
],
|
|
833
|
+
photoLink: "Test string",
|
|
834
|
+
role: "Test string",
|
|
835
|
+
selfLink: "Test string",
|
|
836
|
+
teamDrivePermissionDetails: [
|
|
837
|
+
{
|
|
838
|
+
additionalRoles: [
|
|
839
|
+
"Test string"
|
|
840
|
+
],
|
|
841
|
+
inherited: true,
|
|
842
|
+
inheritedFrom: "Test string",
|
|
843
|
+
role: "Test string",
|
|
844
|
+
teamDrivePermissionType: "Test string",
|
|
845
|
+
}
|
|
846
|
+
],
|
|
847
|
+
type: "Test string",
|
|
848
|
+
value: "Test string",
|
|
849
|
+
view: "Test string",
|
|
850
|
+
withLink: true,
|
|
851
|
+
},
|
|
852
|
+
version: "Test string",
|
|
853
|
+
videoMediaMetadata: {
|
|
854
|
+
durationMillis: "Test string",
|
|
855
|
+
height: 42,
|
|
856
|
+
width: 42,
|
|
857
|
+
},
|
|
858
|
+
webContentLink: "Test string",
|
|
859
|
+
webViewLink: "Test string",
|
|
860
|
+
writersCanShare: true,
|
|
861
|
+
});
|
|
862
|
+
/** Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for shared drive files. */
|
|
863
|
+
await gapi.client.drive.files.delete({
|
|
864
|
+
enforceSingleParent: true,
|
|
865
|
+
fileId: "Test string",
|
|
866
|
+
supportsAllDrives: true,
|
|
867
|
+
supportsTeamDrives: true,
|
|
868
|
+
});
|
|
869
|
+
/** Permanently deletes all of the user's trashed files. */
|
|
870
|
+
await gapi.client.drive.files.emptyTrash({
|
|
871
|
+
enforceSingleParent: true,
|
|
872
|
+
});
|
|
873
|
+
/** Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB. */
|
|
874
|
+
await gapi.client.drive.files.export({
|
|
875
|
+
fileId: "Test string",
|
|
876
|
+
mimeType: "Test string",
|
|
877
|
+
});
|
|
878
|
+
/** Generates a set of file IDs which can be provided in insert or copy requests. */
|
|
879
|
+
await gapi.client.drive.files.generateIds({
|
|
880
|
+
maxResults: 42,
|
|
881
|
+
space: "Test string",
|
|
882
|
+
type: "Test string",
|
|
883
|
+
});
|
|
884
|
+
/** Gets a file's metadata or content by ID. */
|
|
885
|
+
await gapi.client.drive.files.get({
|
|
886
|
+
acknowledgeAbuse: true,
|
|
887
|
+
fileId: "Test string",
|
|
888
|
+
includeLabels: "Test string",
|
|
889
|
+
includePermissionsForView: "Test string",
|
|
890
|
+
projection: "Test string",
|
|
891
|
+
revisionId: "Test string",
|
|
892
|
+
supportsAllDrives: true,
|
|
893
|
+
supportsTeamDrives: true,
|
|
894
|
+
updateViewedDate: true,
|
|
895
|
+
});
|
|
896
|
+
/** Insert a new file. */
|
|
897
|
+
await gapi.client.drive.files.insert({
|
|
898
|
+
convert: true,
|
|
899
|
+
enforceSingleParent: true,
|
|
900
|
+
includeLabels: "Test string",
|
|
901
|
+
includePermissionsForView: "Test string",
|
|
902
|
+
ocr: true,
|
|
903
|
+
ocrLanguage: "Test string",
|
|
904
|
+
pinned: true,
|
|
905
|
+
supportsAllDrives: true,
|
|
906
|
+
supportsTeamDrives: true,
|
|
907
|
+
timedTextLanguage: "Test string",
|
|
908
|
+
timedTextTrackName: "Test string",
|
|
909
|
+
useContentAsIndexableText: true,
|
|
910
|
+
visibility: "Test string",
|
|
911
|
+
}, {
|
|
912
|
+
alternateLink: "Test string",
|
|
913
|
+
appDataContents: true,
|
|
914
|
+
canComment: true,
|
|
915
|
+
canReadRevisions: true,
|
|
916
|
+
capabilities: {
|
|
917
|
+
canAcceptOwnership: true,
|
|
918
|
+
canAddChildren: true,
|
|
919
|
+
canAddFolderFromAnotherDrive: true,
|
|
920
|
+
canAddMyDriveParent: true,
|
|
921
|
+
canChangeCopyRequiresWriterPermission: true,
|
|
922
|
+
canChangeRestrictedDownload: true,
|
|
923
|
+
canChangeSecurityUpdateEnabled: true,
|
|
924
|
+
canComment: true,
|
|
925
|
+
canCopy: true,
|
|
926
|
+
canDelete: true,
|
|
927
|
+
canDeleteChildren: true,
|
|
928
|
+
canDownload: true,
|
|
929
|
+
canEdit: true,
|
|
930
|
+
canListChildren: true,
|
|
931
|
+
canModifyContent: true,
|
|
932
|
+
canModifyContentRestriction: true,
|
|
933
|
+
canModifyLabels: true,
|
|
934
|
+
canMoveChildrenOutOfDrive: true,
|
|
935
|
+
canMoveChildrenOutOfTeamDrive: true,
|
|
936
|
+
canMoveChildrenWithinDrive: true,
|
|
937
|
+
canMoveChildrenWithinTeamDrive: true,
|
|
938
|
+
canMoveItemIntoTeamDrive: true,
|
|
939
|
+
canMoveItemOutOfDrive: true,
|
|
940
|
+
canMoveItemOutOfTeamDrive: true,
|
|
941
|
+
canMoveItemWithinDrive: true,
|
|
942
|
+
canMoveItemWithinTeamDrive: true,
|
|
943
|
+
canMoveTeamDriveItem: true,
|
|
944
|
+
canReadDrive: true,
|
|
945
|
+
canReadLabels: true,
|
|
946
|
+
canReadRevisions: true,
|
|
947
|
+
canReadTeamDrive: true,
|
|
948
|
+
canRemoveChildren: true,
|
|
949
|
+
canRemoveMyDriveParent: true,
|
|
950
|
+
canRename: true,
|
|
951
|
+
canShare: true,
|
|
952
|
+
canTrash: true,
|
|
953
|
+
canTrashChildren: true,
|
|
954
|
+
canUntrash: true,
|
|
955
|
+
},
|
|
956
|
+
contentRestrictions: [
|
|
957
|
+
{
|
|
958
|
+
readOnly: true,
|
|
959
|
+
reason: "Test string",
|
|
960
|
+
restrictingUser: {
|
|
961
|
+
displayName: "Test string",
|
|
962
|
+
emailAddress: "Test string",
|
|
963
|
+
isAuthenticatedUser: true,
|
|
964
|
+
kind: "Test string",
|
|
965
|
+
permissionId: "Test string",
|
|
966
|
+
picture: {
|
|
967
|
+
url: "Test string",
|
|
968
|
+
},
|
|
969
|
+
},
|
|
970
|
+
restrictionDate: "Test string",
|
|
971
|
+
type: "Test string",
|
|
972
|
+
}
|
|
973
|
+
],
|
|
974
|
+
copyable: true,
|
|
975
|
+
copyRequiresWriterPermission: true,
|
|
976
|
+
createdDate: "Test string",
|
|
977
|
+
defaultOpenWithLink: "Test string",
|
|
978
|
+
description: "Test string",
|
|
979
|
+
downloadUrl: "Test string",
|
|
980
|
+
driveId: "Test string",
|
|
981
|
+
editable: true,
|
|
982
|
+
embedLink: "Test string",
|
|
983
|
+
etag: "Test string",
|
|
984
|
+
explicitlyTrashed: true,
|
|
985
|
+
exportLinks: {
|
|
986
|
+
A: "Test string"
|
|
987
|
+
},
|
|
988
|
+
fileExtension: "Test string",
|
|
989
|
+
fileSize: "Test string",
|
|
990
|
+
folderColorRgb: "Test string",
|
|
991
|
+
fullFileExtension: "Test string",
|
|
992
|
+
hasAugmentedPermissions: true,
|
|
993
|
+
hasThumbnail: true,
|
|
994
|
+
headRevisionId: "Test string",
|
|
995
|
+
iconLink: "Test string",
|
|
996
|
+
id: "Test string",
|
|
997
|
+
imageMediaMetadata: {
|
|
998
|
+
aperture: 42,
|
|
999
|
+
cameraMake: "Test string",
|
|
1000
|
+
cameraModel: "Test string",
|
|
1001
|
+
colorSpace: "Test string",
|
|
1002
|
+
date: "Test string",
|
|
1003
|
+
exposureBias: 42,
|
|
1004
|
+
exposureMode: "Test string",
|
|
1005
|
+
exposureTime: 42,
|
|
1006
|
+
flashUsed: true,
|
|
1007
|
+
focalLength: 42,
|
|
1008
|
+
height: 42,
|
|
1009
|
+
isoSpeed: 42,
|
|
1010
|
+
lens: "Test string",
|
|
1011
|
+
location: {
|
|
1012
|
+
altitude: 42,
|
|
1013
|
+
latitude: 42,
|
|
1014
|
+
longitude: 42,
|
|
1015
|
+
},
|
|
1016
|
+
maxApertureValue: 42,
|
|
1017
|
+
meteringMode: "Test string",
|
|
1018
|
+
rotation: 42,
|
|
1019
|
+
sensor: "Test string",
|
|
1020
|
+
subjectDistance: 42,
|
|
1021
|
+
whiteBalance: "Test string",
|
|
1022
|
+
width: 42,
|
|
1023
|
+
},
|
|
1024
|
+
indexableText: {
|
|
1025
|
+
text: "Test string",
|
|
1026
|
+
},
|
|
1027
|
+
isAppAuthorized: true,
|
|
1028
|
+
kind: "Test string",
|
|
1029
|
+
labelInfo: {
|
|
1030
|
+
labels: [
|
|
1031
|
+
{
|
|
1032
|
+
fields: {
|
|
1033
|
+
A: {
|
|
1034
|
+
dateString: [
|
|
1035
|
+
"Test string"
|
|
1036
|
+
],
|
|
1037
|
+
id: "Test string",
|
|
1038
|
+
integer: [
|
|
1039
|
+
"Test string"
|
|
1040
|
+
],
|
|
1041
|
+
kind: "Test string",
|
|
1042
|
+
selection: [
|
|
1043
|
+
"Test string"
|
|
1044
|
+
],
|
|
1045
|
+
text: [
|
|
1046
|
+
"Test string"
|
|
1047
|
+
],
|
|
1048
|
+
user: [
|
|
1049
|
+
{
|
|
1050
|
+
displayName: "Test string",
|
|
1051
|
+
emailAddress: "Test string",
|
|
1052
|
+
isAuthenticatedUser: true,
|
|
1053
|
+
kind: "Test string",
|
|
1054
|
+
permissionId: "Test string",
|
|
1055
|
+
picture: {
|
|
1056
|
+
url: "Test string",
|
|
1057
|
+
},
|
|
1058
|
+
}
|
|
1059
|
+
],
|
|
1060
|
+
valueType: "Test string",
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
id: "Test string",
|
|
1064
|
+
kind: "Test string",
|
|
1065
|
+
revisionId: "Test string",
|
|
1066
|
+
}
|
|
1067
|
+
],
|
|
1068
|
+
},
|
|
1069
|
+
labels: {
|
|
1070
|
+
hidden: true,
|
|
1071
|
+
modified: true,
|
|
1072
|
+
restricted: true,
|
|
1073
|
+
starred: true,
|
|
1074
|
+
trashed: true,
|
|
1075
|
+
viewed: true,
|
|
1076
|
+
},
|
|
1077
|
+
lastModifyingUser: {
|
|
1078
|
+
displayName: "Test string",
|
|
1079
|
+
emailAddress: "Test string",
|
|
1080
|
+
isAuthenticatedUser: true,
|
|
1081
|
+
kind: "Test string",
|
|
1082
|
+
permissionId: "Test string",
|
|
1083
|
+
picture: {
|
|
1084
|
+
url: "Test string",
|
|
1085
|
+
},
|
|
1086
|
+
},
|
|
1087
|
+
lastModifyingUserName: "Test string",
|
|
1088
|
+
lastViewedByMeDate: "Test string",
|
|
1089
|
+
linkShareMetadata: {
|
|
1090
|
+
securityUpdateEligible: true,
|
|
1091
|
+
securityUpdateEnabled: true,
|
|
1092
|
+
},
|
|
1093
|
+
markedViewedByMeDate: "Test string",
|
|
1094
|
+
md5Checksum: "Test string",
|
|
1095
|
+
mimeType: "Test string",
|
|
1096
|
+
modifiedByMeDate: "Test string",
|
|
1097
|
+
modifiedDate: "Test string",
|
|
1098
|
+
openWithLinks: {
|
|
1099
|
+
A: "Test string"
|
|
1100
|
+
},
|
|
1101
|
+
originalFilename: "Test string",
|
|
1102
|
+
ownedByMe: true,
|
|
1103
|
+
ownerNames: [
|
|
1104
|
+
"Test string"
|
|
1105
|
+
],
|
|
1106
|
+
owners: [
|
|
1107
|
+
{
|
|
1108
|
+
displayName: "Test string",
|
|
1109
|
+
emailAddress: "Test string",
|
|
1110
|
+
isAuthenticatedUser: true,
|
|
1111
|
+
kind: "Test string",
|
|
1112
|
+
permissionId: "Test string",
|
|
1113
|
+
picture: {
|
|
1114
|
+
url: "Test string",
|
|
1115
|
+
},
|
|
1116
|
+
}
|
|
1117
|
+
],
|
|
1118
|
+
parents: [
|
|
1119
|
+
{
|
|
1120
|
+
id: "Test string",
|
|
1121
|
+
isRoot: true,
|
|
1122
|
+
kind: "Test string",
|
|
1123
|
+
parentLink: "Test string",
|
|
1124
|
+
selfLink: "Test string",
|
|
1125
|
+
}
|
|
1126
|
+
],
|
|
1127
|
+
permissionIds: [
|
|
1128
|
+
"Test string"
|
|
1129
|
+
],
|
|
1130
|
+
permissions: [
|
|
1131
|
+
{
|
|
1132
|
+
additionalRoles: [
|
|
1133
|
+
"Test string"
|
|
1134
|
+
],
|
|
1135
|
+
authKey: "Test string",
|
|
1136
|
+
deleted: true,
|
|
1137
|
+
domain: "Test string",
|
|
1138
|
+
emailAddress: "Test string",
|
|
1139
|
+
etag: "Test string",
|
|
1140
|
+
expirationDate: "Test string",
|
|
1141
|
+
id: "Test string",
|
|
1142
|
+
kind: "Test string",
|
|
1143
|
+
name: "Test string",
|
|
1144
|
+
pendingOwner: true,
|
|
1145
|
+
permissionDetails: [
|
|
1146
|
+
{
|
|
1147
|
+
additionalRoles: [
|
|
1148
|
+
"Test string"
|
|
1149
|
+
],
|
|
1150
|
+
inherited: true,
|
|
1151
|
+
inheritedFrom: "Test string",
|
|
1152
|
+
permissionType: "Test string",
|
|
1153
|
+
role: "Test string",
|
|
1154
|
+
}
|
|
1155
|
+
],
|
|
1156
|
+
photoLink: "Test string",
|
|
1157
|
+
role: "Test string",
|
|
1158
|
+
selfLink: "Test string",
|
|
1159
|
+
teamDrivePermissionDetails: [
|
|
1160
|
+
{
|
|
1161
|
+
additionalRoles: [
|
|
1162
|
+
"Test string"
|
|
1163
|
+
],
|
|
1164
|
+
inherited: true,
|
|
1165
|
+
inheritedFrom: "Test string",
|
|
1166
|
+
role: "Test string",
|
|
1167
|
+
teamDrivePermissionType: "Test string",
|
|
1168
|
+
}
|
|
1169
|
+
],
|
|
1170
|
+
type: "Test string",
|
|
1171
|
+
value: "Test string",
|
|
1172
|
+
view: "Test string",
|
|
1173
|
+
withLink: true,
|
|
1174
|
+
}
|
|
1175
|
+
],
|
|
1176
|
+
properties: [
|
|
1177
|
+
{
|
|
1178
|
+
etag: "Test string",
|
|
1179
|
+
key: "Test string",
|
|
1180
|
+
kind: "Test string",
|
|
1181
|
+
selfLink: "Test string",
|
|
1182
|
+
value: "Test string",
|
|
1183
|
+
visibility: "Test string",
|
|
1184
|
+
}
|
|
1185
|
+
],
|
|
1186
|
+
quotaBytesUsed: "Test string",
|
|
1187
|
+
resourceKey: "Test string",
|
|
1188
|
+
selfLink: "Test string",
|
|
1189
|
+
shareable: true,
|
|
1190
|
+
shared: true,
|
|
1191
|
+
sharedWithMeDate: "Test string",
|
|
1192
|
+
sharingUser: {
|
|
1193
|
+
displayName: "Test string",
|
|
1194
|
+
emailAddress: "Test string",
|
|
1195
|
+
isAuthenticatedUser: true,
|
|
1196
|
+
kind: "Test string",
|
|
1197
|
+
permissionId: "Test string",
|
|
1198
|
+
picture: {
|
|
1199
|
+
url: "Test string",
|
|
1200
|
+
},
|
|
1201
|
+
},
|
|
1202
|
+
shortcutDetails: {
|
|
1203
|
+
targetId: "Test string",
|
|
1204
|
+
targetMimeType: "Test string",
|
|
1205
|
+
targetResourceKey: "Test string",
|
|
1206
|
+
},
|
|
1207
|
+
spaces: [
|
|
1208
|
+
"Test string"
|
|
1209
|
+
],
|
|
1210
|
+
teamDriveId: "Test string",
|
|
1211
|
+
thumbnail: {
|
|
1212
|
+
image: "Test string",
|
|
1213
|
+
mimeType: "Test string",
|
|
1214
|
+
},
|
|
1215
|
+
thumbnailLink: "Test string",
|
|
1216
|
+
thumbnailVersion: "Test string",
|
|
1217
|
+
title: "Test string",
|
|
1218
|
+
trashedDate: "Test string",
|
|
1219
|
+
trashingUser: {
|
|
1220
|
+
displayName: "Test string",
|
|
1221
|
+
emailAddress: "Test string",
|
|
1222
|
+
isAuthenticatedUser: true,
|
|
1223
|
+
kind: "Test string",
|
|
1224
|
+
permissionId: "Test string",
|
|
1225
|
+
picture: {
|
|
1226
|
+
url: "Test string",
|
|
1227
|
+
},
|
|
1228
|
+
},
|
|
1229
|
+
userPermission: {
|
|
1230
|
+
additionalRoles: [
|
|
1231
|
+
"Test string"
|
|
1232
|
+
],
|
|
1233
|
+
authKey: "Test string",
|
|
1234
|
+
deleted: true,
|
|
1235
|
+
domain: "Test string",
|
|
1236
|
+
emailAddress: "Test string",
|
|
1237
|
+
etag: "Test string",
|
|
1238
|
+
expirationDate: "Test string",
|
|
1239
|
+
id: "Test string",
|
|
1240
|
+
kind: "Test string",
|
|
1241
|
+
name: "Test string",
|
|
1242
|
+
pendingOwner: true,
|
|
1243
|
+
permissionDetails: [
|
|
1244
|
+
{
|
|
1245
|
+
additionalRoles: [
|
|
1246
|
+
"Test string"
|
|
1247
|
+
],
|
|
1248
|
+
inherited: true,
|
|
1249
|
+
inheritedFrom: "Test string",
|
|
1250
|
+
permissionType: "Test string",
|
|
1251
|
+
role: "Test string",
|
|
1252
|
+
}
|
|
1253
|
+
],
|
|
1254
|
+
photoLink: "Test string",
|
|
1255
|
+
role: "Test string",
|
|
1256
|
+
selfLink: "Test string",
|
|
1257
|
+
teamDrivePermissionDetails: [
|
|
1258
|
+
{
|
|
1259
|
+
additionalRoles: [
|
|
1260
|
+
"Test string"
|
|
1261
|
+
],
|
|
1262
|
+
inherited: true,
|
|
1263
|
+
inheritedFrom: "Test string",
|
|
1264
|
+
role: "Test string",
|
|
1265
|
+
teamDrivePermissionType: "Test string",
|
|
1266
|
+
}
|
|
1267
|
+
],
|
|
1268
|
+
type: "Test string",
|
|
1269
|
+
value: "Test string",
|
|
1270
|
+
view: "Test string",
|
|
1271
|
+
withLink: true,
|
|
1272
|
+
},
|
|
1273
|
+
version: "Test string",
|
|
1274
|
+
videoMediaMetadata: {
|
|
1275
|
+
durationMillis: "Test string",
|
|
1276
|
+
height: 42,
|
|
1277
|
+
width: 42,
|
|
1278
|
+
},
|
|
1279
|
+
webContentLink: "Test string",
|
|
1280
|
+
webViewLink: "Test string",
|
|
1281
|
+
writersCanShare: true,
|
|
1282
|
+
});
|
|
1283
|
+
/** Lists the user's files. */
|
|
1284
|
+
await gapi.client.drive.files.list({
|
|
1285
|
+
corpora: "Test string",
|
|
1286
|
+
corpus: "Test string",
|
|
1287
|
+
driveId: "Test string",
|
|
1288
|
+
includeItemsFromAllDrives: true,
|
|
1289
|
+
includeLabels: "Test string",
|
|
1290
|
+
includePermissionsForView: "Test string",
|
|
1291
|
+
includeTeamDriveItems: true,
|
|
1292
|
+
maxResults: 42,
|
|
1293
|
+
orderBy: "Test string",
|
|
1294
|
+
pageToken: "Test string",
|
|
1295
|
+
projection: "Test string",
|
|
1296
|
+
q: "Test string",
|
|
1297
|
+
spaces: "Test string",
|
|
1298
|
+
supportsAllDrives: true,
|
|
1299
|
+
supportsTeamDrives: true,
|
|
1300
|
+
teamDriveId: "Test string",
|
|
1301
|
+
});
|
|
1302
|
+
/** Lists the labels on a file. */
|
|
1303
|
+
await gapi.client.drive.files.listLabels({
|
|
1304
|
+
fileId: "Test string",
|
|
1305
|
+
maxResults: 42,
|
|
1306
|
+
pageToken: "Test string",
|
|
1307
|
+
});
|
|
1308
|
+
/** Modifies the set of labels on a file. */
|
|
1309
|
+
await gapi.client.drive.files.modifyLabels({
|
|
1310
|
+
fileId: "Test string",
|
|
1311
|
+
}, {
|
|
1312
|
+
kind: "Test string",
|
|
1313
|
+
labelModifications: [
|
|
1314
|
+
{
|
|
1315
|
+
fieldModifications: [
|
|
1316
|
+
{
|
|
1317
|
+
fieldId: "Test string",
|
|
1318
|
+
kind: "Test string",
|
|
1319
|
+
setDateValues: [
|
|
1320
|
+
"Test string"
|
|
1321
|
+
],
|
|
1322
|
+
setIntegerValues: [
|
|
1323
|
+
"Test string"
|
|
1324
|
+
],
|
|
1325
|
+
setSelectionValues: [
|
|
1326
|
+
"Test string"
|
|
1327
|
+
],
|
|
1328
|
+
setTextValues: [
|
|
1329
|
+
"Test string"
|
|
1330
|
+
],
|
|
1331
|
+
setUserValues: [
|
|
1332
|
+
"Test string"
|
|
1333
|
+
],
|
|
1334
|
+
unsetValues: true,
|
|
1335
|
+
}
|
|
1336
|
+
],
|
|
1337
|
+
kind: "Test string",
|
|
1338
|
+
labelId: "Test string",
|
|
1339
|
+
removeLabel: true,
|
|
1340
|
+
}
|
|
1341
|
+
],
|
|
1342
|
+
});
|
|
1343
|
+
/**
|
|
1344
|
+
* Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might change
|
|
1345
|
+
* automatically, such as modifiedDate. This method supports patch semantics.
|
|
1346
|
+
*/
|
|
1347
|
+
await gapi.client.drive.files.patch({
|
|
1348
|
+
addParents: "Test string",
|
|
1349
|
+
convert: true,
|
|
1350
|
+
enforceSingleParent: true,
|
|
1351
|
+
fileId: "Test string",
|
|
1352
|
+
includeLabels: "Test string",
|
|
1353
|
+
includePermissionsForView: "Test string",
|
|
1354
|
+
modifiedDateBehavior: "Test string",
|
|
1355
|
+
newRevision: true,
|
|
1356
|
+
ocr: true,
|
|
1357
|
+
ocrLanguage: "Test string",
|
|
1358
|
+
pinned: true,
|
|
1359
|
+
removeParents: "Test string",
|
|
1360
|
+
setModifiedDate: true,
|
|
1361
|
+
supportsAllDrives: true,
|
|
1362
|
+
supportsTeamDrives: true,
|
|
1363
|
+
timedTextLanguage: "Test string",
|
|
1364
|
+
timedTextTrackName: "Test string",
|
|
1365
|
+
updateViewedDate: true,
|
|
1366
|
+
useContentAsIndexableText: true,
|
|
1367
|
+
}, {
|
|
1368
|
+
alternateLink: "Test string",
|
|
1369
|
+
appDataContents: true,
|
|
1370
|
+
canComment: true,
|
|
1371
|
+
canReadRevisions: true,
|
|
1372
|
+
capabilities: {
|
|
1373
|
+
canAcceptOwnership: true,
|
|
1374
|
+
canAddChildren: true,
|
|
1375
|
+
canAddFolderFromAnotherDrive: true,
|
|
1376
|
+
canAddMyDriveParent: true,
|
|
1377
|
+
canChangeCopyRequiresWriterPermission: true,
|
|
1378
|
+
canChangeRestrictedDownload: true,
|
|
1379
|
+
canChangeSecurityUpdateEnabled: true,
|
|
1380
|
+
canComment: true,
|
|
1381
|
+
canCopy: true,
|
|
1382
|
+
canDelete: true,
|
|
1383
|
+
canDeleteChildren: true,
|
|
1384
|
+
canDownload: true,
|
|
1385
|
+
canEdit: true,
|
|
1386
|
+
canListChildren: true,
|
|
1387
|
+
canModifyContent: true,
|
|
1388
|
+
canModifyContentRestriction: true,
|
|
1389
|
+
canModifyLabels: true,
|
|
1390
|
+
canMoveChildrenOutOfDrive: true,
|
|
1391
|
+
canMoveChildrenOutOfTeamDrive: true,
|
|
1392
|
+
canMoveChildrenWithinDrive: true,
|
|
1393
|
+
canMoveChildrenWithinTeamDrive: true,
|
|
1394
|
+
canMoveItemIntoTeamDrive: true,
|
|
1395
|
+
canMoveItemOutOfDrive: true,
|
|
1396
|
+
canMoveItemOutOfTeamDrive: true,
|
|
1397
|
+
canMoveItemWithinDrive: true,
|
|
1398
|
+
canMoveItemWithinTeamDrive: true,
|
|
1399
|
+
canMoveTeamDriveItem: true,
|
|
1400
|
+
canReadDrive: true,
|
|
1401
|
+
canReadLabels: true,
|
|
1402
|
+
canReadRevisions: true,
|
|
1403
|
+
canReadTeamDrive: true,
|
|
1404
|
+
canRemoveChildren: true,
|
|
1405
|
+
canRemoveMyDriveParent: true,
|
|
1406
|
+
canRename: true,
|
|
1407
|
+
canShare: true,
|
|
1408
|
+
canTrash: true,
|
|
1409
|
+
canTrashChildren: true,
|
|
1410
|
+
canUntrash: true,
|
|
1411
|
+
},
|
|
1412
|
+
contentRestrictions: [
|
|
1413
|
+
{
|
|
1414
|
+
readOnly: true,
|
|
1415
|
+
reason: "Test string",
|
|
1416
|
+
restrictingUser: {
|
|
1417
|
+
displayName: "Test string",
|
|
1418
|
+
emailAddress: "Test string",
|
|
1419
|
+
isAuthenticatedUser: true,
|
|
1420
|
+
kind: "Test string",
|
|
1421
|
+
permissionId: "Test string",
|
|
1422
|
+
picture: {
|
|
1423
|
+
url: "Test string",
|
|
1424
|
+
},
|
|
1425
|
+
},
|
|
1426
|
+
restrictionDate: "Test string",
|
|
1427
|
+
type: "Test string",
|
|
1428
|
+
}
|
|
1429
|
+
],
|
|
1430
|
+
copyable: true,
|
|
1431
|
+
copyRequiresWriterPermission: true,
|
|
1432
|
+
createdDate: "Test string",
|
|
1433
|
+
defaultOpenWithLink: "Test string",
|
|
1434
|
+
description: "Test string",
|
|
1435
|
+
downloadUrl: "Test string",
|
|
1436
|
+
driveId: "Test string",
|
|
1437
|
+
editable: true,
|
|
1438
|
+
embedLink: "Test string",
|
|
1439
|
+
etag: "Test string",
|
|
1440
|
+
explicitlyTrashed: true,
|
|
1441
|
+
exportLinks: {
|
|
1442
|
+
A: "Test string"
|
|
1443
|
+
},
|
|
1444
|
+
fileExtension: "Test string",
|
|
1445
|
+
fileSize: "Test string",
|
|
1446
|
+
folderColorRgb: "Test string",
|
|
1447
|
+
fullFileExtension: "Test string",
|
|
1448
|
+
hasAugmentedPermissions: true,
|
|
1449
|
+
hasThumbnail: true,
|
|
1450
|
+
headRevisionId: "Test string",
|
|
1451
|
+
iconLink: "Test string",
|
|
1452
|
+
id: "Test string",
|
|
1453
|
+
imageMediaMetadata: {
|
|
1454
|
+
aperture: 42,
|
|
1455
|
+
cameraMake: "Test string",
|
|
1456
|
+
cameraModel: "Test string",
|
|
1457
|
+
colorSpace: "Test string",
|
|
1458
|
+
date: "Test string",
|
|
1459
|
+
exposureBias: 42,
|
|
1460
|
+
exposureMode: "Test string",
|
|
1461
|
+
exposureTime: 42,
|
|
1462
|
+
flashUsed: true,
|
|
1463
|
+
focalLength: 42,
|
|
1464
|
+
height: 42,
|
|
1465
|
+
isoSpeed: 42,
|
|
1466
|
+
lens: "Test string",
|
|
1467
|
+
location: {
|
|
1468
|
+
altitude: 42,
|
|
1469
|
+
latitude: 42,
|
|
1470
|
+
longitude: 42,
|
|
1471
|
+
},
|
|
1472
|
+
maxApertureValue: 42,
|
|
1473
|
+
meteringMode: "Test string",
|
|
1474
|
+
rotation: 42,
|
|
1475
|
+
sensor: "Test string",
|
|
1476
|
+
subjectDistance: 42,
|
|
1477
|
+
whiteBalance: "Test string",
|
|
1478
|
+
width: 42,
|
|
1479
|
+
},
|
|
1480
|
+
indexableText: {
|
|
1481
|
+
text: "Test string",
|
|
1482
|
+
},
|
|
1483
|
+
isAppAuthorized: true,
|
|
1484
|
+
kind: "Test string",
|
|
1485
|
+
labelInfo: {
|
|
1486
|
+
labels: [
|
|
1487
|
+
{
|
|
1488
|
+
fields: {
|
|
1489
|
+
A: {
|
|
1490
|
+
dateString: [
|
|
1491
|
+
"Test string"
|
|
1492
|
+
],
|
|
1493
|
+
id: "Test string",
|
|
1494
|
+
integer: [
|
|
1495
|
+
"Test string"
|
|
1496
|
+
],
|
|
1497
|
+
kind: "Test string",
|
|
1498
|
+
selection: [
|
|
1499
|
+
"Test string"
|
|
1500
|
+
],
|
|
1501
|
+
text: [
|
|
1502
|
+
"Test string"
|
|
1503
|
+
],
|
|
1504
|
+
user: [
|
|
1505
|
+
{
|
|
1506
|
+
displayName: "Test string",
|
|
1507
|
+
emailAddress: "Test string",
|
|
1508
|
+
isAuthenticatedUser: true,
|
|
1509
|
+
kind: "Test string",
|
|
1510
|
+
permissionId: "Test string",
|
|
1511
|
+
picture: {
|
|
1512
|
+
url: "Test string",
|
|
1513
|
+
},
|
|
1514
|
+
}
|
|
1515
|
+
],
|
|
1516
|
+
valueType: "Test string",
|
|
1517
|
+
}
|
|
1518
|
+
},
|
|
1519
|
+
id: "Test string",
|
|
1520
|
+
kind: "Test string",
|
|
1521
|
+
revisionId: "Test string",
|
|
1522
|
+
}
|
|
1523
|
+
],
|
|
1524
|
+
},
|
|
1525
|
+
labels: {
|
|
1526
|
+
hidden: true,
|
|
1527
|
+
modified: true,
|
|
1528
|
+
restricted: true,
|
|
1529
|
+
starred: true,
|
|
1530
|
+
trashed: true,
|
|
1531
|
+
viewed: true,
|
|
1532
|
+
},
|
|
1533
|
+
lastModifyingUser: {
|
|
1534
|
+
displayName: "Test string",
|
|
1535
|
+
emailAddress: "Test string",
|
|
1536
|
+
isAuthenticatedUser: true,
|
|
1537
|
+
kind: "Test string",
|
|
1538
|
+
permissionId: "Test string",
|
|
1539
|
+
picture: {
|
|
1540
|
+
url: "Test string",
|
|
1541
|
+
},
|
|
1542
|
+
},
|
|
1543
|
+
lastModifyingUserName: "Test string",
|
|
1544
|
+
lastViewedByMeDate: "Test string",
|
|
1545
|
+
linkShareMetadata: {
|
|
1546
|
+
securityUpdateEligible: true,
|
|
1547
|
+
securityUpdateEnabled: true,
|
|
1548
|
+
},
|
|
1549
|
+
markedViewedByMeDate: "Test string",
|
|
1550
|
+
md5Checksum: "Test string",
|
|
1551
|
+
mimeType: "Test string",
|
|
1552
|
+
modifiedByMeDate: "Test string",
|
|
1553
|
+
modifiedDate: "Test string",
|
|
1554
|
+
openWithLinks: {
|
|
1555
|
+
A: "Test string"
|
|
1556
|
+
},
|
|
1557
|
+
originalFilename: "Test string",
|
|
1558
|
+
ownedByMe: true,
|
|
1559
|
+
ownerNames: [
|
|
1560
|
+
"Test string"
|
|
1561
|
+
],
|
|
1562
|
+
owners: [
|
|
1563
|
+
{
|
|
1564
|
+
displayName: "Test string",
|
|
1565
|
+
emailAddress: "Test string",
|
|
1566
|
+
isAuthenticatedUser: true,
|
|
1567
|
+
kind: "Test string",
|
|
1568
|
+
permissionId: "Test string",
|
|
1569
|
+
picture: {
|
|
1570
|
+
url: "Test string",
|
|
1571
|
+
},
|
|
1572
|
+
}
|
|
1573
|
+
],
|
|
1574
|
+
parents: [
|
|
1575
|
+
{
|
|
1576
|
+
id: "Test string",
|
|
1577
|
+
isRoot: true,
|
|
1578
|
+
kind: "Test string",
|
|
1579
|
+
parentLink: "Test string",
|
|
1580
|
+
selfLink: "Test string",
|
|
1581
|
+
}
|
|
1582
|
+
],
|
|
1583
|
+
permissionIds: [
|
|
1584
|
+
"Test string"
|
|
1585
|
+
],
|
|
1586
|
+
permissions: [
|
|
1587
|
+
{
|
|
1588
|
+
additionalRoles: [
|
|
1589
|
+
"Test string"
|
|
1590
|
+
],
|
|
1591
|
+
authKey: "Test string",
|
|
1592
|
+
deleted: true,
|
|
1593
|
+
domain: "Test string",
|
|
1594
|
+
emailAddress: "Test string",
|
|
1595
|
+
etag: "Test string",
|
|
1596
|
+
expirationDate: "Test string",
|
|
1597
|
+
id: "Test string",
|
|
1598
|
+
kind: "Test string",
|
|
1599
|
+
name: "Test string",
|
|
1600
|
+
pendingOwner: true,
|
|
1601
|
+
permissionDetails: [
|
|
1602
|
+
{
|
|
1603
|
+
additionalRoles: [
|
|
1604
|
+
"Test string"
|
|
1605
|
+
],
|
|
1606
|
+
inherited: true,
|
|
1607
|
+
inheritedFrom: "Test string",
|
|
1608
|
+
permissionType: "Test string",
|
|
1609
|
+
role: "Test string",
|
|
1610
|
+
}
|
|
1611
|
+
],
|
|
1612
|
+
photoLink: "Test string",
|
|
1613
|
+
role: "Test string",
|
|
1614
|
+
selfLink: "Test string",
|
|
1615
|
+
teamDrivePermissionDetails: [
|
|
1616
|
+
{
|
|
1617
|
+
additionalRoles: [
|
|
1618
|
+
"Test string"
|
|
1619
|
+
],
|
|
1620
|
+
inherited: true,
|
|
1621
|
+
inheritedFrom: "Test string",
|
|
1622
|
+
role: "Test string",
|
|
1623
|
+
teamDrivePermissionType: "Test string",
|
|
1624
|
+
}
|
|
1625
|
+
],
|
|
1626
|
+
type: "Test string",
|
|
1627
|
+
value: "Test string",
|
|
1628
|
+
view: "Test string",
|
|
1629
|
+
withLink: true,
|
|
1630
|
+
}
|
|
1631
|
+
],
|
|
1632
|
+
properties: [
|
|
1633
|
+
{
|
|
1634
|
+
etag: "Test string",
|
|
1635
|
+
key: "Test string",
|
|
1636
|
+
kind: "Test string",
|
|
1637
|
+
selfLink: "Test string",
|
|
1638
|
+
value: "Test string",
|
|
1639
|
+
visibility: "Test string",
|
|
1640
|
+
}
|
|
1641
|
+
],
|
|
1642
|
+
quotaBytesUsed: "Test string",
|
|
1643
|
+
resourceKey: "Test string",
|
|
1644
|
+
selfLink: "Test string",
|
|
1645
|
+
shareable: true,
|
|
1646
|
+
shared: true,
|
|
1647
|
+
sharedWithMeDate: "Test string",
|
|
1648
|
+
sharingUser: {
|
|
1649
|
+
displayName: "Test string",
|
|
1650
|
+
emailAddress: "Test string",
|
|
1651
|
+
isAuthenticatedUser: true,
|
|
1652
|
+
kind: "Test string",
|
|
1653
|
+
permissionId: "Test string",
|
|
1654
|
+
picture: {
|
|
1655
|
+
url: "Test string",
|
|
1656
|
+
},
|
|
1657
|
+
},
|
|
1658
|
+
shortcutDetails: {
|
|
1659
|
+
targetId: "Test string",
|
|
1660
|
+
targetMimeType: "Test string",
|
|
1661
|
+
targetResourceKey: "Test string",
|
|
1662
|
+
},
|
|
1663
|
+
spaces: [
|
|
1664
|
+
"Test string"
|
|
1665
|
+
],
|
|
1666
|
+
teamDriveId: "Test string",
|
|
1667
|
+
thumbnail: {
|
|
1668
|
+
image: "Test string",
|
|
1669
|
+
mimeType: "Test string",
|
|
1670
|
+
},
|
|
1671
|
+
thumbnailLink: "Test string",
|
|
1672
|
+
thumbnailVersion: "Test string",
|
|
1673
|
+
title: "Test string",
|
|
1674
|
+
trashedDate: "Test string",
|
|
1675
|
+
trashingUser: {
|
|
1676
|
+
displayName: "Test string",
|
|
1677
|
+
emailAddress: "Test string",
|
|
1678
|
+
isAuthenticatedUser: true,
|
|
1679
|
+
kind: "Test string",
|
|
1680
|
+
permissionId: "Test string",
|
|
1681
|
+
picture: {
|
|
1682
|
+
url: "Test string",
|
|
1683
|
+
},
|
|
1684
|
+
},
|
|
1685
|
+
userPermission: {
|
|
1686
|
+
additionalRoles: [
|
|
1687
|
+
"Test string"
|
|
1688
|
+
],
|
|
1689
|
+
authKey: "Test string",
|
|
1690
|
+
deleted: true,
|
|
1691
|
+
domain: "Test string",
|
|
1692
|
+
emailAddress: "Test string",
|
|
1693
|
+
etag: "Test string",
|
|
1694
|
+
expirationDate: "Test string",
|
|
1695
|
+
id: "Test string",
|
|
1696
|
+
kind: "Test string",
|
|
1697
|
+
name: "Test string",
|
|
1698
|
+
pendingOwner: true,
|
|
1699
|
+
permissionDetails: [
|
|
1700
|
+
{
|
|
1701
|
+
additionalRoles: [
|
|
1702
|
+
"Test string"
|
|
1703
|
+
],
|
|
1704
|
+
inherited: true,
|
|
1705
|
+
inheritedFrom: "Test string",
|
|
1706
|
+
permissionType: "Test string",
|
|
1707
|
+
role: "Test string",
|
|
1708
|
+
}
|
|
1709
|
+
],
|
|
1710
|
+
photoLink: "Test string",
|
|
1711
|
+
role: "Test string",
|
|
1712
|
+
selfLink: "Test string",
|
|
1713
|
+
teamDrivePermissionDetails: [
|
|
1714
|
+
{
|
|
1715
|
+
additionalRoles: [
|
|
1716
|
+
"Test string"
|
|
1717
|
+
],
|
|
1718
|
+
inherited: true,
|
|
1719
|
+
inheritedFrom: "Test string",
|
|
1720
|
+
role: "Test string",
|
|
1721
|
+
teamDrivePermissionType: "Test string",
|
|
1722
|
+
}
|
|
1723
|
+
],
|
|
1724
|
+
type: "Test string",
|
|
1725
|
+
value: "Test string",
|
|
1726
|
+
view: "Test string",
|
|
1727
|
+
withLink: true,
|
|
1728
|
+
},
|
|
1729
|
+
version: "Test string",
|
|
1730
|
+
videoMediaMetadata: {
|
|
1731
|
+
durationMillis: "Test string",
|
|
1732
|
+
height: 42,
|
|
1733
|
+
width: 42,
|
|
1734
|
+
},
|
|
1735
|
+
webContentLink: "Test string",
|
|
1736
|
+
webViewLink: "Test string",
|
|
1737
|
+
writersCanShare: true,
|
|
1738
|
+
});
|
|
1739
|
+
/** Set the file's updated time to the current server time. */
|
|
1740
|
+
await gapi.client.drive.files.touch({
|
|
1741
|
+
fileId: "Test string",
|
|
1742
|
+
includeLabels: "Test string",
|
|
1743
|
+
includePermissionsForView: "Test string",
|
|
1744
|
+
supportsAllDrives: true,
|
|
1745
|
+
supportsTeamDrives: true,
|
|
1746
|
+
});
|
|
1747
|
+
/**
|
|
1748
|
+
* Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files. Only the owner may trash a file. The
|
|
1749
|
+
* trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in
|
|
1750
|
+
* an API response. All users with access can copy, download, export, and share the file.
|
|
1751
|
+
*/
|
|
1752
|
+
await gapi.client.drive.files.trash({
|
|
1753
|
+
fileId: "Test string",
|
|
1754
|
+
includeLabels: "Test string",
|
|
1755
|
+
includePermissionsForView: "Test string",
|
|
1756
|
+
supportsAllDrives: true,
|
|
1757
|
+
supportsTeamDrives: true,
|
|
1758
|
+
});
|
|
1759
|
+
/**
|
|
1760
|
+
* Restores a file from the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files. Only the owner may untrash a
|
|
1761
|
+
* file.
|
|
1762
|
+
*/
|
|
1763
|
+
await gapi.client.drive.files.untrash({
|
|
1764
|
+
fileId: "Test string",
|
|
1765
|
+
includeLabels: "Test string",
|
|
1766
|
+
includePermissionsForView: "Test string",
|
|
1767
|
+
supportsAllDrives: true,
|
|
1768
|
+
supportsTeamDrives: true,
|
|
1769
|
+
});
|
|
1770
|
+
/**
|
|
1771
|
+
* Updates a file's metadata and/or content. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might be changed
|
|
1772
|
+
* automatically, such as modifiedDate. This method supports patch semantics.
|
|
1773
|
+
*/
|
|
1774
|
+
await gapi.client.drive.files.update({
|
|
1775
|
+
addParents: "Test string",
|
|
1776
|
+
convert: true,
|
|
1777
|
+
enforceSingleParent: true,
|
|
1778
|
+
fileId: "Test string",
|
|
1779
|
+
includeLabels: "Test string",
|
|
1780
|
+
includePermissionsForView: "Test string",
|
|
1781
|
+
modifiedDateBehavior: "Test string",
|
|
1782
|
+
newRevision: true,
|
|
1783
|
+
ocr: true,
|
|
1784
|
+
ocrLanguage: "Test string",
|
|
1785
|
+
pinned: true,
|
|
1786
|
+
removeParents: "Test string",
|
|
1787
|
+
setModifiedDate: true,
|
|
1788
|
+
supportsAllDrives: true,
|
|
1789
|
+
supportsTeamDrives: true,
|
|
1790
|
+
timedTextLanguage: "Test string",
|
|
1791
|
+
timedTextTrackName: "Test string",
|
|
1792
|
+
updateViewedDate: true,
|
|
1793
|
+
useContentAsIndexableText: true,
|
|
1794
|
+
}, {
|
|
1795
|
+
alternateLink: "Test string",
|
|
1796
|
+
appDataContents: true,
|
|
1797
|
+
canComment: true,
|
|
1798
|
+
canReadRevisions: true,
|
|
1799
|
+
capabilities: {
|
|
1800
|
+
canAcceptOwnership: true,
|
|
1801
|
+
canAddChildren: true,
|
|
1802
|
+
canAddFolderFromAnotherDrive: true,
|
|
1803
|
+
canAddMyDriveParent: true,
|
|
1804
|
+
canChangeCopyRequiresWriterPermission: true,
|
|
1805
|
+
canChangeRestrictedDownload: true,
|
|
1806
|
+
canChangeSecurityUpdateEnabled: true,
|
|
1807
|
+
canComment: true,
|
|
1808
|
+
canCopy: true,
|
|
1809
|
+
canDelete: true,
|
|
1810
|
+
canDeleteChildren: true,
|
|
1811
|
+
canDownload: true,
|
|
1812
|
+
canEdit: true,
|
|
1813
|
+
canListChildren: true,
|
|
1814
|
+
canModifyContent: true,
|
|
1815
|
+
canModifyContentRestriction: true,
|
|
1816
|
+
canModifyLabels: true,
|
|
1817
|
+
canMoveChildrenOutOfDrive: true,
|
|
1818
|
+
canMoveChildrenOutOfTeamDrive: true,
|
|
1819
|
+
canMoveChildrenWithinDrive: true,
|
|
1820
|
+
canMoveChildrenWithinTeamDrive: true,
|
|
1821
|
+
canMoveItemIntoTeamDrive: true,
|
|
1822
|
+
canMoveItemOutOfDrive: true,
|
|
1823
|
+
canMoveItemOutOfTeamDrive: true,
|
|
1824
|
+
canMoveItemWithinDrive: true,
|
|
1825
|
+
canMoveItemWithinTeamDrive: true,
|
|
1826
|
+
canMoveTeamDriveItem: true,
|
|
1827
|
+
canReadDrive: true,
|
|
1828
|
+
canReadLabels: true,
|
|
1829
|
+
canReadRevisions: true,
|
|
1830
|
+
canReadTeamDrive: true,
|
|
1831
|
+
canRemoveChildren: true,
|
|
1832
|
+
canRemoveMyDriveParent: true,
|
|
1833
|
+
canRename: true,
|
|
1834
|
+
canShare: true,
|
|
1835
|
+
canTrash: true,
|
|
1836
|
+
canTrashChildren: true,
|
|
1837
|
+
canUntrash: true,
|
|
1838
|
+
},
|
|
1839
|
+
contentRestrictions: [
|
|
1840
|
+
{
|
|
1841
|
+
readOnly: true,
|
|
1842
|
+
reason: "Test string",
|
|
1843
|
+
restrictingUser: {
|
|
1844
|
+
displayName: "Test string",
|
|
1845
|
+
emailAddress: "Test string",
|
|
1846
|
+
isAuthenticatedUser: true,
|
|
1847
|
+
kind: "Test string",
|
|
1848
|
+
permissionId: "Test string",
|
|
1849
|
+
picture: {
|
|
1850
|
+
url: "Test string",
|
|
1851
|
+
},
|
|
1852
|
+
},
|
|
1853
|
+
restrictionDate: "Test string",
|
|
1854
|
+
type: "Test string",
|
|
1855
|
+
}
|
|
1856
|
+
],
|
|
1857
|
+
copyable: true,
|
|
1858
|
+
copyRequiresWriterPermission: true,
|
|
1859
|
+
createdDate: "Test string",
|
|
1860
|
+
defaultOpenWithLink: "Test string",
|
|
1861
|
+
description: "Test string",
|
|
1862
|
+
downloadUrl: "Test string",
|
|
1863
|
+
driveId: "Test string",
|
|
1864
|
+
editable: true,
|
|
1865
|
+
embedLink: "Test string",
|
|
1866
|
+
etag: "Test string",
|
|
1867
|
+
explicitlyTrashed: true,
|
|
1868
|
+
exportLinks: {
|
|
1869
|
+
A: "Test string"
|
|
1870
|
+
},
|
|
1871
|
+
fileExtension: "Test string",
|
|
1872
|
+
fileSize: "Test string",
|
|
1873
|
+
folderColorRgb: "Test string",
|
|
1874
|
+
fullFileExtension: "Test string",
|
|
1875
|
+
hasAugmentedPermissions: true,
|
|
1876
|
+
hasThumbnail: true,
|
|
1877
|
+
headRevisionId: "Test string",
|
|
1878
|
+
iconLink: "Test string",
|
|
1879
|
+
id: "Test string",
|
|
1880
|
+
imageMediaMetadata: {
|
|
1881
|
+
aperture: 42,
|
|
1882
|
+
cameraMake: "Test string",
|
|
1883
|
+
cameraModel: "Test string",
|
|
1884
|
+
colorSpace: "Test string",
|
|
1885
|
+
date: "Test string",
|
|
1886
|
+
exposureBias: 42,
|
|
1887
|
+
exposureMode: "Test string",
|
|
1888
|
+
exposureTime: 42,
|
|
1889
|
+
flashUsed: true,
|
|
1890
|
+
focalLength: 42,
|
|
1891
|
+
height: 42,
|
|
1892
|
+
isoSpeed: 42,
|
|
1893
|
+
lens: "Test string",
|
|
1894
|
+
location: {
|
|
1895
|
+
altitude: 42,
|
|
1896
|
+
latitude: 42,
|
|
1897
|
+
longitude: 42,
|
|
1898
|
+
},
|
|
1899
|
+
maxApertureValue: 42,
|
|
1900
|
+
meteringMode: "Test string",
|
|
1901
|
+
rotation: 42,
|
|
1902
|
+
sensor: "Test string",
|
|
1903
|
+
subjectDistance: 42,
|
|
1904
|
+
whiteBalance: "Test string",
|
|
1905
|
+
width: 42,
|
|
1906
|
+
},
|
|
1907
|
+
indexableText: {
|
|
1908
|
+
text: "Test string",
|
|
1909
|
+
},
|
|
1910
|
+
isAppAuthorized: true,
|
|
1911
|
+
kind: "Test string",
|
|
1912
|
+
labelInfo: {
|
|
1913
|
+
labels: [
|
|
1914
|
+
{
|
|
1915
|
+
fields: {
|
|
1916
|
+
A: {
|
|
1917
|
+
dateString: [
|
|
1918
|
+
"Test string"
|
|
1919
|
+
],
|
|
1920
|
+
id: "Test string",
|
|
1921
|
+
integer: [
|
|
1922
|
+
"Test string"
|
|
1923
|
+
],
|
|
1924
|
+
kind: "Test string",
|
|
1925
|
+
selection: [
|
|
1926
|
+
"Test string"
|
|
1927
|
+
],
|
|
1928
|
+
text: [
|
|
1929
|
+
"Test string"
|
|
1930
|
+
],
|
|
1931
|
+
user: [
|
|
1932
|
+
{
|
|
1933
|
+
displayName: "Test string",
|
|
1934
|
+
emailAddress: "Test string",
|
|
1935
|
+
isAuthenticatedUser: true,
|
|
1936
|
+
kind: "Test string",
|
|
1937
|
+
permissionId: "Test string",
|
|
1938
|
+
picture: {
|
|
1939
|
+
url: "Test string",
|
|
1940
|
+
},
|
|
1941
|
+
}
|
|
1942
|
+
],
|
|
1943
|
+
valueType: "Test string",
|
|
1944
|
+
}
|
|
1945
|
+
},
|
|
1946
|
+
id: "Test string",
|
|
1947
|
+
kind: "Test string",
|
|
1948
|
+
revisionId: "Test string",
|
|
1949
|
+
}
|
|
1950
|
+
],
|
|
1951
|
+
},
|
|
1952
|
+
labels: {
|
|
1953
|
+
hidden: true,
|
|
1954
|
+
modified: true,
|
|
1955
|
+
restricted: true,
|
|
1956
|
+
starred: true,
|
|
1957
|
+
trashed: true,
|
|
1958
|
+
viewed: true,
|
|
1959
|
+
},
|
|
1960
|
+
lastModifyingUser: {
|
|
1961
|
+
displayName: "Test string",
|
|
1962
|
+
emailAddress: "Test string",
|
|
1963
|
+
isAuthenticatedUser: true,
|
|
1964
|
+
kind: "Test string",
|
|
1965
|
+
permissionId: "Test string",
|
|
1966
|
+
picture: {
|
|
1967
|
+
url: "Test string",
|
|
1968
|
+
},
|
|
1969
|
+
},
|
|
1970
|
+
lastModifyingUserName: "Test string",
|
|
1971
|
+
lastViewedByMeDate: "Test string",
|
|
1972
|
+
linkShareMetadata: {
|
|
1973
|
+
securityUpdateEligible: true,
|
|
1974
|
+
securityUpdateEnabled: true,
|
|
1975
|
+
},
|
|
1976
|
+
markedViewedByMeDate: "Test string",
|
|
1977
|
+
md5Checksum: "Test string",
|
|
1978
|
+
mimeType: "Test string",
|
|
1979
|
+
modifiedByMeDate: "Test string",
|
|
1980
|
+
modifiedDate: "Test string",
|
|
1981
|
+
openWithLinks: {
|
|
1982
|
+
A: "Test string"
|
|
1983
|
+
},
|
|
1984
|
+
originalFilename: "Test string",
|
|
1985
|
+
ownedByMe: true,
|
|
1986
|
+
ownerNames: [
|
|
1987
|
+
"Test string"
|
|
1988
|
+
],
|
|
1989
|
+
owners: [
|
|
1990
|
+
{
|
|
1991
|
+
displayName: "Test string",
|
|
1992
|
+
emailAddress: "Test string",
|
|
1993
|
+
isAuthenticatedUser: true,
|
|
1994
|
+
kind: "Test string",
|
|
1995
|
+
permissionId: "Test string",
|
|
1996
|
+
picture: {
|
|
1997
|
+
url: "Test string",
|
|
1998
|
+
},
|
|
1999
|
+
}
|
|
2000
|
+
],
|
|
2001
|
+
parents: [
|
|
2002
|
+
{
|
|
2003
|
+
id: "Test string",
|
|
2004
|
+
isRoot: true,
|
|
2005
|
+
kind: "Test string",
|
|
2006
|
+
parentLink: "Test string",
|
|
2007
|
+
selfLink: "Test string",
|
|
2008
|
+
}
|
|
2009
|
+
],
|
|
2010
|
+
permissionIds: [
|
|
2011
|
+
"Test string"
|
|
2012
|
+
],
|
|
2013
|
+
permissions: [
|
|
2014
|
+
{
|
|
2015
|
+
additionalRoles: [
|
|
2016
|
+
"Test string"
|
|
2017
|
+
],
|
|
2018
|
+
authKey: "Test string",
|
|
2019
|
+
deleted: true,
|
|
2020
|
+
domain: "Test string",
|
|
2021
|
+
emailAddress: "Test string",
|
|
2022
|
+
etag: "Test string",
|
|
2023
|
+
expirationDate: "Test string",
|
|
2024
|
+
id: "Test string",
|
|
2025
|
+
kind: "Test string",
|
|
2026
|
+
name: "Test string",
|
|
2027
|
+
pendingOwner: true,
|
|
2028
|
+
permissionDetails: [
|
|
2029
|
+
{
|
|
2030
|
+
additionalRoles: [
|
|
2031
|
+
"Test string"
|
|
2032
|
+
],
|
|
2033
|
+
inherited: true,
|
|
2034
|
+
inheritedFrom: "Test string",
|
|
2035
|
+
permissionType: "Test string",
|
|
2036
|
+
role: "Test string",
|
|
2037
|
+
}
|
|
2038
|
+
],
|
|
2039
|
+
photoLink: "Test string",
|
|
2040
|
+
role: "Test string",
|
|
2041
|
+
selfLink: "Test string",
|
|
2042
|
+
teamDrivePermissionDetails: [
|
|
2043
|
+
{
|
|
2044
|
+
additionalRoles: [
|
|
2045
|
+
"Test string"
|
|
2046
|
+
],
|
|
2047
|
+
inherited: true,
|
|
2048
|
+
inheritedFrom: "Test string",
|
|
2049
|
+
role: "Test string",
|
|
2050
|
+
teamDrivePermissionType: "Test string",
|
|
2051
|
+
}
|
|
2052
|
+
],
|
|
2053
|
+
type: "Test string",
|
|
2054
|
+
value: "Test string",
|
|
2055
|
+
view: "Test string",
|
|
2056
|
+
withLink: true,
|
|
2057
|
+
}
|
|
2058
|
+
],
|
|
2059
|
+
properties: [
|
|
2060
|
+
{
|
|
2061
|
+
etag: "Test string",
|
|
2062
|
+
key: "Test string",
|
|
2063
|
+
kind: "Test string",
|
|
2064
|
+
selfLink: "Test string",
|
|
2065
|
+
value: "Test string",
|
|
2066
|
+
visibility: "Test string",
|
|
2067
|
+
}
|
|
2068
|
+
],
|
|
2069
|
+
quotaBytesUsed: "Test string",
|
|
2070
|
+
resourceKey: "Test string",
|
|
2071
|
+
selfLink: "Test string",
|
|
2072
|
+
shareable: true,
|
|
2073
|
+
shared: true,
|
|
2074
|
+
sharedWithMeDate: "Test string",
|
|
2075
|
+
sharingUser: {
|
|
2076
|
+
displayName: "Test string",
|
|
2077
|
+
emailAddress: "Test string",
|
|
2078
|
+
isAuthenticatedUser: true,
|
|
2079
|
+
kind: "Test string",
|
|
2080
|
+
permissionId: "Test string",
|
|
2081
|
+
picture: {
|
|
2082
|
+
url: "Test string",
|
|
2083
|
+
},
|
|
2084
|
+
},
|
|
2085
|
+
shortcutDetails: {
|
|
2086
|
+
targetId: "Test string",
|
|
2087
|
+
targetMimeType: "Test string",
|
|
2088
|
+
targetResourceKey: "Test string",
|
|
2089
|
+
},
|
|
2090
|
+
spaces: [
|
|
2091
|
+
"Test string"
|
|
2092
|
+
],
|
|
2093
|
+
teamDriveId: "Test string",
|
|
2094
|
+
thumbnail: {
|
|
2095
|
+
image: "Test string",
|
|
2096
|
+
mimeType: "Test string",
|
|
2097
|
+
},
|
|
2098
|
+
thumbnailLink: "Test string",
|
|
2099
|
+
thumbnailVersion: "Test string",
|
|
2100
|
+
title: "Test string",
|
|
2101
|
+
trashedDate: "Test string",
|
|
2102
|
+
trashingUser: {
|
|
2103
|
+
displayName: "Test string",
|
|
2104
|
+
emailAddress: "Test string",
|
|
2105
|
+
isAuthenticatedUser: true,
|
|
2106
|
+
kind: "Test string",
|
|
2107
|
+
permissionId: "Test string",
|
|
2108
|
+
picture: {
|
|
2109
|
+
url: "Test string",
|
|
2110
|
+
},
|
|
2111
|
+
},
|
|
2112
|
+
userPermission: {
|
|
2113
|
+
additionalRoles: [
|
|
2114
|
+
"Test string"
|
|
2115
|
+
],
|
|
2116
|
+
authKey: "Test string",
|
|
2117
|
+
deleted: true,
|
|
2118
|
+
domain: "Test string",
|
|
2119
|
+
emailAddress: "Test string",
|
|
2120
|
+
etag: "Test string",
|
|
2121
|
+
expirationDate: "Test string",
|
|
2122
|
+
id: "Test string",
|
|
2123
|
+
kind: "Test string",
|
|
2124
|
+
name: "Test string",
|
|
2125
|
+
pendingOwner: true,
|
|
2126
|
+
permissionDetails: [
|
|
2127
|
+
{
|
|
2128
|
+
additionalRoles: [
|
|
2129
|
+
"Test string"
|
|
2130
|
+
],
|
|
2131
|
+
inherited: true,
|
|
2132
|
+
inheritedFrom: "Test string",
|
|
2133
|
+
permissionType: "Test string",
|
|
2134
|
+
role: "Test string",
|
|
2135
|
+
}
|
|
2136
|
+
],
|
|
2137
|
+
photoLink: "Test string",
|
|
2138
|
+
role: "Test string",
|
|
2139
|
+
selfLink: "Test string",
|
|
2140
|
+
teamDrivePermissionDetails: [
|
|
2141
|
+
{
|
|
2142
|
+
additionalRoles: [
|
|
2143
|
+
"Test string"
|
|
2144
|
+
],
|
|
2145
|
+
inherited: true,
|
|
2146
|
+
inheritedFrom: "Test string",
|
|
2147
|
+
role: "Test string",
|
|
2148
|
+
teamDrivePermissionType: "Test string",
|
|
2149
|
+
}
|
|
2150
|
+
],
|
|
2151
|
+
type: "Test string",
|
|
2152
|
+
value: "Test string",
|
|
2153
|
+
view: "Test string",
|
|
2154
|
+
withLink: true,
|
|
2155
|
+
},
|
|
2156
|
+
version: "Test string",
|
|
2157
|
+
videoMediaMetadata: {
|
|
2158
|
+
durationMillis: "Test string",
|
|
2159
|
+
height: 42,
|
|
2160
|
+
width: 42,
|
|
2161
|
+
},
|
|
2162
|
+
webContentLink: "Test string",
|
|
2163
|
+
webViewLink: "Test string",
|
|
2164
|
+
writersCanShare: true,
|
|
2165
|
+
});
|
|
2166
|
+
/** Subscribes to changes to a file. While you can establish a channel for changes to a file on a shared drive, a change to a shared drive file won't create a notification. */
|
|
2167
|
+
await gapi.client.drive.files.watch({
|
|
2168
|
+
acknowledgeAbuse: true,
|
|
2169
|
+
fileId: "Test string",
|
|
2170
|
+
includeLabels: "Test string",
|
|
2171
|
+
includePermissionsForView: "Test string",
|
|
2172
|
+
projection: "Test string",
|
|
2173
|
+
revisionId: "Test string",
|
|
2174
|
+
supportsAllDrives: true,
|
|
2175
|
+
supportsTeamDrives: true,
|
|
2176
|
+
updateViewedDate: true,
|
|
2177
|
+
}, {
|
|
2178
|
+
address: "Test string",
|
|
2179
|
+
expiration: "Test string",
|
|
2180
|
+
id: "Test string",
|
|
2181
|
+
kind: "Test string",
|
|
2182
|
+
params: {
|
|
2183
|
+
A: "Test string"
|
|
2184
|
+
},
|
|
2185
|
+
payload: true,
|
|
2186
|
+
resourceId: "Test string",
|
|
2187
|
+
resourceUri: "Test string",
|
|
2188
|
+
token: "Test string",
|
|
2189
|
+
type: "Test string",
|
|
2190
|
+
});
|
|
2191
|
+
/** Removes a parent from a file. */
|
|
2192
|
+
await gapi.client.drive.parents.delete({
|
|
2193
|
+
enforceSingleParent: true,
|
|
2194
|
+
fileId: "Test string",
|
|
2195
|
+
parentId: "Test string",
|
|
2196
|
+
});
|
|
2197
|
+
/** Gets a specific parent reference. */
|
|
2198
|
+
await gapi.client.drive.parents.get({
|
|
2199
|
+
fileId: "Test string",
|
|
2200
|
+
parentId: "Test string",
|
|
2201
|
+
});
|
|
2202
|
+
/** Adds a parent folder for a file. */
|
|
2203
|
+
await gapi.client.drive.parents.insert({
|
|
2204
|
+
enforceSingleParent: true,
|
|
2205
|
+
fileId: "Test string",
|
|
2206
|
+
supportsAllDrives: true,
|
|
2207
|
+
supportsTeamDrives: true,
|
|
2208
|
+
}, {
|
|
2209
|
+
id: "Test string",
|
|
2210
|
+
isRoot: true,
|
|
2211
|
+
kind: "Test string",
|
|
2212
|
+
parentLink: "Test string",
|
|
2213
|
+
selfLink: "Test string",
|
|
2214
|
+
});
|
|
2215
|
+
/** Lists a file's parents. */
|
|
2216
|
+
await gapi.client.drive.parents.list({
|
|
2217
|
+
fileId: "Test string",
|
|
2218
|
+
});
|
|
2219
|
+
/** Deletes a permission from a file or shared drive. */
|
|
2220
|
+
await gapi.client.drive.permissions.delete({
|
|
2221
|
+
fileId: "Test string",
|
|
2222
|
+
permissionId: "Test string",
|
|
2223
|
+
supportsAllDrives: true,
|
|
2224
|
+
supportsTeamDrives: true,
|
|
2225
|
+
useDomainAdminAccess: true,
|
|
2226
|
+
});
|
|
2227
|
+
/** Gets a permission by ID. */
|
|
2228
|
+
await gapi.client.drive.permissions.get({
|
|
2229
|
+
fileId: "Test string",
|
|
2230
|
+
permissionId: "Test string",
|
|
2231
|
+
supportsAllDrives: true,
|
|
2232
|
+
supportsTeamDrives: true,
|
|
2233
|
+
useDomainAdminAccess: true,
|
|
2234
|
+
});
|
|
2235
|
+
/** Returns the permission ID for an email address. */
|
|
2236
|
+
await gapi.client.drive.permissions.getIdForEmail({
|
|
2237
|
+
email: "Test string",
|
|
2238
|
+
});
|
|
2239
|
+
/** Inserts a permission for a file or shared drive. */
|
|
2240
|
+
await gapi.client.drive.permissions.insert({
|
|
2241
|
+
emailMessage: "Test string",
|
|
2242
|
+
enforceSingleParent: true,
|
|
2243
|
+
fileId: "Test string",
|
|
2244
|
+
moveToNewOwnersRoot: true,
|
|
2245
|
+
sendNotificationEmails: true,
|
|
2246
|
+
supportsAllDrives: true,
|
|
2247
|
+
supportsTeamDrives: true,
|
|
2248
|
+
useDomainAdminAccess: true,
|
|
2249
|
+
}, {
|
|
2250
|
+
additionalRoles: [
|
|
2251
|
+
"Test string"
|
|
2252
|
+
],
|
|
2253
|
+
authKey: "Test string",
|
|
2254
|
+
deleted: true,
|
|
2255
|
+
domain: "Test string",
|
|
2256
|
+
emailAddress: "Test string",
|
|
2257
|
+
etag: "Test string",
|
|
2258
|
+
expirationDate: "Test string",
|
|
2259
|
+
id: "Test string",
|
|
2260
|
+
kind: "Test string",
|
|
2261
|
+
name: "Test string",
|
|
2262
|
+
pendingOwner: true,
|
|
2263
|
+
permissionDetails: [
|
|
2264
|
+
{
|
|
2265
|
+
additionalRoles: [
|
|
2266
|
+
"Test string"
|
|
2267
|
+
],
|
|
2268
|
+
inherited: true,
|
|
2269
|
+
inheritedFrom: "Test string",
|
|
2270
|
+
permissionType: "Test string",
|
|
2271
|
+
role: "Test string",
|
|
2272
|
+
}
|
|
2273
|
+
],
|
|
2274
|
+
photoLink: "Test string",
|
|
2275
|
+
role: "Test string",
|
|
2276
|
+
selfLink: "Test string",
|
|
2277
|
+
teamDrivePermissionDetails: [
|
|
2278
|
+
{
|
|
2279
|
+
additionalRoles: [
|
|
2280
|
+
"Test string"
|
|
2281
|
+
],
|
|
2282
|
+
inherited: true,
|
|
2283
|
+
inheritedFrom: "Test string",
|
|
2284
|
+
role: "Test string",
|
|
2285
|
+
teamDrivePermissionType: "Test string",
|
|
2286
|
+
}
|
|
2287
|
+
],
|
|
2288
|
+
type: "Test string",
|
|
2289
|
+
value: "Test string",
|
|
2290
|
+
view: "Test string",
|
|
2291
|
+
withLink: true,
|
|
2292
|
+
});
|
|
2293
|
+
/** Lists a file's or shared drive's permissions. */
|
|
2294
|
+
await gapi.client.drive.permissions.list({
|
|
2295
|
+
fileId: "Test string",
|
|
2296
|
+
includePermissionsForView: "Test string",
|
|
2297
|
+
maxResults: 42,
|
|
2298
|
+
pageToken: "Test string",
|
|
2299
|
+
supportsAllDrives: true,
|
|
2300
|
+
supportsTeamDrives: true,
|
|
2301
|
+
useDomainAdminAccess: true,
|
|
2302
|
+
});
|
|
2303
|
+
/** Updates a permission using patch semantics. */
|
|
2304
|
+
await gapi.client.drive.permissions.patch({
|
|
2305
|
+
fileId: "Test string",
|
|
2306
|
+
permissionId: "Test string",
|
|
2307
|
+
removeExpiration: true,
|
|
2308
|
+
supportsAllDrives: true,
|
|
2309
|
+
supportsTeamDrives: true,
|
|
2310
|
+
transferOwnership: true,
|
|
2311
|
+
useDomainAdminAccess: true,
|
|
2312
|
+
}, {
|
|
2313
|
+
additionalRoles: [
|
|
2314
|
+
"Test string"
|
|
2315
|
+
],
|
|
2316
|
+
authKey: "Test string",
|
|
2317
|
+
deleted: true,
|
|
2318
|
+
domain: "Test string",
|
|
2319
|
+
emailAddress: "Test string",
|
|
2320
|
+
etag: "Test string",
|
|
2321
|
+
expirationDate: "Test string",
|
|
2322
|
+
id: "Test string",
|
|
2323
|
+
kind: "Test string",
|
|
2324
|
+
name: "Test string",
|
|
2325
|
+
pendingOwner: true,
|
|
2326
|
+
permissionDetails: [
|
|
2327
|
+
{
|
|
2328
|
+
additionalRoles: [
|
|
2329
|
+
"Test string"
|
|
2330
|
+
],
|
|
2331
|
+
inherited: true,
|
|
2332
|
+
inheritedFrom: "Test string",
|
|
2333
|
+
permissionType: "Test string",
|
|
2334
|
+
role: "Test string",
|
|
2335
|
+
}
|
|
2336
|
+
],
|
|
2337
|
+
photoLink: "Test string",
|
|
2338
|
+
role: "Test string",
|
|
2339
|
+
selfLink: "Test string",
|
|
2340
|
+
teamDrivePermissionDetails: [
|
|
2341
|
+
{
|
|
2342
|
+
additionalRoles: [
|
|
2343
|
+
"Test string"
|
|
2344
|
+
],
|
|
2345
|
+
inherited: true,
|
|
2346
|
+
inheritedFrom: "Test string",
|
|
2347
|
+
role: "Test string",
|
|
2348
|
+
teamDrivePermissionType: "Test string",
|
|
2349
|
+
}
|
|
2350
|
+
],
|
|
2351
|
+
type: "Test string",
|
|
2352
|
+
value: "Test string",
|
|
2353
|
+
view: "Test string",
|
|
2354
|
+
withLink: true,
|
|
2355
|
+
});
|
|
2356
|
+
/** Updates a permission. */
|
|
2357
|
+
await gapi.client.drive.permissions.update({
|
|
2358
|
+
fileId: "Test string",
|
|
2359
|
+
permissionId: "Test string",
|
|
2360
|
+
removeExpiration: true,
|
|
2361
|
+
supportsAllDrives: true,
|
|
2362
|
+
supportsTeamDrives: true,
|
|
2363
|
+
transferOwnership: true,
|
|
2364
|
+
useDomainAdminAccess: true,
|
|
2365
|
+
}, {
|
|
2366
|
+
additionalRoles: [
|
|
2367
|
+
"Test string"
|
|
2368
|
+
],
|
|
2369
|
+
authKey: "Test string",
|
|
2370
|
+
deleted: true,
|
|
2371
|
+
domain: "Test string",
|
|
2372
|
+
emailAddress: "Test string",
|
|
2373
|
+
etag: "Test string",
|
|
2374
|
+
expirationDate: "Test string",
|
|
2375
|
+
id: "Test string",
|
|
2376
|
+
kind: "Test string",
|
|
2377
|
+
name: "Test string",
|
|
2378
|
+
pendingOwner: true,
|
|
2379
|
+
permissionDetails: [
|
|
2380
|
+
{
|
|
2381
|
+
additionalRoles: [
|
|
2382
|
+
"Test string"
|
|
2383
|
+
],
|
|
2384
|
+
inherited: true,
|
|
2385
|
+
inheritedFrom: "Test string",
|
|
2386
|
+
permissionType: "Test string",
|
|
2387
|
+
role: "Test string",
|
|
2388
|
+
}
|
|
2389
|
+
],
|
|
2390
|
+
photoLink: "Test string",
|
|
2391
|
+
role: "Test string",
|
|
2392
|
+
selfLink: "Test string",
|
|
2393
|
+
teamDrivePermissionDetails: [
|
|
2394
|
+
{
|
|
2395
|
+
additionalRoles: [
|
|
2396
|
+
"Test string"
|
|
2397
|
+
],
|
|
2398
|
+
inherited: true,
|
|
2399
|
+
inheritedFrom: "Test string",
|
|
2400
|
+
role: "Test string",
|
|
2401
|
+
teamDrivePermissionType: "Test string",
|
|
2402
|
+
}
|
|
2403
|
+
],
|
|
2404
|
+
type: "Test string",
|
|
2405
|
+
value: "Test string",
|
|
2406
|
+
view: "Test string",
|
|
2407
|
+
withLink: true,
|
|
2408
|
+
});
|
|
2409
|
+
/** Deletes a property. */
|
|
2410
|
+
await gapi.client.drive.properties.delete({
|
|
2411
|
+
fileId: "Test string",
|
|
2412
|
+
propertyKey: "Test string",
|
|
2413
|
+
visibility: "Test string",
|
|
2414
|
+
});
|
|
2415
|
+
/** Gets a property by its key. */
|
|
2416
|
+
await gapi.client.drive.properties.get({
|
|
2417
|
+
fileId: "Test string",
|
|
2418
|
+
propertyKey: "Test string",
|
|
2419
|
+
visibility: "Test string",
|
|
2420
|
+
});
|
|
2421
|
+
/** Adds a property to a file, or updates it if it already exists. */
|
|
2422
|
+
await gapi.client.drive.properties.insert({
|
|
2423
|
+
fileId: "Test string",
|
|
2424
|
+
}, {
|
|
2425
|
+
etag: "Test string",
|
|
2426
|
+
key: "Test string",
|
|
2427
|
+
kind: "Test string",
|
|
2428
|
+
selfLink: "Test string",
|
|
2429
|
+
value: "Test string",
|
|
2430
|
+
visibility: "Test string",
|
|
2431
|
+
});
|
|
2432
|
+
/** Lists a file's properties. */
|
|
2433
|
+
await gapi.client.drive.properties.list({
|
|
2434
|
+
fileId: "Test string",
|
|
2435
|
+
});
|
|
2436
|
+
/** Updates a property. */
|
|
2437
|
+
await gapi.client.drive.properties.patch({
|
|
2438
|
+
fileId: "Test string",
|
|
2439
|
+
propertyKey: "Test string",
|
|
2440
|
+
visibility: "Test string",
|
|
2441
|
+
}, {
|
|
2442
|
+
etag: "Test string",
|
|
2443
|
+
key: "Test string",
|
|
2444
|
+
kind: "Test string",
|
|
2445
|
+
selfLink: "Test string",
|
|
2446
|
+
value: "Test string",
|
|
2447
|
+
visibility: "Test string",
|
|
2448
|
+
});
|
|
2449
|
+
/** Updates a property. */
|
|
2450
|
+
await gapi.client.drive.properties.update({
|
|
2451
|
+
fileId: "Test string",
|
|
2452
|
+
propertyKey: "Test string",
|
|
2453
|
+
visibility: "Test string",
|
|
2454
|
+
}, {
|
|
2455
|
+
etag: "Test string",
|
|
2456
|
+
key: "Test string",
|
|
2457
|
+
kind: "Test string",
|
|
2458
|
+
selfLink: "Test string",
|
|
2459
|
+
value: "Test string",
|
|
2460
|
+
visibility: "Test string",
|
|
2461
|
+
});
|
|
2462
|
+
/** Deletes a reply. */
|
|
2463
|
+
await gapi.client.drive.replies.delete({
|
|
2464
|
+
commentId: "Test string",
|
|
2465
|
+
fileId: "Test string",
|
|
2466
|
+
replyId: "Test string",
|
|
2467
|
+
});
|
|
2468
|
+
/** Gets a reply. */
|
|
2469
|
+
await gapi.client.drive.replies.get({
|
|
2470
|
+
commentId: "Test string",
|
|
2471
|
+
fileId: "Test string",
|
|
2472
|
+
includeDeleted: true,
|
|
2473
|
+
replyId: "Test string",
|
|
2474
|
+
});
|
|
2475
|
+
/** Creates a new reply to the given comment. */
|
|
2476
|
+
await gapi.client.drive.replies.insert({
|
|
2477
|
+
commentId: "Test string",
|
|
2478
|
+
fileId: "Test string",
|
|
2479
|
+
}, {
|
|
2480
|
+
author: {
|
|
2481
|
+
displayName: "Test string",
|
|
2482
|
+
emailAddress: "Test string",
|
|
2483
|
+
isAuthenticatedUser: true,
|
|
2484
|
+
kind: "Test string",
|
|
2485
|
+
permissionId: "Test string",
|
|
2486
|
+
picture: {
|
|
2487
|
+
url: "Test string",
|
|
2488
|
+
},
|
|
2489
|
+
},
|
|
2490
|
+
content: "Test string",
|
|
2491
|
+
createdDate: "Test string",
|
|
2492
|
+
deleted: true,
|
|
2493
|
+
htmlContent: "Test string",
|
|
2494
|
+
kind: "Test string",
|
|
2495
|
+
modifiedDate: "Test string",
|
|
2496
|
+
replyId: "Test string",
|
|
2497
|
+
verb: "Test string",
|
|
2498
|
+
});
|
|
2499
|
+
/** Lists all of the replies to a comment. */
|
|
2500
|
+
await gapi.client.drive.replies.list({
|
|
2501
|
+
commentId: "Test string",
|
|
2502
|
+
fileId: "Test string",
|
|
2503
|
+
includeDeleted: true,
|
|
2504
|
+
maxResults: 42,
|
|
2505
|
+
pageToken: "Test string",
|
|
2506
|
+
});
|
|
2507
|
+
/** Updates an existing reply. */
|
|
2508
|
+
await gapi.client.drive.replies.patch({
|
|
2509
|
+
commentId: "Test string",
|
|
2510
|
+
fileId: "Test string",
|
|
2511
|
+
replyId: "Test string",
|
|
2512
|
+
}, {
|
|
2513
|
+
author: {
|
|
2514
|
+
displayName: "Test string",
|
|
2515
|
+
emailAddress: "Test string",
|
|
2516
|
+
isAuthenticatedUser: true,
|
|
2517
|
+
kind: "Test string",
|
|
2518
|
+
permissionId: "Test string",
|
|
2519
|
+
picture: {
|
|
2520
|
+
url: "Test string",
|
|
2521
|
+
},
|
|
2522
|
+
},
|
|
2523
|
+
content: "Test string",
|
|
2524
|
+
createdDate: "Test string",
|
|
2525
|
+
deleted: true,
|
|
2526
|
+
htmlContent: "Test string",
|
|
2527
|
+
kind: "Test string",
|
|
2528
|
+
modifiedDate: "Test string",
|
|
2529
|
+
replyId: "Test string",
|
|
2530
|
+
verb: "Test string",
|
|
2531
|
+
});
|
|
2532
|
+
/** Updates an existing reply. */
|
|
2533
|
+
await gapi.client.drive.replies.update({
|
|
2534
|
+
commentId: "Test string",
|
|
2535
|
+
fileId: "Test string",
|
|
2536
|
+
replyId: "Test string",
|
|
2537
|
+
}, {
|
|
2538
|
+
author: {
|
|
2539
|
+
displayName: "Test string",
|
|
2540
|
+
emailAddress: "Test string",
|
|
2541
|
+
isAuthenticatedUser: true,
|
|
2542
|
+
kind: "Test string",
|
|
2543
|
+
permissionId: "Test string",
|
|
2544
|
+
picture: {
|
|
2545
|
+
url: "Test string",
|
|
2546
|
+
},
|
|
2547
|
+
},
|
|
2548
|
+
content: "Test string",
|
|
2549
|
+
createdDate: "Test string",
|
|
2550
|
+
deleted: true,
|
|
2551
|
+
htmlContent: "Test string",
|
|
2552
|
+
kind: "Test string",
|
|
2553
|
+
modifiedDate: "Test string",
|
|
2554
|
+
replyId: "Test string",
|
|
2555
|
+
verb: "Test string",
|
|
2556
|
+
});
|
|
2557
|
+
/**
|
|
2558
|
+
* Permanently deletes a file version. You can only delete revisions for files with binary content, like images or videos. Revisions for other files, like Google Docs or Sheets, and the
|
|
2559
|
+
* last remaining file version can't be deleted.
|
|
2560
|
+
*/
|
|
2561
|
+
await gapi.client.drive.revisions.delete({
|
|
2562
|
+
fileId: "Test string",
|
|
2563
|
+
revisionId: "Test string",
|
|
2564
|
+
});
|
|
2565
|
+
/** Gets a specific revision. */
|
|
2566
|
+
await gapi.client.drive.revisions.get({
|
|
2567
|
+
fileId: "Test string",
|
|
2568
|
+
revisionId: "Test string",
|
|
2569
|
+
});
|
|
2570
|
+
/** Lists a file's revisions. */
|
|
2571
|
+
await gapi.client.drive.revisions.list({
|
|
2572
|
+
fileId: "Test string",
|
|
2573
|
+
maxResults: 42,
|
|
2574
|
+
pageToken: "Test string",
|
|
2575
|
+
});
|
|
2576
|
+
/** Updates a revision. */
|
|
2577
|
+
await gapi.client.drive.revisions.patch({
|
|
2578
|
+
fileId: "Test string",
|
|
2579
|
+
revisionId: "Test string",
|
|
2580
|
+
}, {
|
|
2581
|
+
downloadUrl: "Test string",
|
|
2582
|
+
etag: "Test string",
|
|
2583
|
+
exportLinks: {
|
|
2584
|
+
A: "Test string"
|
|
2585
|
+
},
|
|
2586
|
+
fileSize: "Test string",
|
|
2587
|
+
id: "Test string",
|
|
2588
|
+
kind: "Test string",
|
|
2589
|
+
lastModifyingUser: {
|
|
2590
|
+
displayName: "Test string",
|
|
2591
|
+
emailAddress: "Test string",
|
|
2592
|
+
isAuthenticatedUser: true,
|
|
2593
|
+
kind: "Test string",
|
|
2594
|
+
permissionId: "Test string",
|
|
2595
|
+
picture: {
|
|
2596
|
+
url: "Test string",
|
|
2597
|
+
},
|
|
2598
|
+
},
|
|
2599
|
+
lastModifyingUserName: "Test string",
|
|
2600
|
+
md5Checksum: "Test string",
|
|
2601
|
+
mimeType: "Test string",
|
|
2602
|
+
modifiedDate: "Test string",
|
|
2603
|
+
originalFilename: "Test string",
|
|
2604
|
+
pinned: true,
|
|
2605
|
+
publishAuto: true,
|
|
2606
|
+
published: true,
|
|
2607
|
+
publishedLink: "Test string",
|
|
2608
|
+
publishedOutsideDomain: true,
|
|
2609
|
+
selfLink: "Test string",
|
|
2610
|
+
});
|
|
2611
|
+
/** Updates a revision. */
|
|
2612
|
+
await gapi.client.drive.revisions.update({
|
|
2613
|
+
fileId: "Test string",
|
|
2614
|
+
revisionId: "Test string",
|
|
2615
|
+
}, {
|
|
2616
|
+
downloadUrl: "Test string",
|
|
2617
|
+
etag: "Test string",
|
|
2618
|
+
exportLinks: {
|
|
2619
|
+
A: "Test string"
|
|
2620
|
+
},
|
|
2621
|
+
fileSize: "Test string",
|
|
2622
|
+
id: "Test string",
|
|
2623
|
+
kind: "Test string",
|
|
2624
|
+
lastModifyingUser: {
|
|
2625
|
+
displayName: "Test string",
|
|
2626
|
+
emailAddress: "Test string",
|
|
2627
|
+
isAuthenticatedUser: true,
|
|
2628
|
+
kind: "Test string",
|
|
2629
|
+
permissionId: "Test string",
|
|
2630
|
+
picture: {
|
|
2631
|
+
url: "Test string",
|
|
2632
|
+
},
|
|
2633
|
+
},
|
|
2634
|
+
lastModifyingUserName: "Test string",
|
|
2635
|
+
md5Checksum: "Test string",
|
|
2636
|
+
mimeType: "Test string",
|
|
2637
|
+
modifiedDate: "Test string",
|
|
2638
|
+
originalFilename: "Test string",
|
|
2639
|
+
pinned: true,
|
|
2640
|
+
publishAuto: true,
|
|
2641
|
+
published: true,
|
|
2642
|
+
publishedLink: "Test string",
|
|
2643
|
+
publishedOutsideDomain: true,
|
|
2644
|
+
selfLink: "Test string",
|
|
2645
|
+
});
|
|
2646
|
+
/** Deprecated use drives.delete instead. */
|
|
2647
|
+
await gapi.client.drive.teamdrives.delete({
|
|
2648
|
+
teamDriveId: "Test string",
|
|
2649
|
+
});
|
|
2650
|
+
/** Deprecated use drives.get instead. */
|
|
2651
|
+
await gapi.client.drive.teamdrives.get({
|
|
2652
|
+
teamDriveId: "Test string",
|
|
2653
|
+
useDomainAdminAccess: true,
|
|
2654
|
+
});
|
|
2655
|
+
/** Deprecated use drives.insert instead. */
|
|
2656
|
+
await gapi.client.drive.teamdrives.insert({
|
|
2657
|
+
requestId: "Test string",
|
|
2658
|
+
}, {
|
|
2659
|
+
backgroundImageFile: {
|
|
2660
|
+
id: "Test string",
|
|
2661
|
+
width: 42,
|
|
2662
|
+
xCoordinate: 42,
|
|
2663
|
+
yCoordinate: 42,
|
|
2664
|
+
},
|
|
2665
|
+
backgroundImageLink: "Test string",
|
|
2666
|
+
capabilities: {
|
|
2667
|
+
canAddChildren: true,
|
|
2668
|
+
canChangeCopyRequiresWriterPermissionRestriction: true,
|
|
2669
|
+
canChangeDomainUsersOnlyRestriction: true,
|
|
2670
|
+
canChangeTeamDriveBackground: true,
|
|
2671
|
+
canChangeTeamMembersOnlyRestriction: true,
|
|
2672
|
+
canComment: true,
|
|
2673
|
+
canCopy: true,
|
|
2674
|
+
canDeleteChildren: true,
|
|
2675
|
+
canDeleteTeamDrive: true,
|
|
2676
|
+
canDownload: true,
|
|
2677
|
+
canEdit: true,
|
|
2678
|
+
canListChildren: true,
|
|
2679
|
+
canManageMembers: true,
|
|
2680
|
+
canReadRevisions: true,
|
|
2681
|
+
canRemoveChildren: true,
|
|
2682
|
+
canRename: true,
|
|
2683
|
+
canRenameTeamDrive: true,
|
|
2684
|
+
canResetTeamDriveRestrictions: true,
|
|
2685
|
+
canShare: true,
|
|
2686
|
+
canTrashChildren: true,
|
|
2687
|
+
},
|
|
2688
|
+
colorRgb: "Test string",
|
|
2689
|
+
createdDate: "Test string",
|
|
2690
|
+
id: "Test string",
|
|
2691
|
+
kind: "Test string",
|
|
2692
|
+
name: "Test string",
|
|
2693
|
+
orgUnitId: "Test string",
|
|
2694
|
+
restrictions: {
|
|
2695
|
+
adminManagedRestrictions: true,
|
|
2696
|
+
copyRequiresWriterPermission: true,
|
|
2697
|
+
domainUsersOnly: true,
|
|
2698
|
+
teamMembersOnly: true,
|
|
2699
|
+
},
|
|
2700
|
+
themeId: "Test string",
|
|
2701
|
+
});
|
|
2702
|
+
/** Deprecated use drives.list instead. */
|
|
2703
|
+
await gapi.client.drive.teamdrives.list({
|
|
2704
|
+
maxResults: 42,
|
|
2705
|
+
pageToken: "Test string",
|
|
2706
|
+
q: "Test string",
|
|
2707
|
+
useDomainAdminAccess: true,
|
|
2708
|
+
});
|
|
2709
|
+
/** Deprecated use drives.update instead. */
|
|
2710
|
+
await gapi.client.drive.teamdrives.update({
|
|
2711
|
+
teamDriveId: "Test string",
|
|
2712
|
+
useDomainAdminAccess: true,
|
|
2713
|
+
}, {
|
|
2714
|
+
backgroundImageFile: {
|
|
2715
|
+
id: "Test string",
|
|
2716
|
+
width: 42,
|
|
2717
|
+
xCoordinate: 42,
|
|
2718
|
+
yCoordinate: 42,
|
|
2719
|
+
},
|
|
2720
|
+
backgroundImageLink: "Test string",
|
|
2721
|
+
capabilities: {
|
|
2722
|
+
canAddChildren: true,
|
|
2723
|
+
canChangeCopyRequiresWriterPermissionRestriction: true,
|
|
2724
|
+
canChangeDomainUsersOnlyRestriction: true,
|
|
2725
|
+
canChangeTeamDriveBackground: true,
|
|
2726
|
+
canChangeTeamMembersOnlyRestriction: true,
|
|
2727
|
+
canComment: true,
|
|
2728
|
+
canCopy: true,
|
|
2729
|
+
canDeleteChildren: true,
|
|
2730
|
+
canDeleteTeamDrive: true,
|
|
2731
|
+
canDownload: true,
|
|
2732
|
+
canEdit: true,
|
|
2733
|
+
canListChildren: true,
|
|
2734
|
+
canManageMembers: true,
|
|
2735
|
+
canReadRevisions: true,
|
|
2736
|
+
canRemoveChildren: true,
|
|
2737
|
+
canRename: true,
|
|
2738
|
+
canRenameTeamDrive: true,
|
|
2739
|
+
canResetTeamDriveRestrictions: true,
|
|
2740
|
+
canShare: true,
|
|
2741
|
+
canTrashChildren: true,
|
|
2742
|
+
},
|
|
2743
|
+
colorRgb: "Test string",
|
|
2744
|
+
createdDate: "Test string",
|
|
2745
|
+
id: "Test string",
|
|
2746
|
+
kind: "Test string",
|
|
2747
|
+
name: "Test string",
|
|
2748
|
+
orgUnitId: "Test string",
|
|
2749
|
+
restrictions: {
|
|
2750
|
+
adminManagedRestrictions: true,
|
|
2751
|
+
copyRequiresWriterPermission: true,
|
|
2752
|
+
domainUsersOnly: true,
|
|
2753
|
+
teamMembersOnly: true,
|
|
2754
|
+
},
|
|
2755
|
+
themeId: "Test string",
|
|
2756
|
+
});
|
|
2757
|
+
}
|
|
2758
|
+
});
|