Class: Google::Apis::SpannerV1::IncludeReplicas

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

An IncludeReplicas contains a repeated set of ReplicaSelection which indicates the order in which replicas should be considered.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IncludeReplicas

Returns a new instance of IncludeReplicas.



2898
2899
2900
# File 'lib/google/apis/spanner_v1/classes.rb', line 2898

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

Instance Attribute Details

#auto_failover_disabledBoolean Also known as: auto_failover_disabled?

If true, Spanner will not 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

Returns:

  • (Boolean)


2890
2891
2892
# File 'lib/google/apis/spanner_v1/classes.rb', line 2890

def auto_failover_disabled
  @auto_failover_disabled
end

#replica_selectionsArray<Google::Apis::SpannerV1::ReplicaSelection>

The directed read replica selector. Corresponds to the JSON property replicaSelections



2896
2897
2898
# File 'lib/google/apis/spanner_v1/classes.rb', line 2896

def replica_selections
  @replica_selections
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2903
2904
2905
2906
# File 'lib/google/apis/spanner_v1/classes.rb', line 2903

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