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.



5669
5670
5671
# File 'lib/google/apis/spanner_v1/classes.rb', line 5669

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)


5651
5652
5653
# File 'lib/google/apis/spanner_v1/classes.rb', line 5651

def etag
  @etag
end

#initiatorString

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

Returns:

  • (String)


5656
5657
5658
# File 'lib/google/apis/spanner_v1/classes.rb', line 5656

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



5662
5663
5664
# File 'lib/google/apis/spanner_v1/classes.rb', line 5662

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)


5667
5668
5669
# File 'lib/google/apis/spanner_v1/classes.rb', line 5667

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5674
5675
5676
5677
5678
5679
# File 'lib/google/apis/spanner_v1/classes.rb', line 5674

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