Struct k8s_openapi::v1_11::api::scheduling::v1beta1::PriorityClass [−][src]
pub struct PriorityClass { pub api_version: Option<String>, pub description: Option<String>, pub global_default: Option<bool>, pub kind: Option<String>, pub metadata: Option<ObjectMeta>, pub value: i32, }
PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.
Fields
api_version: Option<String>
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
description: Option<String>
description is an arbitrary string that usually provides guidelines on when this priority class should be used.
global_default: Option<bool>
globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as globalDefault
. However, if more than one PriorityClasses exists with their globalDefault
field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.
kind: Option<String>
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
metadata: Option<ObjectMeta>
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
value: i32
The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.
Methods
impl PriorityClass
[src]
impl PriorityClass
pub fn create_scheduling_v1beta1_priority_class(
body: &PriorityClass,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn create_scheduling_v1beta1_priority_class(
body: &PriorityClass,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
create a PriorityClass
Use CreateSchedulingV1beta1PriorityClassResponse
to parse the HTTP response.
impl PriorityClass
[src]
impl PriorityClass
pub fn delete_scheduling_v1beta1_collection_priority_class(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn delete_scheduling_v1beta1_collection_priority_class(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
delete collection of PriorityClass
Use DeleteSchedulingV1beta1CollectionPriorityClassResponse
to parse the HTTP response.
impl PriorityClass
[src]
impl PriorityClass
pub fn delete_scheduling_v1beta1_priority_class(
name: &str,
grace_period_seconds: Option<i64>,
orphan_dependents: Option<bool>,
pretty: Option<&str>,
propagation_policy: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn delete_scheduling_v1beta1_priority_class(
name: &str,
grace_period_seconds: Option<i64>,
orphan_dependents: Option<bool>,
pretty: Option<&str>,
propagation_policy: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
delete a PriorityClass
Use DeleteSchedulingV1beta1PriorityClassResponse
to parse the HTTP response.
impl PriorityClass
[src]
impl PriorityClass
pub fn list_scheduling_v1beta1_priority_class(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn list_scheduling_v1beta1_priority_class(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
list or watch objects of kind PriorityClass
Use ListSchedulingV1beta1PriorityClassResponse
to parse the HTTP response.
impl PriorityClass
[src]
impl PriorityClass
pub fn patch_scheduling_v1beta1_priority_class(
name: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn patch_scheduling_v1beta1_priority_class(
name: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
partially update the specified PriorityClass
Use PatchSchedulingV1beta1PriorityClassResponse
to parse the HTTP response.
impl PriorityClass
[src]
impl PriorityClass
pub fn read_scheduling_v1beta1_priority_class(
name: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn read_scheduling_v1beta1_priority_class(
name: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
read the specified PriorityClass
Use ReadSchedulingV1beta1PriorityClassResponse
to parse the HTTP response.
impl PriorityClass
[src]
impl PriorityClass
pub fn replace_scheduling_v1beta1_priority_class(
name: &str,
body: &PriorityClass,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn replace_scheduling_v1beta1_priority_class(
name: &str,
body: &PriorityClass,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
replace the specified PriorityClass
Use ReplaceSchedulingV1beta1PriorityClassResponse
to parse the HTTP response.
impl PriorityClass
[src]
impl PriorityClass
pub fn watch_scheduling_v1beta1_priority_class(
name: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn watch_scheduling_v1beta1_priority_class(
name: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
watch changes to an object of kind PriorityClass
Use WatchSchedulingV1beta1PriorityClassResponse
to parse the HTTP response.
impl PriorityClass
[src]
impl PriorityClass
pub fn watch_scheduling_v1beta1_priority_class_list(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn watch_scheduling_v1beta1_priority_class_list(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
watch individual changes to a list of PriorityClass
Use WatchSchedulingV1beta1PriorityClassListResponse
to parse the HTTP response.
Trait Implementations
impl Clone for PriorityClass
[src]
impl Clone for PriorityClass
fn clone(&self) -> PriorityClass
[src]
fn clone(&self) -> PriorityClass
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for PriorityClass
[src]
impl Debug for PriorityClass
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for PriorityClass
[src]
impl Default for PriorityClass
fn default() -> PriorityClass
[src]
fn default() -> PriorityClass
Returns the "default value" for a type. Read more
impl PartialEq for PriorityClass
[src]
impl PartialEq for PriorityClass
fn eq(&self, other: &PriorityClass) -> bool
[src]
fn eq(&self, other: &PriorityClass) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PriorityClass) -> bool
[src]
fn ne(&self, other: &PriorityClass) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for PriorityClass
[src]
impl<'de> Deserialize<'de> for PriorityClass
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for PriorityClass
[src]
impl Serialize for PriorityClass
Auto Trait Implementations
impl Send for PriorityClass
impl Send for PriorityClass
impl Sync for PriorityClass
impl Sync for PriorityClass