#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PriorityClass {
#[prost(message, optional, tag = "1")]
pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
#[prost(int32, optional, tag = "2")]
pub value: ::core::option::Option<i32>,
#[prost(bool, optional, tag = "3")]
pub global_default: ::core::option::Option<bool>,
#[prost(string, optional, tag = "4")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub preemption_policy: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PriorityClassList {
#[prost(message, optional, tag = "1")]
pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
#[prost(message, repeated, tag = "2")]
pub items: ::prost::alloc::vec::Vec<PriorityClass>,
}
impl crate::Resource for PriorityClass {
const API_VERSION: &'static str = "scheduling.k8s.io/v1";
const GROUP: &'static str = "scheduling.k8s.io";
const VERSION: &'static str = "v1";
const KIND: &'static str = "PriorityClass";
const URL_PATH_SEGMENT: &'static str = "priorityclasses";
type Scope = crate::ClusterResourceScope;
}
impl crate::Metadata for PriorityClass {
type Ty = crate::apimachinery::pkg::apis::meta::v1::ObjectMeta;
fn metadata(&self) -> Option<&<Self as crate::Metadata>::Ty> {
self.metadata.as_ref()
}
fn metadata_mut(&mut self) -> Option<&mut <Self as crate::Metadata>::Ty> {
self.metadata.as_mut()
}
}