Class: KubeDSL::DSL::Coordination::V1beta1::LeaseSpec

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/coordination/v1beta1/lease_spec.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



25
26
27
# File 'lib/kube-dsl/dsl/coordination/v1beta1/lease_spec.rb', line 25

def kind_sym
  :lease_spec
end

#serializeObject



15
16
17
18
19
20
21
22
23
# File 'lib/kube-dsl/dsl/coordination/v1beta1/lease_spec.rb', line 15

def serialize
  {}.tap do |result|
    result[:acquireTime] = acquire_time
    result[:holderIdentity] = holder_identity
    result[:leaseDurationSeconds] = lease_duration_seconds
    result[:leaseTransitions] = lease_transitions
    result[:renewTime] = renew_time
  end
end