Class: Google::Apis::ContainerV1beta1::ClusterAutoscaling
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContainerV1beta1::ClusterAutoscaling
 
 
- 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
- 
  
    
      #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.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ClusterAutoscaling
Returns a new instance of ClusterAutoscaling
      643 644 645  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 643 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#enable_node_autoprovisioning ⇒ Boolean Also known as: enable_node_autoprovisioning?
Enables automatic node pool creation and deletion.
Corresponds to the JSON property enableNodeAutoprovisioning
      634 635 636  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 634 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
      641 642 643  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 641 def resource_limits @resource_limits end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      648 649 650 651  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 648 def update!(**args) @enable_node_autoprovisioning = args[:enable_node_autoprovisioning] if args.key?(:enable_node_autoprovisioning) @resource_limits = args[:resource_limits] if args.key?(:resource_limits) end  |