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.
3589 3590 3591 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3589 def initialize(**args) update!(**args) end |
Instance Attribute Details
#location ⇒ String
Required. Name of the location of the replicas (for example, "us-central1").
Corresponds to the JSON property location
3587 3588 3589 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3587 def location @location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3594 3595 3596 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3594 def update!(**args) @location = args[:location] if args.key?(:location) end |