Class: Google::Apis::SpannerV1::UpdateDatabaseMetadata

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 operation returned by UpdateDatabase.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateDatabaseMetadata

Returns a new instance of UpdateDatabaseMetadata.



7040
7041
7042
# File 'lib/google/apis/spanner_v1/classes.rb', line 7040

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

Instance Attribute Details

#cancel_timeString

The time at which this operation was cancelled. If set, this operation is in the process of undoing itself (which is best-effort). Corresponds to the JSON property cancelTime

Returns:

  • (String)


7027
7028
7029
# File 'lib/google/apis/spanner_v1/classes.rb', line 7027

def cancel_time
  @cancel_time
end

#progressGoogle::Apis::SpannerV1::OperationProgress

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



7033
7034
7035
# File 'lib/google/apis/spanner_v1/classes.rb', line 7033

def progress
  @progress
end

#requestGoogle::Apis::SpannerV1::UpdateDatabaseRequest

The request for UpdateDatabase. Corresponds to the JSON property request



7038
7039
7040
# File 'lib/google/apis/spanner_v1/classes.rb', line 7038

def request
  @request
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7045
7046
7047
7048
7049
# File 'lib/google/apis/spanner_v1/classes.rb', line 7045

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