Class: Google::Apis::GkeonpremV1::VmwareNodePoolAutoscalingConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmwareNodePoolAutoscalingConfig

Returns a new instance of VmwareNodePoolAutoscalingConfig.



5238
5239
5240
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5238

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

Instance Attribute Details

#max_replicasFixnum

Maximum number of replicas in the NodePool. Corresponds to the JSON property maxReplicas

Returns:

  • (Fixnum)


5231
5232
5233
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5231

def max_replicas
  @max_replicas
end

#min_replicasFixnum

Minimum number of replicas in the NodePool. Corresponds to the JSON property minReplicas

Returns:

  • (Fixnum)


5236
5237
5238
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5236

def min_replicas
  @min_replicas
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5243
5244
5245
5246
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5243

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