-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_map_key_selector.cr
35 lines (29 loc) · 1.31 KB
/
config_map_key_selector.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# Selects a key from a ConfigMap.
@[::K8S::Properties(
key: {type: String, nilable: false, key: "key", getter: false, setter: false},
name: {type: String, nilable: true, key: "name", getter: false, setter: false},
optional: {type: Bool, nilable: true, key: "optional", getter: false, setter: false},
)]
class Api::Core::V1::ConfigMapKeySelector
include ::JSON::Serializable
include ::YAML::Serializable
# The key to select.
@[::JSON::Field(key: "key", emit_null: true)]
@[::YAML::Field(key: "key", emit_null: true)]
property key : String
# Name of the referent. More info: [https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names](https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names)
@[::JSON::Field(key: "name", emit_null: false)]
@[::YAML::Field(key: "name", emit_null: false)]
property name : String | Nil
# Specify whether the ConfigMap or its key must be defined
@[::JSON::Field(key: "optional", emit_null: false)]
@[::YAML::Field(key: "optional", emit_null: false)]
property optional : Bool | Nil
def initialize(*, @key : String, @name : String | Nil = nil, @optional : Bool | Nil = nil)
end
end
end