redfish_codegen/models/resource_block/v1_4_1/resource_block_type.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum ResourceBlockType {
6 /// This resource block contains resources of type `Processor` and `Memory` in a manner that creates a compute complex.
7 Compute,
8 /// This resource block contains resources of type `Processor`.
9 Processor,
10 /// This resource block contains resources of type `Memory`.
11 Memory,
12 /// This resource block contains network resources, such as resource of type `EthernetInterface` and `NetworkInterface`.
13 Network,
14 /// This resource block contains storage resources, such as resources of type `Storage` and `SimpleStorage`.
15 Storage,
16 /// This resource block contains resources of type `ComputerSystem`.
17 ComputerSystem,
18 /// This resource block is capable of changing over time based on its configuration. Different types of devices within this resource block can be added and removed over time. Added in version v1_2_0.
19 Expansion,
20 /// This resource block is capable of being consumed as a standalone component. This resource block can represent things such as a software platform on one or more computer systems or an appliance that provides composable resources and other services, and can be managed independently of the Redfish service. Added in version v1_4_0.
21 IndependentResource,
22}
23
24#[allow(clippy::derivable_impls)]
25impl Default for ResourceBlockType {
26 fn default() -> ResourceBlockType {
27 ResourceBlockType::Compute
28 }
29}
30
31impl crate::Metadata<'static> for ResourceBlockType {
32 const JSON_SCHEMA: &'static str = "ResourceBlock.v1_4_1.json";
33}