Class: KubeDSL::DSL::V1::ReplicationControllerStatus

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



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

def kind_sym
  :replication_controller_status
end

#serializeObject



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

def serialize
  {}.tap do |result|
    result[:availableReplicas] = available_replicas
    result[:conditions] = conditions.map(&:serialize)
    result[:fullyLabeledReplicas] = fully_labeled_replicas
    result[:observedGeneration] = observed_generation
    result[:readyReplicas] = ready_replicas
    result[:replicas] = replicas
  end
end