class Google::Apis::ContainerV1::ClusterAutoscaling
ClusterAutoscaling
contains global, per-cluster information required by Cluster
Autoscaler to automatically adjust the size of the cluster and create/ delete node pools based on the current needs.
Attributes
The list of Google
Compute Engine [zones](cloud.google.com/compute/ docs/zones#available) in which the NodePool's nodes can be created by NAP. Corresponds to the JSON property `autoprovisioningLocations` @return [Array<String>]
AutoprovisioningNodePoolDefaults
contains defaults for a node pool created by NAP. Corresponds to the JSON property `autoprovisioningNodePoolDefaults` @return [Google::Apis::ContainerV1::AutoprovisioningNodePoolDefaults]
Defines autoscaling behaviour. Corresponds to the JSON property `autoscalingProfile` @return [String]
Enables automatic node pool creation and deletion. Corresponds to the JSON property `enableNodeAutoprovisioning` @return [Boolean]
Enables automatic node pool creation and deletion. Corresponds to the JSON property `enableNodeAutoprovisioning` @return [Boolean]
Contains global constraints regarding minimum and maximum amount of resources in the cluster. Corresponds to the JSON property `resourceLimits` @return [Array<Google::Apis::ContainerV1::ResourceLimit>]
Public Class Methods
# File lib/google/apis/container_v1/classes.rb, line 942 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/container_v1/classes.rb, line 947 def update!(**args) @autoprovisioning_locations = args[:autoprovisioning_locations] if args.key?(:autoprovisioning_locations) @autoprovisioning_node_pool_defaults = args[:autoprovisioning_node_pool_defaults] if args.key?(:autoprovisioning_node_pool_defaults) @autoscaling_profile = args[:autoscaling_profile] if args.key?(:autoscaling_profile) @enable_node_autoprovisioning = args[:enable_node_autoprovisioning] if args.key?(:enable_node_autoprovisioning) @resource_limits = args[:resource_limits] if args.key?(:resource_limits) end