Class: KubeDSL::DSL::Apps::V1::DeploymentCondition

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/apps/v1/deployment_condition.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



28
29
30
# File 'lib/kube-dsl/dsl/apps/v1/deployment_condition.rb', line 28

def kind_sym
  :deployment_condition
end

#serializeObject



17
18
19
20
21
22
23
24
25
26
# File 'lib/kube-dsl/dsl/apps/v1/deployment_condition.rb', line 17

def serialize
  {}.tap do |result|
    result[:lastTransitionTime] = last_transition_time
    result[:lastUpdateTime] = last_update_time
    result[:message] = message
    result[:reason] = reason
    result[:status] = status
    result[:type] = type
  end
end