-
Notifications
You must be signed in to change notification settings - Fork 0
/
persistent_volume_status.cr
35 lines (29 loc) · 1.56 KB
/
persistent_volume_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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# PersistentVolumeStatus is the current status of a persistent volume.
@[::K8S::Properties(
message: {type: String, nilable: true, key: "message", getter: false, setter: false},
phase: {type: String, nilable: true, key: "phase", getter: false, setter: false},
reason: {type: String, nilable: true, key: "reason", getter: false, setter: false},
)]
class Api::Core::V1::PersistentVolumeStatus
include ::JSON::Serializable
include ::YAML::Serializable
# A human-readable message indicating details about why the volume is in this state.
@[::JSON::Field(key: "message", emit_null: false)]
@[::YAML::Field(key: "message", emit_null: false)]
property message : String | Nil
# Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: [https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase](https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase)
@[::JSON::Field(key: "phase", emit_null: false)]
@[::YAML::Field(key: "phase", emit_null: false)]
property phase : String | Nil
# Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.
@[::JSON::Field(key: "reason", emit_null: false)]
@[::YAML::Field(key: "reason", emit_null: false)]
property reason : String | Nil
def initialize(*, @message : String | Nil = nil, @phase : String | Nil = nil, @reason : String | Nil = nil)
end
end
end