-
Notifications
You must be signed in to change notification settings - Fork 0
/
node_selector_term.cr
29 lines (24 loc) · 1.31 KB
/
node_selector_term.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
# A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
@[::K8S::Properties(
match_expressions: {type: Array(Api::Core::V1::NodeSelectorRequirement), nilable: true, key: "matchExpressions", getter: false, setter: false},
match_fields: {type: Array(Api::Core::V1::NodeSelectorRequirement), nilable: true, key: "matchFields", getter: false, setter: false},
)]
class Api::Core::V1::NodeSelectorTerm
include ::JSON::Serializable
include ::YAML::Serializable
# A list of node selector requirements by node's labels.
@[::JSON::Field(key: "matchExpressions", emit_null: false)]
@[::YAML::Field(key: "matchExpressions", emit_null: false)]
property match_expressions : Array(Api::Core::V1::NodeSelectorRequirement) | Nil
# A list of node selector requirements by node's fields.
@[::JSON::Field(key: "matchFields", emit_null: false)]
@[::YAML::Field(key: "matchFields", emit_null: false)]
property match_fields : Array(Api::Core::V1::NodeSelectorRequirement) | Nil
def initialize(*, @match_expressions : Array | Nil = nil, @match_fields : Array | Nil = nil)
end
end
end