-
Notifications
You must be signed in to change notification settings - Fork 0
/
service_status.cr
29 lines (24 loc) · 1.17 KB
/
service_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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# ServiceStatus represents the current status of a service.
@[::K8S::Properties(
conditions: {type: Array(Apimachinery::Apis::Meta::V1::Condition), nilable: true, key: "conditions", getter: false, setter: false},
load_balancer: {type: Api::Core::V1::LoadBalancerStatus, nilable: true, key: "loadBalancer", getter: false, setter: false},
)]
class Api::Core::V1::ServiceStatus
include ::JSON::Serializable
include ::YAML::Serializable
# Current service state
@[::JSON::Field(key: "conditions", emit_null: false)]
@[::YAML::Field(key: "conditions", emit_null: false)]
property conditions : Array(Apimachinery::Apis::Meta::V1::Condition) | Nil
# LoadBalancer contains the current status of the load-balancer, if one is present.
@[::JSON::Field(key: "loadBalancer", emit_null: false)]
@[::YAML::Field(key: "loadBalancer", emit_null: false)]
property load_balancer : Api::Core::V1::LoadBalancerStatus | Nil
def initialize(*, @conditions : Array | Nil = nil, @load_balancer : Api::Core::V1::LoadBalancerStatus | Nil = nil)
end
end
end