Class: Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb

Overview

SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SetNodePoolAutoscalingRequest

Returns a new instance of SetNodePoolAutoscalingRequest



1660
1661
1662
# File 'generated/google/apis/container_v1/classes.rb', line 1660

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

Instance Attribute Details

#autoscalingGoogle::Apis::ContainerV1::NodePoolAutoscaling

NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. Corresponds to the JSON property autoscaling



1658
1659
1660
# File 'generated/google/apis/container_v1/classes.rb', line 1658

def autoscaling
  @autoscaling
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1665
1666
1667
# File 'generated/google/apis/container_v1/classes.rb', line 1665

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