Class: KubeDSL::DSL::Autoscaling::V2beta2::HPAScalingRules

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/autoscaling/v2beta2/hpa_scaling_rules.rb

Instance Method Summary collapse

Methods inherited from KubeDSL::DSLObject

#initialize, #to_resource

Methods included from ValueFields

extended

Methods included from Validations

extended

Constructor Details

This class inherits a constructor from KubeDSL::DSLObject

Instance Method Details

#kind_symObject



24
25
26
# File 'lib/kube-dsl/dsl/autoscaling/v2beta2/hpa_scaling_rules.rb', line 24

def kind_sym
  :hpa_scaling_rules
end

#serializeObject



16
17
18
19
20
21
22
# File 'lib/kube-dsl/dsl/autoscaling/v2beta2/hpa_scaling_rules.rb', line 16

def serialize
  {}.tap do |result|
    result[:policies] = policies.map(&:serialize)
    result[:selectPolicy] = select_policy
    result[:stabilizationWindowSeconds] = stabilization_window_seconds
  end
end