-
Notifications
You must be signed in to change notification settings - Fork 0
/
replication_controller_status.cr
53 lines (44 loc) · 3.04 KB
/
replication_controller_status.cr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# ReplicationControllerStatus represents the current status of a replication controller.
@[::K8S::Properties(
available_replicas: {type: Int32, nilable: true, key: "availableReplicas", getter: false, setter: false},
conditions: {type: Array(Api::Core::V1::ReplicationControllerCondition), nilable: true, key: "conditions", getter: false, setter: false},
fully_labeled_replicas: {type: Int32, nilable: true, key: "fullyLabeledReplicas", getter: false, setter: false},
observed_generation: {type: Int32, nilable: true, key: "observedGeneration", getter: false, setter: false},
ready_replicas: {type: Int32, nilable: true, key: "readyReplicas", getter: false, setter: false},
replicas: {type: Int32, nilable: false, key: "replicas", getter: false, setter: false},
)]
class Api::Core::V1::ReplicationControllerStatus
include ::JSON::Serializable
include ::YAML::Serializable
# The number of available replicas (ready for at least minReadySeconds) for this replication controller.
@[::JSON::Field(key: "availableReplicas", emit_null: false)]
@[::YAML::Field(key: "availableReplicas", emit_null: false)]
property available_replicas : Int32 | Nil
# Represents the latest available observations of a replication controller's current state.
@[::JSON::Field(key: "conditions", emit_null: false)]
@[::YAML::Field(key: "conditions", emit_null: false)]
property conditions : Array(Api::Core::V1::ReplicationControllerCondition) | Nil
# The number of pods that have labels matching the labels of the pod template of the replication controller.
@[::JSON::Field(key: "fullyLabeledReplicas", emit_null: false)]
@[::YAML::Field(key: "fullyLabeledReplicas", emit_null: false)]
property fully_labeled_replicas : Int32 | Nil
# ObservedGeneration reflects the generation of the most recently observed replication controller.
@[::JSON::Field(key: "observedGeneration", emit_null: false)]
@[::YAML::Field(key: "observedGeneration", emit_null: false)]
property observed_generation : Int32 | Nil
# The number of ready replicas for this replication controller.
@[::JSON::Field(key: "readyReplicas", emit_null: false)]
@[::YAML::Field(key: "readyReplicas", emit_null: false)]
property ready_replicas : Int32 | Nil
# Replicas is the most recently oberved number of replicas. More info: [https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller](https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller)
@[::JSON::Field(key: "replicas", emit_null: true)]
@[::YAML::Field(key: "replicas", emit_null: true)]
property replicas : Int32
def initialize(*, @replicas : Int32, @available_replicas : Int32 | Nil = nil, @conditions : Array | Nil = nil, @fully_labeled_replicas : Int32 | Nil = nil, @observed_generation : Int32 | Nil = nil, @ready_replicas : Int32 | Nil = nil)
end
end
end