-
Notifications
You must be signed in to change notification settings - Fork 0
/
volume_attachment_spec.cr
35 lines (29 loc) · 1.45 KB
/
volume_attachment_spec.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
# VolumeAttachmentSpec is the specification of a VolumeAttachment request.
@[::K8S::Properties(
attacher: {type: String, nilable: false, key: "attacher", getter: false, setter: false},
node_name: {type: String, nilable: false, key: "nodeName", getter: false, setter: false},
source: {type: Api::Storage::V1alpha1::VolumeAttachmentSource, nilable: false, key: "source", getter: false, setter: false},
)]
class Api::Storage::V1alpha1::VolumeAttachmentSpec
include ::JSON::Serializable
include ::YAML::Serializable
# Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().
@[::JSON::Field(key: "attacher", emit_null: true)]
@[::YAML::Field(key: "attacher", emit_null: true)]
property attacher : String
# The node that the volume should be attached to.
@[::JSON::Field(key: "nodeName", emit_null: true)]
@[::YAML::Field(key: "nodeName", emit_null: true)]
property node_name : String
# Source represents the volume that should be attached.
@[::JSON::Field(key: "source", emit_null: true)]
@[::YAML::Field(key: "source", emit_null: true)]
property source : Api::Storage::V1alpha1::VolumeAttachmentSource
def initialize(*, @attacher : String, @node_name : String, @source : Api::Storage::V1alpha1::VolumeAttachmentSource)
end
end
end