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.



5778
5779
5780
# File 'lib/google/apis/spanner_v1/classes.rb', line 5778

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)


5760
5761
5762
# File 'lib/google/apis/spanner_v1/classes.rb', line 5760

def etag
  @etag
end

#initiatorString

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

Returns:

  • (String)


5765
5766
5767
# File 'lib/google/apis/spanner_v1/classes.rb', line 5765

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



5771
5772
5773
# File 'lib/google/apis/spanner_v1/classes.rb', line 5771

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)


5776
5777
5778
# File 'lib/google/apis/spanner_v1/classes.rb', line 5776

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5783
5784
5785
5786
5787
5788
# File 'lib/google/apis/spanner_v1/classes.rb', line 5783

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