redfish_codegen/models/physical_context/physical_context.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum PhysicalContext {
6 /// The room.
7 Room,
8 /// The air intake point or points or region of the chassis.
9 Intake,
10 /// The air exhaust point or points or region of the chassis.
11 Exhaust,
12 /// The liquid inlet point of the chassis. Added in version 2017.3.
13 LiquidInlet,
14 /// The liquid outlet point of the chassis. Added in version 2017.3.
15 LiquidOutlet,
16 /// The front of the chassis.
17 Front,
18 /// The back of the chassis.
19 Back,
20 /// The upper portion of the chassis.
21 Upper,
22 /// The lower portion of the chassis.
23 Lower,
24 /// A processor (CPU).
25 CPU,
26 /// The entire processor (CPU) subsystem. Added in version 2018.3.
27 CPUSubsystem,
28 /// A graphics processor (GPU).
29 GPU,
30 /// The entire graphics processor (GPU) subsystem. Added in version 2018.3.
31 GPUSubsystem,
32 /// An FPGA. Added in version 2018.3.
33 FPGA,
34 /// An accelerator. Added in version 2018.3.
35 Accelerator,
36 /// An ASIC device, such as a networking chip or chipset component. Added in version 2017.3.
37 ASIC,
38 /// A backplane within the chassis.
39 Backplane,
40 /// The system board (PCB).
41 SystemBoard,
42 /// A power supply.
43 PowerSupply,
44 /// The entire power subsystem. Added in version 2019.1.
45 PowerSubsystem,
46 /// A voltage regulator device.
47 VoltageRegulator,
48 /// A rectifier device. Added in version 2019.1.
49 Rectifier,
50 /// A storage device.
51 StorageDevice,
52 /// A networking device.
53 NetworkingDevice,
54 /// Within a compute bay.
55 ComputeBay,
56 /// Within a storage bay.
57 StorageBay,
58 /// Within a networking bay.
59 NetworkBay,
60 /// Within an expansion bay.
61 ExpansionBay,
62 /// Within a power supply bay.
63 PowerSupplyBay,
64 /// A memory device. Added in version 2017.1.
65 Memory,
66 /// The entire memory subsystem. Added in version 2018.3.
67 MemorySubsystem,
68 /// The entire chassis. Added in version 2017.2.
69 Chassis,
70 /// A fan. Added in version 2017.2.
71 Fan,
72 /// The entire cooling, or air and liquid, subsystem. Added in version 2018.3.
73 CoolingSubsystem,
74 /// A motor. Added in version 2018.3.
75 Motor,
76 /// A transformer. Added in version 2018.3.
77 Transformer,
78 /// An AC utility input. Added in version 2018.3.
79 ACUtilityInput,
80 /// An AC static bypass input. Added in version 2018.3.
81 ACStaticBypassInput,
82 /// An AC maintenance bypass input. Added in version 2018.3.
83 ACMaintenanceBypassInput,
84 /// A DC bus. Added in version 2018.3.
85 DCBus,
86 /// An AC output. Added in version 2018.3.
87 ACOutput,
88 /// An AC input. Added in version 2018.3.
89 ACInput,
90 /// A trusted module. Added in version 2020.4.
91 TrustedModule,
92 /// This value shall indicate a circuit board that is not the primary or system board within a context that cannot be described by other defined values. Added in version 2021.1.
93 Board,
94 /// This value shall indicate a transceiver attached to a device. Added in version 2021.1.
95 Transceiver,
96 /// A battery. Added in version 2021.2.
97 Battery,
98 /// A pump. Added in version 2021.3.
99 Pump,
100}
101
102#[allow(clippy::derivable_impls)]
103impl Default for PhysicalContext {
104 fn default() -> PhysicalContext {
105 PhysicalContext::Room
106 }
107}
108
109impl crate::Metadata<'static> for PhysicalContext {
110 const JSON_SCHEMA: &'static str = "PhysicalContext.json";
111}