Class: Google::Apis::SpannerV1::InstanceReplicaSelection
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::InstanceReplicaSelection
- 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
ReplicaSelection identifies replicas with common properties.
Instance Attribute Summary collapse
-
#location ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceReplicaSelection
constructor
A new instance of InstanceReplicaSelection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceReplicaSelection
Returns a new instance of InstanceReplicaSelection.
3434 3435 3436 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3434 def initialize(**args) update!(**args) end |
Instance Attribute Details
#location ⇒ String
Required. Name of the location of the replicas (e.g., "us-central1").
Corresponds to the JSON property location
3432 3433 3434 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3432 def location @location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3439 3440 3441 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3439 def update!(**args) @location = args[:location] if args.key?(:location) end |