@maxim_mazurok/gapi.client.drive-v3 0.0.20231107 → 0.0.20231120

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