Class: Google::Apis::SpannerV1::RestoreDatabaseRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::RestoreDatabaseRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spanner_v1/classes.rb,
generated/google/apis/spanner_v1/representations.rb,
generated/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.
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.
2661 2662 2663 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2661 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
2652 2653 2654 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2652 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
2659 2660 2661 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2659 def database_id @database_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2666 2667 2668 2669 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2666 def update!(**args) @backup = args[:backup] if args.key?(:backup) @database_id = args[:database_id] if args.key?(:database_id) end |