-
Notifications
You must be signed in to change notification settings - Fork 0
/
volume_projection.cr
43 lines (36 loc) · 2.16 KB
/
volume_projection.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# Projection that may be projected along with other supported volume types
@[::K8S::Properties(
config_map: {type: Api::Core::V1::ConfigMapProjection, nilable: true, key: "configMap", getter: false, setter: false},
downward_api: {type: Api::Core::V1::DownwardAPIProjection, nilable: true, key: "downwardAPI", getter: false, setter: false},
secret: {type: Api::Core::V1::SecretProjection, nilable: true, key: "secret", getter: false, setter: false},
service_account_token: {type: Api::Core::V1::ServiceAccountTokenProjection, nilable: true, key: "serviceAccountToken", getter: false, setter: false},
)]
class Api::Core::V1::VolumeProjection
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# information about the configMap data to project
@[::JSON::Field(key: "configMap", emit_null: false)]
@[::YAML::Field(key: "configMap", emit_null: false)]
property config_map : Api::Core::V1::ConfigMapProjection | Nil
# information about the downwardAPI data to project
@[::JSON::Field(key: "downwardAPI", emit_null: false)]
@[::YAML::Field(key: "downwardAPI", emit_null: false)]
property downward_api : Api::Core::V1::DownwardAPIProjection | Nil
# information about the secret data to project
@[::JSON::Field(key: "secret", emit_null: false)]
@[::YAML::Field(key: "secret", emit_null: false)]
property secret : Api::Core::V1::SecretProjection | Nil
# information about the serviceAccountToken data to project
@[::JSON::Field(key: "serviceAccountToken", emit_null: false)]
@[::YAML::Field(key: "serviceAccountToken", emit_null: false)]
property service_account_token : Api::Core::V1::ServiceAccountTokenProjection | Nil
def initialize(*, @config_map : Api::Core::V1::ConfigMapProjection | Nil = nil, @downward_api : Api::Core::V1::DownwardAPIProjection | Nil = nil, @secret : Api::Core::V1::SecretProjection | Nil = nil, @service_account_token : Api::Core::V1::ServiceAccountTokenProjection | Nil = nil)
end
end
end