redfish_codegen/models/thermal/v1_7_1/
fan.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct Fan {
9    #[serde(rename = "@odata.id")]
10    #[serde(skip_deserializing)]
11    pub odata_id: models::odata_v4::Id,
12    #[serde(rename = "Actions")]
13    #[serde(default, skip_serializing_if = "Option::is_none")]
14    pub actions: Option<models::thermal::v1_7_1::FanActions>,
15    #[serde(rename = "Assembly")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub assembly: Option<models::odata_v4::IdRef>,
18    /// The name of the fan.
19    #[serde(rename = "FanName")]
20    #[serde(default, skip_serializing_if = "Option::is_none")]
21    pub fan_name: Option<String>,
22    /// An indication of whether this device can be inserted or removed while the equipment is in operation.
23    #[serde(rename = "HotPluggable")]
24    #[serde(default, skip_serializing_if = "Option::is_none")]
25    pub hot_pluggable: Option<bool>,
26    #[serde(rename = "IndicatorLED")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub indicator_led: Option<models::resource::IndicatorLED>,
29    #[serde(rename = "Location")]
30    #[serde(default, skip_serializing_if = "Option::is_none")]
31    pub location: Option<models::resource::Location>,
32    /// The value at which the reading is below normal range but not yet fatal.
33    #[serde(rename = "LowerThresholdCritical")]
34    #[serde(default, skip_serializing_if = "Option::is_none")]
35    pub lower_threshold_critical: Option<i64>,
36    /// The value at which the reading is below normal range and fatal.
37    #[serde(rename = "LowerThresholdFatal")]
38    #[serde(default, skip_serializing_if = "Option::is_none")]
39    pub lower_threshold_fatal: Option<i64>,
40    /// The value at which the reading is below normal range.
41    #[serde(rename = "LowerThresholdNonCritical")]
42    #[serde(default, skip_serializing_if = "Option::is_none")]
43    pub lower_threshold_non_critical: Option<i64>,
44    /// The manufacturer of this fan.
45    #[serde(rename = "Manufacturer")]
46    #[serde(default, skip_serializing_if = "Option::is_none")]
47    pub manufacturer: Option<String>,
48    /// Maximum value for this sensor.
49    #[serde(rename = "MaxReadingRange")]
50    #[serde(default, skip_serializing_if = "Option::is_none")]
51    pub max_reading_range: Option<i64>,
52    /// The identifier for the member within the collection.
53    #[serde(rename = "MemberId")]
54    pub member_id: String,
55    /// Minimum value for this sensor.
56    #[serde(rename = "MinReadingRange")]
57    #[serde(default, skip_serializing_if = "Option::is_none")]
58    pub min_reading_range: Option<i64>,
59    /// The model number for this fan.
60    #[serde(rename = "Model")]
61    #[serde(default, skip_serializing_if = "Option::is_none")]
62    pub model: Option<String>,
63    /// Name of the fan.
64    #[serde(rename = "Name")]
65    #[serde(default, skip_serializing_if = "Option::is_none")]
66    pub name: Option<String>,
67    #[serde(rename = "Oem")]
68    #[serde(default, skip_serializing_if = "Option::is_none")]
69    pub oem: Option<models::resource::Oem>,
70    /// The part number for this fan.
71    #[serde(rename = "PartNumber")]
72    #[serde(default, skip_serializing_if = "Option::is_none")]
73    pub part_number: Option<String>,
74    #[serde(rename = "PhysicalContext")]
75    #[serde(default, skip_serializing_if = "Option::is_none")]
76    pub physical_context: Option<models::physical_context::PhysicalContext>,
77    /// The fan speed.
78    #[serde(rename = "Reading")]
79    #[serde(default, skip_serializing_if = "Option::is_none")]
80    pub reading: Option<i64>,
81    #[serde(rename = "ReadingUnits")]
82    #[serde(default, skip_serializing_if = "Option::is_none")]
83    pub reading_units: Option<models::thermal::v1_7_1::ReadingUnits>,
84    /// The set of redundancy groups for this fan.
85    #[serde(rename = "Redundancy")]
86    #[serde(default, skip_serializing_if = "Option::is_none")]
87    pub redundancy: Option<Vec<models::redundancy::Redundancy>>,
88    #[serde(rename = "Redundancy@odata.count")]
89    #[serde(default, skip_serializing_if = "Option::is_none")]
90    pub redundancy_odata_count: Option<models::odata_v4::Count>,
91    /// An array of links to resources or objects that this fan services.
92    #[serde(rename = "RelatedItem")]
93    #[serde(default, skip_serializing_if = "Option::is_none")]
94    pub related_item: Option<Vec<models::odata_v4::IdRef>>,
95    #[serde(rename = "RelatedItem@odata.count")]
96    #[serde(default, skip_serializing_if = "Option::is_none")]
97    pub related_item_odata_count: Option<models::odata_v4::Count>,
98    /// The numerical identifier for this fan speed sensor.
99    #[serde(rename = "SensorNumber")]
100    #[serde(default, skip_serializing_if = "Option::is_none")]
101    pub sensor_number: Option<i64>,
102    /// The serial number for this fan.
103    #[serde(rename = "SerialNumber")]
104    #[serde(default, skip_serializing_if = "Option::is_none")]
105    pub serial_number: Option<String>,
106    /// The spare part number for this fan.
107    #[serde(rename = "SparePartNumber")]
108    #[serde(default, skip_serializing_if = "Option::is_none")]
109    pub spare_part_number: Option<String>,
110    #[serde(rename = "Status")]
111    #[serde(default, skip_serializing_if = "Option::is_none")]
112    pub status: Option<models::resource::Status>,
113    /// The value at which the reading is above normal range but not yet fatal.
114    #[serde(rename = "UpperThresholdCritical")]
115    #[serde(default, skip_serializing_if = "Option::is_none")]
116    pub upper_threshold_critical: Option<i64>,
117    /// The value at which the reading is above normal range and fatal.
118    #[serde(rename = "UpperThresholdFatal")]
119    #[serde(default, skip_serializing_if = "Option::is_none")]
120    pub upper_threshold_fatal: Option<i64>,
121    /// The value at which the reading is above normal range.
122    #[serde(rename = "UpperThresholdNonCritical")]
123    #[serde(default, skip_serializing_if = "Option::is_none")]
124    pub upper_threshold_non_critical: Option<i64>,
125}
126
127impl crate::Metadata<'static> for Fan {
128    const JSON_SCHEMA: &'static str = "Thermal.v1_7_1.json";
129}