Class: Google::Apis::SpannerV1::QuorumInfo

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

Information about the dual-region quorum.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QuorumInfo

Returns a new instance of QuorumInfo.



5099
5100
5101
# File 'lib/google/apis/spanner_v1/classes.rb', line 5099

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

Instance Attribute Details

#etagString

Output only. The etag is used for optimistic concurrency control as a way to help prevent simultaneous ChangeQuorum requests that might create a race condition. Corresponds to the JSON property etag

Returns:

  • (String)


5081
5082
5083
# File 'lib/google/apis/spanner_v1/classes.rb', line 5081

def etag
  @etag
end

#initiatorString

Output only. Whether this ChangeQuorum is Google or User initiated. Corresponds to the JSON property initiator

Returns:

  • (String)


5086
5087
5088
# File 'lib/google/apis/spanner_v1/classes.rb', line 5086

def initiator
  @initiator
end

#quorum_typeGoogle::Apis::SpannerV1::QuorumType

Information about the database quorum type. This only applies to dual-region instance configs. Corresponds to the JSON property quorumType



5092
5093
5094
# File 'lib/google/apis/spanner_v1/classes.rb', line 5092

def quorum_type
  @quorum_type
end

#start_timeString

Output only. The timestamp when the request was triggered. Corresponds to the JSON property startTime

Returns:

  • (String)


5097
5098
5099
# File 'lib/google/apis/spanner_v1/classes.rb', line 5097

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5104
5105
5106
5107
5108
5109
# File 'lib/google/apis/spanner_v1/classes.rb', line 5104

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @initiator = args[:initiator] if args.key?(:initiator)
  @quorum_type = args[:quorum_type] if args.key?(:quorum_type)
  @start_time = args[:start_time] if args.key?(:start_time)
end