-
Notifications
You must be signed in to change notification settings - Fork 0
/
volume_device.cr
29 lines (24 loc) · 1008 Bytes
/
volume_device.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# volumeDevice describes a mapping of a raw block device within a container.
@[::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::VolumeDevice
include ::JSON::Serializable
include ::YAML::Serializable
# devicePath is the path inside of the container that the device will be mapped to.
@[::JSON::Field(key: "devicePath", emit_null: true)]
@[::YAML::Field(key: "devicePath", emit_null: true)]
property device_path : String
# name must match the name of a persistentVolumeClaim in the pod
@[::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