Class: KubeDSL::DSL::Coordination::V1beta1::Lease
- Inherits:
-
KubeDSL::DSLObject
- Object
- KubeDSL::DSLObject
- KubeDSL::DSL::Coordination::V1beta1::Lease
- Defined in:
- lib/kube-dsl/dsl/coordination/v1beta1/lease.rb
Instance Method Summary collapse
Methods inherited from KubeDSL::DSLObject
Methods included from ValueFields
#array_field, #object_field, #value_field, #value_fields
Constructor Details
This class inherits a constructor from KubeDSL::DSLObject
Instance Method Details
#kind_sym ⇒ Object
15 16 17 |
# File 'lib/kube-dsl/dsl/coordination/v1beta1/lease.rb', line 15 def kind_sym :lease end |
#serialize ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/kube-dsl/dsl/coordination/v1beta1/lease.rb', line 6 def serialize {}.tap do |result| result[:apiVersion] = "coordination.k8s.io/v1beta1" result[:kind] = "Lease" result[:metadata] = .serialize result[:spec] = spec.serialize end end |