Class: Google::Apis::GkeonpremV1::VmwareNodePoolAutoscalingConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::VmwareNodePoolAutoscalingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkeonprem_v1/classes.rb,
lib/google/apis/gkeonprem_v1/representations.rb,
lib/google/apis/gkeonprem_v1/representations.rb
Overview
NodePoolAutoscaling config for the NodePool to allow for the kubernetes to scale NodePool.
Instance Attribute Summary collapse
-
#max_replicas ⇒ Fixnum
Maximum number of replicas in the NodePool.
-
#min_replicas ⇒ Fixnum
Minimum number of replicas in the NodePool.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VmwareNodePoolAutoscalingConfig
constructor
A new instance of VmwareNodePoolAutoscalingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VmwareNodePoolAutoscalingConfig
Returns a new instance of VmwareNodePoolAutoscalingConfig.
5008 5009 5010 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5008 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_replicas ⇒ Fixnum
Maximum number of replicas in the NodePool.
Corresponds to the JSON property maxReplicas
5001 5002 5003 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5001 def max_replicas @max_replicas end |
#min_replicas ⇒ Fixnum
Minimum number of replicas in the NodePool.
Corresponds to the JSON property minReplicas
5006 5007 5008 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5006 def min_replicas @min_replicas end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5013 5014 5015 5016 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5013 def update!(**args) @max_replicas = args[:max_replicas] if args.key?(:max_replicas) @min_replicas = args[:min_replicas] if args.key?(:min_replicas) end |