redfish_codegen/models/cable/v1_2_1/cable_status.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum CableStatus {
6 /// This value shall indicate the cable is operating normally. The State property in Status shall contain the value `Enabled` and The Health property in Status shall contain the value `OK`.
7 Normal,
8 /// This value shall indicate the cable is degraded. The State property in Status shall contain the value `Enabled` and The Health property in Status shall contain the value `Warning`.
9 Degraded,
10 /// This value shall indicate the cable has failed. The State property in Status shall contain the value `Enabled` and The Health property in Status shall contain the value `Critical`.
11 Failed,
12 /// This value shall indicate the cable is under test. The State property in Status shall contain the value `InTest`.
13 Testing,
14 /// This value shall indicate the cable is disabled. The State property in Status shall contain the value `Disabled`.
15 Disabled,
16 /// This value shall indicate the status for the cable is not defined by the user. If implemented, the service shall determine the value of the State and Health properties in Status.
17 SetByService,
18}
19
20#[allow(clippy::derivable_impls)]
21impl Default for CableStatus {
22 fn default() -> CableStatus {
23 CableStatus::Normal
24 }
25}
26
27impl crate::Metadata<'static> for CableStatus {
28 const JSON_SCHEMA: &'static str = "Cable.v1_2_1.json";
29}