-
Notifications
You must be signed in to change notification settings - Fork 0
/
priority_level_configuration_spec.cr
29 lines (24 loc) · 1.66 KB
/
priority_level_configuration_spec.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
# PriorityLevelConfigurationSpec specifies the configuration of a priority level.
@[::K8S::Properties(
limited: {type: Api::Flowcontrol::V1beta1::LimitedPriorityLevelConfiguration, nilable: true, key: "limited", getter: false, setter: false},
type: {type: String, nilable: false, key: "type", getter: false, setter: false},
)]
class Api::Flowcontrol::V1beta1::PriorityLevelConfigurationSpec
include ::JSON::Serializable
include ::YAML::Serializable
# `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`.
@[::JSON::Field(key: "limited", emit_null: false)]
@[::YAML::Field(key: "limited", emit_null: false)]
property limited : Api::Flowcontrol::V1beta1::LimitedPriorityLevelConfiguration | Nil
# `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.
@[::JSON::Field(key: "type", emit_null: true)]
@[::YAML::Field(key: "type", emit_null: true)]
property type : String
def initialize(*, @type : String, @limited : Api::Flowcontrol::V1beta1::LimitedPriorityLevelConfiguration | Nil = nil)
end
end
end