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.



5581
5582
5583
# File 'lib/google/apis/spanner_v1/classes.rb', line 5581

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)


5563
5564
5565
# File 'lib/google/apis/spanner_v1/classes.rb', line 5563

def etag
  @etag
end

#initiatorString

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

Returns:

  • (String)


5568
5569
5570
# File 'lib/google/apis/spanner_v1/classes.rb', line 5568

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



5574
5575
5576
# File 'lib/google/apis/spanner_v1/classes.rb', line 5574

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)


5579
5580
5581
# File 'lib/google/apis/spanner_v1/classes.rb', line 5579

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5586
5587
5588
5589
5590
5591
# File 'lib/google/apis/spanner_v1/classes.rb', line 5586

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