Class: Google::Apis::SpannerV1::QuorumInfo
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::QuorumInfo
- 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
-
#etag ⇒ String
Output only.
-
#initiator ⇒ String
Output only.
-
#quorum_type ⇒ Google::Apis::SpannerV1::QuorumType
Information about the database quorum type.
-
#start_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QuorumInfo
constructor
A new instance of QuorumInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#etag ⇒ String
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
5563 5564 5565 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5563 def etag @etag end |
#initiator ⇒ String
Output only. Whether this ChangeQuorum is Google or User initiated.
Corresponds to the JSON property initiator
5568 5569 5570 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5568 def initiator @initiator end |
#quorum_type ⇒ Google::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_time ⇒ String
Output only. The timestamp when the request was triggered.
Corresponds to the JSON property startTime
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 |