#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Overhead {
#[prost(btree_map = "string, message", tag = "1")]
pub pod_fixed: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
super::super::super::apimachinery::pkg::api::resource::Quantity,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RuntimeClass {
#[prost(message, optional, tag = "1")]
pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ObjectMeta>,
#[prost(string, optional, tag = "2")]
pub handler: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub overhead: ::core::option::Option<Overhead>,
#[prost(message, optional, tag = "4")]
pub scheduling: ::core::option::Option<Scheduling>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RuntimeClassList {
#[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<RuntimeClass>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Scheduling {
#[prost(btree_map = "string, string", tag = "1")]
pub node_selector:
::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
#[prost(message, repeated, tag = "2")]
pub tolerations: ::prost::alloc::vec::Vec<super::super::core::v1::Toleration>,
}
impl crate::Resource for RuntimeClass {
const API_VERSION: &'static str = "node.k8s.io/v1";
const GROUP: &'static str = "node.k8s.io";
const VERSION: &'static str = "v1";
const KIND: &'static str = "RuntimeClass";
const URL_PATH_SEGMENT: &'static str = "runtimeclasses";
type Scope = crate::ClusterResourceScope;
}
impl crate::Metadata for RuntimeClass {
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()
}
}