-
Notifications
You must be signed in to change notification settings - Fork 0
/
volume_attachment_status.cr
41 lines (34 loc) · 2.42 KB
/
volume_attachment_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
36
37
38
39
40
41
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# VolumeAttachmentStatus is the status of a VolumeAttachment request.
@[::K8S::Properties(
attach_error: {type: Api::Storage::V1::VolumeError, nilable: true, key: "attachError", getter: false, setter: false},
attached: {type: Bool, nilable: false, key: "attached", getter: false, setter: false},
attachment_metadata: {type: Hash(String, String), nilable: true, key: "attachmentMetadata", getter: false, setter: false},
detach_error: {type: Api::Storage::V1::VolumeError, nilable: true, key: "detachError", getter: false, setter: false},
)]
class Api::Storage::V1::VolumeAttachmentStatus
include ::JSON::Serializable
include ::YAML::Serializable
# The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
@[::JSON::Field(key: "attachError", emit_null: false)]
@[::YAML::Field(key: "attachError", emit_null: false)]
property attach_error : Api::Storage::V1::VolumeError | Nil
# Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
@[::JSON::Field(key: "attached", emit_null: true)]
@[::YAML::Field(key: "attached", emit_null: true)]
property attached : Bool
# Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.
@[::JSON::Field(key: "attachmentMetadata", emit_null: false)]
@[::YAML::Field(key: "attachmentMetadata", emit_null: false)]
property attachment_metadata : Hash(String, String) | Nil
# The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.
@[::JSON::Field(key: "detachError", emit_null: false)]
@[::YAML::Field(key: "detachError", emit_null: false)]
property detach_error : Api::Storage::V1::VolumeError | Nil
def initialize(*, @attached : Bool, @attach_error : Api::Storage::V1::VolumeError | Nil = nil, @attachment_metadata : Hash(String, String) | Nil = nil, @detach_error : Api::Storage::V1::VolumeError | Nil = nil)
end
end
end