Class: KubeDSL::DSL::Node::V1beta1::RuntimeClass

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/node/v1beta1/runtime_class.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/node/v1beta1/runtime_class.rb', line 24

def kind_sym
  :runtime_class
end

#serializeObject



13
14
15
16
17
18
19
20
21
22
# File 'lib/kube-dsl/dsl/node/v1beta1/runtime_class.rb', line 13

def serialize
  {}.tap do |result|
    result[:apiVersion] = "node.k8s.io/v1beta1"
    result[:handler] = handler
    result[:kind] = "RuntimeClass"
    result[:metadata] = .serialize
    result[:overhead] = overhead.serialize
    result[:scheduling] = scheduling.serialize
  end
end