Class: KubeDSL::DSL::Policy::V1::Eviction
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
23
24
25
|
# File 'lib/kube-dsl/dsl/policy/v1/eviction.rb', line 23
def kind_sym
:eviction
end
|
#serialize ⇒ Object
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] = metadata.serialize
end
end
|