Class: KubeDSL::DSL::Autoscaling::V2beta1::HorizontalPodAutoscaler

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/autoscaling/v2beta1/horizontal_pod_autoscaler.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



26
27
28
# File 'lib/kube-dsl/dsl/autoscaling/v2beta1/horizontal_pod_autoscaler.rb', line 26

def kind_sym
  :horizontal_pod_autoscaler
end

#serializeObject



16
17
18
19
20
21
22
23
24
# File 'lib/kube-dsl/dsl/autoscaling/v2beta1/horizontal_pod_autoscaler.rb', line 16

def serialize
  {}.tap do |result|
    result[:apiVersion] = "autoscaling/v2beta1"
    result[:kind] = "HorizontalPodAutoscaler"
    result[:metadata] = .serialize
    result[:spec] = spec.serialize
    result[:status] = status.serialize
  end
end