-
Notifications
You must be signed in to change notification settings - Fork 0
/
local_volume_source.cr
29 lines (24 loc) · 1.18 KB
/
local_volume_source.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
# Local represents directly-attached storage with node affinity (Beta feature)
@[::K8S::Properties(
fs_type: {type: String, nilable: true, key: "fsType", getter: false, setter: false},
path: {type: String, nilable: false, key: "path", getter: false, setter: false},
)]
class Api::Core::V1::LocalVolumeSource
include ::JSON::Serializable
include ::YAML::Serializable
# Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified.
@[::JSON::Field(key: "fsType", emit_null: false)]
@[::YAML::Field(key: "fsType", emit_null: false)]
property fs_type : String | Nil
# The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).
@[::JSON::Field(key: "path", emit_null: true)]
@[::YAML::Field(key: "path", emit_null: true)]
property path : String
def initialize(*, @path : String, @fs_type : String | Nil = nil)
end
end
end