-
Notifications
You must be signed in to change notification settings - Fork 0
/
attached_volume.cr
31 lines (26 loc) · 1.01 KB
/
attached_volume.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# AttachedVolume describes a volume attached to a node
@[::K8S::Properties(
device_path: {type: String, nilable: false, key: "devicePath", getter: false, setter: false},
name: {type: String, nilable: false, key: "name", getter: false, setter: false},
)]
class Api::Core::V1::AttachedVolume
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# DevicePath represents the device path where the volume should be available
@[::JSON::Field(key: "devicePath", emit_null: true)]
@[::YAML::Field(key: "devicePath", emit_null: true)]
property device_path : String
# Name of the attached volume
@[::JSON::Field(key: "name", emit_null: true)]
@[::YAML::Field(key: "name", emit_null: true)]
property name : String
def initialize(*, @device_path : String, @name : String)
end
end
end