class Google::Apis::ComputeV1::NodeGroupAutoscalingPolicy
Attributes
max_nodes[RW]
The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100. Corresponds to the JSON property `maxNodes` @return [Fixnum]
min_nodes[RW]
The minimum number of nodes that the group should have. Corresponds to the JSON property `minNodes` @return [Fixnum]
mode[RW]
The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler
modes. Corresponds to the JSON property `mode` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 21895 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/compute_v1/classes.rb, line 21900 def update!(**args) @max_nodes = args[:max_nodes] if args.key?(:max_nodes) @min_nodes = args[:min_nodes] if args.key?(:min_nodes) @mode = args[:mode] if args.key?(:mode) end