@maxim_mazurok/gapi.client.drive-v3 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/tests.ts ADDED
@@ -0,0 +1,1648 @@
1
+ /* This is stub file for gapi.client.drive-v3 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/v3/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
+ /** See, edit, create, and delete only the specific Google Drive files you use with this app */
23
+ 'https://www.googleapis.com/auth/drive.file',
24
+ /** View and manage metadata of files in your Google Drive */
25
+ 'https://www.googleapis.com/auth/drive.metadata',
26
+ /** See information about your Google Drive files */
27
+ 'https://www.googleapis.com/auth/drive.metadata.readonly',
28
+ /** View the photos, videos and albums in your Google Photos */
29
+ 'https://www.googleapis.com/auth/drive.photos.readonly',
30
+ /** See and download all your Google Drive files */
31
+ 'https://www.googleapis.com/auth/drive.readonly',
32
+ /** Modify your Google Apps Script scripts' behavior */
33
+ 'https://www.googleapis.com/auth/drive.scripts',
34
+ ];
35
+ const immediate = false;
36
+ gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
37
+ if (authResult && !authResult.error) {
38
+ /** handle successful authorization */
39
+ run();
40
+ } else {
41
+ /** handle authorization error */
42
+ }
43
+ });
44
+
45
+ async function run() {
46
+ /** Gets information about the user, the user's Drive, and system capabilities. */
47
+ await gapi.client.drive.about.get();
48
+ /** Gets the starting pageToken for listing future changes. */
49
+ await gapi.client.drive.changes.getStartPageToken({
50
+ driveId: "Test string",
51
+ supportsAllDrives: true,
52
+ supportsTeamDrives: true,
53
+ teamDriveId: "Test string",
54
+ });
55
+ /** Lists the changes for a user or shared drive. */
56
+ await gapi.client.drive.changes.list({
57
+ driveId: "Test string",
58
+ includeCorpusRemovals: true,
59
+ includeItemsFromAllDrives: true,
60
+ includeLabels: "Test string",
61
+ includePermissionsForView: "Test string",
62
+ includeRemoved: true,
63
+ includeTeamDriveItems: true,
64
+ pageSize: 42,
65
+ pageToken: "Test string",
66
+ restrictToMyDrive: true,
67
+ spaces: "Test string",
68
+ supportsAllDrives: true,
69
+ supportsTeamDrives: true,
70
+ teamDriveId: "Test string",
71
+ });
72
+ /** Subscribes to changes for a user. */
73
+ await gapi.client.drive.changes.watch({
74
+ driveId: "Test string",
75
+ includeCorpusRemovals: true,
76
+ includeItemsFromAllDrives: true,
77
+ includeLabels: "Test string",
78
+ includePermissionsForView: "Test string",
79
+ includeRemoved: true,
80
+ includeTeamDriveItems: true,
81
+ pageSize: 42,
82
+ pageToken: "Test string",
83
+ restrictToMyDrive: true,
84
+ spaces: "Test string",
85
+ supportsAllDrives: true,
86
+ supportsTeamDrives: true,
87
+ teamDriveId: "Test string",
88
+ }, {
89
+ address: "Test string",
90
+ expiration: "Test string",
91
+ id: "Test string",
92
+ kind: "Test string",
93
+ params: {
94
+ A: "Test string"
95
+ },
96
+ payload: true,
97
+ resourceId: "Test string",
98
+ resourceUri: "Test string",
99
+ token: "Test string",
100
+ type: "Test string",
101
+ });
102
+ /** Stop watching resources through this channel */
103
+ await gapi.client.drive.channels.stop({} , {
104
+ address: "Test string",
105
+ expiration: "Test string",
106
+ id: "Test string",
107
+ kind: "Test string",
108
+ params: {
109
+ A: "Test string"
110
+ },
111
+ payload: true,
112
+ resourceId: "Test string",
113
+ resourceUri: "Test string",
114
+ token: "Test string",
115
+ type: "Test string",
116
+ });
117
+ /** Creates a new comment on a file. */
118
+ await gapi.client.drive.comments.create({
119
+ fileId: "Test string",
120
+ }, {
121
+ anchor: "Test string",
122
+ author: {
123
+ displayName: "Test string",
124
+ emailAddress: "Test string",
125
+ kind: "Test string",
126
+ me: true,
127
+ permissionId: "Test string",
128
+ photoLink: "Test string",
129
+ },
130
+ content: "Test string",
131
+ createdTime: "Test string",
132
+ deleted: true,
133
+ htmlContent: "Test string",
134
+ id: "Test string",
135
+ kind: "Test string",
136
+ modifiedTime: "Test string",
137
+ quotedFileContent: {
138
+ mimeType: "Test string",
139
+ value: "Test string",
140
+ },
141
+ replies: [
142
+ {
143
+ action: "Test string",
144
+ author: {
145
+ displayName: "Test string",
146
+ emailAddress: "Test string",
147
+ kind: "Test string",
148
+ me: true,
149
+ permissionId: "Test string",
150
+ photoLink: "Test string",
151
+ },
152
+ content: "Test string",
153
+ createdTime: "Test string",
154
+ deleted: true,
155
+ htmlContent: "Test string",
156
+ id: "Test string",
157
+ kind: "Test string",
158
+ modifiedTime: "Test string",
159
+ }
160
+ ],
161
+ resolved: true,
162
+ });
163
+ /** Deletes a comment. */
164
+ await gapi.client.drive.comments.delete({
165
+ commentId: "Test string",
166
+ fileId: "Test string",
167
+ });
168
+ /** Gets a comment by ID. */
169
+ await gapi.client.drive.comments.get({
170
+ commentId: "Test string",
171
+ fileId: "Test string",
172
+ includeDeleted: true,
173
+ });
174
+ /** Lists a file's comments. */
175
+ await gapi.client.drive.comments.list({
176
+ fileId: "Test string",
177
+ includeDeleted: true,
178
+ pageSize: 42,
179
+ pageToken: "Test string",
180
+ startModifiedTime: "Test string",
181
+ });
182
+ /** Updates a comment with patch semantics. */
183
+ await gapi.client.drive.comments.update({
184
+ commentId: "Test string",
185
+ fileId: "Test string",
186
+ }, {
187
+ anchor: "Test string",
188
+ author: {
189
+ displayName: "Test string",
190
+ emailAddress: "Test string",
191
+ kind: "Test string",
192
+ me: true,
193
+ permissionId: "Test string",
194
+ photoLink: "Test string",
195
+ },
196
+ content: "Test string",
197
+ createdTime: "Test string",
198
+ deleted: true,
199
+ htmlContent: "Test string",
200
+ id: "Test string",
201
+ kind: "Test string",
202
+ modifiedTime: "Test string",
203
+ quotedFileContent: {
204
+ mimeType: "Test string",
205
+ value: "Test string",
206
+ },
207
+ replies: [
208
+ {
209
+ action: "Test string",
210
+ author: {
211
+ displayName: "Test string",
212
+ emailAddress: "Test string",
213
+ kind: "Test string",
214
+ me: true,
215
+ permissionId: "Test string",
216
+ photoLink: "Test string",
217
+ },
218
+ content: "Test string",
219
+ createdTime: "Test string",
220
+ deleted: true,
221
+ htmlContent: "Test string",
222
+ id: "Test string",
223
+ kind: "Test string",
224
+ modifiedTime: "Test string",
225
+ }
226
+ ],
227
+ resolved: true,
228
+ });
229
+ /** Creates a new shared drive. */
230
+ await gapi.client.drive.drives.create({
231
+ requestId: "Test string",
232
+ }, {
233
+ backgroundImageFile: {
234
+ id: "Test string",
235
+ width: 42,
236
+ xCoordinate: 42,
237
+ yCoordinate: 42,
238
+ },
239
+ backgroundImageLink: "Test string",
240
+ capabilities: {
241
+ canAddChildren: true,
242
+ canChangeCopyRequiresWriterPermissionRestriction: true,
243
+ canChangeDomainUsersOnlyRestriction: true,
244
+ canChangeDriveBackground: true,
245
+ canChangeDriveMembersOnlyRestriction: true,
246
+ canComment: true,
247
+ canCopy: true,
248
+ canDeleteChildren: true,
249
+ canDeleteDrive: true,
250
+ canDownload: true,
251
+ canEdit: true,
252
+ canListChildren: true,
253
+ canManageMembers: true,
254
+ canReadRevisions: true,
255
+ canRename: true,
256
+ canRenameDrive: true,
257
+ canResetDriveRestrictions: true,
258
+ canShare: true,
259
+ canTrashChildren: true,
260
+ },
261
+ colorRgb: "Test string",
262
+ createdTime: "Test string",
263
+ hidden: true,
264
+ id: "Test string",
265
+ kind: "Test string",
266
+ name: "Test string",
267
+ orgUnitId: "Test string",
268
+ restrictions: {
269
+ adminManagedRestrictions: true,
270
+ copyRequiresWriterPermission: true,
271
+ domainUsersOnly: true,
272
+ driveMembersOnly: true,
273
+ },
274
+ themeId: "Test string",
275
+ });
276
+ /** Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items. */
277
+ await gapi.client.drive.drives.delete({
278
+ allowItemDeletion: true,
279
+ driveId: "Test string",
280
+ useDomainAdminAccess: true,
281
+ });
282
+ /** Gets a shared drive's metadata by ID. */
283
+ await gapi.client.drive.drives.get({
284
+ driveId: "Test string",
285
+ useDomainAdminAccess: true,
286
+ });
287
+ /** Hides a shared drive from the default view. */
288
+ await gapi.client.drive.drives.hide({
289
+ driveId: "Test string",
290
+ });
291
+ /** Lists the user's shared drives. */
292
+ await gapi.client.drive.drives.list({
293
+ pageSize: 42,
294
+ pageToken: "Test string",
295
+ q: "Test string",
296
+ useDomainAdminAccess: true,
297
+ });
298
+ /** Restores a shared drive to the default view. */
299
+ await gapi.client.drive.drives.unhide({
300
+ driveId: "Test string",
301
+ });
302
+ /** Updates the metadate for a shared drive. */
303
+ await gapi.client.drive.drives.update({
304
+ driveId: "Test string",
305
+ useDomainAdminAccess: true,
306
+ }, {
307
+ backgroundImageFile: {
308
+ id: "Test string",
309
+ width: 42,
310
+ xCoordinate: 42,
311
+ yCoordinate: 42,
312
+ },
313
+ backgroundImageLink: "Test string",
314
+ capabilities: {
315
+ canAddChildren: true,
316
+ canChangeCopyRequiresWriterPermissionRestriction: true,
317
+ canChangeDomainUsersOnlyRestriction: true,
318
+ canChangeDriveBackground: true,
319
+ canChangeDriveMembersOnlyRestriction: true,
320
+ canComment: true,
321
+ canCopy: true,
322
+ canDeleteChildren: true,
323
+ canDeleteDrive: true,
324
+ canDownload: true,
325
+ canEdit: true,
326
+ canListChildren: true,
327
+ canManageMembers: true,
328
+ canReadRevisions: true,
329
+ canRename: true,
330
+ canRenameDrive: true,
331
+ canResetDriveRestrictions: true,
332
+ canShare: true,
333
+ canTrashChildren: true,
334
+ },
335
+ colorRgb: "Test string",
336
+ createdTime: "Test string",
337
+ hidden: true,
338
+ id: "Test string",
339
+ kind: "Test string",
340
+ name: "Test string",
341
+ orgUnitId: "Test string",
342
+ restrictions: {
343
+ adminManagedRestrictions: true,
344
+ copyRequiresWriterPermission: true,
345
+ domainUsersOnly: true,
346
+ driveMembersOnly: true,
347
+ },
348
+ themeId: "Test string",
349
+ });
350
+ /** Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied. */
351
+ await gapi.client.drive.files.copy({
352
+ enforceSingleParent: true,
353
+ fileId: "Test string",
354
+ ignoreDefaultVisibility: true,
355
+ includeLabels: "Test string",
356
+ includePermissionsForView: "Test string",
357
+ keepRevisionForever: true,
358
+ ocrLanguage: "Test string",
359
+ supportsAllDrives: true,
360
+ supportsTeamDrives: true,
361
+ }, {
362
+ appProperties: {
363
+ A: "Test string"
364
+ },
365
+ capabilities: {
366
+ canAcceptOwnership: true,
367
+ canAddChildren: true,
368
+ canAddFolderFromAnotherDrive: true,
369
+ canAddMyDriveParent: true,
370
+ canChangeCopyRequiresWriterPermission: true,
371
+ canChangeSecurityUpdateEnabled: true,
372
+ canChangeViewersCanCopyContent: true,
373
+ canComment: true,
374
+ canCopy: true,
375
+ canDelete: true,
376
+ canDeleteChildren: true,
377
+ canDownload: true,
378
+ canEdit: true,
379
+ canListChildren: true,
380
+ canModifyContent: true,
381
+ canModifyContentRestriction: true,
382
+ canModifyLabels: true,
383
+ canMoveChildrenOutOfDrive: true,
384
+ canMoveChildrenOutOfTeamDrive: true,
385
+ canMoveChildrenWithinDrive: true,
386
+ canMoveChildrenWithinTeamDrive: true,
387
+ canMoveItemIntoTeamDrive: true,
388
+ canMoveItemOutOfDrive: true,
389
+ canMoveItemOutOfTeamDrive: true,
390
+ canMoveItemWithinDrive: true,
391
+ canMoveItemWithinTeamDrive: true,
392
+ canMoveTeamDriveItem: true,
393
+ canReadDrive: true,
394
+ canReadLabels: true,
395
+ canReadRevisions: true,
396
+ canReadTeamDrive: true,
397
+ canRemoveChildren: true,
398
+ canRemoveMyDriveParent: true,
399
+ canRename: true,
400
+ canShare: true,
401
+ canTrash: true,
402
+ canTrashChildren: true,
403
+ canUntrash: true,
404
+ },
405
+ contentHints: {
406
+ indexableText: "Test string",
407
+ thumbnail: {
408
+ image: "Test string",
409
+ mimeType: "Test string",
410
+ },
411
+ },
412
+ contentRestrictions: [
413
+ {
414
+ readOnly: true,
415
+ reason: "Test string",
416
+ restrictingUser: {
417
+ displayName: "Test string",
418
+ emailAddress: "Test string",
419
+ kind: "Test string",
420
+ me: true,
421
+ permissionId: "Test string",
422
+ photoLink: "Test string",
423
+ },
424
+ restrictionTime: "Test string",
425
+ type: "Test string",
426
+ }
427
+ ],
428
+ copyRequiresWriterPermission: true,
429
+ createdTime: "Test string",
430
+ description: "Test string",
431
+ driveId: "Test string",
432
+ explicitlyTrashed: true,
433
+ exportLinks: {
434
+ A: "Test string"
435
+ },
436
+ fileExtension: "Test string",
437
+ folderColorRgb: "Test string",
438
+ fullFileExtension: "Test string",
439
+ hasAugmentedPermissions: true,
440
+ hasThumbnail: true,
441
+ headRevisionId: "Test string",
442
+ iconLink: "Test string",
443
+ id: "Test string",
444
+ imageMediaMetadata: {
445
+ aperture: 42,
446
+ cameraMake: "Test string",
447
+ cameraModel: "Test string",
448
+ colorSpace: "Test string",
449
+ exposureBias: 42,
450
+ exposureMode: "Test string",
451
+ exposureTime: 42,
452
+ flashUsed: true,
453
+ focalLength: 42,
454
+ height: 42,
455
+ isoSpeed: 42,
456
+ lens: "Test string",
457
+ location: {
458
+ altitude: 42,
459
+ latitude: 42,
460
+ longitude: 42,
461
+ },
462
+ maxApertureValue: 42,
463
+ meteringMode: "Test string",
464
+ rotation: 42,
465
+ sensor: "Test string",
466
+ subjectDistance: 42,
467
+ time: "Test string",
468
+ whiteBalance: "Test string",
469
+ width: 42,
470
+ },
471
+ isAppAuthorized: true,
472
+ kind: "Test string",
473
+ labelInfo: {
474
+ labels: [
475
+ {
476
+ fields: {
477
+ A: {
478
+ dateString: [
479
+ "Test string"
480
+ ],
481
+ id: "Test string",
482
+ integer: [
483
+ "Test string"
484
+ ],
485
+ kind: "Test string",
486
+ selection: [
487
+ "Test string"
488
+ ],
489
+ text: [
490
+ "Test string"
491
+ ],
492
+ user: [
493
+ {
494
+ displayName: "Test string",
495
+ emailAddress: "Test string",
496
+ kind: "Test string",
497
+ me: true,
498
+ permissionId: "Test string",
499
+ photoLink: "Test string",
500
+ }
501
+ ],
502
+ valueType: "Test string",
503
+ }
504
+ },
505
+ id: "Test string",
506
+ kind: "Test string",
507
+ revisionId: "Test string",
508
+ }
509
+ ],
510
+ },
511
+ lastModifyingUser: {
512
+ displayName: "Test string",
513
+ emailAddress: "Test string",
514
+ kind: "Test string",
515
+ me: true,
516
+ permissionId: "Test string",
517
+ photoLink: "Test string",
518
+ },
519
+ linkShareMetadata: {
520
+ securityUpdateEligible: true,
521
+ securityUpdateEnabled: true,
522
+ },
523
+ md5Checksum: "Test string",
524
+ mimeType: "Test string",
525
+ modifiedByMe: true,
526
+ modifiedByMeTime: "Test string",
527
+ modifiedTime: "Test string",
528
+ name: "Test string",
529
+ originalFilename: "Test string",
530
+ ownedByMe: true,
531
+ owners: [
532
+ {
533
+ displayName: "Test string",
534
+ emailAddress: "Test string",
535
+ kind: "Test string",
536
+ me: true,
537
+ permissionId: "Test string",
538
+ photoLink: "Test string",
539
+ }
540
+ ],
541
+ parents: [
542
+ "Test string"
543
+ ],
544
+ permissionIds: [
545
+ "Test string"
546
+ ],
547
+ permissions: [
548
+ {
549
+ allowFileDiscovery: true,
550
+ deleted: true,
551
+ displayName: "Test string",
552
+ domain: "Test string",
553
+ emailAddress: "Test string",
554
+ expirationTime: "Test string",
555
+ id: "Test string",
556
+ kind: "Test string",
557
+ pendingOwner: true,
558
+ permissionDetails: [
559
+ {
560
+ inherited: true,
561
+ inheritedFrom: "Test string",
562
+ permissionType: "Test string",
563
+ role: "Test string",
564
+ }
565
+ ],
566
+ photoLink: "Test string",
567
+ role: "Test string",
568
+ teamDrivePermissionDetails: [
569
+ {
570
+ inherited: true,
571
+ inheritedFrom: "Test string",
572
+ role: "Test string",
573
+ teamDrivePermissionType: "Test string",
574
+ }
575
+ ],
576
+ type: "Test string",
577
+ view: "Test string",
578
+ }
579
+ ],
580
+ properties: {
581
+ A: "Test string"
582
+ },
583
+ quotaBytesUsed: "Test string",
584
+ resourceKey: "Test string",
585
+ shared: true,
586
+ sharedWithMeTime: "Test string",
587
+ sharingUser: {
588
+ displayName: "Test string",
589
+ emailAddress: "Test string",
590
+ kind: "Test string",
591
+ me: true,
592
+ permissionId: "Test string",
593
+ photoLink: "Test string",
594
+ },
595
+ shortcutDetails: {
596
+ targetId: "Test string",
597
+ targetMimeType: "Test string",
598
+ targetResourceKey: "Test string",
599
+ },
600
+ size: "Test string",
601
+ spaces: [
602
+ "Test string"
603
+ ],
604
+ starred: true,
605
+ teamDriveId: "Test string",
606
+ thumbnailLink: "Test string",
607
+ thumbnailVersion: "Test string",
608
+ trashed: true,
609
+ trashedTime: "Test string",
610
+ trashingUser: {
611
+ displayName: "Test string",
612
+ emailAddress: "Test string",
613
+ kind: "Test string",
614
+ me: true,
615
+ permissionId: "Test string",
616
+ photoLink: "Test string",
617
+ },
618
+ version: "Test string",
619
+ videoMediaMetadata: {
620
+ durationMillis: "Test string",
621
+ height: 42,
622
+ width: 42,
623
+ },
624
+ viewedByMe: true,
625
+ viewedByMeTime: "Test string",
626
+ viewersCanCopyContent: true,
627
+ webContentLink: "Test string",
628
+ webViewLink: "Test string",
629
+ writersCanShare: true,
630
+ });
631
+ /** Creates a new file. */
632
+ await gapi.client.drive.files.create({
633
+ enforceSingleParent: true,
634
+ ignoreDefaultVisibility: true,
635
+ includeLabels: "Test string",
636
+ includePermissionsForView: "Test string",
637
+ keepRevisionForever: true,
638
+ ocrLanguage: "Test string",
639
+ supportsAllDrives: true,
640
+ supportsTeamDrives: true,
641
+ useContentAsIndexableText: true,
642
+ }, {
643
+ appProperties: {
644
+ A: "Test string"
645
+ },
646
+ capabilities: {
647
+ canAcceptOwnership: true,
648
+ canAddChildren: true,
649
+ canAddFolderFromAnotherDrive: true,
650
+ canAddMyDriveParent: true,
651
+ canChangeCopyRequiresWriterPermission: true,
652
+ canChangeSecurityUpdateEnabled: true,
653
+ canChangeViewersCanCopyContent: true,
654
+ canComment: true,
655
+ canCopy: true,
656
+ canDelete: true,
657
+ canDeleteChildren: true,
658
+ canDownload: true,
659
+ canEdit: true,
660
+ canListChildren: true,
661
+ canModifyContent: true,
662
+ canModifyContentRestriction: true,
663
+ canModifyLabels: true,
664
+ canMoveChildrenOutOfDrive: true,
665
+ canMoveChildrenOutOfTeamDrive: true,
666
+ canMoveChildrenWithinDrive: true,
667
+ canMoveChildrenWithinTeamDrive: true,
668
+ canMoveItemIntoTeamDrive: true,
669
+ canMoveItemOutOfDrive: true,
670
+ canMoveItemOutOfTeamDrive: true,
671
+ canMoveItemWithinDrive: true,
672
+ canMoveItemWithinTeamDrive: true,
673
+ canMoveTeamDriveItem: true,
674
+ canReadDrive: true,
675
+ canReadLabels: true,
676
+ canReadRevisions: true,
677
+ canReadTeamDrive: true,
678
+ canRemoveChildren: true,
679
+ canRemoveMyDriveParent: true,
680
+ canRename: true,
681
+ canShare: true,
682
+ canTrash: true,
683
+ canTrashChildren: true,
684
+ canUntrash: true,
685
+ },
686
+ contentHints: {
687
+ indexableText: "Test string",
688
+ thumbnail: {
689
+ image: "Test string",
690
+ mimeType: "Test string",
691
+ },
692
+ },
693
+ contentRestrictions: [
694
+ {
695
+ readOnly: true,
696
+ reason: "Test string",
697
+ restrictingUser: {
698
+ displayName: "Test string",
699
+ emailAddress: "Test string",
700
+ kind: "Test string",
701
+ me: true,
702
+ permissionId: "Test string",
703
+ photoLink: "Test string",
704
+ },
705
+ restrictionTime: "Test string",
706
+ type: "Test string",
707
+ }
708
+ ],
709
+ copyRequiresWriterPermission: true,
710
+ createdTime: "Test string",
711
+ description: "Test string",
712
+ driveId: "Test string",
713
+ explicitlyTrashed: true,
714
+ exportLinks: {
715
+ A: "Test string"
716
+ },
717
+ fileExtension: "Test string",
718
+ folderColorRgb: "Test string",
719
+ fullFileExtension: "Test string",
720
+ hasAugmentedPermissions: true,
721
+ hasThumbnail: true,
722
+ headRevisionId: "Test string",
723
+ iconLink: "Test string",
724
+ id: "Test string",
725
+ imageMediaMetadata: {
726
+ aperture: 42,
727
+ cameraMake: "Test string",
728
+ cameraModel: "Test string",
729
+ colorSpace: "Test string",
730
+ exposureBias: 42,
731
+ exposureMode: "Test string",
732
+ exposureTime: 42,
733
+ flashUsed: true,
734
+ focalLength: 42,
735
+ height: 42,
736
+ isoSpeed: 42,
737
+ lens: "Test string",
738
+ location: {
739
+ altitude: 42,
740
+ latitude: 42,
741
+ longitude: 42,
742
+ },
743
+ maxApertureValue: 42,
744
+ meteringMode: "Test string",
745
+ rotation: 42,
746
+ sensor: "Test string",
747
+ subjectDistance: 42,
748
+ time: "Test string",
749
+ whiteBalance: "Test string",
750
+ width: 42,
751
+ },
752
+ isAppAuthorized: true,
753
+ kind: "Test string",
754
+ labelInfo: {
755
+ labels: [
756
+ {
757
+ fields: {
758
+ A: {
759
+ dateString: [
760
+ "Test string"
761
+ ],
762
+ id: "Test string",
763
+ integer: [
764
+ "Test string"
765
+ ],
766
+ kind: "Test string",
767
+ selection: [
768
+ "Test string"
769
+ ],
770
+ text: [
771
+ "Test string"
772
+ ],
773
+ user: [
774
+ {
775
+ displayName: "Test string",
776
+ emailAddress: "Test string",
777
+ kind: "Test string",
778
+ me: true,
779
+ permissionId: "Test string",
780
+ photoLink: "Test string",
781
+ }
782
+ ],
783
+ valueType: "Test string",
784
+ }
785
+ },
786
+ id: "Test string",
787
+ kind: "Test string",
788
+ revisionId: "Test string",
789
+ }
790
+ ],
791
+ },
792
+ lastModifyingUser: {
793
+ displayName: "Test string",
794
+ emailAddress: "Test string",
795
+ kind: "Test string",
796
+ me: true,
797
+ permissionId: "Test string",
798
+ photoLink: "Test string",
799
+ },
800
+ linkShareMetadata: {
801
+ securityUpdateEligible: true,
802
+ securityUpdateEnabled: true,
803
+ },
804
+ md5Checksum: "Test string",
805
+ mimeType: "Test string",
806
+ modifiedByMe: true,
807
+ modifiedByMeTime: "Test string",
808
+ modifiedTime: "Test string",
809
+ name: "Test string",
810
+ originalFilename: "Test string",
811
+ ownedByMe: true,
812
+ owners: [
813
+ {
814
+ displayName: "Test string",
815
+ emailAddress: "Test string",
816
+ kind: "Test string",
817
+ me: true,
818
+ permissionId: "Test string",
819
+ photoLink: "Test string",
820
+ }
821
+ ],
822
+ parents: [
823
+ "Test string"
824
+ ],
825
+ permissionIds: [
826
+ "Test string"
827
+ ],
828
+ permissions: [
829
+ {
830
+ allowFileDiscovery: true,
831
+ deleted: true,
832
+ displayName: "Test string",
833
+ domain: "Test string",
834
+ emailAddress: "Test string",
835
+ expirationTime: "Test string",
836
+ id: "Test string",
837
+ kind: "Test string",
838
+ pendingOwner: true,
839
+ permissionDetails: [
840
+ {
841
+ inherited: true,
842
+ inheritedFrom: "Test string",
843
+ permissionType: "Test string",
844
+ role: "Test string",
845
+ }
846
+ ],
847
+ photoLink: "Test string",
848
+ role: "Test string",
849
+ teamDrivePermissionDetails: [
850
+ {
851
+ inherited: true,
852
+ inheritedFrom: "Test string",
853
+ role: "Test string",
854
+ teamDrivePermissionType: "Test string",
855
+ }
856
+ ],
857
+ type: "Test string",
858
+ view: "Test string",
859
+ }
860
+ ],
861
+ properties: {
862
+ A: "Test string"
863
+ },
864
+ quotaBytesUsed: "Test string",
865
+ resourceKey: "Test string",
866
+ shared: true,
867
+ sharedWithMeTime: "Test string",
868
+ sharingUser: {
869
+ displayName: "Test string",
870
+ emailAddress: "Test string",
871
+ kind: "Test string",
872
+ me: true,
873
+ permissionId: "Test string",
874
+ photoLink: "Test string",
875
+ },
876
+ shortcutDetails: {
877
+ targetId: "Test string",
878
+ targetMimeType: "Test string",
879
+ targetResourceKey: "Test string",
880
+ },
881
+ size: "Test string",
882
+ spaces: [
883
+ "Test string"
884
+ ],
885
+ starred: true,
886
+ teamDriveId: "Test string",
887
+ thumbnailLink: "Test string",
888
+ thumbnailVersion: "Test string",
889
+ trashed: true,
890
+ trashedTime: "Test string",
891
+ trashingUser: {
892
+ displayName: "Test string",
893
+ emailAddress: "Test string",
894
+ kind: "Test string",
895
+ me: true,
896
+ permissionId: "Test string",
897
+ photoLink: "Test string",
898
+ },
899
+ version: "Test string",
900
+ videoMediaMetadata: {
901
+ durationMillis: "Test string",
902
+ height: 42,
903
+ width: 42,
904
+ },
905
+ viewedByMe: true,
906
+ viewedByMeTime: "Test string",
907
+ viewersCanCopyContent: true,
908
+ webContentLink: "Test string",
909
+ webViewLink: "Test string",
910
+ writersCanShare: true,
911
+ });
912
+ /**
913
+ * Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a
914
+ * folder, all descendants owned by the user are also deleted.
915
+ */
916
+ await gapi.client.drive.files.delete({
917
+ enforceSingleParent: true,
918
+ fileId: "Test string",
919
+ supportsAllDrives: true,
920
+ supportsTeamDrives: true,
921
+ });
922
+ /** Permanently deletes all of the user's trashed files. */
923
+ await gapi.client.drive.files.emptyTrash({
924
+ enforceSingleParent: true,
925
+ });
926
+ /** Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB. */
927
+ await gapi.client.drive.files.export({
928
+ fileId: "Test string",
929
+ mimeType: "Test string",
930
+ });
931
+ /** Generates a set of file IDs which can be provided in create or copy requests. */
932
+ await gapi.client.drive.files.generateIds({
933
+ count: 42,
934
+ space: "Test string",
935
+ type: "Test string",
936
+ });
937
+ /** Gets a file's metadata or content by ID. */
938
+ await gapi.client.drive.files.get({
939
+ acknowledgeAbuse: true,
940
+ fileId: "Test string",
941
+ includeLabels: "Test string",
942
+ includePermissionsForView: "Test string",
943
+ supportsAllDrives: true,
944
+ supportsTeamDrives: true,
945
+ });
946
+ /** Lists or searches files. */
947
+ await gapi.client.drive.files.list({
948
+ corpora: "Test string",
949
+ corpus: "Test string",
950
+ driveId: "Test string",
951
+ includeItemsFromAllDrives: true,
952
+ includeLabels: "Test string",
953
+ includePermissionsForView: "Test string",
954
+ includeTeamDriveItems: true,
955
+ orderBy: "Test string",
956
+ pageSize: 42,
957
+ pageToken: "Test string",
958
+ q: "Test string",
959
+ spaces: "Test string",
960
+ supportsAllDrives: true,
961
+ supportsTeamDrives: true,
962
+ teamDriveId: "Test string",
963
+ });
964
+ /** Lists the labels on a file. */
965
+ await gapi.client.drive.files.listLabels({
966
+ fileId: "Test string",
967
+ maxResults: 42,
968
+ pageToken: "Test string",
969
+ });
970
+ /** Modifies the set of labels on a file. */
971
+ await gapi.client.drive.files.modifyLabels({
972
+ fileId: "Test string",
973
+ }, {
974
+ kind: "Test string",
975
+ labelModifications: [
976
+ {
977
+ fieldModifications: [
978
+ {
979
+ fieldId: "Test string",
980
+ kind: "Test string",
981
+ setDateValues: [
982
+ "Test string"
983
+ ],
984
+ setIntegerValues: [
985
+ "Test string"
986
+ ],
987
+ setSelectionValues: [
988
+ "Test string"
989
+ ],
990
+ setTextValues: [
991
+ "Test string"
992
+ ],
993
+ setUserValues: [
994
+ "Test string"
995
+ ],
996
+ unsetValues: true,
997
+ }
998
+ ],
999
+ kind: "Test string",
1000
+ labelId: "Test string",
1001
+ removeLabel: true,
1002
+ }
1003
+ ],
1004
+ });
1005
+ /**
1006
+ * 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
1007
+ * automatically, such as modifiedDate. This method supports patch semantics.
1008
+ */
1009
+ await gapi.client.drive.files.update({
1010
+ addParents: "Test string",
1011
+ enforceSingleParent: true,
1012
+ fileId: "Test string",
1013
+ includeLabels: "Test string",
1014
+ includePermissionsForView: "Test string",
1015
+ keepRevisionForever: true,
1016
+ ocrLanguage: "Test string",
1017
+ removeParents: "Test string",
1018
+ supportsAllDrives: true,
1019
+ supportsTeamDrives: true,
1020
+ useContentAsIndexableText: true,
1021
+ }, {
1022
+ appProperties: {
1023
+ A: "Test string"
1024
+ },
1025
+ capabilities: {
1026
+ canAcceptOwnership: true,
1027
+ canAddChildren: true,
1028
+ canAddFolderFromAnotherDrive: true,
1029
+ canAddMyDriveParent: true,
1030
+ canChangeCopyRequiresWriterPermission: true,
1031
+ canChangeSecurityUpdateEnabled: true,
1032
+ canChangeViewersCanCopyContent: true,
1033
+ canComment: true,
1034
+ canCopy: true,
1035
+ canDelete: true,
1036
+ canDeleteChildren: true,
1037
+ canDownload: true,
1038
+ canEdit: true,
1039
+ canListChildren: true,
1040
+ canModifyContent: true,
1041
+ canModifyContentRestriction: true,
1042
+ canModifyLabels: true,
1043
+ canMoveChildrenOutOfDrive: true,
1044
+ canMoveChildrenOutOfTeamDrive: true,
1045
+ canMoveChildrenWithinDrive: true,
1046
+ canMoveChildrenWithinTeamDrive: true,
1047
+ canMoveItemIntoTeamDrive: true,
1048
+ canMoveItemOutOfDrive: true,
1049
+ canMoveItemOutOfTeamDrive: true,
1050
+ canMoveItemWithinDrive: true,
1051
+ canMoveItemWithinTeamDrive: true,
1052
+ canMoveTeamDriveItem: true,
1053
+ canReadDrive: true,
1054
+ canReadLabels: true,
1055
+ canReadRevisions: true,
1056
+ canReadTeamDrive: true,
1057
+ canRemoveChildren: true,
1058
+ canRemoveMyDriveParent: true,
1059
+ canRename: true,
1060
+ canShare: true,
1061
+ canTrash: true,
1062
+ canTrashChildren: true,
1063
+ canUntrash: true,
1064
+ },
1065
+ contentHints: {
1066
+ indexableText: "Test string",
1067
+ thumbnail: {
1068
+ image: "Test string",
1069
+ mimeType: "Test string",
1070
+ },
1071
+ },
1072
+ contentRestrictions: [
1073
+ {
1074
+ readOnly: true,
1075
+ reason: "Test string",
1076
+ restrictingUser: {
1077
+ displayName: "Test string",
1078
+ emailAddress: "Test string",
1079
+ kind: "Test string",
1080
+ me: true,
1081
+ permissionId: "Test string",
1082
+ photoLink: "Test string",
1083
+ },
1084
+ restrictionTime: "Test string",
1085
+ type: "Test string",
1086
+ }
1087
+ ],
1088
+ copyRequiresWriterPermission: true,
1089
+ createdTime: "Test string",
1090
+ description: "Test string",
1091
+ driveId: "Test string",
1092
+ explicitlyTrashed: true,
1093
+ exportLinks: {
1094
+ A: "Test string"
1095
+ },
1096
+ fileExtension: "Test string",
1097
+ folderColorRgb: "Test string",
1098
+ fullFileExtension: "Test string",
1099
+ hasAugmentedPermissions: true,
1100
+ hasThumbnail: true,
1101
+ headRevisionId: "Test string",
1102
+ iconLink: "Test string",
1103
+ id: "Test string",
1104
+ imageMediaMetadata: {
1105
+ aperture: 42,
1106
+ cameraMake: "Test string",
1107
+ cameraModel: "Test string",
1108
+ colorSpace: "Test string",
1109
+ exposureBias: 42,
1110
+ exposureMode: "Test string",
1111
+ exposureTime: 42,
1112
+ flashUsed: true,
1113
+ focalLength: 42,
1114
+ height: 42,
1115
+ isoSpeed: 42,
1116
+ lens: "Test string",
1117
+ location: {
1118
+ altitude: 42,
1119
+ latitude: 42,
1120
+ longitude: 42,
1121
+ },
1122
+ maxApertureValue: 42,
1123
+ meteringMode: "Test string",
1124
+ rotation: 42,
1125
+ sensor: "Test string",
1126
+ subjectDistance: 42,
1127
+ time: "Test string",
1128
+ whiteBalance: "Test string",
1129
+ width: 42,
1130
+ },
1131
+ isAppAuthorized: true,
1132
+ kind: "Test string",
1133
+ labelInfo: {
1134
+ labels: [
1135
+ {
1136
+ fields: {
1137
+ A: {
1138
+ dateString: [
1139
+ "Test string"
1140
+ ],
1141
+ id: "Test string",
1142
+ integer: [
1143
+ "Test string"
1144
+ ],
1145
+ kind: "Test string",
1146
+ selection: [
1147
+ "Test string"
1148
+ ],
1149
+ text: [
1150
+ "Test string"
1151
+ ],
1152
+ user: [
1153
+ {
1154
+ displayName: "Test string",
1155
+ emailAddress: "Test string",
1156
+ kind: "Test string",
1157
+ me: true,
1158
+ permissionId: "Test string",
1159
+ photoLink: "Test string",
1160
+ }
1161
+ ],
1162
+ valueType: "Test string",
1163
+ }
1164
+ },
1165
+ id: "Test string",
1166
+ kind: "Test string",
1167
+ revisionId: "Test string",
1168
+ }
1169
+ ],
1170
+ },
1171
+ lastModifyingUser: {
1172
+ displayName: "Test string",
1173
+ emailAddress: "Test string",
1174
+ kind: "Test string",
1175
+ me: true,
1176
+ permissionId: "Test string",
1177
+ photoLink: "Test string",
1178
+ },
1179
+ linkShareMetadata: {
1180
+ securityUpdateEligible: true,
1181
+ securityUpdateEnabled: true,
1182
+ },
1183
+ md5Checksum: "Test string",
1184
+ mimeType: "Test string",
1185
+ modifiedByMe: true,
1186
+ modifiedByMeTime: "Test string",
1187
+ modifiedTime: "Test string",
1188
+ name: "Test string",
1189
+ originalFilename: "Test string",
1190
+ ownedByMe: true,
1191
+ owners: [
1192
+ {
1193
+ displayName: "Test string",
1194
+ emailAddress: "Test string",
1195
+ kind: "Test string",
1196
+ me: true,
1197
+ permissionId: "Test string",
1198
+ photoLink: "Test string",
1199
+ }
1200
+ ],
1201
+ parents: [
1202
+ "Test string"
1203
+ ],
1204
+ permissionIds: [
1205
+ "Test string"
1206
+ ],
1207
+ permissions: [
1208
+ {
1209
+ allowFileDiscovery: true,
1210
+ deleted: true,
1211
+ displayName: "Test string",
1212
+ domain: "Test string",
1213
+ emailAddress: "Test string",
1214
+ expirationTime: "Test string",
1215
+ id: "Test string",
1216
+ kind: "Test string",
1217
+ pendingOwner: true,
1218
+ permissionDetails: [
1219
+ {
1220
+ inherited: true,
1221
+ inheritedFrom: "Test string",
1222
+ permissionType: "Test string",
1223
+ role: "Test string",
1224
+ }
1225
+ ],
1226
+ photoLink: "Test string",
1227
+ role: "Test string",
1228
+ teamDrivePermissionDetails: [
1229
+ {
1230
+ inherited: true,
1231
+ inheritedFrom: "Test string",
1232
+ role: "Test string",
1233
+ teamDrivePermissionType: "Test string",
1234
+ }
1235
+ ],
1236
+ type: "Test string",
1237
+ view: "Test string",
1238
+ }
1239
+ ],
1240
+ properties: {
1241
+ A: "Test string"
1242
+ },
1243
+ quotaBytesUsed: "Test string",
1244
+ resourceKey: "Test string",
1245
+ shared: true,
1246
+ sharedWithMeTime: "Test string",
1247
+ sharingUser: {
1248
+ displayName: "Test string",
1249
+ emailAddress: "Test string",
1250
+ kind: "Test string",
1251
+ me: true,
1252
+ permissionId: "Test string",
1253
+ photoLink: "Test string",
1254
+ },
1255
+ shortcutDetails: {
1256
+ targetId: "Test string",
1257
+ targetMimeType: "Test string",
1258
+ targetResourceKey: "Test string",
1259
+ },
1260
+ size: "Test string",
1261
+ spaces: [
1262
+ "Test string"
1263
+ ],
1264
+ starred: true,
1265
+ teamDriveId: "Test string",
1266
+ thumbnailLink: "Test string",
1267
+ thumbnailVersion: "Test string",
1268
+ trashed: true,
1269
+ trashedTime: "Test string",
1270
+ trashingUser: {
1271
+ displayName: "Test string",
1272
+ emailAddress: "Test string",
1273
+ kind: "Test string",
1274
+ me: true,
1275
+ permissionId: "Test string",
1276
+ photoLink: "Test string",
1277
+ },
1278
+ version: "Test string",
1279
+ videoMediaMetadata: {
1280
+ durationMillis: "Test string",
1281
+ height: 42,
1282
+ width: 42,
1283
+ },
1284
+ viewedByMe: true,
1285
+ viewedByMeTime: "Test string",
1286
+ viewersCanCopyContent: true,
1287
+ webContentLink: "Test string",
1288
+ webViewLink: "Test string",
1289
+ writersCanShare: true,
1290
+ });
1291
+ /** 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. */
1292
+ await gapi.client.drive.files.watch({
1293
+ acknowledgeAbuse: true,
1294
+ fileId: "Test string",
1295
+ includeLabels: "Test string",
1296
+ includePermissionsForView: "Test string",
1297
+ supportsAllDrives: true,
1298
+ supportsTeamDrives: true,
1299
+ }, {
1300
+ address: "Test string",
1301
+ expiration: "Test string",
1302
+ id: "Test string",
1303
+ kind: "Test string",
1304
+ params: {
1305
+ A: "Test string"
1306
+ },
1307
+ payload: true,
1308
+ resourceId: "Test string",
1309
+ resourceUri: "Test string",
1310
+ token: "Test string",
1311
+ type: "Test string",
1312
+ });
1313
+ /** Creates a permission for a file or shared drive. */
1314
+ await gapi.client.drive.permissions.create({
1315
+ emailMessage: "Test string",
1316
+ enforceSingleParent: true,
1317
+ fileId: "Test string",
1318
+ moveToNewOwnersRoot: true,
1319
+ sendNotificationEmail: true,
1320
+ supportsAllDrives: true,
1321
+ supportsTeamDrives: true,
1322
+ transferOwnership: true,
1323
+ useDomainAdminAccess: true,
1324
+ }, {
1325
+ allowFileDiscovery: true,
1326
+ deleted: true,
1327
+ displayName: "Test string",
1328
+ domain: "Test string",
1329
+ emailAddress: "Test string",
1330
+ expirationTime: "Test string",
1331
+ id: "Test string",
1332
+ kind: "Test string",
1333
+ pendingOwner: true,
1334
+ permissionDetails: [
1335
+ {
1336
+ inherited: true,
1337
+ inheritedFrom: "Test string",
1338
+ permissionType: "Test string",
1339
+ role: "Test string",
1340
+ }
1341
+ ],
1342
+ photoLink: "Test string",
1343
+ role: "Test string",
1344
+ teamDrivePermissionDetails: [
1345
+ {
1346
+ inherited: true,
1347
+ inheritedFrom: "Test string",
1348
+ role: "Test string",
1349
+ teamDrivePermissionType: "Test string",
1350
+ }
1351
+ ],
1352
+ type: "Test string",
1353
+ view: "Test string",
1354
+ });
1355
+ /** Deletes a permission. */
1356
+ await gapi.client.drive.permissions.delete({
1357
+ fileId: "Test string",
1358
+ permissionId: "Test string",
1359
+ supportsAllDrives: true,
1360
+ supportsTeamDrives: true,
1361
+ useDomainAdminAccess: true,
1362
+ });
1363
+ /** Gets a permission by ID. */
1364
+ await gapi.client.drive.permissions.get({
1365
+ fileId: "Test string",
1366
+ permissionId: "Test string",
1367
+ supportsAllDrives: true,
1368
+ supportsTeamDrives: true,
1369
+ useDomainAdminAccess: true,
1370
+ });
1371
+ /** Lists a file's or shared drive's permissions. */
1372
+ await gapi.client.drive.permissions.list({
1373
+ fileId: "Test string",
1374
+ includePermissionsForView: "Test string",
1375
+ pageSize: 42,
1376
+ pageToken: "Test string",
1377
+ supportsAllDrives: true,
1378
+ supportsTeamDrives: true,
1379
+ useDomainAdminAccess: true,
1380
+ });
1381
+ /** Updates a permission with patch semantics. */
1382
+ await gapi.client.drive.permissions.update({
1383
+ fileId: "Test string",
1384
+ permissionId: "Test string",
1385
+ removeExpiration: true,
1386
+ supportsAllDrives: true,
1387
+ supportsTeamDrives: true,
1388
+ transferOwnership: true,
1389
+ useDomainAdminAccess: true,
1390
+ }, {
1391
+ allowFileDiscovery: true,
1392
+ deleted: true,
1393
+ displayName: "Test string",
1394
+ domain: "Test string",
1395
+ emailAddress: "Test string",
1396
+ expirationTime: "Test string",
1397
+ id: "Test string",
1398
+ kind: "Test string",
1399
+ pendingOwner: true,
1400
+ permissionDetails: [
1401
+ {
1402
+ inherited: true,
1403
+ inheritedFrom: "Test string",
1404
+ permissionType: "Test string",
1405
+ role: "Test string",
1406
+ }
1407
+ ],
1408
+ photoLink: "Test string",
1409
+ role: "Test string",
1410
+ teamDrivePermissionDetails: [
1411
+ {
1412
+ inherited: true,
1413
+ inheritedFrom: "Test string",
1414
+ role: "Test string",
1415
+ teamDrivePermissionType: "Test string",
1416
+ }
1417
+ ],
1418
+ type: "Test string",
1419
+ view: "Test string",
1420
+ });
1421
+ /** Creates a new reply to a comment. */
1422
+ await gapi.client.drive.replies.create({
1423
+ commentId: "Test string",
1424
+ fileId: "Test string",
1425
+ }, {
1426
+ action: "Test string",
1427
+ author: {
1428
+ displayName: "Test string",
1429
+ emailAddress: "Test string",
1430
+ kind: "Test string",
1431
+ me: true,
1432
+ permissionId: "Test string",
1433
+ photoLink: "Test string",
1434
+ },
1435
+ content: "Test string",
1436
+ createdTime: "Test string",
1437
+ deleted: true,
1438
+ htmlContent: "Test string",
1439
+ id: "Test string",
1440
+ kind: "Test string",
1441
+ modifiedTime: "Test string",
1442
+ });
1443
+ /** Deletes a reply. */
1444
+ await gapi.client.drive.replies.delete({
1445
+ commentId: "Test string",
1446
+ fileId: "Test string",
1447
+ replyId: "Test string",
1448
+ });
1449
+ /** Gets a reply by ID. */
1450
+ await gapi.client.drive.replies.get({
1451
+ commentId: "Test string",
1452
+ fileId: "Test string",
1453
+ includeDeleted: true,
1454
+ replyId: "Test string",
1455
+ });
1456
+ /** Lists a comment's replies. */
1457
+ await gapi.client.drive.replies.list({
1458
+ commentId: "Test string",
1459
+ fileId: "Test string",
1460
+ includeDeleted: true,
1461
+ pageSize: 42,
1462
+ pageToken: "Test string",
1463
+ });
1464
+ /** Updates a reply with patch semantics. */
1465
+ await gapi.client.drive.replies.update({
1466
+ commentId: "Test string",
1467
+ fileId: "Test string",
1468
+ replyId: "Test string",
1469
+ }, {
1470
+ action: "Test string",
1471
+ author: {
1472
+ displayName: "Test string",
1473
+ emailAddress: "Test string",
1474
+ kind: "Test string",
1475
+ me: true,
1476
+ permissionId: "Test string",
1477
+ photoLink: "Test string",
1478
+ },
1479
+ content: "Test string",
1480
+ createdTime: "Test string",
1481
+ deleted: true,
1482
+ htmlContent: "Test string",
1483
+ id: "Test string",
1484
+ kind: "Test string",
1485
+ modifiedTime: "Test string",
1486
+ });
1487
+ /**
1488
+ * Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or
1489
+ * Sheets, and the last remaining file version can't be deleted.
1490
+ */
1491
+ await gapi.client.drive.revisions.delete({
1492
+ fileId: "Test string",
1493
+ revisionId: "Test string",
1494
+ });
1495
+ /** Gets a revision's metadata or content by ID. */
1496
+ await gapi.client.drive.revisions.get({
1497
+ acknowledgeAbuse: true,
1498
+ fileId: "Test string",
1499
+ revisionId: "Test string",
1500
+ });
1501
+ /** Lists a file's revisions. */
1502
+ await gapi.client.drive.revisions.list({
1503
+ fileId: "Test string",
1504
+ pageSize: 42,
1505
+ pageToken: "Test string",
1506
+ });
1507
+ /** Updates a revision with patch semantics. */
1508
+ await gapi.client.drive.revisions.update({
1509
+ fileId: "Test string",
1510
+ revisionId: "Test string",
1511
+ }, {
1512
+ exportLinks: {
1513
+ A: "Test string"
1514
+ },
1515
+ id: "Test string",
1516
+ keepForever: true,
1517
+ kind: "Test string",
1518
+ lastModifyingUser: {
1519
+ displayName: "Test string",
1520
+ emailAddress: "Test string",
1521
+ kind: "Test string",
1522
+ me: true,
1523
+ permissionId: "Test string",
1524
+ photoLink: "Test string",
1525
+ },
1526
+ md5Checksum: "Test string",
1527
+ mimeType: "Test string",
1528
+ modifiedTime: "Test string",
1529
+ originalFilename: "Test string",
1530
+ publishAuto: true,
1531
+ published: true,
1532
+ publishedLink: "Test string",
1533
+ publishedOutsideDomain: true,
1534
+ size: "Test string",
1535
+ });
1536
+ /** Deprecated use drives.create instead. */
1537
+ await gapi.client.drive.teamdrives.create({
1538
+ requestId: "Test string",
1539
+ }, {
1540
+ backgroundImageFile: {
1541
+ id: "Test string",
1542
+ width: 42,
1543
+ xCoordinate: 42,
1544
+ yCoordinate: 42,
1545
+ },
1546
+ backgroundImageLink: "Test string",
1547
+ capabilities: {
1548
+ canAddChildren: true,
1549
+ canChangeCopyRequiresWriterPermissionRestriction: true,
1550
+ canChangeDomainUsersOnlyRestriction: true,
1551
+ canChangeTeamDriveBackground: true,
1552
+ canChangeTeamMembersOnlyRestriction: true,
1553
+ canComment: true,
1554
+ canCopy: true,
1555
+ canDeleteChildren: true,
1556
+ canDeleteTeamDrive: true,
1557
+ canDownload: true,
1558
+ canEdit: true,
1559
+ canListChildren: true,
1560
+ canManageMembers: true,
1561
+ canReadRevisions: true,
1562
+ canRemoveChildren: true,
1563
+ canRename: true,
1564
+ canRenameTeamDrive: true,
1565
+ canResetTeamDriveRestrictions: true,
1566
+ canShare: true,
1567
+ canTrashChildren: true,
1568
+ },
1569
+ colorRgb: "Test string",
1570
+ createdTime: "Test string",
1571
+ id: "Test string",
1572
+ kind: "Test string",
1573
+ name: "Test string",
1574
+ orgUnitId: "Test string",
1575
+ restrictions: {
1576
+ adminManagedRestrictions: true,
1577
+ copyRequiresWriterPermission: true,
1578
+ domainUsersOnly: true,
1579
+ teamMembersOnly: true,
1580
+ },
1581
+ themeId: "Test string",
1582
+ });
1583
+ /** Deprecated use drives.delete instead. */
1584
+ await gapi.client.drive.teamdrives.delete({
1585
+ teamDriveId: "Test string",
1586
+ });
1587
+ /** Deprecated use drives.get instead. */
1588
+ await gapi.client.drive.teamdrives.get({
1589
+ teamDriveId: "Test string",
1590
+ useDomainAdminAccess: true,
1591
+ });
1592
+ /** Deprecated use drives.list instead. */
1593
+ await gapi.client.drive.teamdrives.list({
1594
+ pageSize: 42,
1595
+ pageToken: "Test string",
1596
+ q: "Test string",
1597
+ useDomainAdminAccess: true,
1598
+ });
1599
+ /** Deprecated use drives.update instead */
1600
+ await gapi.client.drive.teamdrives.update({
1601
+ teamDriveId: "Test string",
1602
+ useDomainAdminAccess: true,
1603
+ }, {
1604
+ backgroundImageFile: {
1605
+ id: "Test string",
1606
+ width: 42,
1607
+ xCoordinate: 42,
1608
+ yCoordinate: 42,
1609
+ },
1610
+ backgroundImageLink: "Test string",
1611
+ capabilities: {
1612
+ canAddChildren: true,
1613
+ canChangeCopyRequiresWriterPermissionRestriction: true,
1614
+ canChangeDomainUsersOnlyRestriction: true,
1615
+ canChangeTeamDriveBackground: true,
1616
+ canChangeTeamMembersOnlyRestriction: true,
1617
+ canComment: true,
1618
+ canCopy: true,
1619
+ canDeleteChildren: true,
1620
+ canDeleteTeamDrive: true,
1621
+ canDownload: true,
1622
+ canEdit: true,
1623
+ canListChildren: true,
1624
+ canManageMembers: true,
1625
+ canReadRevisions: true,
1626
+ canRemoveChildren: true,
1627
+ canRename: true,
1628
+ canRenameTeamDrive: true,
1629
+ canResetTeamDriveRestrictions: true,
1630
+ canShare: true,
1631
+ canTrashChildren: true,
1632
+ },
1633
+ colorRgb: "Test string",
1634
+ createdTime: "Test string",
1635
+ id: "Test string",
1636
+ kind: "Test string",
1637
+ name: "Test string",
1638
+ orgUnitId: "Test string",
1639
+ restrictions: {
1640
+ adminManagedRestrictions: true,
1641
+ copyRequiresWriterPermission: true,
1642
+ domainUsersOnly: true,
1643
+ teamMembersOnly: true,
1644
+ },
1645
+ themeId: "Test string",
1646
+ });
1647
+ }
1648
+ });