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.



43
44
45
# File 'lib/google/apis/spanner_v1/classes.rb', line 43

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



36
37
38
# File 'lib/google/apis/spanner_v1/classes.rb', line 36

def overrides
  @overrides
end

#replica_selectionGoogle::Apis::SpannerV1::InstanceReplicaSelection

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



41
42
43
# File 'lib/google/apis/spanner_v1/classes.rb', line 41

def replica_selection
  @replica_selection
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



48
49
50
51
# File 'lib/google/apis/spanner_v1/classes.rb', line 48

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