Class: KubeDSL::DSL::Apps::V1::DeploymentStatus

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



34
35
36
# File 'lib/kube-dsl/dsl/apps/v1/deployment_status.rb', line 34

def kind_sym
  :deployment_status
end

#serializeObject



21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/kube-dsl/dsl/apps/v1/deployment_status.rb', line 21

def serialize
  {}.tap do |result|
    result[:availableReplicas] = available_replicas
    result[:collisionCount] = collision_count
    result[:conditions] = conditions.map(&:serialize)
    result[:observedGeneration] = observed_generation
    result[:readyReplicas] = ready_replicas
    result[:replicas] = replicas
    result[:unavailableReplicas] = unavailable_replicas
    result[:updatedReplicas] = updated_replicas
  end
end