Class: Google::Apis::SpannerV1::AsymmetricAutoscalingOption

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

AsymmetricAutoscalingOption specifies the scaling of replicas identified by the given selection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AsymmetricAutoscalingOption

Returns a new instance of AsymmetricAutoscalingOption.



170
171
172
# File 'lib/google/apis/spanner_v1/classes.rb', line 170

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

Instance Attribute Details

#overridesGoogle::Apis::SpannerV1::AutoscalingConfigOverrides

Overrides the top-level autoscaling configuration for the replicas identified by replica_selection. All fields in this message are optional. Any unspecified fields will use the corresponding values from the top-level autoscaling configuration. Corresponds to the JSON property overrides



163
164
165
# File 'lib/google/apis/spanner_v1/classes.rb', line 163

def overrides
  @overrides
end

#replica_selectionGoogle::Apis::SpannerV1::InstanceReplicaSelection

ReplicaSelection identifies replicas with common properties. Corresponds to the JSON property replicaSelection



168
169
170
# File 'lib/google/apis/spanner_v1/classes.rb', line 168

def replica_selection
  @replica_selection
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



175
176
177
178
# File 'lib/google/apis/spanner_v1/classes.rb', line 175

def update!(**args)
  @overrides = args[:overrides] if args.key?(:overrides)
  @replica_selection = args[:replica_selection] if args.key?(:replica_selection)
end