Class: Google::Apis::ContainerV1beta1::ClusterAutoscaling
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::ClusterAutoscaling
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/container_v1beta1/classes.rb,
generated/google/apis/container_v1beta1/representations.rb,
generated/google/apis/container_v1beta1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#autoprovisioning_locations ⇒ Array<String>
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
-
#autoprovisioning_node_pool_defaults ⇒ Google::Apis::ContainerV1beta1::AutoprovisioningNodePoolDefaults
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
-
#autoscaling_profile ⇒ String
Defines autoscaling behaviour.
-
#enable_node_autoprovisioning ⇒ Boolean
(also: #enable_node_autoprovisioning?)
Enables automatic node pool creation and deletion.
-
#resource_limits ⇒ Array<Google::Apis::ContainerV1beta1::ResourceLimit>
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterAutoscaling
constructor
A new instance of ClusterAutoscaling.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterAutoscaling
Returns a new instance of ClusterAutoscaling.
971 972 973 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 971 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autoprovisioning_locations ⇒ Array<String>
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
Corresponds to the JSON property autoprovisioningLocations
946 947 948 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 946 def autoprovisioning_locations @autoprovisioning_locations end |
#autoprovisioning_node_pool_defaults ⇒ Google::Apis::ContainerV1beta1::AutoprovisioningNodePoolDefaults
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by
NAP.
Corresponds to the JSON property autoprovisioningNodePoolDefaults
952 953 954 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 952 def autoprovisioning_node_pool_defaults @autoprovisioning_node_pool_defaults end |
#autoscaling_profile ⇒ String
Defines autoscaling behaviour.
Corresponds to the JSON property autoscalingProfile
957 958 959 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 957 def autoscaling_profile @autoscaling_profile end |
#enable_node_autoprovisioning ⇒ Boolean Also known as: enable_node_autoprovisioning?
Enables automatic node pool creation and deletion.
Corresponds to the JSON property enableNodeAutoprovisioning
962 963 964 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 962 def enable_node_autoprovisioning @enable_node_autoprovisioning end |
#resource_limits ⇒ Array<Google::Apis::ContainerV1beta1::ResourceLimit>
Contains global constraints regarding minimum and maximum amount of resources
in the cluster.
Corresponds to the JSON property resourceLimits
969 970 971 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 969 def resource_limits @resource_limits end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
976 977 978 979 980 981 982 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 976 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 |