class Google::Apis::SpannerV1::RestoreDatabaseRequest

The request for RestoreDatabase.

Attributes

backup[RW]

Name of the backup from which to restore. Values are of the form `projects// instances//backups/`. Corresponds to the JSON property `backup` @return [String]

database_id[RW]

Required. The id of the database to create and restore to. This database must not already exist. The `database_id` appended to `parent` forms the full database name of the form `projects//instances//databases/`. Corresponds to the JSON property `databaseId` @return [String]

encryption_config[RW]

Encryption configuration for the restored database. Corresponds to the JSON property `encryptionConfig` @return [Google::Apis::SpannerV1::RestoreDatabaseEncryptionConfig]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 3487
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/spanner_v1/classes.rb, line 3492
def update!(**args)
  @backup = args[:backup] if args.key?(:backup)
  @database_id = args[:database_id] if args.key?(:database_id)
  @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
end