Class: Google::Apis::ContainerV1::PodAutoscaling

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb

Overview

PodAutoscaling is used for configuration of parameters for workload autoscaling.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PodAutoscaling

Returns a new instance of PodAutoscaling.



6671
6672
6673
# File 'lib/google/apis/container_v1/classes.rb', line 6671

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

Instance Attribute Details

#hpa_profileString

Selected Horizontal Pod Autoscaling profile. Corresponds to the JSON property hpaProfile

Returns:

  • (String)


6669
6670
6671
# File 'lib/google/apis/container_v1/classes.rb', line 6669

def hpa_profile
  @hpa_profile
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6676
6677
6678
# File 'lib/google/apis/container_v1/classes.rb', line 6676

def update!(**args)
  @hpa_profile = args[:hpa_profile] if args.key?(:hpa_profile)
end