Class: KubeDSL::DSL::Coordination::V1beta1::LeaseSpec
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
25
26
27
|
# File 'lib/kube-dsl/dsl/coordination/v1beta1/lease_spec.rb', line 25
def kind_sym
:lease_spec
end
|
#serialize ⇒ Object
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
|