Class: Google::Apis::SpannerV1::QuorumType

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 database quorum type. This only applies to dual-region instance configs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QuorumType

Returns a new instance of QuorumType.



5609
5610
5611
# File 'lib/google/apis/spanner_v1/classes.rb', line 5609

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

Instance Attribute Details

#dual_regionGoogle::Apis::SpannerV1::DualRegionQuorum

Message type for a dual-region quorum. Currently this type has no options. Corresponds to the JSON property dualRegion



5602
5603
5604
# File 'lib/google/apis/spanner_v1/classes.rb', line 5602

def dual_region
  @dual_region
end

#single_regionGoogle::Apis::SpannerV1::SingleRegionQuorum

Message type for a single-region quorum. Corresponds to the JSON property singleRegion



5607
5608
5609
# File 'lib/google/apis/spanner_v1/classes.rb', line 5607

def single_region
  @single_region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5614
5615
5616
5617
# File 'lib/google/apis/spanner_v1/classes.rb', line 5614

def update!(**args)
  @dual_region = args[:dual_region] if args.key?(:dual_region)
  @single_region = args[:single_region] if args.key?(:single_region)
end