@maxim_mazurok/gapi.client.storage-v1 0.0.20220806

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,1508 @@
1
+ /* This is stub file for gapi.client.storage-v1 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: 20220806
7
+
8
+ gapi.load('client', async () => {
9
+ /** now we can use gapi.client */
10
+
11
+ await gapi.client.load('https://storage.googleapis.com/$discovery/rest?version=v1');
12
+ /** now we can use gapi.client.storage */
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
+ /** View and manage your data across Google Cloud Platform services */
19
+ 'https://www.googleapis.com/auth/cloud-platform',
20
+ /** View your data across Google Cloud Platform services */
21
+ 'https://www.googleapis.com/auth/cloud-platform.read-only',
22
+ /** Manage your data and permissions in Google Cloud Storage */
23
+ 'https://www.googleapis.com/auth/devstorage.full_control',
24
+ /** View your data in Google Cloud Storage */
25
+ 'https://www.googleapis.com/auth/devstorage.read_only',
26
+ /** Manage your data in Google Cloud Storage */
27
+ 'https://www.googleapis.com/auth/devstorage.read_write',
28
+ ];
29
+ const immediate = false;
30
+ gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
31
+ if (authResult && !authResult.error) {
32
+ /** handle successful authorization */
33
+ run();
34
+ } else {
35
+ /** handle authorization error */
36
+ }
37
+ });
38
+
39
+ async function run() {
40
+ /** Permanently deletes the ACL entry for the specified entity on the specified bucket. */
41
+ await gapi.client.storage.bucketAccessControls.delete({
42
+ bucket: "Test string",
43
+ entity: "Test string",
44
+ userProject: "Test string",
45
+ });
46
+ /** Returns the ACL entry for the specified entity on the specified bucket. */
47
+ await gapi.client.storage.bucketAccessControls.get({
48
+ bucket: "Test string",
49
+ entity: "Test string",
50
+ userProject: "Test string",
51
+ });
52
+ /** Creates a new ACL entry on the specified bucket. */
53
+ await gapi.client.storage.bucketAccessControls.insert({
54
+ bucket: "Test string",
55
+ userProject: "Test string",
56
+ }, {
57
+ bucket: "Test string",
58
+ domain: "Test string",
59
+ email: "Test string",
60
+ entity: "Test string",
61
+ entityId: "Test string",
62
+ etag: "Test string",
63
+ id: "Test string",
64
+ kind: "Test string",
65
+ projectTeam: {
66
+ projectNumber: "Test string",
67
+ team: "Test string",
68
+ },
69
+ role: "Test string",
70
+ selfLink: "Test string",
71
+ });
72
+ /** Retrieves ACL entries on the specified bucket. */
73
+ await gapi.client.storage.bucketAccessControls.list({
74
+ bucket: "Test string",
75
+ userProject: "Test string",
76
+ });
77
+ /** Patches an ACL entry on the specified bucket. */
78
+ await gapi.client.storage.bucketAccessControls.patch({
79
+ bucket: "Test string",
80
+ entity: "Test string",
81
+ userProject: "Test string",
82
+ }, {
83
+ bucket: "Test string",
84
+ domain: "Test string",
85
+ email: "Test string",
86
+ entity: "Test string",
87
+ entityId: "Test string",
88
+ etag: "Test string",
89
+ id: "Test string",
90
+ kind: "Test string",
91
+ projectTeam: {
92
+ projectNumber: "Test string",
93
+ team: "Test string",
94
+ },
95
+ role: "Test string",
96
+ selfLink: "Test string",
97
+ });
98
+ /** Updates an ACL entry on the specified bucket. */
99
+ await gapi.client.storage.bucketAccessControls.update({
100
+ bucket: "Test string",
101
+ entity: "Test string",
102
+ userProject: "Test string",
103
+ }, {
104
+ bucket: "Test string",
105
+ domain: "Test string",
106
+ email: "Test string",
107
+ entity: "Test string",
108
+ entityId: "Test string",
109
+ etag: "Test string",
110
+ id: "Test string",
111
+ kind: "Test string",
112
+ projectTeam: {
113
+ projectNumber: "Test string",
114
+ team: "Test string",
115
+ },
116
+ role: "Test string",
117
+ selfLink: "Test string",
118
+ });
119
+ /** Permanently deletes an empty bucket. */
120
+ await gapi.client.storage.buckets.delete({
121
+ bucket: "Test string",
122
+ ifMetagenerationMatch: "Test string",
123
+ ifMetagenerationNotMatch: "Test string",
124
+ userProject: "Test string",
125
+ });
126
+ /** Returns metadata for the specified bucket. */
127
+ await gapi.client.storage.buckets.get({
128
+ bucket: "Test string",
129
+ ifMetagenerationMatch: "Test string",
130
+ ifMetagenerationNotMatch: "Test string",
131
+ projection: "Test string",
132
+ userProject: "Test string",
133
+ });
134
+ /** Returns an IAM policy for the specified bucket. */
135
+ await gapi.client.storage.buckets.getIamPolicy({
136
+ bucket: "Test string",
137
+ optionsRequestedPolicyVersion: 42,
138
+ userProject: "Test string",
139
+ });
140
+ /** Creates a new bucket. */
141
+ await gapi.client.storage.buckets.insert({
142
+ predefinedAcl: "Test string",
143
+ predefinedDefaultObjectAcl: "Test string",
144
+ project: "Test string",
145
+ projection: "Test string",
146
+ userProject: "Test string",
147
+ }, {
148
+ acl: [
149
+ {
150
+ bucket: "Test string",
151
+ domain: "Test string",
152
+ email: "Test string",
153
+ entity: "Test string",
154
+ entityId: "Test string",
155
+ etag: "Test string",
156
+ id: "Test string",
157
+ kind: "Test string",
158
+ projectTeam: {
159
+ projectNumber: "Test string",
160
+ team: "Test string",
161
+ },
162
+ role: "Test string",
163
+ selfLink: "Test string",
164
+ }
165
+ ],
166
+ autoclass: {
167
+ enabled: true,
168
+ toggleTime: "Test string",
169
+ },
170
+ billing: {
171
+ requesterPays: true,
172
+ },
173
+ cors: [
174
+ {
175
+ maxAgeSeconds: 42,
176
+ method: [
177
+ "Test string"
178
+ ],
179
+ origin: [
180
+ "Test string"
181
+ ],
182
+ responseHeader: [
183
+ "Test string"
184
+ ],
185
+ }
186
+ ],
187
+ customPlacementConfig: {
188
+ dataLocations: [
189
+ "Test string"
190
+ ],
191
+ },
192
+ defaultEventBasedHold: true,
193
+ defaultObjectAcl: [
194
+ {
195
+ bucket: "Test string",
196
+ domain: "Test string",
197
+ email: "Test string",
198
+ entity: "Test string",
199
+ entityId: "Test string",
200
+ etag: "Test string",
201
+ generation: "Test string",
202
+ id: "Test string",
203
+ kind: "Test string",
204
+ object: "Test string",
205
+ projectTeam: {
206
+ projectNumber: "Test string",
207
+ team: "Test string",
208
+ },
209
+ role: "Test string",
210
+ selfLink: "Test string",
211
+ }
212
+ ],
213
+ encryption: {
214
+ defaultKmsKeyName: "Test string",
215
+ },
216
+ etag: "Test string",
217
+ iamConfiguration: {
218
+ bucketPolicyOnly: {
219
+ enabled: true,
220
+ lockedTime: "Test string",
221
+ },
222
+ publicAccessPrevention: "Test string",
223
+ uniformBucketLevelAccess: {
224
+ enabled: true,
225
+ lockedTime: "Test string",
226
+ },
227
+ },
228
+ id: "Test string",
229
+ kind: "Test string",
230
+ labels: {
231
+ A: "Test string"
232
+ },
233
+ lifecycle: {
234
+ rule: [
235
+ {
236
+ action: {
237
+ storageClass: "Test string",
238
+ type: "Test string",
239
+ },
240
+ condition: {
241
+ age: 42,
242
+ createdBefore: "Test string",
243
+ customTimeBefore: "Test string",
244
+ daysSinceCustomTime: 42,
245
+ daysSinceNoncurrentTime: 42,
246
+ isLive: true,
247
+ matchesPattern: "Test string",
248
+ matchesPrefix: [
249
+ "Test string"
250
+ ],
251
+ matchesStorageClass: [
252
+ "Test string"
253
+ ],
254
+ matchesSuffix: [
255
+ "Test string"
256
+ ],
257
+ noncurrentTimeBefore: "Test string",
258
+ numNewerVersions: 42,
259
+ },
260
+ }
261
+ ],
262
+ },
263
+ location: "Test string",
264
+ locationType: "Test string",
265
+ logging: {
266
+ logBucket: "Test string",
267
+ logObjectPrefix: "Test string",
268
+ },
269
+ metageneration: "Test string",
270
+ name: "Test string",
271
+ owner: {
272
+ entity: "Test string",
273
+ entityId: "Test string",
274
+ },
275
+ projectNumber: "Test string",
276
+ retentionPolicy: {
277
+ effectiveTime: "Test string",
278
+ isLocked: true,
279
+ retentionPeriod: "Test string",
280
+ },
281
+ rpo: "Test string",
282
+ satisfiesPZS: true,
283
+ selfLink: "Test string",
284
+ storageClass: "Test string",
285
+ timeCreated: "Test string",
286
+ updated: "Test string",
287
+ versioning: {
288
+ enabled: true,
289
+ },
290
+ website: {
291
+ mainPageSuffix: "Test string",
292
+ notFoundPage: "Test string",
293
+ },
294
+ });
295
+ /** Retrieves a list of buckets for a given project. */
296
+ await gapi.client.storage.buckets.list({
297
+ maxResults: 42,
298
+ pageToken: "Test string",
299
+ prefix: "Test string",
300
+ project: "Test string",
301
+ projection: "Test string",
302
+ userProject: "Test string",
303
+ });
304
+ /** Locks retention policy on a bucket. */
305
+ await gapi.client.storage.buckets.lockRetentionPolicy({
306
+ bucket: "Test string",
307
+ ifMetagenerationMatch: "Test string",
308
+ userProject: "Test string",
309
+ });
310
+ /** Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. */
311
+ await gapi.client.storage.buckets.patch({
312
+ bucket: "Test string",
313
+ ifMetagenerationMatch: "Test string",
314
+ ifMetagenerationNotMatch: "Test string",
315
+ predefinedAcl: "Test string",
316
+ predefinedDefaultObjectAcl: "Test string",
317
+ projection: "Test string",
318
+ userProject: "Test string",
319
+ }, {
320
+ acl: [
321
+ {
322
+ bucket: "Test string",
323
+ domain: "Test string",
324
+ email: "Test string",
325
+ entity: "Test string",
326
+ entityId: "Test string",
327
+ etag: "Test string",
328
+ id: "Test string",
329
+ kind: "Test string",
330
+ projectTeam: {
331
+ projectNumber: "Test string",
332
+ team: "Test string",
333
+ },
334
+ role: "Test string",
335
+ selfLink: "Test string",
336
+ }
337
+ ],
338
+ autoclass: {
339
+ enabled: true,
340
+ toggleTime: "Test string",
341
+ },
342
+ billing: {
343
+ requesterPays: true,
344
+ },
345
+ cors: [
346
+ {
347
+ maxAgeSeconds: 42,
348
+ method: [
349
+ "Test string"
350
+ ],
351
+ origin: [
352
+ "Test string"
353
+ ],
354
+ responseHeader: [
355
+ "Test string"
356
+ ],
357
+ }
358
+ ],
359
+ customPlacementConfig: {
360
+ dataLocations: [
361
+ "Test string"
362
+ ],
363
+ },
364
+ defaultEventBasedHold: true,
365
+ defaultObjectAcl: [
366
+ {
367
+ bucket: "Test string",
368
+ domain: "Test string",
369
+ email: "Test string",
370
+ entity: "Test string",
371
+ entityId: "Test string",
372
+ etag: "Test string",
373
+ generation: "Test string",
374
+ id: "Test string",
375
+ kind: "Test string",
376
+ object: "Test string",
377
+ projectTeam: {
378
+ projectNumber: "Test string",
379
+ team: "Test string",
380
+ },
381
+ role: "Test string",
382
+ selfLink: "Test string",
383
+ }
384
+ ],
385
+ encryption: {
386
+ defaultKmsKeyName: "Test string",
387
+ },
388
+ etag: "Test string",
389
+ iamConfiguration: {
390
+ bucketPolicyOnly: {
391
+ enabled: true,
392
+ lockedTime: "Test string",
393
+ },
394
+ publicAccessPrevention: "Test string",
395
+ uniformBucketLevelAccess: {
396
+ enabled: true,
397
+ lockedTime: "Test string",
398
+ },
399
+ },
400
+ id: "Test string",
401
+ kind: "Test string",
402
+ labels: {
403
+ A: "Test string"
404
+ },
405
+ lifecycle: {
406
+ rule: [
407
+ {
408
+ action: {
409
+ storageClass: "Test string",
410
+ type: "Test string",
411
+ },
412
+ condition: {
413
+ age: 42,
414
+ createdBefore: "Test string",
415
+ customTimeBefore: "Test string",
416
+ daysSinceCustomTime: 42,
417
+ daysSinceNoncurrentTime: 42,
418
+ isLive: true,
419
+ matchesPattern: "Test string",
420
+ matchesPrefix: [
421
+ "Test string"
422
+ ],
423
+ matchesStorageClass: [
424
+ "Test string"
425
+ ],
426
+ matchesSuffix: [
427
+ "Test string"
428
+ ],
429
+ noncurrentTimeBefore: "Test string",
430
+ numNewerVersions: 42,
431
+ },
432
+ }
433
+ ],
434
+ },
435
+ location: "Test string",
436
+ locationType: "Test string",
437
+ logging: {
438
+ logBucket: "Test string",
439
+ logObjectPrefix: "Test string",
440
+ },
441
+ metageneration: "Test string",
442
+ name: "Test string",
443
+ owner: {
444
+ entity: "Test string",
445
+ entityId: "Test string",
446
+ },
447
+ projectNumber: "Test string",
448
+ retentionPolicy: {
449
+ effectiveTime: "Test string",
450
+ isLocked: true,
451
+ retentionPeriod: "Test string",
452
+ },
453
+ rpo: "Test string",
454
+ satisfiesPZS: true,
455
+ selfLink: "Test string",
456
+ storageClass: "Test string",
457
+ timeCreated: "Test string",
458
+ updated: "Test string",
459
+ versioning: {
460
+ enabled: true,
461
+ },
462
+ website: {
463
+ mainPageSuffix: "Test string",
464
+ notFoundPage: "Test string",
465
+ },
466
+ });
467
+ /** Updates an IAM policy for the specified bucket. */
468
+ await gapi.client.storage.buckets.setIamPolicy({
469
+ bucket: "Test string",
470
+ userProject: "Test string",
471
+ }, {
472
+ bindings: [
473
+ {
474
+ condition: {
475
+ description: "Test string",
476
+ expression: "Test string",
477
+ location: "Test string",
478
+ title: "Test string",
479
+ },
480
+ members: [
481
+ "Test string"
482
+ ],
483
+ role: "Test string",
484
+ }
485
+ ],
486
+ etag: "Test string",
487
+ kind: "Test string",
488
+ resourceId: "Test string",
489
+ version: 42,
490
+ });
491
+ /** Tests a set of permissions on the given bucket to see which, if any, are held by the caller. */
492
+ await gapi.client.storage.buckets.testIamPermissions({
493
+ bucket: "Test string",
494
+ permissions: "Test string",
495
+ userProject: "Test string",
496
+ });
497
+ /** Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. */
498
+ await gapi.client.storage.buckets.update({
499
+ bucket: "Test string",
500
+ ifMetagenerationMatch: "Test string",
501
+ ifMetagenerationNotMatch: "Test string",
502
+ predefinedAcl: "Test string",
503
+ predefinedDefaultObjectAcl: "Test string",
504
+ projection: "Test string",
505
+ userProject: "Test string",
506
+ }, {
507
+ acl: [
508
+ {
509
+ bucket: "Test string",
510
+ domain: "Test string",
511
+ email: "Test string",
512
+ entity: "Test string",
513
+ entityId: "Test string",
514
+ etag: "Test string",
515
+ id: "Test string",
516
+ kind: "Test string",
517
+ projectTeam: {
518
+ projectNumber: "Test string",
519
+ team: "Test string",
520
+ },
521
+ role: "Test string",
522
+ selfLink: "Test string",
523
+ }
524
+ ],
525
+ autoclass: {
526
+ enabled: true,
527
+ toggleTime: "Test string",
528
+ },
529
+ billing: {
530
+ requesterPays: true,
531
+ },
532
+ cors: [
533
+ {
534
+ maxAgeSeconds: 42,
535
+ method: [
536
+ "Test string"
537
+ ],
538
+ origin: [
539
+ "Test string"
540
+ ],
541
+ responseHeader: [
542
+ "Test string"
543
+ ],
544
+ }
545
+ ],
546
+ customPlacementConfig: {
547
+ dataLocations: [
548
+ "Test string"
549
+ ],
550
+ },
551
+ defaultEventBasedHold: true,
552
+ defaultObjectAcl: [
553
+ {
554
+ bucket: "Test string",
555
+ domain: "Test string",
556
+ email: "Test string",
557
+ entity: "Test string",
558
+ entityId: "Test string",
559
+ etag: "Test string",
560
+ generation: "Test string",
561
+ id: "Test string",
562
+ kind: "Test string",
563
+ object: "Test string",
564
+ projectTeam: {
565
+ projectNumber: "Test string",
566
+ team: "Test string",
567
+ },
568
+ role: "Test string",
569
+ selfLink: "Test string",
570
+ }
571
+ ],
572
+ encryption: {
573
+ defaultKmsKeyName: "Test string",
574
+ },
575
+ etag: "Test string",
576
+ iamConfiguration: {
577
+ bucketPolicyOnly: {
578
+ enabled: true,
579
+ lockedTime: "Test string",
580
+ },
581
+ publicAccessPrevention: "Test string",
582
+ uniformBucketLevelAccess: {
583
+ enabled: true,
584
+ lockedTime: "Test string",
585
+ },
586
+ },
587
+ id: "Test string",
588
+ kind: "Test string",
589
+ labels: {
590
+ A: "Test string"
591
+ },
592
+ lifecycle: {
593
+ rule: [
594
+ {
595
+ action: {
596
+ storageClass: "Test string",
597
+ type: "Test string",
598
+ },
599
+ condition: {
600
+ age: 42,
601
+ createdBefore: "Test string",
602
+ customTimeBefore: "Test string",
603
+ daysSinceCustomTime: 42,
604
+ daysSinceNoncurrentTime: 42,
605
+ isLive: true,
606
+ matchesPattern: "Test string",
607
+ matchesPrefix: [
608
+ "Test string"
609
+ ],
610
+ matchesStorageClass: [
611
+ "Test string"
612
+ ],
613
+ matchesSuffix: [
614
+ "Test string"
615
+ ],
616
+ noncurrentTimeBefore: "Test string",
617
+ numNewerVersions: 42,
618
+ },
619
+ }
620
+ ],
621
+ },
622
+ location: "Test string",
623
+ locationType: "Test string",
624
+ logging: {
625
+ logBucket: "Test string",
626
+ logObjectPrefix: "Test string",
627
+ },
628
+ metageneration: "Test string",
629
+ name: "Test string",
630
+ owner: {
631
+ entity: "Test string",
632
+ entityId: "Test string",
633
+ },
634
+ projectNumber: "Test string",
635
+ retentionPolicy: {
636
+ effectiveTime: "Test string",
637
+ isLocked: true,
638
+ retentionPeriod: "Test string",
639
+ },
640
+ rpo: "Test string",
641
+ satisfiesPZS: true,
642
+ selfLink: "Test string",
643
+ storageClass: "Test string",
644
+ timeCreated: "Test string",
645
+ updated: "Test string",
646
+ versioning: {
647
+ enabled: true,
648
+ },
649
+ website: {
650
+ mainPageSuffix: "Test string",
651
+ notFoundPage: "Test string",
652
+ },
653
+ });
654
+ /** Stop watching resources through this channel */
655
+ await gapi.client.storage.channels.stop({} , {
656
+ address: "Test string",
657
+ expiration: "Test string",
658
+ id: "Test string",
659
+ kind: "Test string",
660
+ params: {
661
+ A: "Test string"
662
+ },
663
+ payload: true,
664
+ resourceId: "Test string",
665
+ resourceUri: "Test string",
666
+ token: "Test string",
667
+ type: "Test string",
668
+ });
669
+ /** Permanently deletes the default object ACL entry for the specified entity on the specified bucket. */
670
+ await gapi.client.storage.defaultObjectAccessControls.delete({
671
+ bucket: "Test string",
672
+ entity: "Test string",
673
+ userProject: "Test string",
674
+ });
675
+ /** Returns the default object ACL entry for the specified entity on the specified bucket. */
676
+ await gapi.client.storage.defaultObjectAccessControls.get({
677
+ bucket: "Test string",
678
+ entity: "Test string",
679
+ userProject: "Test string",
680
+ });
681
+ /** Creates a new default object ACL entry on the specified bucket. */
682
+ await gapi.client.storage.defaultObjectAccessControls.insert({
683
+ bucket: "Test string",
684
+ userProject: "Test string",
685
+ }, {
686
+ bucket: "Test string",
687
+ domain: "Test string",
688
+ email: "Test string",
689
+ entity: "Test string",
690
+ entityId: "Test string",
691
+ etag: "Test string",
692
+ generation: "Test string",
693
+ id: "Test string",
694
+ kind: "Test string",
695
+ object: "Test string",
696
+ projectTeam: {
697
+ projectNumber: "Test string",
698
+ team: "Test string",
699
+ },
700
+ role: "Test string",
701
+ selfLink: "Test string",
702
+ });
703
+ /** Retrieves default object ACL entries on the specified bucket. */
704
+ await gapi.client.storage.defaultObjectAccessControls.list({
705
+ bucket: "Test string",
706
+ ifMetagenerationMatch: "Test string",
707
+ ifMetagenerationNotMatch: "Test string",
708
+ userProject: "Test string",
709
+ });
710
+ /** Patches a default object ACL entry on the specified bucket. */
711
+ await gapi.client.storage.defaultObjectAccessControls.patch({
712
+ bucket: "Test string",
713
+ entity: "Test string",
714
+ userProject: "Test string",
715
+ }, {
716
+ bucket: "Test string",
717
+ domain: "Test string",
718
+ email: "Test string",
719
+ entity: "Test string",
720
+ entityId: "Test string",
721
+ etag: "Test string",
722
+ generation: "Test string",
723
+ id: "Test string",
724
+ kind: "Test string",
725
+ object: "Test string",
726
+ projectTeam: {
727
+ projectNumber: "Test string",
728
+ team: "Test string",
729
+ },
730
+ role: "Test string",
731
+ selfLink: "Test string",
732
+ });
733
+ /** Updates a default object ACL entry on the specified bucket. */
734
+ await gapi.client.storage.defaultObjectAccessControls.update({
735
+ bucket: "Test string",
736
+ entity: "Test string",
737
+ userProject: "Test string",
738
+ }, {
739
+ bucket: "Test string",
740
+ domain: "Test string",
741
+ email: "Test string",
742
+ entity: "Test string",
743
+ entityId: "Test string",
744
+ etag: "Test string",
745
+ generation: "Test string",
746
+ id: "Test string",
747
+ kind: "Test string",
748
+ object: "Test string",
749
+ projectTeam: {
750
+ projectNumber: "Test string",
751
+ team: "Test string",
752
+ },
753
+ role: "Test string",
754
+ selfLink: "Test string",
755
+ });
756
+ /** Permanently deletes a notification subscription. */
757
+ await gapi.client.storage.notifications.delete({
758
+ bucket: "Test string",
759
+ notification: "Test string",
760
+ userProject: "Test string",
761
+ });
762
+ /** View a notification configuration. */
763
+ await gapi.client.storage.notifications.get({
764
+ bucket: "Test string",
765
+ notification: "Test string",
766
+ userProject: "Test string",
767
+ });
768
+ /** Creates a notification subscription for a given bucket. */
769
+ await gapi.client.storage.notifications.insert({
770
+ bucket: "Test string",
771
+ userProject: "Test string",
772
+ }, {
773
+ custom_attributes: {
774
+ A: "Test string"
775
+ },
776
+ etag: "Test string",
777
+ event_types: [
778
+ "Test string"
779
+ ],
780
+ id: "Test string",
781
+ kind: "Test string",
782
+ object_name_prefix: "Test string",
783
+ payload_format: "Test string",
784
+ selfLink: "Test string",
785
+ topic: "Test string",
786
+ });
787
+ /** Retrieves a list of notification subscriptions for a given bucket. */
788
+ await gapi.client.storage.notifications.list({
789
+ bucket: "Test string",
790
+ userProject: "Test string",
791
+ });
792
+ /** Permanently deletes the ACL entry for the specified entity on the specified object. */
793
+ await gapi.client.storage.objectAccessControls.delete({
794
+ bucket: "Test string",
795
+ entity: "Test string",
796
+ generation: "Test string",
797
+ object: "Test string",
798
+ userProject: "Test string",
799
+ });
800
+ /** Returns the ACL entry for the specified entity on the specified object. */
801
+ await gapi.client.storage.objectAccessControls.get({
802
+ bucket: "Test string",
803
+ entity: "Test string",
804
+ generation: "Test string",
805
+ object: "Test string",
806
+ userProject: "Test string",
807
+ });
808
+ /** Creates a new ACL entry on the specified object. */
809
+ await gapi.client.storage.objectAccessControls.insert({
810
+ bucket: "Test string",
811
+ generation: "Test string",
812
+ object: "Test string",
813
+ userProject: "Test string",
814
+ }, {
815
+ bucket: "Test string",
816
+ domain: "Test string",
817
+ email: "Test string",
818
+ entity: "Test string",
819
+ entityId: "Test string",
820
+ etag: "Test string",
821
+ generation: "Test string",
822
+ id: "Test string",
823
+ kind: "Test string",
824
+ object: "Test string",
825
+ projectTeam: {
826
+ projectNumber: "Test string",
827
+ team: "Test string",
828
+ },
829
+ role: "Test string",
830
+ selfLink: "Test string",
831
+ });
832
+ /** Retrieves ACL entries on the specified object. */
833
+ await gapi.client.storage.objectAccessControls.list({
834
+ bucket: "Test string",
835
+ generation: "Test string",
836
+ object: "Test string",
837
+ userProject: "Test string",
838
+ });
839
+ /** Patches an ACL entry on the specified object. */
840
+ await gapi.client.storage.objectAccessControls.patch({
841
+ bucket: "Test string",
842
+ entity: "Test string",
843
+ generation: "Test string",
844
+ object: "Test string",
845
+ userProject: "Test string",
846
+ }, {
847
+ bucket: "Test string",
848
+ domain: "Test string",
849
+ email: "Test string",
850
+ entity: "Test string",
851
+ entityId: "Test string",
852
+ etag: "Test string",
853
+ generation: "Test string",
854
+ id: "Test string",
855
+ kind: "Test string",
856
+ object: "Test string",
857
+ projectTeam: {
858
+ projectNumber: "Test string",
859
+ team: "Test string",
860
+ },
861
+ role: "Test string",
862
+ selfLink: "Test string",
863
+ });
864
+ /** Updates an ACL entry on the specified object. */
865
+ await gapi.client.storage.objectAccessControls.update({
866
+ bucket: "Test string",
867
+ entity: "Test string",
868
+ generation: "Test string",
869
+ object: "Test string",
870
+ userProject: "Test string",
871
+ }, {
872
+ bucket: "Test string",
873
+ domain: "Test string",
874
+ email: "Test string",
875
+ entity: "Test string",
876
+ entityId: "Test string",
877
+ etag: "Test string",
878
+ generation: "Test string",
879
+ id: "Test string",
880
+ kind: "Test string",
881
+ object: "Test string",
882
+ projectTeam: {
883
+ projectNumber: "Test string",
884
+ team: "Test string",
885
+ },
886
+ role: "Test string",
887
+ selfLink: "Test string",
888
+ });
889
+ /** Concatenates a list of existing objects into a new object in the same bucket. */
890
+ await gapi.client.storage.objects.compose({
891
+ destinationBucket: "Test string",
892
+ destinationObject: "Test string",
893
+ destinationPredefinedAcl: "Test string",
894
+ ifGenerationMatch: "Test string",
895
+ ifMetagenerationMatch: "Test string",
896
+ kmsKeyName: "Test string",
897
+ userProject: "Test string",
898
+ }, {
899
+ destination: {
900
+ acl: [
901
+ {
902
+ bucket: "Test string",
903
+ domain: "Test string",
904
+ email: "Test string",
905
+ entity: "Test string",
906
+ entityId: "Test string",
907
+ etag: "Test string",
908
+ generation: "Test string",
909
+ id: "Test string",
910
+ kind: "Test string",
911
+ object: "Test string",
912
+ projectTeam: {
913
+ projectNumber: "Test string",
914
+ team: "Test string",
915
+ },
916
+ role: "Test string",
917
+ selfLink: "Test string",
918
+ }
919
+ ],
920
+ bucket: "Test string",
921
+ cacheControl: "Test string",
922
+ componentCount: 42,
923
+ contentDisposition: "Test string",
924
+ contentEncoding: "Test string",
925
+ contentLanguage: "Test string",
926
+ contentType: "Test string",
927
+ crc32c: "Test string",
928
+ customerEncryption: {
929
+ encryptionAlgorithm: "Test string",
930
+ keySha256: "Test string",
931
+ },
932
+ customTime: "Test string",
933
+ etag: "Test string",
934
+ eventBasedHold: true,
935
+ generation: "Test string",
936
+ id: "Test string",
937
+ kind: "Test string",
938
+ kmsKeyName: "Test string",
939
+ md5Hash: "Test string",
940
+ mediaLink: "Test string",
941
+ metadata: {
942
+ A: "Test string"
943
+ },
944
+ metageneration: "Test string",
945
+ name: "Test string",
946
+ owner: {
947
+ entity: "Test string",
948
+ entityId: "Test string",
949
+ },
950
+ retentionExpirationTime: "Test string",
951
+ selfLink: "Test string",
952
+ size: "Test string",
953
+ storageClass: "Test string",
954
+ temporaryHold: true,
955
+ timeCreated: "Test string",
956
+ timeDeleted: "Test string",
957
+ timeStorageClassUpdated: "Test string",
958
+ updated: "Test string",
959
+ },
960
+ kind: "Test string",
961
+ sourceObjects: [
962
+ {
963
+ generation: "Test string",
964
+ name: "Test string",
965
+ objectPreconditions: {
966
+ ifGenerationMatch: "Test string",
967
+ },
968
+ }
969
+ ],
970
+ });
971
+ /** Copies a source object to a destination object. Optionally overrides metadata. */
972
+ await gapi.client.storage.objects.copy({
973
+ destinationBucket: "Test string",
974
+ destinationKmsKeyName: "Test string",
975
+ destinationObject: "Test string",
976
+ destinationPredefinedAcl: "Test string",
977
+ ifGenerationMatch: "Test string",
978
+ ifGenerationNotMatch: "Test string",
979
+ ifMetagenerationMatch: "Test string",
980
+ ifMetagenerationNotMatch: "Test string",
981
+ ifSourceGenerationMatch: "Test string",
982
+ ifSourceGenerationNotMatch: "Test string",
983
+ ifSourceMetagenerationMatch: "Test string",
984
+ ifSourceMetagenerationNotMatch: "Test string",
985
+ projection: "Test string",
986
+ sourceBucket: "Test string",
987
+ sourceGeneration: "Test string",
988
+ sourceObject: "Test string",
989
+ userProject: "Test string",
990
+ }, {
991
+ acl: [
992
+ {
993
+ bucket: "Test string",
994
+ domain: "Test string",
995
+ email: "Test string",
996
+ entity: "Test string",
997
+ entityId: "Test string",
998
+ etag: "Test string",
999
+ generation: "Test string",
1000
+ id: "Test string",
1001
+ kind: "Test string",
1002
+ object: "Test string",
1003
+ projectTeam: {
1004
+ projectNumber: "Test string",
1005
+ team: "Test string",
1006
+ },
1007
+ role: "Test string",
1008
+ selfLink: "Test string",
1009
+ }
1010
+ ],
1011
+ bucket: "Test string",
1012
+ cacheControl: "Test string",
1013
+ componentCount: 42,
1014
+ contentDisposition: "Test string",
1015
+ contentEncoding: "Test string",
1016
+ contentLanguage: "Test string",
1017
+ contentType: "Test string",
1018
+ crc32c: "Test string",
1019
+ customerEncryption: {
1020
+ encryptionAlgorithm: "Test string",
1021
+ keySha256: "Test string",
1022
+ },
1023
+ customTime: "Test string",
1024
+ etag: "Test string",
1025
+ eventBasedHold: true,
1026
+ generation: "Test string",
1027
+ id: "Test string",
1028
+ kind: "Test string",
1029
+ kmsKeyName: "Test string",
1030
+ md5Hash: "Test string",
1031
+ mediaLink: "Test string",
1032
+ metadata: {
1033
+ A: "Test string"
1034
+ },
1035
+ metageneration: "Test string",
1036
+ name: "Test string",
1037
+ owner: {
1038
+ entity: "Test string",
1039
+ entityId: "Test string",
1040
+ },
1041
+ retentionExpirationTime: "Test string",
1042
+ selfLink: "Test string",
1043
+ size: "Test string",
1044
+ storageClass: "Test string",
1045
+ temporaryHold: true,
1046
+ timeCreated: "Test string",
1047
+ timeDeleted: "Test string",
1048
+ timeStorageClassUpdated: "Test string",
1049
+ updated: "Test string",
1050
+ });
1051
+ /** Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used. */
1052
+ await gapi.client.storage.objects.delete({
1053
+ bucket: "Test string",
1054
+ generation: "Test string",
1055
+ ifGenerationMatch: "Test string",
1056
+ ifGenerationNotMatch: "Test string",
1057
+ ifMetagenerationMatch: "Test string",
1058
+ ifMetagenerationNotMatch: "Test string",
1059
+ object: "Test string",
1060
+ userProject: "Test string",
1061
+ });
1062
+ /** Retrieves an object or its metadata. */
1063
+ await gapi.client.storage.objects.get({
1064
+ bucket: "Test string",
1065
+ generation: "Test string",
1066
+ ifGenerationMatch: "Test string",
1067
+ ifGenerationNotMatch: "Test string",
1068
+ ifMetagenerationMatch: "Test string",
1069
+ ifMetagenerationNotMatch: "Test string",
1070
+ object: "Test string",
1071
+ projection: "Test string",
1072
+ userProject: "Test string",
1073
+ });
1074
+ /** Returns an IAM policy for the specified object. */
1075
+ await gapi.client.storage.objects.getIamPolicy({
1076
+ bucket: "Test string",
1077
+ generation: "Test string",
1078
+ object: "Test string",
1079
+ userProject: "Test string",
1080
+ });
1081
+ /** Stores a new object and metadata. */
1082
+ await gapi.client.storage.objects.insert({
1083
+ bucket: "Test string",
1084
+ contentEncoding: "Test string",
1085
+ ifGenerationMatch: "Test string",
1086
+ ifGenerationNotMatch: "Test string",
1087
+ ifMetagenerationMatch: "Test string",
1088
+ ifMetagenerationNotMatch: "Test string",
1089
+ kmsKeyName: "Test string",
1090
+ name: "Test string",
1091
+ predefinedAcl: "Test string",
1092
+ projection: "Test string",
1093
+ userProject: "Test string",
1094
+ }, {
1095
+ acl: [
1096
+ {
1097
+ bucket: "Test string",
1098
+ domain: "Test string",
1099
+ email: "Test string",
1100
+ entity: "Test string",
1101
+ entityId: "Test string",
1102
+ etag: "Test string",
1103
+ generation: "Test string",
1104
+ id: "Test string",
1105
+ kind: "Test string",
1106
+ object: "Test string",
1107
+ projectTeam: {
1108
+ projectNumber: "Test string",
1109
+ team: "Test string",
1110
+ },
1111
+ role: "Test string",
1112
+ selfLink: "Test string",
1113
+ }
1114
+ ],
1115
+ bucket: "Test string",
1116
+ cacheControl: "Test string",
1117
+ componentCount: 42,
1118
+ contentDisposition: "Test string",
1119
+ contentEncoding: "Test string",
1120
+ contentLanguage: "Test string",
1121
+ contentType: "Test string",
1122
+ crc32c: "Test string",
1123
+ customerEncryption: {
1124
+ encryptionAlgorithm: "Test string",
1125
+ keySha256: "Test string",
1126
+ },
1127
+ customTime: "Test string",
1128
+ etag: "Test string",
1129
+ eventBasedHold: true,
1130
+ generation: "Test string",
1131
+ id: "Test string",
1132
+ kind: "Test string",
1133
+ kmsKeyName: "Test string",
1134
+ md5Hash: "Test string",
1135
+ mediaLink: "Test string",
1136
+ metadata: {
1137
+ A: "Test string"
1138
+ },
1139
+ metageneration: "Test string",
1140
+ name: "Test string",
1141
+ owner: {
1142
+ entity: "Test string",
1143
+ entityId: "Test string",
1144
+ },
1145
+ retentionExpirationTime: "Test string",
1146
+ selfLink: "Test string",
1147
+ size: "Test string",
1148
+ storageClass: "Test string",
1149
+ temporaryHold: true,
1150
+ timeCreated: "Test string",
1151
+ timeDeleted: "Test string",
1152
+ timeStorageClassUpdated: "Test string",
1153
+ updated: "Test string",
1154
+ });
1155
+ /** Retrieves a list of objects matching the criteria. */
1156
+ await gapi.client.storage.objects.list({
1157
+ bucket: "Test string",
1158
+ delimiter: "Test string",
1159
+ endOffset: "Test string",
1160
+ includeTrailingDelimiter: true,
1161
+ maxResults: 42,
1162
+ pageToken: "Test string",
1163
+ prefix: "Test string",
1164
+ projection: "Test string",
1165
+ startOffset: "Test string",
1166
+ userProject: "Test string",
1167
+ versions: true,
1168
+ });
1169
+ /** Patches an object's metadata. */
1170
+ await gapi.client.storage.objects.patch({
1171
+ bucket: "Test string",
1172
+ generation: "Test string",
1173
+ ifGenerationMatch: "Test string",
1174
+ ifGenerationNotMatch: "Test string",
1175
+ ifMetagenerationMatch: "Test string",
1176
+ ifMetagenerationNotMatch: "Test string",
1177
+ object: "Test string",
1178
+ predefinedAcl: "Test string",
1179
+ projection: "Test string",
1180
+ userProject: "Test string",
1181
+ }, {
1182
+ acl: [
1183
+ {
1184
+ bucket: "Test string",
1185
+ domain: "Test string",
1186
+ email: "Test string",
1187
+ entity: "Test string",
1188
+ entityId: "Test string",
1189
+ etag: "Test string",
1190
+ generation: "Test string",
1191
+ id: "Test string",
1192
+ kind: "Test string",
1193
+ object: "Test string",
1194
+ projectTeam: {
1195
+ projectNumber: "Test string",
1196
+ team: "Test string",
1197
+ },
1198
+ role: "Test string",
1199
+ selfLink: "Test string",
1200
+ }
1201
+ ],
1202
+ bucket: "Test string",
1203
+ cacheControl: "Test string",
1204
+ componentCount: 42,
1205
+ contentDisposition: "Test string",
1206
+ contentEncoding: "Test string",
1207
+ contentLanguage: "Test string",
1208
+ contentType: "Test string",
1209
+ crc32c: "Test string",
1210
+ customerEncryption: {
1211
+ encryptionAlgorithm: "Test string",
1212
+ keySha256: "Test string",
1213
+ },
1214
+ customTime: "Test string",
1215
+ etag: "Test string",
1216
+ eventBasedHold: true,
1217
+ generation: "Test string",
1218
+ id: "Test string",
1219
+ kind: "Test string",
1220
+ kmsKeyName: "Test string",
1221
+ md5Hash: "Test string",
1222
+ mediaLink: "Test string",
1223
+ metadata: {
1224
+ A: "Test string"
1225
+ },
1226
+ metageneration: "Test string",
1227
+ name: "Test string",
1228
+ owner: {
1229
+ entity: "Test string",
1230
+ entityId: "Test string",
1231
+ },
1232
+ retentionExpirationTime: "Test string",
1233
+ selfLink: "Test string",
1234
+ size: "Test string",
1235
+ storageClass: "Test string",
1236
+ temporaryHold: true,
1237
+ timeCreated: "Test string",
1238
+ timeDeleted: "Test string",
1239
+ timeStorageClassUpdated: "Test string",
1240
+ updated: "Test string",
1241
+ });
1242
+ /** Rewrites a source object to a destination object. Optionally overrides metadata. */
1243
+ await gapi.client.storage.objects.rewrite({
1244
+ destinationBucket: "Test string",
1245
+ destinationKmsKeyName: "Test string",
1246
+ destinationObject: "Test string",
1247
+ destinationPredefinedAcl: "Test string",
1248
+ ifGenerationMatch: "Test string",
1249
+ ifGenerationNotMatch: "Test string",
1250
+ ifMetagenerationMatch: "Test string",
1251
+ ifMetagenerationNotMatch: "Test string",
1252
+ ifSourceGenerationMatch: "Test string",
1253
+ ifSourceGenerationNotMatch: "Test string",
1254
+ ifSourceMetagenerationMatch: "Test string",
1255
+ ifSourceMetagenerationNotMatch: "Test string",
1256
+ maxBytesRewrittenPerCall: "Test string",
1257
+ projection: "Test string",
1258
+ rewriteToken: "Test string",
1259
+ sourceBucket: "Test string",
1260
+ sourceGeneration: "Test string",
1261
+ sourceObject: "Test string",
1262
+ userProject: "Test string",
1263
+ }, {
1264
+ acl: [
1265
+ {
1266
+ bucket: "Test string",
1267
+ domain: "Test string",
1268
+ email: "Test string",
1269
+ entity: "Test string",
1270
+ entityId: "Test string",
1271
+ etag: "Test string",
1272
+ generation: "Test string",
1273
+ id: "Test string",
1274
+ kind: "Test string",
1275
+ object: "Test string",
1276
+ projectTeam: {
1277
+ projectNumber: "Test string",
1278
+ team: "Test string",
1279
+ },
1280
+ role: "Test string",
1281
+ selfLink: "Test string",
1282
+ }
1283
+ ],
1284
+ bucket: "Test string",
1285
+ cacheControl: "Test string",
1286
+ componentCount: 42,
1287
+ contentDisposition: "Test string",
1288
+ contentEncoding: "Test string",
1289
+ contentLanguage: "Test string",
1290
+ contentType: "Test string",
1291
+ crc32c: "Test string",
1292
+ customerEncryption: {
1293
+ encryptionAlgorithm: "Test string",
1294
+ keySha256: "Test string",
1295
+ },
1296
+ customTime: "Test string",
1297
+ etag: "Test string",
1298
+ eventBasedHold: true,
1299
+ generation: "Test string",
1300
+ id: "Test string",
1301
+ kind: "Test string",
1302
+ kmsKeyName: "Test string",
1303
+ md5Hash: "Test string",
1304
+ mediaLink: "Test string",
1305
+ metadata: {
1306
+ A: "Test string"
1307
+ },
1308
+ metageneration: "Test string",
1309
+ name: "Test string",
1310
+ owner: {
1311
+ entity: "Test string",
1312
+ entityId: "Test string",
1313
+ },
1314
+ retentionExpirationTime: "Test string",
1315
+ selfLink: "Test string",
1316
+ size: "Test string",
1317
+ storageClass: "Test string",
1318
+ temporaryHold: true,
1319
+ timeCreated: "Test string",
1320
+ timeDeleted: "Test string",
1321
+ timeStorageClassUpdated: "Test string",
1322
+ updated: "Test string",
1323
+ });
1324
+ /** Updates an IAM policy for the specified object. */
1325
+ await gapi.client.storage.objects.setIamPolicy({
1326
+ bucket: "Test string",
1327
+ generation: "Test string",
1328
+ object: "Test string",
1329
+ userProject: "Test string",
1330
+ }, {
1331
+ bindings: [
1332
+ {
1333
+ condition: {
1334
+ description: "Test string",
1335
+ expression: "Test string",
1336
+ location: "Test string",
1337
+ title: "Test string",
1338
+ },
1339
+ members: [
1340
+ "Test string"
1341
+ ],
1342
+ role: "Test string",
1343
+ }
1344
+ ],
1345
+ etag: "Test string",
1346
+ kind: "Test string",
1347
+ resourceId: "Test string",
1348
+ version: 42,
1349
+ });
1350
+ /** Tests a set of permissions on the given object to see which, if any, are held by the caller. */
1351
+ await gapi.client.storage.objects.testIamPermissions({
1352
+ bucket: "Test string",
1353
+ generation: "Test string",
1354
+ object: "Test string",
1355
+ permissions: "Test string",
1356
+ userProject: "Test string",
1357
+ });
1358
+ /** Updates an object's metadata. */
1359
+ await gapi.client.storage.objects.update({
1360
+ bucket: "Test string",
1361
+ generation: "Test string",
1362
+ ifGenerationMatch: "Test string",
1363
+ ifGenerationNotMatch: "Test string",
1364
+ ifMetagenerationMatch: "Test string",
1365
+ ifMetagenerationNotMatch: "Test string",
1366
+ object: "Test string",
1367
+ predefinedAcl: "Test string",
1368
+ projection: "Test string",
1369
+ userProject: "Test string",
1370
+ }, {
1371
+ acl: [
1372
+ {
1373
+ bucket: "Test string",
1374
+ domain: "Test string",
1375
+ email: "Test string",
1376
+ entity: "Test string",
1377
+ entityId: "Test string",
1378
+ etag: "Test string",
1379
+ generation: "Test string",
1380
+ id: "Test string",
1381
+ kind: "Test string",
1382
+ object: "Test string",
1383
+ projectTeam: {
1384
+ projectNumber: "Test string",
1385
+ team: "Test string",
1386
+ },
1387
+ role: "Test string",
1388
+ selfLink: "Test string",
1389
+ }
1390
+ ],
1391
+ bucket: "Test string",
1392
+ cacheControl: "Test string",
1393
+ componentCount: 42,
1394
+ contentDisposition: "Test string",
1395
+ contentEncoding: "Test string",
1396
+ contentLanguage: "Test string",
1397
+ contentType: "Test string",
1398
+ crc32c: "Test string",
1399
+ customerEncryption: {
1400
+ encryptionAlgorithm: "Test string",
1401
+ keySha256: "Test string",
1402
+ },
1403
+ customTime: "Test string",
1404
+ etag: "Test string",
1405
+ eventBasedHold: true,
1406
+ generation: "Test string",
1407
+ id: "Test string",
1408
+ kind: "Test string",
1409
+ kmsKeyName: "Test string",
1410
+ md5Hash: "Test string",
1411
+ mediaLink: "Test string",
1412
+ metadata: {
1413
+ A: "Test string"
1414
+ },
1415
+ metageneration: "Test string",
1416
+ name: "Test string",
1417
+ owner: {
1418
+ entity: "Test string",
1419
+ entityId: "Test string",
1420
+ },
1421
+ retentionExpirationTime: "Test string",
1422
+ selfLink: "Test string",
1423
+ size: "Test string",
1424
+ storageClass: "Test string",
1425
+ temporaryHold: true,
1426
+ timeCreated: "Test string",
1427
+ timeDeleted: "Test string",
1428
+ timeStorageClassUpdated: "Test string",
1429
+ updated: "Test string",
1430
+ });
1431
+ /** Watch for changes on all objects in a bucket. */
1432
+ await gapi.client.storage.objects.watchAll({
1433
+ bucket: "Test string",
1434
+ delimiter: "Test string",
1435
+ endOffset: "Test string",
1436
+ includeTrailingDelimiter: true,
1437
+ maxResults: 42,
1438
+ pageToken: "Test string",
1439
+ prefix: "Test string",
1440
+ projection: "Test string",
1441
+ startOffset: "Test string",
1442
+ userProject: "Test string",
1443
+ versions: true,
1444
+ }, {
1445
+ address: "Test string",
1446
+ expiration: "Test string",
1447
+ id: "Test string",
1448
+ kind: "Test string",
1449
+ params: {
1450
+ A: "Test string"
1451
+ },
1452
+ payload: true,
1453
+ resourceId: "Test string",
1454
+ resourceUri: "Test string",
1455
+ token: "Test string",
1456
+ type: "Test string",
1457
+ });
1458
+ /** Creates a new HMAC key for the specified service account. */
1459
+ await gapi.client.storage.projects.hmacKeys.create({
1460
+ projectId: "Test string",
1461
+ serviceAccountEmail: "Test string",
1462
+ userProject: "Test string",
1463
+ });
1464
+ /** Deletes an HMAC key. */
1465
+ await gapi.client.storage.projects.hmacKeys.delete({
1466
+ accessId: "Test string",
1467
+ projectId: "Test string",
1468
+ userProject: "Test string",
1469
+ });
1470
+ /** Retrieves an HMAC key's metadata */
1471
+ await gapi.client.storage.projects.hmacKeys.get({
1472
+ accessId: "Test string",
1473
+ projectId: "Test string",
1474
+ userProject: "Test string",
1475
+ });
1476
+ /** Retrieves a list of HMAC keys matching the criteria. */
1477
+ await gapi.client.storage.projects.hmacKeys.list({
1478
+ maxResults: 42,
1479
+ pageToken: "Test string",
1480
+ projectId: "Test string",
1481
+ serviceAccountEmail: "Test string",
1482
+ showDeletedKeys: true,
1483
+ userProject: "Test string",
1484
+ });
1485
+ /** Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states. */
1486
+ await gapi.client.storage.projects.hmacKeys.update({
1487
+ accessId: "Test string",
1488
+ projectId: "Test string",
1489
+ userProject: "Test string",
1490
+ }, {
1491
+ accessId: "Test string",
1492
+ etag: "Test string",
1493
+ id: "Test string",
1494
+ kind: "Test string",
1495
+ projectId: "Test string",
1496
+ selfLink: "Test string",
1497
+ serviceAccountEmail: "Test string",
1498
+ state: "Test string",
1499
+ timeCreated: "Test string",
1500
+ updated: "Test string",
1501
+ });
1502
+ /** Get the email address of this project's Google Cloud Storage service account. */
1503
+ await gapi.client.storage.projects.serviceAccount.get({
1504
+ projectId: "Test string",
1505
+ userProject: "Test string",
1506
+ });
1507
+ }
1508
+ });