-
Notifications
You must be signed in to change notification settings - Fork 0
/
namespace_condition.cr
44 lines (36 loc) · 1.75 KB
/
namespace_condition.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# NamespaceCondition contains details about state of namespace.
@[::K8S::Properties(
last_transition_time: {type: Time, nilable: true, key: "lastTransitionTime", getter: false, setter: false},
message: {type: String, nilable: true, key: "message", getter: false, setter: false},
reason: {type: String, nilable: true, key: "reason", getter: false, setter: false},
status: {type: String, nilable: false, key: "status", getter: false, setter: false},
type: {type: String, nilable: false, key: "type", getter: false, setter: false},
)]
class Api::Core::V1::NamespaceCondition
include ::JSON::Serializable
include ::YAML::Serializable
@[::JSON::Field(key: "lastTransitionTime", emit_null: false)]
@[::YAML::Field(key: "lastTransitionTime", emit_null: false)]
property last_transition_time : Time | Nil
@[::JSON::Field(key: "message", emit_null: false)]
@[::YAML::Field(key: "message", emit_null: false)]
property message : String | Nil
@[::JSON::Field(key: "reason", emit_null: false)]
@[::YAML::Field(key: "reason", emit_null: false)]
property reason : String | Nil
# Status of the condition, one of True, False, Unknown.
@[::JSON::Field(key: "status", emit_null: true)]
@[::YAML::Field(key: "status", emit_null: true)]
property status : String
# Type of namespace controller condition.
@[::JSON::Field(key: "type", emit_null: true)]
@[::YAML::Field(key: "type", emit_null: true)]
property type : String
def initialize(*, @status : String, @type : String, @last_transition_time : Time | Nil = nil, @message : String | Nil = nil, @reason : String | Nil = nil)
end
end
end