Class: Google::Apis::SpannerV1::RestoreDatabaseRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::RestoreDatabaseRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb
Overview
The request for RestoreDatabase.
Instance Attribute Summary collapse
-
#backup ⇒ String
Name of the backup from which to restore.
-
#database_id ⇒ String
Required.
-
#encryption_config ⇒ Google::Apis::SpannerV1::RestoreDatabaseEncryptionConfig
Encryption configuration for the restored database.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RestoreDatabaseRequest
constructor
A new instance of RestoreDatabaseRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RestoreDatabaseRequest
Returns a new instance of RestoreDatabaseRequest.
3452 3453 3454 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3452 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup ⇒ String
Name of the backup from which to restore. Values are of the form projects//
instances//backups/.
Corresponds to the JSON property backup
3438 3439 3440 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3438 def backup @backup end |
#database_id ⇒ String
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
3445 3446 3447 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3445 def database_id @database_id end |
#encryption_config ⇒ Google::Apis::SpannerV1::RestoreDatabaseEncryptionConfig
Encryption configuration for the restored database.
Corresponds to the JSON property encryptionConfig
3450 3451 3452 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3450 def encryption_config @encryption_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3457 3458 3459 3460 3461 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3457 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 |