Class: Google::Apis::SpannerV1::SingleRegionQuorum

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

Message type for a single-region quorum.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SingleRegionQuorum

Returns a new instance of SingleRegionQuorum.



6041
6042
6043
# File 'lib/google/apis/spanner_v1/classes.rb', line 6041

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

Instance Attribute Details

#serving_locationString

Required. The location of the serving region, e.g. "us-central1". The location must be one of the regions within the dual-region instance configuration of your database. The list of valid locations is available using the GetInstanceConfig API. This should only be used if you plan to change quorum to the single-region quorum type. Corresponds to the JSON property servingLocation

Returns:

  • (String)


6039
6040
6041
# File 'lib/google/apis/spanner_v1/classes.rb', line 6039

def serving_location
  @serving_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6046
6047
6048
# File 'lib/google/apis/spanner_v1/classes.rb', line 6046

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