-
Notifications
You must be signed in to change notification settings - Fork 0
/
certificate_signing_request_condition.cr
63 lines (54 loc) · 3.25 KB
/
certificate_signing_request_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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object
@[::K8S::Properties(
last_transition_time: {type: Time, nilable: true, key: "lastTransitionTime", getter: false, setter: false},
last_update_time: {type: Time, nilable: true, key: "lastUpdateTime", 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::Certificates::V1::CertificateSigningRequestCondition
include ::JSON::Serializable
include ::YAML::Serializable
# lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time.
@[::JSON::Field(key: "lastTransitionTime", emit_null: false)]
@[::YAML::Field(key: "lastTransitionTime", emit_null: false)]
property last_transition_time : Time | Nil
# lastUpdateTime is the time of the last update to this condition
@[::JSON::Field(key: "lastUpdateTime", emit_null: false)]
@[::YAML::Field(key: "lastUpdateTime", emit_null: false)]
property last_update_time : Time | Nil
# message contains a human readable message with details about the request state
@[::JSON::Field(key: "message", emit_null: false)]
@[::YAML::Field(key: "message", emit_null: false)]
property message : String | Nil
# reason indicates a brief reason for the request state
@[::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. Approved, Denied, and Failed conditions may not be "False" or "Unknown".
@[::JSON::Field(key: "status", emit_null: true)]
@[::YAML::Field(key: "status", emit_null: true)]
property status : String
# type of the condition. Known conditions are "Approved", "Denied", and "Failed".
#
# An "Approved" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.
#
# A "Denied" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.
#
# A "Failed" condition is added via the /status subresource, indicating the signer failed to issue the certificate.
#
# Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.
#
# Only one condition of a given type is allowed.
@[::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, @last_update_time : Time | Nil = nil, @message : String | Nil = nil, @reason : String | Nil = nil)
end
end
end