Class: Google::Apis::SpannerV1::OptimizeRestoredDatabaseMetadata
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::OptimizeRestoredDatabaseMetadata
- 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
Metadata type for the long-running operation used to track the progress of optimizations performed on a newly restored database. This long-running operation is automatically created by the system after the successful completion of a database restore, and cannot be cancelled.
Instance Attribute Summary collapse
-
#name ⇒ String
Name of the restored database being optimized.
-
#progress ⇒ Google::Apis::SpannerV1::OperationProgress
Encapsulates progress related information for a Cloud Spanner long running operation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OptimizeRestoredDatabaseMetadata
constructor
A new instance of OptimizeRestoredDatabaseMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OptimizeRestoredDatabaseMetadata
Returns a new instance of OptimizeRestoredDatabaseMetadata.
1873 1874 1875 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1873 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the restored database being optimized.
Corresponds to the JSON property name
1865 1866 1867 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1865 def name @name end |
#progress ⇒ Google::Apis::SpannerV1::OperationProgress
Encapsulates progress related information for a Cloud Spanner long running
operation.
Corresponds to the JSON property progress
1871 1872 1873 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1871 def progress @progress end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1878 1879 1880 1881 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1878 def update!(**args) @name = args[:name] if args.key?(:name) @progress = args[:progress] if args.key?(:progress) end |