Class: KubeDSL::DSL::Scheduling::V1alpha1::PriorityClass
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
32
33
34
|
# File 'lib/kube-dsl/dsl/scheduling/v1alpha1/priority_class.rb', line 32
def kind_sym
:priority_class
end
|
#serialize ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/kube-dsl/dsl/scheduling/v1alpha1/priority_class.rb', line 20
def serialize
{}.tap do |result|
result[:apiVersion] = "scheduling.k8s.io/v1alpha1"
result[:description] = description
result[:globalDefault] = global_default
result[:kind] = "PriorityClass"
result[:metadata] = metadata.serialize
result[:preemptionPolicy] = preemption_policy
result[:value] = value
end
end
|