-
Notifications
You must be signed in to change notification settings - Fork 0
/
projected_volume_source.cr
29 lines (24 loc) · 1.38 KB
/
projected_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
# Represents a projected volume source
@[::K8S::Properties(
default_mode: {type: Int32, nilable: true, key: "defaultMode", getter: false, setter: false},
sources: {type: Array(Api::Core::V1::VolumeProjection), nilable: true, key: "sources", getter: false, setter: false},
)]
class Api::Core::V1::ProjectedVolumeSource
include ::JSON::Serializable
include ::YAML::Serializable
# Mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. 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
# list of volume projections
@[::JSON::Field(key: "sources", emit_null: false)]
@[::YAML::Field(key: "sources", emit_null: false)]
property sources : Array(Api::Core::V1::VolumeProjection) | Nil
def initialize(*, @default_mode : Int32 | Nil = nil, @sources : Array | Nil = nil)
end
end
end