struct Kubernetes::PriorityLevelConfigurationSpec

Overview

PriorityLevelConfigurationSpec specifies the configuration of a priority level.

Included Modules

Defined in:

generated/models/io_k8s_api_flowcontrol_v1.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Macro Detail

macro field(name, type = nil, **options, &block) #

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def exempt : ExemptPriorityLevelConfiguration | Nil #

#exempt specifies how requests are handled for an exempt priority level. This field MUST be empty if #type is "Limited". This field MAY be non-empty if #type is "Exempt". If empty and #type is "Exempt" then the default values for ExemptPriorityLevelConfiguration apply.


def exempt=(exempt : ExemptPriorityLevelConfiguration | Nil) #

#exempt specifies how requests are handled for an exempt priority level. This field MUST be empty if #type is "Limited". This field MAY be non-empty if #type is "Exempt". If empty and #type is "Exempt" then the default values for ExemptPriorityLevelConfiguration apply.


def limited : LimitedPriorityLevelConfiguration | Nil #

#limited specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if #type is "Limited".


def limited=(limited : LimitedPriorityLevelConfiguration | Nil) #

#limited specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if #type is "Limited".


def type : String | 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.


def type=(type : String | 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.