Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1RestoreDatabaseRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firestore_v1/classes.rb,
lib/google/apis/firestore_v1/representations.rb,
lib/google/apis/firestore_v1/representations.rb

Overview

The request message for FirestoreAdmin.RestoreDatabase.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1RestoreDatabaseRequest

Returns a new instance of GoogleFirestoreAdminV1RestoreDatabaseRequest.



2389
2390
2391
# File 'lib/google/apis/firestore_v1/classes.rb', line 2389

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#backupString

Backup to restore from. Must be from the same project as the parent. Format is: projects/project_id/locations/location/backups/backup` Corresponds to the JSON propertybackup`

Returns:

  • (String)


2345
2346
2347
# File 'lib/google/apis/firestore_v1/classes.rb', line 2345

def backup
  @backup
end

#database_idString

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. Corresponds to the JSON property databaseId

Returns:

  • (String)


2355
2356
2357
# File 'lib/google/apis/firestore_v1/classes.rb', line 2355

def database_id
  @database_id
end

#database_snapshotGoogle::Apis::FirestoreV1::GoogleFirestoreAdminV1DatabaseSnapshot

A consistent snapshot of a database at a specific point in time. Corresponds to the JSON property databaseSnapshot



2360
2361
2362
# File 'lib/google/apis/firestore_v1/classes.rb', line 2360

def database_snapshot
  @database_snapshot
end

#kms_key_nameString

Use Customer Managed Encryption Keys (CMEK) for encryption. Only keys in the same location as this 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`. Corresponds to the JSON propertykmsKeyName`

Returns:

  • (String)


2371
2372
2373
# File 'lib/google/apis/firestore_v1/classes.rb', line 2371

def kms_key_name
  @kms_key_name
end

#use_backup_encryptionGoogle::Apis::FirestoreV1::Empty

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo rpc Bar(google. protobuf.Empty) returns (google.protobuf.Empty); Corresponds to the JSON property useBackupEncryption



2379
2380
2381
# File 'lib/google/apis/firestore_v1/classes.rb', line 2379

def use_backup_encryption
  @use_backup_encryption
end

#use_google_default_encryptionGoogle::Apis::FirestoreV1::Empty

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo rpc Bar(google. protobuf.Empty) returns (google.protobuf.Empty); Corresponds to the JSON property useGoogleDefaultEncryption



2387
2388
2389
# File 'lib/google/apis/firestore_v1/classes.rb', line 2387

def use_google_default_encryption
  @use_google_default_encryption
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2394
2395
2396
2397
2398
2399
2400
2401
# File 'lib/google/apis/firestore_v1/classes.rb', line 2394

def update!(**args)
  @backup = args[:backup] if args.key?(:backup)
  @database_id = args[:database_id] if args.key?(:database_id)
  @database_snapshot = args[:database_snapshot] if args.key?(:database_snapshot)
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
  @use_backup_encryption = args[:use_backup_encryption] if args.key?(:use_backup_encryption)
  @use_google_default_encryption = args[:use_google_default_encryption] if args.key?(:use_google_default_encryption)
end