@maxim_mazurok/gapi.client.storage-v1 0.0.20230823 → 0.0.20230907

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.
Files changed (4) hide show
  1. package/index.d.ts +378 -1
  2. package/package.json +1 -1
  3. package/readme.md +25 -0
  4. package/tests.ts +104 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://storage.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230823
12
+ // Revision: 20230907
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -396,6 +396,27 @@ declare namespace gapi.client {
396
396
  nextPageToken?:
397
397
  string;
398
398
  }
399
+ interface BulkRestoreObjectsRequest {
400
+ /**
401
+ * If false (default), the restore will not overwrite live objects with the same name at the destination. This means some deleted objects may be skipped. If true, live objects will be
402
+ * overwritten resulting in a noncurrent object (if versioning is enabled). If versioning is not enabled, overwriting the object will result in a soft-deleted object. In either case,
403
+ * if a noncurrent object already exists with the same name, a live version can be written without issue.
404
+ */
405
+ allowOverwrite?:
406
+ boolean;
407
+ /** If true, copies the source object's ACL; otherwise, uses the bucket's default object ACL. The default is false. */
408
+ copySourceAcl?:
409
+ boolean;
410
+ /** Restores only the objects matching any of the specified glob(s). If this parameter is not specified, all objects will be restored within the specified time range. */
411
+ matchGlobs?:
412
+ string[];
413
+ /** Restores only the objects that were soft-deleted after this time. */
414
+ softDeletedAfterTime?:
415
+ string;
416
+ /** Restores only the objects that were soft-deleted before this time. */
417
+ softDeletedBeforeTime?:
418
+ string;
419
+ }
399
420
  interface Channel {
400
421
  /** The address where notifications are delivered for this channel. */
401
422
  address?:
@@ -474,6 +495,52 @@ declare namespace gapi.client {
474
495
  title?:
475
496
  string;
476
497
  }
498
+ interface GoogleLongrunningListOperationsResponse {
499
+ /** The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results. */
500
+ nextPageToken?:
501
+ string;
502
+ /** A list of operations that matches the specified filter in the request. */
503
+ operations?:
504
+ GoogleLongrunningOperation[];
505
+ }
506
+ interface GoogleLongrunningOperation {
507
+ /** If the value is "false", it means the operation is still in progress. If "true", the operation is completed, and either "error" or "response" is available. */
508
+ done?:
509
+ boolean;
510
+ /** The error result of the operation in case of failure or cancellation. */
511
+ error?:
512
+ GoogleRpcStatus;
513
+ /**
514
+ * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
515
+ * metadata. Any method that returns a long-running operation should document the metadata type, if any.
516
+ */
517
+ metadata?:
518
+ { [P in string]: any };
519
+ /**
520
+ * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the "name" should be a resource name ending
521
+ * with "operations/{operationId}".
522
+ */
523
+ name?:
524
+ string;
525
+ /**
526
+ * The normal response of the operation in case of success. If the original method returns no data on success, such as "Delete", the response is google.protobuf.Empty. If the original
527
+ * method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type "XxxResponse", where "Xxx" is the original method
528
+ * name. For example, if the original method name is "TakeSnapshot()", the inferred response type is "TakeSnapshotResponse".
529
+ */
530
+ response?:
531
+ { [P in string]: any };
532
+ }
533
+ interface GoogleRpcStatus {
534
+ /** The status code, which should be an enum value of google.rpc.Code. */
535
+ code?:
536
+ number;
537
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
538
+ details?:
539
+ Array<{ [P in string]: any }>;
540
+ /** A developer-facing error message, which should be in English. */
541
+ message?:
542
+ string;
543
+ }
477
544
  interface HmacKey {
478
545
  /** The kind of item this is. For HMAC keys, this is always storage#hmacKey. */
479
546
  kind?:
@@ -2792,6 +2859,69 @@ declare namespace gapi.client {
2792
2859
  body: ObjectAccessControl): Request<ObjectAccessControl>;
2793
2860
  }
2794
2861
  interface ObjectsResource {
2862
+ /** Initiates a long-running bulk restore operation on the specified bucket. */
2863
+ bulkRestore(request: {
2864
+ /** Data format for the response. */
2865
+ alt?:
2866
+ string;
2867
+ /** Name of the bucket in which the object resides. */
2868
+ bucket:
2869
+ string;
2870
+ /** Selector specifying which fields to include in a partial response. */
2871
+ fields?:
2872
+ string;
2873
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2874
+ key?:
2875
+ string;
2876
+ /** OAuth 2.0 token for the current user. */
2877
+ oauth_token?:
2878
+ string;
2879
+ /** Returns response with indentations and line breaks. */
2880
+ prettyPrint?:
2881
+ boolean;
2882
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2883
+ quotaUser?:
2884
+ string;
2885
+ /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
2886
+ uploadType?:
2887
+ string;
2888
+ /** Deprecated. Please use quotaUser instead. */
2889
+ userIp?:
2890
+ string;
2891
+ /** Request body */
2892
+ resource:
2893
+ BulkRestoreObjectsRequest;
2894
+ }): Request<GoogleLongrunningOperation>;
2895
+ bulkRestore(request: {
2896
+ /** Data format for the response. */
2897
+ alt?:
2898
+ string;
2899
+ /** Name of the bucket in which the object resides. */
2900
+ bucket:
2901
+ string;
2902
+ /** Selector specifying which fields to include in a partial response. */
2903
+ fields?:
2904
+ string;
2905
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2906
+ key?:
2907
+ string;
2908
+ /** OAuth 2.0 token for the current user. */
2909
+ oauth_token?:
2910
+ string;
2911
+ /** Returns response with indentations and line breaks. */
2912
+ prettyPrint?:
2913
+ boolean;
2914
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
2915
+ quotaUser?:
2916
+ string;
2917
+ /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
2918
+ uploadType?:
2919
+ string;
2920
+ /** Deprecated. Please use quotaUser instead. */
2921
+ userIp?:
2922
+ string;
2923
+ },
2924
+ body: BulkRestoreObjectsRequest): Request<GoogleLongrunningOperation>;
2795
2925
  /** Concatenates a list of existing objects into a new object in the same bucket. */
2796
2926
  compose(request: {
2797
2927
  /** Data format for the response. */
@@ -3221,6 +3351,9 @@ declare namespace gapi.client {
3221
3351
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3222
3352
  quotaUser?:
3223
3353
  string;
3354
+ /** If true, only soft-deleted object versions will be listed. The default is false. For more information, see Soft Delete. */
3355
+ softDeleted?:
3356
+ boolean;
3224
3357
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
3225
3358
  uploadType?:
3226
3359
  string;
@@ -3490,6 +3623,9 @@ declare namespace gapi.client {
3490
3623
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3491
3624
  quotaUser?:
3492
3625
  string;
3626
+ /** If true, only soft-deleted object versions will be listed. The default is false. For more information, see Soft Delete. */
3627
+ softDeleted?:
3628
+ boolean;
3493
3629
  /**
3494
3630
  * Filter results to objects whose names are lexicographically equal to or after startOffset. If endOffset is also set, the objects listed will have names between startOffset
3495
3631
  * (inclusive) and endOffset (exclusive).
@@ -3650,6 +3786,135 @@ declare namespace gapi.client {
3650
3786
  body: Object
3651
3787
  // tslint:disable-next-line:ban-types
3652
3788
  ): Request<Object>;
3789
+ /** Restores a soft-deleted object. */
3790
+ restore(request: {
3791
+ /** Data format for the response. */
3792
+ alt?:
3793
+ string;
3794
+ /** Name of the bucket in which the object resides. */
3795
+ bucket:
3796
+ string;
3797
+ /** Selector specifying which fields to include in a partial response. */
3798
+ fields?:
3799
+ string;
3800
+ /** Selects a specific revision of this object. */
3801
+ generation:
3802
+ string;
3803
+ /**
3804
+ * Makes the operation conditional on whether the object's one live generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
3805
+ * of the object.
3806
+ */
3807
+ ifGenerationMatch?:
3808
+ string;
3809
+ /**
3810
+ * Makes the operation conditional on whether none of the object's live generations match the given value. If no live object exists, the precondition fails. Setting to 0 makes the
3811
+ * operation succeed only if there is a live version of the object.
3812
+ */
3813
+ ifGenerationNotMatch?:
3814
+ string;
3815
+ /** Makes the operation conditional on whether the object's one live metageneration matches the given value. */
3816
+ ifMetagenerationMatch?:
3817
+ string;
3818
+ /** Makes the operation conditional on whether none of the object's live metagenerations match the given value. */
3819
+ ifMetagenerationNotMatch?:
3820
+ string;
3821
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3822
+ key?:
3823
+ string;
3824
+ /** OAuth 2.0 token for the current user. */
3825
+ oauth_token?:
3826
+ string;
3827
+ /** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
3828
+ object:
3829
+ string;
3830
+ /** Returns response with indentations and line breaks. */
3831
+ prettyPrint?:
3832
+ boolean;
3833
+ /** Set of properties to return. Defaults to full. */
3834
+ projection?:
3835
+ string;
3836
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3837
+ quotaUser?:
3838
+ string;
3839
+ /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
3840
+ uploadType?:
3841
+ string;
3842
+ /** Deprecated. Please use quotaUser instead. */
3843
+ userIp?:
3844
+ string;
3845
+ /** The project to be billed for this request. Required for Requester Pays buckets. */
3846
+ userProject?:
3847
+ string;
3848
+ /** Request body */
3849
+ resource:
3850
+ // tslint:disable-next-line:ban-types
3851
+ Object;
3852
+ }
3853
+ // tslint:disable-next-line:ban-types
3854
+ ): Request<Object>;
3855
+ restore(request: {
3856
+ /** Data format for the response. */
3857
+ alt?:
3858
+ string;
3859
+ /** Name of the bucket in which the object resides. */
3860
+ bucket:
3861
+ string;
3862
+ /** Selector specifying which fields to include in a partial response. */
3863
+ fields?:
3864
+ string;
3865
+ /** Selects a specific revision of this object. */
3866
+ generation:
3867
+ string;
3868
+ /**
3869
+ * Makes the operation conditional on whether the object's one live generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
3870
+ * of the object.
3871
+ */
3872
+ ifGenerationMatch?:
3873
+ string;
3874
+ /**
3875
+ * Makes the operation conditional on whether none of the object's live generations match the given value. If no live object exists, the precondition fails. Setting to 0 makes the
3876
+ * operation succeed only if there is a live version of the object.
3877
+ */
3878
+ ifGenerationNotMatch?:
3879
+ string;
3880
+ /** Makes the operation conditional on whether the object's one live metageneration matches the given value. */
3881
+ ifMetagenerationMatch?:
3882
+ string;
3883
+ /** Makes the operation conditional on whether none of the object's live metagenerations match the given value. */
3884
+ ifMetagenerationNotMatch?:
3885
+ string;
3886
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3887
+ key?:
3888
+ string;
3889
+ /** OAuth 2.0 token for the current user. */
3890
+ oauth_token?:
3891
+ string;
3892
+ /** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
3893
+ object:
3894
+ string;
3895
+ /** Returns response with indentations and line breaks. */
3896
+ prettyPrint?:
3897
+ boolean;
3898
+ /** Set of properties to return. Defaults to full. */
3899
+ projection?:
3900
+ string;
3901
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3902
+ quotaUser?:
3903
+ string;
3904
+ /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
3905
+ uploadType?:
3906
+ string;
3907
+ /** Deprecated. Please use quotaUser instead. */
3908
+ userIp?:
3909
+ string;
3910
+ /** The project to be billed for this request. Required for Requester Pays buckets. */
3911
+ userProject?:
3912
+ string;
3913
+ },
3914
+ // tslint:disable-next-line:ban-types
3915
+ body: Object
3916
+ // tslint:disable-next-line:ban-types
3917
+ ): Request<Object>;
3653
3918
  /** Rewrites a source object to a destination object. Optionally overrides metadata. */
3654
3919
  rewrite(request: {
3655
3920
  /** Data format for the response. */
@@ -4288,6 +4553,116 @@ declare namespace gapi.client {
4288
4553
  },
4289
4554
  body: Channel): Request<Channel>;
4290
4555
  }
4556
+ interface OperationsResource {
4557
+ /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. */
4558
+ cancel(request?: {
4559
+ /** Data format for the response. */
4560
+ alt?:
4561
+ string;
4562
+ /** The parent bucket of the operation resource. */
4563
+ bucket:
4564
+ string;
4565
+ /** Selector specifying which fields to include in a partial response. */
4566
+ fields?:
4567
+ string;
4568
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4569
+ key?:
4570
+ string;
4571
+ /** OAuth 2.0 token for the current user. */
4572
+ oauth_token?:
4573
+ string;
4574
+ /** The ID of the operation resource. */
4575
+ operationId:
4576
+ string;
4577
+ /** Returns response with indentations and line breaks. */
4578
+ prettyPrint?:
4579
+ boolean;
4580
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4581
+ quotaUser?:
4582
+ string;
4583
+ /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
4584
+ uploadType?:
4585
+ string;
4586
+ /** Deprecated. Please use quotaUser instead. */
4587
+ userIp?:
4588
+ string;
4589
+ }): Request<void>;
4590
+ /** Gets the latest state of a long-running operation. */
4591
+ get(request?: {
4592
+ /** Data format for the response. */
4593
+ alt?:
4594
+ string;
4595
+ /** The parent bucket of the operation resource. */
4596
+ bucket:
4597
+ string;
4598
+ /** Selector specifying which fields to include in a partial response. */
4599
+ fields?:
4600
+ string;
4601
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4602
+ key?:
4603
+ string;
4604
+ /** OAuth 2.0 token for the current user. */
4605
+ oauth_token?:
4606
+ string;
4607
+ /** The ID of the operation resource. */
4608
+ operationId:
4609
+ string;
4610
+ /** Returns response with indentations and line breaks. */
4611
+ prettyPrint?:
4612
+ boolean;
4613
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4614
+ quotaUser?:
4615
+ string;
4616
+ /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
4617
+ uploadType?:
4618
+ string;
4619
+ /** Deprecated. Please use quotaUser instead. */
4620
+ userIp?:
4621
+ string;
4622
+ }): Request<GoogleLongrunningOperation>;
4623
+ /** Lists operations that match the specified filter in the request. */
4624
+ list(request?: {
4625
+ /** Data format for the response. */
4626
+ alt?:
4627
+ string;
4628
+ /** Name of the bucket in which to look for operations. */
4629
+ bucket:
4630
+ string;
4631
+ /** Selector specifying which fields to include in a partial response. */
4632
+ fields?:
4633
+ string;
4634
+ /** A filter to narrow down results to a preferred subset. The filtering language is documented in more detail in [AIP-160](https://google.aip.dev/160). */
4635
+ filter?:
4636
+ string;
4637
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4638
+ key?:
4639
+ string;
4640
+ /** OAuth 2.0 token for the current user. */
4641
+ oauth_token?:
4642
+ string;
4643
+ /**
4644
+ * Maximum number of items to return in a single page of responses. Fewer total results may be returned than requested. The service uses this parameter or 100 items, whichever is
4645
+ * smaller.
4646
+ */
4647
+ pageSize?:
4648
+ number;
4649
+ /** A previously-returned page token representing part of the larger set of results to view. */
4650
+ pageToken?:
4651
+ string;
4652
+ /** Returns response with indentations and line breaks. */
4653
+ prettyPrint?:
4654
+ boolean;
4655
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
4656
+ quotaUser?:
4657
+ string;
4658
+ /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
4659
+ uploadType?:
4660
+ string;
4661
+ /** Deprecated. Please use quotaUser instead. */
4662
+ userIp?:
4663
+ string;
4664
+ }): Request<GoogleLongrunningListOperationsResponse>;
4665
+ }
4291
4666
  interface HmacKeysResource {
4292
4667
  /** Creates a new HMAC key for the specified service account. */
4293
4668
  create(request?: {
@@ -4578,6 +4953,8 @@ declare namespace gapi.client {
4578
4953
 
4579
4954
  const objects: ObjectsResource;
4580
4955
 
4956
+ const operations: OperationsResource;
4957
+
4581
4958
  const projects: ProjectsResource;
4582
4959
  }
4583
4960
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.storage-v1",
3
- "version": "0.0.20230823",
3
+ "version": "0.0.20230907",
4
4
  "description": "TypeScript typings for Cloud Storage JSON API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -243,6 +243,11 @@ Updates an ACL entry on the specified object.
243
243
  */
244
244
  await gapi.client.storage.objectAccessControls.update({ bucket: "bucket", entity: "entity", object: "object", });
245
245
 
246
+ /*
247
+ Initiates a long-running bulk restore operation on the specified bucket.
248
+ */
249
+ await gapi.client.storage.objects.bulkRestore({ bucket: "bucket", });
250
+
246
251
  /*
247
252
  Concatenates a list of existing objects into a new object in the same bucket.
248
253
  */
@@ -283,6 +288,11 @@ Patches an object's metadata.
283
288
  */
284
289
  await gapi.client.storage.objects.patch({ bucket: "bucket", object: "object", });
285
290
 
291
+ /*
292
+ Restores a soft-deleted object.
293
+ */
294
+ await gapi.client.storage.objects.restore({ bucket: "bucket", generation: "generation", object: "object", });
295
+
286
296
  /*
287
297
  Rewrites a source object to a destination object. Optionally overrides metadata.
288
298
  */
@@ -307,4 +317,19 @@ await gapi.client.storage.objects.update({ bucket: "bucket", object: "object",
307
317
  Watch for changes on all objects in a bucket.
308
318
  */
309
319
  await gapi.client.storage.objects.watchAll({ bucket: "bucket", });
320
+
321
+ /*
322
+ Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed.
323
+ */
324
+ await gapi.client.storage.buckets.operations.cancel({ bucket: "bucket", operationId: "operationId", });
325
+
326
+ /*
327
+ Gets the latest state of a long-running operation.
328
+ */
329
+ await gapi.client.storage.buckets.operations.get({ bucket: "bucket", operationId: "operationId", });
330
+
331
+ /*
332
+ Lists operations that match the specified filter in the request.
333
+ */
334
+ await gapi.client.storage.buckets.operations.list({ bucket: "bucket", });
310
335
  ```
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230823
6
+ // Revision: 20230907
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -886,6 +886,18 @@ gapi.load('client', async () => {
886
886
  role: "Test string",
887
887
  selfLink: "Test string",
888
888
  });
889
+ /** Initiates a long-running bulk restore operation on the specified bucket. */
890
+ await gapi.client.storage.objects.bulkRestore({
891
+ bucket: "Test string",
892
+ }, {
893
+ allowOverwrite: true,
894
+ copySourceAcl: true,
895
+ matchGlobs: [
896
+ "Test string"
897
+ ],
898
+ softDeletedAfterTime: "Test string",
899
+ softDeletedBeforeTime: "Test string",
900
+ });
889
901
  /** Concatenates a list of existing objects into a new object in the same bucket. */
890
902
  await gapi.client.storage.objects.compose({
891
903
  destinationBucket: "Test string",
@@ -1069,6 +1081,7 @@ gapi.load('client', async () => {
1069
1081
  ifMetagenerationNotMatch: "Test string",
1070
1082
  object: "Test string",
1071
1083
  projection: "Test string",
1084
+ softDeleted: true,
1072
1085
  userProject: "Test string",
1073
1086
  });
1074
1087
  /** Returns an IAM policy for the specified object. */
@@ -1163,6 +1176,7 @@ gapi.load('client', async () => {
1163
1176
  pageToken: "Test string",
1164
1177
  prefix: "Test string",
1165
1178
  projection: "Test string",
1179
+ softDeleted: true,
1166
1180
  startOffset: "Test string",
1167
1181
  userProject: "Test string",
1168
1182
  versions: true,
@@ -1240,6 +1254,78 @@ gapi.load('client', async () => {
1240
1254
  timeStorageClassUpdated: "Test string",
1241
1255
  updated: "Test string",
1242
1256
  });
1257
+ /** Restores a soft-deleted object. */
1258
+ await gapi.client.storage.objects.restore({
1259
+ bucket: "Test string",
1260
+ generation: "Test string",
1261
+ ifGenerationMatch: "Test string",
1262
+ ifGenerationNotMatch: "Test string",
1263
+ ifMetagenerationMatch: "Test string",
1264
+ ifMetagenerationNotMatch: "Test string",
1265
+ object: "Test string",
1266
+ projection: "Test string",
1267
+ userProject: "Test string",
1268
+ }, {
1269
+ acl: [
1270
+ {
1271
+ bucket: "Test string",
1272
+ domain: "Test string",
1273
+ email: "Test string",
1274
+ entity: "Test string",
1275
+ entityId: "Test string",
1276
+ etag: "Test string",
1277
+ generation: "Test string",
1278
+ id: "Test string",
1279
+ kind: "Test string",
1280
+ object: "Test string",
1281
+ projectTeam: {
1282
+ projectNumber: "Test string",
1283
+ team: "Test string",
1284
+ },
1285
+ role: "Test string",
1286
+ selfLink: "Test string",
1287
+ }
1288
+ ],
1289
+ bucket: "Test string",
1290
+ cacheControl: "Test string",
1291
+ componentCount: 42,
1292
+ contentDisposition: "Test string",
1293
+ contentEncoding: "Test string",
1294
+ contentLanguage: "Test string",
1295
+ contentType: "Test string",
1296
+ crc32c: "Test string",
1297
+ customerEncryption: {
1298
+ encryptionAlgorithm: "Test string",
1299
+ keySha256: "Test string",
1300
+ },
1301
+ customTime: "Test string",
1302
+ etag: "Test string",
1303
+ eventBasedHold: true,
1304
+ generation: "Test string",
1305
+ id: "Test string",
1306
+ kind: "Test string",
1307
+ kmsKeyName: "Test string",
1308
+ md5Hash: "Test string",
1309
+ mediaLink: "Test string",
1310
+ metadata: {
1311
+ A: "Test string"
1312
+ },
1313
+ metageneration: "Test string",
1314
+ name: "Test string",
1315
+ owner: {
1316
+ entity: "Test string",
1317
+ entityId: "Test string",
1318
+ },
1319
+ retentionExpirationTime: "Test string",
1320
+ selfLink: "Test string",
1321
+ size: "Test string",
1322
+ storageClass: "Test string",
1323
+ temporaryHold: true,
1324
+ timeCreated: "Test string",
1325
+ timeDeleted: "Test string",
1326
+ timeStorageClassUpdated: "Test string",
1327
+ updated: "Test string",
1328
+ });
1243
1329
  /** Rewrites a source object to a destination object. Optionally overrides metadata. */
1244
1330
  await gapi.client.storage.objects.rewrite({
1245
1331
  destinationBucket: "Test string",
@@ -1456,6 +1542,23 @@ gapi.load('client', async () => {
1456
1542
  token: "Test string",
1457
1543
  type: "Test string",
1458
1544
  });
1545
+ /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. */
1546
+ await gapi.client.storage.operations.cancel({
1547
+ bucket: "Test string",
1548
+ operationId: "Test string",
1549
+ });
1550
+ /** Gets the latest state of a long-running operation. */
1551
+ await gapi.client.storage.operations.get({
1552
+ bucket: "Test string",
1553
+ operationId: "Test string",
1554
+ });
1555
+ /** Lists operations that match the specified filter in the request. */
1556
+ await gapi.client.storage.operations.list({
1557
+ bucket: "Test string",
1558
+ filter: "Test string",
1559
+ pageSize: 42,
1560
+ pageToken: "Test string",
1561
+ });
1459
1562
  /** Creates a new HMAC key for the specified service account. */
1460
1563
  await gapi.client.storage.projects.hmacKeys.create({
1461
1564
  projectId: "Test string",