Class: KubeDSL::DSL::Apps::V1::DeploymentStatus
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
34
35
36
|
# File 'lib/kube-dsl/dsl/apps/v1/deployment_status.rb', line 34
def kind_sym
:deployment_status
end
|
#serialize ⇒ Object
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
|