-
Notifications
You must be signed in to change notification settings - Fork 0
/
downward_api_volume_source.cr
29 lines (24 loc) · 1.38 KB
/
downward_api_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
# DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.
@[::K8S::Properties(
default_mode: {type: Int32, nilable: true, key: "defaultMode", getter: false, setter: false},
items: {type: Array(Api::Core::V1::DownwardAPIVolumeFile), nilable: true, key: "items", getter: false, setter: false},
)]
class Api::Core::V1::DownwardAPIVolumeSource
include ::JSON::Serializable
include ::YAML::Serializable
# Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
@[::JSON::Field(key: "defaultMode", emit_null: false)]
@[::YAML::Field(key: "defaultMode", emit_null: false)]
property default_mode : Int32 | Nil
# Items is a list of downward API volume file
@[::JSON::Field(key: "items", emit_null: false)]
@[::YAML::Field(key: "items", emit_null: false)]
property items : Array(Api::Core::V1::DownwardAPIVolumeFile) | Nil
def initialize(*, @default_mode : Int32 | Nil = nil, @items : Array | Nil = nil)
end
end
end