Class: KubeDSL::DSL::Apps::V1::StatefulSetStatus

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



37
38
39
# File 'lib/kube-dsl/dsl/apps/v1/stateful_set_status.rb', line 37

def kind_sym
  :stateful_set_status
end

#serializeObject



23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/kube-dsl/dsl/apps/v1/stateful_set_status.rb', line 23

def serialize
  {}.tap do |result|
    result[:collisionCount] = collision_count
    result[:conditions] = conditions.map(&:serialize)
    result[:currentReplicas] = current_replicas
    result[:currentRevision] = current_revision
    result[:observedGeneration] = observed_generation
    result[:readyReplicas] = ready_replicas
    result[:replicas] = replicas
    result[:updateRevision] = update_revision
    result[:updatedReplicas] = updated_replicas
  end
end