-
Notifications
You must be signed in to change notification settings - Fork 0
/
flex_volume_source.cr
47 lines (39 loc) · 2.58 KB
/
flex_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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# FlexVolume represents a generic volume resource that is [provisioned/attached using an exec based plugin.](provisioned/attached using an exec based plugin.)
@[::K8S::Properties(
driver: {type: String, nilable: false, key: "driver", getter: false, setter: false},
fs_type: {type: String, nilable: true, key: "fsType", getter: false, setter: false},
options: {type: Hash(String, String), nilable: true, key: "options", getter: false, setter: false},
read_only: {type: Bool, nilable: true, key: "readOnly", getter: false, setter: false},
secret_ref: {type: Api::Core::V1::LocalObjectReference, nilable: true, key: "secretRef", getter: false, setter: false},
)]
class Api::Core::V1::FlexVolumeSource
include ::JSON::Serializable
include ::YAML::Serializable
# Driver is the name of the driver to use for this volume.
@[::JSON::Field(key: "driver", emit_null: true)]
@[::YAML::Field(key: "driver", emit_null: true)]
property driver : String
# Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
@[::JSON::Field(key: "fsType", emit_null: false)]
@[::YAML::Field(key: "fsType", emit_null: false)]
property fs_type : String | Nil
# Optional: Extra command options if any.
@[::JSON::Field(key: "options", emit_null: false)]
@[::YAML::Field(key: "options", emit_null: false)]
property options : Hash(String, String) | Nil
# Optional: Defaults to false [(read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.]((read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.)
@[::JSON::Field(key: "readOnly", emit_null: false)]
@[::YAML::Field(key: "readOnly", emit_null: false)]
property read_only : Bool | Nil
# Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.
@[::JSON::Field(key: "secretRef", emit_null: false)]
@[::YAML::Field(key: "secretRef", emit_null: false)]
property secret_ref : Api::Core::V1::LocalObjectReference | Nil
def initialize(*, @driver : String, @fs_type : String | Nil = nil, @options : Hash(String, String) | Nil = nil, @read_only : Bool | Nil = nil, @secret_ref : Api::Core::V1::LocalObjectReference | Nil = nil)
end
end
end