-
Notifications
You must be signed in to change notification settings - Fork 0
/
priority_level_configuration_condition.cr
47 lines (39 loc) · 2.13 KB
/
priority_level_configuration_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
45
46
47
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# PriorityLevelConfigurationCondition defines the condition of priority level.
@[::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: true, key: "status", getter: false, setter: false},
type: {type: String, nilable: true, key: "type", getter: false, setter: false},
)]
class Api::Flowcontrol::V1alpha1::PriorityLevelConfigurationCondition
include ::JSON::Serializable
include ::YAML::Serializable
# `lastTransitionTime` is the last time the condition transitioned from one status to another.
@[::JSON::Field(key: "lastTransitionTime", emit_null: false)]
@[::YAML::Field(key: "lastTransitionTime", emit_null: false)]
property last_transition_time : Time | Nil
# `message` is a human-readable message indicating details about last transition.
@[::JSON::Field(key: "message", emit_null: false)]
@[::YAML::Field(key: "message", emit_null: false)]
property message : String | Nil
# `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
@[::JSON::Field(key: "reason", emit_null: false)]
@[::YAML::Field(key: "reason", emit_null: false)]
property reason : String | Nil
# `status` is the status of the condition. Can be True, False, Unknown. Required.
@[::JSON::Field(key: "status", emit_null: false)]
@[::YAML::Field(key: "status", emit_null: false)]
property status : String | Nil
# `type` is the type of the condition. Required.
@[::JSON::Field(key: "type", emit_null: false)]
@[::YAML::Field(key: "type", emit_null: false)]
property type : String | Nil
def initialize(*, @last_transition_time : Time | Nil = nil, @message : String | Nil = nil, @reason : String | Nil = nil, @status : String | Nil = nil, @type : String | Nil = nil)
end
end
end