Class: Google::Apis::ManagerV1beta2::AutoscalingModule
- Inherits:
-
Object
- Object
- Google::Apis::ManagerV1beta2::AutoscalingModule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/manager_v1beta2/classes.rb,
generated/google/apis/manager_v1beta2/representations.rb,
generated/google/apis/manager_v1beta2/representations.rb
Instance Attribute Summary collapse
-
#cool_down_period_sec ⇒ Fixnum
Corresponds to the JSON property
coolDownPeriodSec
. -
#description ⇒ String
Corresponds to the JSON property
description
. -
#max_num_replicas ⇒ Fixnum
Corresponds to the JSON property
maxNumReplicas
. -
#min_num_replicas ⇒ Fixnum
Corresponds to the JSON property
minNumReplicas
. -
#signal_type ⇒ String
Corresponds to the JSON property
signalType
. -
#target_module ⇒ String
Corresponds to the JSON property
targetModule
. -
#target_utilization ⇒ Float
target_utilization should be in range [0,1].
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoscalingModule
constructor
A new instance of AutoscalingModule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AutoscalingModule
Returns a new instance of AutoscalingModule
149 150 151 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 149 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cool_down_period_sec ⇒ Fixnum
Corresponds to the JSON property coolDownPeriodSec
117 118 119 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 117 def cool_down_period_sec @cool_down_period_sec end |
#description ⇒ String
Corresponds to the JSON property description
122 123 124 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 122 def description @description end |
#max_num_replicas ⇒ Fixnum
Corresponds to the JSON property maxNumReplicas
127 128 129 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 127 def max_num_replicas @max_num_replicas end |
#min_num_replicas ⇒ Fixnum
Corresponds to the JSON property minNumReplicas
132 133 134 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 132 def min_num_replicas @min_num_replicas end |
#signal_type ⇒ String
Corresponds to the JSON property signalType
137 138 139 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 137 def signal_type @signal_type end |
#target_module ⇒ String
Corresponds to the JSON property targetModule
142 143 144 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 142 def target_module @target_module end |
#target_utilization ⇒ Float
target_utilization should be in range [0,1].
Corresponds to the JSON property targetUtilization
147 148 149 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 147 def target_utilization @target_utilization end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
154 155 156 157 158 159 160 161 162 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 154 def update!(**args) @cool_down_period_sec = args[:cool_down_period_sec] if args.key?(:cool_down_period_sec) @description = args[:description] if args.key?(:description) @max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas) @min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas) @signal_type = args[:signal_type] if args.key?(:signal_type) @target_module = args[:target_module] if args.key?(:target_module) @target_utilization = args[:target_utilization] if args.key?(:target_utilization) end |