Class: Google::Apis::SpannerV1::ReplicaInfo
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::ReplicaInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spanner_v1/classes.rb,
generated/google/apis/spanner_v1/representations.rb,
generated/google/apis/spanner_v1/representations.rb
Instance Attribute Summary collapse
-
#default_leader_location ⇒ Boolean
(also: #default_leader_location?)
If true, this location is designated as the default leader location where leader replicas are placed.
-
#location ⇒ String
The location of the serving resources, e.g.
-
#type ⇒ String
The type of replica.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReplicaInfo
constructor
A new instance of ReplicaInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReplicaInfo
Returns a new instance of ReplicaInfo
2432 2433 2434 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2432 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_leader_location ⇒ Boolean Also known as: default_leader_location?
If true, this location is designated as the default leader location where
leader replicas are placed. See the region types
documentation
for more details.
Corresponds to the JSON property defaultLeaderLocation
2419 2420 2421 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2419 def default_leader_location @default_leader_location end |
#location ⇒ String
The location of the serving resources, e.g. "us-central1".
Corresponds to the JSON property location
2425 2426 2427 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2425 def location @location end |
#type ⇒ String
The type of replica.
Corresponds to the JSON property type
2430 2431 2432 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2430 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2437 2438 2439 2440 2441 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 2437 def update!(**args) @default_leader_location = args[:default_leader_location] if args.key?(:default_leader_location) @location = args[:location] if args.key?(:location) @type = args[:type] if args.key?(:type) end |