Struct k8s_openapi::v1_8::api::scheduling::v1alpha1::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

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 is an arbitrary string that usually provides guidelines on when this priority class should be used.

globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class.

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

Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata

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]

create a PriorityClass

Use CreateSchedulingV1alpha1PriorityClassResponse to parse the HTTP response.

impl PriorityClass
[src]

delete collection of PriorityClass

Use DeleteSchedulingV1alpha1CollectionPriorityClassResponse to parse the HTTP response.

impl PriorityClass
[src]

delete a PriorityClass

Use DeleteSchedulingV1alpha1PriorityClassResponse to parse the HTTP response.

impl PriorityClass
[src]

list or watch objects of kind PriorityClass

Use ListSchedulingV1alpha1PriorityClassResponse to parse the HTTP response.

impl PriorityClass
[src]

partially update the specified PriorityClass

Use PatchSchedulingV1alpha1PriorityClassResponse to parse the HTTP response.

impl PriorityClass
[src]

read the specified PriorityClass

Use ReadSchedulingV1alpha1PriorityClassResponse to parse the HTTP response.

impl PriorityClass
[src]

replace the specified PriorityClass

Use ReplaceSchedulingV1alpha1PriorityClassResponse to parse the HTTP response.

impl PriorityClass
[src]

watch changes to an object of kind PriorityClass

Use WatchSchedulingV1alpha1PriorityClassResponse to parse the HTTP response.

impl PriorityClass
[src]

watch individual changes to a list of PriorityClass

Use WatchSchedulingV1alpha1PriorityClassListResponse to parse the HTTP response.

Trait Implementations

impl Clone for PriorityClass
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PriorityClass
[src]

Formats the value using the given formatter. Read more

impl Default for PriorityClass
[src]

Returns the "default value" for a type. Read more

impl PartialEq for PriorityClass
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'de> Deserialize<'de> for PriorityClass
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for PriorityClass
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations