-
Notifications
You must be signed in to change notification settings - Fork 0
/
preferred_scheduling_term.cr
29 lines (24 loc) · 1.18 KB
/
preferred_scheduling_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
# An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
@[::K8S::Properties(
preference: {type: Api::Core::V1::NodeSelectorTerm, nilable: false, key: "preference", getter: false, setter: false},
weight: {type: Int32, nilable: false, key: "weight", getter: false, setter: false},
)]
class Api::Core::V1::PreferredSchedulingTerm
include ::JSON::Serializable
include ::YAML::Serializable
# A node selector term, associated with the corresponding weight.
@[::JSON::Field(key: "preference", emit_null: true)]
@[::YAML::Field(key: "preference", emit_null: true)]
property preference : Api::Core::V1::NodeSelectorTerm
# Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
@[::JSON::Field(key: "weight", emit_null: true)]
@[::YAML::Field(key: "weight", emit_null: true)]
property weight : Int32
def initialize(*, @preference : Api::Core::V1::NodeSelectorTerm, @weight : Int32)
end
end
end