@maxim_mazurok/gapi.client.firestore-v1 0.0.20240713 → 0.0.20240804

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 (2) hide show
  1. package/index.d.ts +17 -7
  2. package/package.json +1 -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://firestore.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20240713
12
+ // Revision: 20240804
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -318,6 +318,10 @@ declare namespace gapi.client {
318
318
  kmsKeyName?: string;
319
319
  }
320
320
  interface GoogleFirestoreAdminV1CreateDatabaseMetadata {}
321
+ interface GoogleFirestoreAdminV1CustomerManagedEncryptionOptions {
322
+ /** Required. Only keys in the same location as the database are allowed to be used for encryption. For Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations. The expected format is `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. */
323
+ kmsKeyName?: string;
324
+ }
321
325
  interface GoogleFirestoreAdminV1DailyRecurrence {}
322
326
  interface GoogleFirestoreAdminV1Database {
323
327
  /** The App Engine integration mode to use for this database. */
@@ -356,6 +360,14 @@ declare namespace gapi.client {
356
360
  versionRetentionPeriod?: string;
357
361
  }
358
362
  interface GoogleFirestoreAdminV1DeleteDatabaseMetadata {}
363
+ interface GoogleFirestoreAdminV1EncryptionConfig {
364
+ /** Use Customer Managed Encryption Keys (CMEK) for encryption. */
365
+ customerManagedEncryption?: GoogleFirestoreAdminV1CustomerManagedEncryptionOptions;
366
+ /** Use Google default encryption. */
367
+ googleDefaultEncryption?: any;
368
+ /** The database will use the same encryption configuration as the source. */
369
+ useSourceEncryption?: any;
370
+ }
359
371
  interface GoogleFirestoreAdminV1ExportDocumentsMetadata {
360
372
  /** Which collection ids are being exported. */
361
373
  collectionIds?: string[];
@@ -417,6 +429,7 @@ declare namespace gapi.client {
417
429
  ttlConfigDelta?: GoogleFirestoreAdminV1TtlConfigDelta;
418
430
  }
419
431
  interface GoogleFirestoreAdminV1FlatIndex {}
432
+ interface GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions {}
420
433
  interface GoogleFirestoreAdminV1ImportDocumentsMetadata {
421
434
  /** Which collection ids are being imported. */
422
435
  collectionIds?: string[];
@@ -549,13 +562,10 @@ declare namespace gapi.client {
549
562
  backup?: string;
550
563
  /** Required. The ID to use for the database, which will become the final component of the database's resource name. This database id must not be associated with an existing database. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. "(default)" database id is also valid. */
551
564
  databaseId?: string;
552
- /** Use Customer Managed Encryption Keys (CMEK) for encryption. Only keys in the same location as the restored database are allowed to be used for encryption. For Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations. The expected format is `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. */
553
- kmsKeyName?: string;
554
- /** The restored database will use the same encryption configuration as the backup. This is the default option when no `encryption_config` is specified. */
555
- useBackupEncryption?: any;
556
- /** Use Google default encryption. */
557
- useGoogleDefaultEncryption?: any;
565
+ /** Optional. Encryption configuration for the restored database. If this field is not specified, the restored database will use the same encryption configuration as the backup, namely use_source_encryption. */
566
+ encryptionConfig?: GoogleFirestoreAdminV1EncryptionConfig;
558
567
  }
568
+ interface GoogleFirestoreAdminV1SourceEncryptionOptions {}
559
569
  interface GoogleFirestoreAdminV1Stats {
560
570
  /** Output only. The total number of documents contained in the backup. */
561
571
  documentCount?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.firestore-v1",
3
- "version": "0.0.20240713",
3
+ "version": "0.0.20240804",
4
4
  "description": "TypeScript typings for Cloud Firestore API v1",
5
5
  "repository": {
6
6
  "type": "git",