Class: Google::Apis::SpannerV1::OptimizeRestoredDatabaseMetadata

Inherits:
Object
  • Object
show all
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 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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OptimizeRestoredDatabaseMetadata

Returns a new instance of OptimizeRestoredDatabaseMetadata.



2515
2516
2517
# File 'lib/google/apis/spanner_v1/classes.rb', line 2515

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Name of the restored database being optimized. Corresponds to the JSON property name

Returns:

  • (String)


2507
2508
2509
# File 'lib/google/apis/spanner_v1/classes.rb', line 2507

def name
  @name
end

#progressGoogle::Apis::SpannerV1::OperationProgress

Encapsulates progress related information for a Cloud Spanner long running operation. Corresponds to the JSON property progress



2513
2514
2515
# File 'lib/google/apis/spanner_v1/classes.rb', line 2513

def progress
  @progress
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2520
2521
2522
2523
# File 'lib/google/apis/spanner_v1/classes.rb', line 2520

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @progress = args[:progress] if args.key?(:progress)
end