Class: Google::Apis::ContainerV1::ClusterAutoscaling

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

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

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) ⇒ ClusterAutoscaling

Returns a new instance of ClusterAutoscaling



733
734
735
# File 'generated/google/apis/container_v1/classes.rb', line 733

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

Instance Attribute Details

#autoprovisioning_locationsArray<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

Returns:

  • (Array<String>)


713
714
715
# File 'generated/google/apis/container_v1/classes.rb', line 713

def autoprovisioning_locations
  @autoprovisioning_locations
end

#autoprovisioning_node_pool_defaultsGoogle::Apis::ContainerV1::AutoprovisioningNodePoolDefaults

AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP. Corresponds to the JSON property autoprovisioningNodePoolDefaults



719
720
721
# File 'generated/google/apis/container_v1/classes.rb', line 719

def autoprovisioning_node_pool_defaults
  @autoprovisioning_node_pool_defaults
end

#enable_node_autoprovisioningBoolean Also known as: enable_node_autoprovisioning?

Enables automatic node pool creation and deletion. Corresponds to the JSON property enableNodeAutoprovisioning

Returns:

  • (Boolean)


724
725
726
# File 'generated/google/apis/container_v1/classes.rb', line 724

def enable_node_autoprovisioning
  @enable_node_autoprovisioning
end

#resource_limitsArray<Google::Apis::ContainerV1::ResourceLimit>

Contains global constraints regarding minimum and maximum amount of resources in the cluster. Corresponds to the JSON property resourceLimits



731
732
733
# File 'generated/google/apis/container_v1/classes.rb', line 731

def resource_limits
  @resource_limits
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



738
739
740
741
742
743
# File 'generated/google/apis/container_v1/classes.rb', line 738

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)
  @enable_node_autoprovisioning = args[:enable_node_autoprovisioning] if args.key?(:enable_node_autoprovisioning)
  @resource_limits = args[:resource_limits] if args.key?(:resource_limits)
end