@maxim_mazurok/gapi.client.storage-v1 0.0.20240801 → 0.0.20240809

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 (3) hide show
  1. package/index.d.ts +50 -15
  2. package/package.json +1 -1
  3. package/readme.md +9 -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: 20240801
12
+ // Revision: 20240809
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -104,6 +104,8 @@ declare namespace gapi.client {
104
104
  };
105
105
  /** HTTP 1.1 Entity tag for the bucket. */
106
106
  etag?: string;
107
+ /** The generation of this bucket. */
108
+ generation?: string;
107
109
  /** The bucket's hierarchical namespace configuration. */
108
110
  hierarchicalNamespace?: {
109
111
  /** When set to true, hierarchical namespace is enabled for this bucket. */
@@ -151,7 +153,7 @@ declare namespace gapi.client {
151
153
  kind?: string;
152
154
  /** User-provided labels, in key/value pairs. */
153
155
  labels?: {[P in string]: string};
154
- /** The bucket's lifecycle configuration. See lifecycle management for more information. */
156
+ /** The bucket's lifecycle configuration. See [Lifecycle Management](https://cloud.google.com/storage/docs/lifecycle) for more information. */
155
157
  lifecycle?: {
156
158
  /** A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken. */
157
159
  rule?: Array<{
@@ -191,7 +193,7 @@ declare namespace gapi.client {
191
193
  };
192
194
  }>;
193
195
  };
194
- /** The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the developer's guide for the authoritative list. */
196
+ /** The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the [Developer's Guide](https://cloud.google.com/storage/docs/locations) for the authoritative list. */
195
197
  location?: string;
196
198
  /** The type of the bucket location. */
197
199
  locationType?: string;
@@ -232,6 +234,8 @@ declare namespace gapi.client {
232
234
  /** The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket. */
233
235
  rpo?: string;
234
236
  /** Reserved for future use. */
237
+ satisfiesPZI?: boolean;
238
+ /** Reserved for future use. */
235
239
  satisfiesPZS?: boolean;
236
240
  /** The URI of this bucket. */
237
241
  selfLink?: string;
@@ -242,7 +246,7 @@ declare namespace gapi.client {
242
246
  /** The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted. */
243
247
  retentionDurationSeconds?: string;
244
248
  };
245
- /** The bucket's default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see storage classes. */
249
+ /** The bucket's default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see [Storage Classes](https://cloud.google.com/storage/docs/storage-classes). */
246
250
  storageClass?: string;
247
251
  /** The creation time of the bucket in RFC 3339 format. */
248
252
  timeCreated?: string;
@@ -253,7 +257,7 @@ declare namespace gapi.client {
253
257
  /** While set to true, versioning is fully enabled for this bucket. */
254
258
  enabled?: boolean;
255
259
  };
256
- /** The bucket's website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information. */
260
+ /** The bucket's website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the [Static Website Examples](https://cloud.google.com/storage/docs/static-website) for more information. */
257
261
  website?: {
258
262
  /** If the requested object path is missing, the service will ensure the path has a trailing '/', append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages. */
259
263
  mainPageSuffix?: string;
@@ -570,7 +574,7 @@ declare namespace gapi.client {
570
574
  contentLanguage?: string;
571
575
  /** Content-Type of the object data. If an object is stored without a Content-Type, it is served as application/octet-stream. */
572
576
  contentType?: string;
573
- /** CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see Hashes and ETags: Best Practices. */
577
+ /** CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see [Data Validation and Change Detection](https://cloud.google.com/storage/docs/data-validation). */
574
578
  crc32c?: string;
575
579
  /** Metadata of customer-supplied encryption key, if the object is encrypted by such a key. */
576
580
  customerEncryption?: {
@@ -595,7 +599,7 @@ declare namespace gapi.client {
595
599
  kind?: string;
596
600
  /** Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request. */
597
601
  kmsKeyName?: string;
598
- /** MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see Hashes and ETags: Best Practices. */
602
+ /** MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see [Data Validation and Change Detection](https://cloud.google.com/storage/docs/data-validation). */
599
603
  md5Hash?: string;
600
604
  /** Media download link. */
601
605
  mediaLink?: string;
@@ -1243,7 +1247,7 @@ declare namespace gapi.client {
1243
1247
  ): Request<BucketAccessControl>;
1244
1248
  }
1245
1249
  interface BucketsResource {
1246
- /** Permanently deletes an empty bucket. */
1250
+ /** Deletes an empty bucket. Deletions are permanent unless soft delete is enabled on the bucket. */
1247
1251
  delete(request?: {
1248
1252
  /** Data format for the response. */
1249
1253
  alt?: string;
@@ -1278,6 +1282,8 @@ declare namespace gapi.client {
1278
1282
  bucket: string;
1279
1283
  /** Selector specifying which fields to include in a partial response. */
1280
1284
  fields?: string;
1285
+ /** If present, specifies the generation of the bucket. This is required if softDeleted is true. */
1286
+ generation?: string;
1281
1287
  /** Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. */
1282
1288
  ifMetagenerationMatch?: string;
1283
1289
  /** Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. */
@@ -1292,6 +1298,8 @@ declare namespace gapi.client {
1292
1298
  projection?: string;
1293
1299
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1294
1300
  quotaUser?: string;
1301
+ /** If true, return the soft-deleted version of this bucket. The default is false. For more information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete). */
1302
+ softDeleted?: boolean;
1295
1303
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
1296
1304
  uploadType?: string;
1297
1305
  /** Deprecated. Please use quotaUser instead. */
@@ -1437,6 +1445,8 @@ declare namespace gapi.client {
1437
1445
  projection?: string;
1438
1446
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1439
1447
  quotaUser?: string;
1448
+ /** If true, only soft-deleted bucket versions will be returned. The default is false. For more information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete). */
1449
+ softDeleted?: boolean;
1440
1450
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
1441
1451
  uploadType?: string;
1442
1452
  /** Deprecated. Please use quotaUser instead. */
@@ -1539,6 +1549,31 @@ declare namespace gapi.client {
1539
1549
  },
1540
1550
  body: Bucket
1541
1551
  ): Request<Bucket>;
1552
+ /** Restores a soft-deleted bucket. */
1553
+ restore(request?: {
1554
+ /** Data format for the response. */
1555
+ alt?: string;
1556
+ /** Name of a bucket. */
1557
+ bucket: string;
1558
+ /** Selector specifying which fields to include in a partial response. */
1559
+ fields?: string;
1560
+ /** Generation of a bucket. */
1561
+ generation: string;
1562
+ /** 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. */
1563
+ key?: string;
1564
+ /** OAuth 2.0 token for the current user. */
1565
+ oauth_token?: string;
1566
+ /** Returns response with indentations and line breaks. */
1567
+ prettyPrint?: boolean;
1568
+ /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1569
+ quotaUser?: string;
1570
+ /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
1571
+ uploadType?: string;
1572
+ /** Deprecated. Please use quotaUser instead. */
1573
+ userIp?: string;
1574
+ /** The project to be billed for this request. Required for Requester Pays buckets. */
1575
+ userProject?: string;
1576
+ }): Request<void>;
1542
1577
  /** Updates an IAM policy for the specified bucket. */
1543
1578
  setIamPolicy(request: {
1544
1579
  /** Data format for the response. */
@@ -3070,7 +3105,7 @@ declare namespace gapi.client {
3070
3105
  projection?: string;
3071
3106
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3072
3107
  quotaUser?: string;
3073
- /** If true, only soft-deleted object versions will be listed. The default is false. For more information, see Soft Delete. */
3108
+ /** If true, only soft-deleted object versions will be listed. The default is false. For more information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete). */
3074
3109
  softDeleted?: boolean;
3075
3110
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
3076
3111
  uploadType?: string;
@@ -3234,7 +3269,7 @@ declare namespace gapi.client {
3234
3269
  projection?: string;
3235
3270
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3236
3271
  quotaUser?: string;
3237
- /** If true, only soft-deleted object versions will be listed. The default is false. For more information, see Soft Delete. */
3272
+ /** If true, only soft-deleted object versions will be listed. The default is false. For more information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete). */
3238
3273
  softDeleted?: boolean;
3239
3274
  /** 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 (inclusive) and endOffset (exclusive). */
3240
3275
  startOffset?: string;
@@ -3244,7 +3279,7 @@ declare namespace gapi.client {
3244
3279
  userIp?: string;
3245
3280
  /** The project to be billed for this request. Required for Requester Pays buckets. */
3246
3281
  userProject?: string;
3247
- /** If true, lists all versions of an object as distinct results. The default is false. For more information, see Object Versioning. */
3282
+ /** If true, lists all versions of an object as distinct results. The default is false. For more information, see [Object Versioning](https://cloud.google.com/storage/docs/object-versioning). */
3248
3283
  versions?: boolean;
3249
3284
  }): Request<Objects>;
3250
3285
  /** Patches an object's metadata. */
@@ -3364,7 +3399,7 @@ declare namespace gapi.client {
3364
3399
  key?: string;
3365
3400
  /** OAuth 2.0 token for the current user. */
3366
3401
  oauth_token?: string;
3367
- /** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
3402
+ /** Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). */
3368
3403
  object: string;
3369
3404
  /** Returns response with indentations and line breaks. */
3370
3405
  prettyPrint?: boolean;
@@ -3718,7 +3753,7 @@ declare namespace gapi.client {
3718
3753
  userIp?: string;
3719
3754
  /** The project to be billed for this request. Required for Requester Pays buckets. */
3720
3755
  userProject?: string;
3721
- /** If true, lists all versions of an object as distinct results. The default is false. For more information, see Object Versioning. */
3756
+ /** If true, lists all versions of an object as distinct results. The default is false. For more information, see [Object Versioning](https://cloud.google.com/storage/docs/object-versioning). */
3722
3757
  versions?: boolean;
3723
3758
  /** Request body */
3724
3759
  resource: Channel;
@@ -3761,7 +3796,7 @@ declare namespace gapi.client {
3761
3796
  userIp?: string;
3762
3797
  /** The project to be billed for this request. Required for Requester Pays buckets. */
3763
3798
  userProject?: string;
3764
- /** If true, lists all versions of an object as distinct results. The default is false. For more information, see Object Versioning. */
3799
+ /** If true, lists all versions of an object as distinct results. The default is false. For more information, see [Object Versioning](https://cloud.google.com/storage/docs/object-versioning). */
3765
3800
  versions?: boolean;
3766
3801
  },
3767
3802
  body: Channel
@@ -3949,7 +3984,7 @@ declare namespace gapi.client {
3949
3984
  /** The project to be billed for this request. */
3950
3985
  userProject?: string;
3951
3986
  }): Request<HmacKeysMetadata>;
3952
- /** Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states. */
3987
+ /** Updates the state of an HMAC key. See the [HMAC Key resource descriptor](https://cloud.google.com/storage/docs/json_api/v1/projects/hmacKeys/update#request-body) for valid states. */
3953
3988
  update(request: {
3954
3989
  /** Name of the HMAC key being updated. */
3955
3990
  accessId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.storage-v1",
3
- "version": "0.0.20240801",
3
+ "version": "0.0.20240809",
4
4
  "description": "TypeScript typings for Cloud Storage JSON API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -174,7 +174,7 @@ await gapi.client.storage.bucketAccessControls.update({
174
174
  });
175
175
 
176
176
  /*
177
- Permanently deletes an empty bucket.
177
+ Deletes an empty bucket. Deletions are permanent unless soft delete is enabled on the bucket.
178
178
  */
179
179
  await gapi.client.storage.buckets.delete({bucket: 'bucket'});
180
180
 
@@ -216,6 +216,14 @@ Patches a bucket. Changes to the bucket will be readable immediately after writi
216
216
  */
217
217
  await gapi.client.storage.buckets.patch({bucket: 'bucket'});
218
218
 
219
+ /*
220
+ Restores a soft-deleted bucket.
221
+ */
222
+ await gapi.client.storage.buckets.restore({
223
+ bucket: 'bucket',
224
+ generation: 'generation',
225
+ });
226
+
219
227
  /*
220
228
  Updates an IAM policy for the specified bucket.
221
229
  */