Class: Google::Apis::SpannerV1::IncludeReplicas
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::IncludeReplicas
- 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
An IncludeReplicas contains a repeated set of ReplicaSelection which
indicates the order in which replicas should be considered.
Instance Attribute Summary collapse
-
#auto_failover_disabled ⇒ Boolean
(also: #auto_failover_disabled?)
If
true, Spanner doesn't route requests to a replica outside the <include_replicaslist when all of the specified replicas are unavailable or unhealthy. -
#replica_selections ⇒ Array<Google::Apis::SpannerV1::ReplicaSelection>
The directed read replica selector.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IncludeReplicas
constructor
A new instance of IncludeReplicas.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IncludeReplicas
Returns a new instance of IncludeReplicas.
2997 2998 2999 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2997 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_failover_disabled ⇒ Boolean Also known as: auto_failover_disabled?
If true, Spanner doesn't route requests to a replica outside the <
include_replicas list when all of the specified replicas are unavailable or
unhealthy. Default value is false.
Corresponds to the JSON property autoFailoverDisabled
2989 2990 2991 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2989 def auto_failover_disabled @auto_failover_disabled end |
#replica_selections ⇒ Array<Google::Apis::SpannerV1::ReplicaSelection>
The directed read replica selector.
Corresponds to the JSON property replicaSelections
2995 2996 2997 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 2995 def replica_selections @replica_selections end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3002 3003 3004 3005 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 3002 def update!(**args) @auto_failover_disabled = args[:auto_failover_disabled] if args.key?(:auto_failover_disabled) @replica_selections = args[:replica_selections] if args.key?(:replica_selections) end |