Class: KubeDSL::DSL::Policy::V1::Eviction

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/policy/v1/eviction.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



23
24
25
# File 'lib/kube-dsl/dsl/policy/v1/eviction.rb', line 23

def kind_sym
  :eviction
end

#serializeObject



14
15
16
17
18
19
20
21
# File 'lib/kube-dsl/dsl/policy/v1/eviction.rb', line 14

def serialize
  {}.tap do |result|
    result[:apiVersion] = "policy/v1"
    result[:deleteOptions] = delete_options.serialize
    result[:kind] = "Eviction"
    result[:metadata] = .serialize
  end
end