Class: Google::Apis::SpannerV1::RestoreDatabaseMetadata
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::RestoreDatabaseMetadata
- 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
Metadata type for the long-running operation returned by RestoreDatabase.
Instance Attribute Summary collapse
-
#backup_info ⇒ Google::Apis::SpannerV1::BackupInfo
Information about a backup.
-
#cancel_time ⇒ String
The time at which cancellation of this operation was received.
-
#name ⇒ String
Name of the database being created and restored to.
-
#optimize_database_operation_name ⇒ String
If exists, the name of the long-running operation that will be used to track the post-restore optimization process to optimize the performance of the restored database, and remove the dependency on the restore source.
-
#progress ⇒ Google::Apis::SpannerV1::OperationProgress
Encapsulates progress related information for a Cloud Spanner long running operation.
-
#source_type ⇒ String
The type of the restore source.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RestoreDatabaseMetadata
constructor
A new instance of RestoreDatabaseMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RestoreDatabaseMetadata
Returns a new instance of RestoreDatabaseMetadata.
2824 2825 2826 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2824 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_info ⇒ Google::Apis::SpannerV1::BackupInfo
Information about a backup.
Corresponds to the JSON property backupInfo
2781 2782 2783 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2781 def backup_info @backup_info end |
#cancel_time ⇒ String
The time at which cancellation of this operation was received. Operations.
CancelOperation starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not
guaranteed. Clients can use Operations.GetOperation or other methods to check
whether the cancellation succeeded or whether the operation completed despite
cancellation. On successful cancellation, the operation is not deleted;
instead, it becomes an operation with an Operation.error value with a google.
rpc.Status.code of 1, corresponding to Code.CANCELLED.
Corresponds to the JSON property cancelTime
2793 2794 2795 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2793 def cancel_time @cancel_time end |
#name ⇒ String
Name of the database being created and restored to.
Corresponds to the JSON property name
2798 2799 2800 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2798 def name @name end |
#optimize_database_operation_name ⇒ String
If exists, the name of the long-running operation that will be used to track
the post-restore optimization process to optimize the performance of the
restored database, and remove the dependency on the restore source. The name
is of the form projects//instances//databases//operations/ where the is the
name of database being created and restored to. The metadata type of the long-
running operation is OptimizeRestoredDatabaseMetadata. This long-running
operation will be automatically created by the system after the
RestoreDatabase long-running operation completes successfully. This operation
will not be created if the restore was not successful.
Corresponds to the JSON property optimizeDatabaseOperationName
2811 2812 2813 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2811 def optimize_database_operation_name @optimize_database_operation_name end |
#progress ⇒ Google::Apis::SpannerV1::OperationProgress
Encapsulates progress related information for a Cloud Spanner long running
operation.
Corresponds to the JSON property progress
2817 2818 2819 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2817 def progress @progress end |
#source_type ⇒ String
The type of the restore source.
Corresponds to the JSON property sourceType
2822 2823 2824 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2822 def source_type @source_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2829 2830 2831 2832 2833 2834 2835 2836 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2829 def update!(**args) @backup_info = args[:backup_info] if args.key?(:backup_info) @cancel_time = args[:cancel_time] if args.key?(:cancel_time) @name = args[:name] if args.key?(:name) @optimize_database_operation_name = args[:optimize_database_operation_name] if args.key?(:optimize_database_operation_name) @progress = args[:progress] if args.key?(:progress) @source_type = args[:source_type] if args.key?(:source_type) end |