Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1CloneDatabaseRequest

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.CloneDatabase.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1CloneDatabaseRequest

Returns a new instance of GoogleFirestoreAdminV1CloneDatabaseRequest.



1489
1490
1491
# File 'lib/google/apis/firestore_v1/classes.rb', line 1489

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

Instance Attribute Details

#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 if the database is Standard edition. Corresponds to the JSON property databaseId

Returns:

  • (String)


1465
1466
1467
# File 'lib/google/apis/firestore_v1/classes.rb', line 1465

def database_id
  @database_id
end

#encryption_configGoogle::Apis::FirestoreV1::GoogleFirestoreAdminV1EncryptionConfig

Encryption configuration for a new database being created from another source. The source could be a Backup . Corresponds to the JSON property encryptionConfig



1471
1472
1473
# File 'lib/google/apis/firestore_v1/classes.rb', line 1471

def encryption_config
  @encryption_config
end

#pitr_snapshotGoogle::Apis::FirestoreV1::GoogleFirestoreAdminV1PitrSnapshot

A consistent snapshot of a database at a specific point in time. A PITR (Point- in-time recovery) snapshot with previous versions of a database's data is available for every minute up to the associated database's data retention period. If the PITR feature is enabled, the retention period is 7 days; otherwise, it is one hour. Corresponds to the JSON property pitrSnapshot



1480
1481
1482
# File 'lib/google/apis/firestore_v1/classes.rb', line 1480

def pitr_snapshot
  @pitr_snapshot
end

#tagsHash<String,String>

Optional. Immutable. Tags to be bound to the cloned database. The tags should be provided in the format of tagKeys/tag_key_id-> tagValues/tag_value_id` . Corresponds to the JSON propertytags`

Returns:

  • (Hash<String,String>)


1487
1488
1489
# File 'lib/google/apis/firestore_v1/classes.rb', line 1487

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1494
1495
1496
1497
1498
1499
# File 'lib/google/apis/firestore_v1/classes.rb', line 1494

def update!(**args)
  @database_id = args[:database_id] if args.key?(:database_id)
  @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
  @pitr_snapshot = args[:pitr_snapshot] if args.key?(:pitr_snapshot)
  @tags = args[:tags] if args.key?(:tags)
end