Struct k8s_openapi::api::resource::v1alpha3::DeviceClass
source · pub struct DeviceClass {
pub metadata: ObjectMeta,
pub spec: DeviceClassSpec,
}
Expand description
DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
Fields§
§metadata: ObjectMeta
Standard object metadata
spec: DeviceClassSpec
Spec defines what can be allocated and how to configure it.
This is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.
Changing the spec automatically increments the metadata.generation number.
Trait Implementations§
source§impl Clone for DeviceClass
impl Clone for DeviceClass
source§fn clone(&self) -> DeviceClass
fn clone(&self) -> DeviceClass
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DeviceClass
impl Debug for DeviceClass
source§impl DeepMerge for DeviceClass
impl DeepMerge for DeviceClass
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for DeviceClass
impl Default for DeviceClass
source§fn default() -> DeviceClass
fn default() -> DeviceClass
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DeviceClass
impl<'de> Deserialize<'de> for DeviceClass
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl ListableResource for DeviceClass
impl ListableResource for DeviceClass
source§impl Metadata for DeviceClass
impl Metadata for DeviceClass
source§impl PartialEq for DeviceClass
impl PartialEq for DeviceClass
source§impl Resource for DeviceClass
impl Resource for DeviceClass
source§const API_VERSION: &'static str = "resource.k8s.io/v1alpha3"
const API_VERSION: &'static str = "resource.k8s.io/v1alpha3"
The API version of the resource. This is a composite of
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read moresource§const GROUP: &'static str = "resource.k8s.io"
const GROUP: &'static str = "resource.k8s.io"
The group of the resource, or the empty string if the resource doesn’t have a group.
source§const URL_PATH_SEGMENT: &'static str = "deviceclasses"
const URL_PATH_SEGMENT: &'static str = "deviceclasses"
The URL path segment used to construct URLs related to this resource. Read more
source§type Scope = ClusterResourceScope
type Scope = ClusterResourceScope
Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource. Read more
source§impl Serialize for DeviceClass
impl Serialize for DeviceClass
impl StructuralPartialEq for DeviceClass
Auto Trait Implementations§
impl Freeze for DeviceClass
impl RefUnwindSafe for DeviceClass
impl Send for DeviceClass
impl Sync for DeviceClass
impl Unpin for DeviceClass
impl UnwindSafe for DeviceClass
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)