redfish_codegen/models/computer_system/v1_20_1/
computer_system.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The ComputerSystem schema represents a computer or system instance and the software-visible resources, or items within the data plane, such as memory, CPU, and other devices that it can access.  Details of those resources or subsystems are also linked through this resource.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct ComputerSystem {
10    #[serde(rename = "@odata.context")]
11    #[serde(skip_deserializing)]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub odata_context: Option<models::odata_v4::Context>,
14    #[serde(rename = "@odata.etag")]
15    #[serde(skip_deserializing)]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub odata_etag: Option<models::odata_v4::Etag>,
18    #[serde(rename = "@odata.id")]
19    #[serde(skip_deserializing)]
20    pub odata_id: models::odata_v4::Id,
21    #[serde(rename = "@odata.type")]
22    #[serde(skip_deserializing)]
23    #[derivative(Default(value = "models::odata_v4::Type(\"#ComputerSystem.v1_20_1.ComputerSystem\".to_string())"))]
24    pub odata_type: models::odata_v4::Type,
25    #[serde(rename = "Actions")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub actions: Option<models::computer_system::v1_20_1::Actions>,
28    /// The user-definable tag that can track this computer system for inventory or other client purposes.
29    #[serde(rename = "AssetTag")]
30    #[serde(default, skip_serializing_if = "Option::is_none")]
31    pub asset_tag: Option<String>,
32    #[serde(rename = "Bios")]
33    #[serde(default, skip_serializing_if = "Option::is_none")]
34    pub bios: Option<models::odata_v4::IdRef>,
35    /// The version of the system BIOS or primary system firmware.
36    #[serde(rename = "BiosVersion")]
37    #[serde(default, skip_serializing_if = "Option::is_none")]
38    pub bios_version: Option<String>,
39    #[serde(rename = "Boot")]
40    #[serde(default, skip_serializing_if = "Option::is_none")]
41    pub boot: Option<models::computer_system::v1_20_1::Boot>,
42    #[serde(rename = "BootProgress")]
43    #[serde(default, skip_serializing_if = "Option::is_none")]
44    pub boot_progress: Option<models::computer_system::v1_20_1::BootProgress>,
45    #[serde(rename = "Certificates")]
46    #[serde(default, skip_serializing_if = "Option::is_none")]
47    pub certificates: Option<models::odata_v4::IdRef>,
48    #[serde(rename = "Composition")]
49    #[serde(default, skip_serializing_if = "Option::is_none")]
50    pub composition: Option<models::computer_system::v1_20_1::Composition>,
51    #[serde(rename = "Description")]
52    #[serde(default, skip_serializing_if = "Option::is_none")]
53    pub description: Option<models::resource::Description>,
54    #[serde(rename = "EthernetInterfaces")]
55    #[serde(default, skip_serializing_if = "Option::is_none")]
56    pub ethernet_interfaces: Option<models::odata_v4::IdRef>,
57    #[serde(rename = "FabricAdapters")]
58    #[serde(default, skip_serializing_if = "Option::is_none")]
59    pub fabric_adapters: Option<models::odata_v4::IdRef>,
60    #[serde(rename = "GraphicalConsole")]
61    #[serde(default, skip_serializing_if = "Option::is_none")]
62    pub graphical_console: Option<models::computer_system::v1_20_1::HostGraphicalConsole>,
63    #[serde(rename = "GraphicsControllers")]
64    #[serde(default, skip_serializing_if = "Option::is_none")]
65    pub graphics_controllers: Option<models::odata_v4::IdRef>,
66    /// The DNS host name, without any domain information.
67    #[serde(rename = "HostName")]
68    #[serde(default, skip_serializing_if = "Option::is_none")]
69    pub host_name: Option<String>,
70    #[serde(rename = "HostWatchdogTimer")]
71    #[serde(default, skip_serializing_if = "Option::is_none")]
72    pub host_watchdog_timer: Option<models::computer_system::v1_20_1::WatchdogTimer>,
73    #[serde(rename = "HostedServices")]
74    #[serde(default, skip_serializing_if = "Option::is_none")]
75    pub hosted_services: Option<models::computer_system::v1_20_1::HostedServices>,
76    /// The hosting roles that this computer system supports.
77    #[serde(rename = "HostingRoles")]
78    #[serde(default, skip_serializing_if = "Option::is_none")]
79    pub hosting_roles: Option<Vec<models::computer_system::v1_20_1::HostingRole>>,
80    #[serde(rename = "Id")]
81    #[serde(skip_deserializing)]
82    pub id: models::resource::Id,
83    #[serde(rename = "IdlePowerSaver")]
84    #[serde(default, skip_serializing_if = "Option::is_none")]
85    pub idle_power_saver: Option<models::computer_system::v1_20_1::IdlePowerSaver>,
86    #[serde(rename = "IndicatorLED")]
87    #[serde(default, skip_serializing_if = "Option::is_none")]
88    pub indicator_led: Option<models::computer_system::v1_20_1::IndicatorLED>,
89    #[serde(rename = "KeyManagement")]
90    #[serde(default, skip_serializing_if = "Option::is_none")]
91    pub key_management: Option<models::computer_system::v1_20_1::KeyManagement>,
92    /// The date and time when the system was last reset or rebooted.
93    #[serde(rename = "LastResetTime")]
94    #[serde(default, skip_serializing_if = "Option::is_none")]
95    pub last_reset_time: Option<String>,
96    #[serde(rename = "Links")]
97    #[serde(default, skip_serializing_if = "Option::is_none")]
98    pub links: Option<models::computer_system::v1_20_1::Links>,
99    /// An indicator allowing an operator to physically locate this resource.
100    #[serde(rename = "LocationIndicatorActive")]
101    #[serde(default, skip_serializing_if = "Option::is_none")]
102    pub location_indicator_active: Option<bool>,
103    #[serde(rename = "LogServices")]
104    #[serde(default, skip_serializing_if = "Option::is_none")]
105    pub log_services: Option<models::odata_v4::IdRef>,
106    /// The manufacturer or OEM of this system.
107    #[serde(rename = "Manufacturer")]
108    #[serde(default, skip_serializing_if = "Option::is_none")]
109    pub manufacturer: Option<String>,
110    /// An indication of whether the system is in manufacturing mode.  Manufacturing mode is a special boot mode, not normally available to end users, that modifies features and settings for use while the system is being manufactured and tested.
111    #[serde(rename = "ManufacturingMode")]
112    #[serde(default, skip_serializing_if = "Option::is_none")]
113    pub manufacturing_mode: Option<bool>,
114    /// An array of DSP0274-defined measurement blocks.
115    #[serde(rename = "Measurements")]
116    #[serde(default, skip_serializing_if = "Option::is_none")]
117    pub measurements: Option<Vec<models::software_inventory::MeasurementBlock>>,
118    #[serde(rename = "Memory")]
119    #[serde(default, skip_serializing_if = "Option::is_none")]
120    pub memory: Option<models::odata_v4::IdRef>,
121    #[serde(rename = "MemoryDomains")]
122    #[serde(default, skip_serializing_if = "Option::is_none")]
123    pub memory_domains: Option<models::odata_v4::IdRef>,
124    #[serde(rename = "MemorySummary")]
125    #[serde(default, skip_serializing_if = "Option::is_none")]
126    pub memory_summary: Option<models::computer_system::v1_20_1::MemorySummary>,
127    /// The product name for this system, without the manufacturer name.
128    #[serde(rename = "Model")]
129    #[serde(default, skip_serializing_if = "Option::is_none")]
130    pub model: Option<String>,
131    #[serde(rename = "Name")]
132    #[serde(skip_deserializing)]
133    pub name: models::resource::Name,
134    #[serde(rename = "NetworkInterfaces")]
135    #[serde(default, skip_serializing_if = "Option::is_none")]
136    pub network_interfaces: Option<models::odata_v4::IdRef>,
137    #[serde(rename = "Oem")]
138    #[serde(default, skip_serializing_if = "Option::is_none")]
139    pub oem: Option<models::resource::Oem>,
140    /// The link to a collection of PCIe devices that this computer system uses.
141    #[serde(rename = "PCIeDevices")]
142    #[serde(default, skip_serializing_if = "Option::is_none")]
143    pub pcie_devices: Option<Vec<models::odata_v4::IdRef>>,
144    #[serde(rename = "PCIeDevices@odata.count")]
145    #[serde(default, skip_serializing_if = "Option::is_none")]
146    pub pcie_devices_odata_count: Option<models::odata_v4::Count>,
147    /// The link to a collection of PCIe functions that this computer system uses.
148    #[serde(rename = "PCIeFunctions")]
149    #[serde(default, skip_serializing_if = "Option::is_none")]
150    pub pcie_functions: Option<Vec<models::odata_v4::IdRef>>,
151    #[serde(rename = "PCIeFunctions@odata.count")]
152    #[serde(default, skip_serializing_if = "Option::is_none")]
153    pub pcie_functions_odata_count: Option<models::odata_v4::Count>,
154    /// The part number for this system.
155    #[serde(rename = "PartNumber")]
156    #[serde(default, skip_serializing_if = "Option::is_none")]
157    pub part_number: Option<String>,
158    /// The number of seconds to delay power on after a `Reset` action requesting `PowerCycle`.  Zero seconds indicates no delay.
159    #[serde(rename = "PowerCycleDelaySeconds")]
160    #[serde(default, skip_serializing_if = "Option::is_none")]
161    pub power_cycle_delay_seconds: Option<f64>,
162    #[serde(rename = "PowerMode")]
163    #[serde(default, skip_serializing_if = "Option::is_none")]
164    pub power_mode: Option<models::computer_system::v1_20_1::PowerMode>,
165    /// The number of seconds to delay power off during a reset.  Zero seconds indicates no delay to power off.
166    #[serde(rename = "PowerOffDelaySeconds")]
167    #[serde(default, skip_serializing_if = "Option::is_none")]
168    pub power_off_delay_seconds: Option<f64>,
169    /// The number of seconds to delay power on after a power cycle or during a reset.  Zero seconds indicates no delay to power up.
170    #[serde(rename = "PowerOnDelaySeconds")]
171    #[serde(default, skip_serializing_if = "Option::is_none")]
172    pub power_on_delay_seconds: Option<f64>,
173    #[serde(rename = "PowerRestorePolicy")]
174    #[serde(default, skip_serializing_if = "Option::is_none")]
175    pub power_restore_policy: Option<models::computer_system::v1_20_1::PowerRestorePolicyTypes>,
176    #[serde(rename = "PowerState")]
177    #[serde(default, skip_serializing_if = "Option::is_none")]
178    pub power_state: Option<models::resource::PowerState>,
179    #[serde(rename = "ProcessorSummary")]
180    #[serde(default, skip_serializing_if = "Option::is_none")]
181    pub processor_summary: Option<models::computer_system::v1_20_1::ProcessorSummary>,
182    #[serde(rename = "Processors")]
183    #[serde(default, skip_serializing_if = "Option::is_none")]
184    pub processors: Option<models::odata_v4::IdRef>,
185    /// The link to a collection of redundancy entities.  Each entity specifies a kind and level of redundancy and a collection, or redundancy set, of other computer systems that provide the specified redundancy to this computer system.
186    #[serde(rename = "Redundancy")]
187    #[serde(default, skip_serializing_if = "Option::is_none")]
188    pub redundancy: Option<Vec<models::redundancy::Redundancy>>,
189    #[serde(rename = "Redundancy@odata.count")]
190    #[serde(default, skip_serializing_if = "Option::is_none")]
191    pub redundancy_odata_count: Option<models::odata_v4::Count>,
192    /// The manufacturer SKU for this system.
193    #[serde(rename = "SKU")]
194    #[serde(default, skip_serializing_if = "Option::is_none")]
195    pub sku: Option<String>,
196    #[serde(rename = "SecureBoot")]
197    #[serde(default, skip_serializing_if = "Option::is_none")]
198    pub secure_boot: Option<models::odata_v4::IdRef>,
199    #[serde(rename = "SerialConsole")]
200    #[serde(default, skip_serializing_if = "Option::is_none")]
201    pub serial_console: Option<models::computer_system::v1_20_1::HostSerialConsole>,
202    /// The serial number for this system.
203    #[serde(rename = "SerialNumber")]
204    #[serde(default, skip_serializing_if = "Option::is_none")]
205    pub serial_number: Option<String>,
206    #[serde(rename = "SimpleStorage")]
207    #[serde(default, skip_serializing_if = "Option::is_none")]
208    pub simple_storage: Option<models::odata_v4::IdRef>,
209    #[serde(rename = "Status")]
210    #[serde(default, skip_serializing_if = "Option::is_none")]
211    pub status: Option<models::resource::Status>,
212    #[serde(rename = "Storage")]
213    #[serde(default, skip_serializing_if = "Option::is_none")]
214    pub storage: Option<models::odata_v4::IdRef>,
215    /// The sub-model for this system.
216    #[serde(rename = "SubModel")]
217    #[serde(default, skip_serializing_if = "Option::is_none")]
218    pub sub_model: Option<String>,
219    #[serde(rename = "SystemType")]
220    #[serde(default, skip_serializing_if = "Option::is_none")]
221    pub system_type: Option<models::computer_system::v1_20_1::SystemType>,
222    /// An array of trusted modules in the system.
223    #[serde(rename = "TrustedModules")]
224    #[serde(default, skip_serializing_if = "Option::is_none")]
225    pub trusted_modules: Option<Vec<models::computer_system::v1_20_1::TrustedModules>>,
226    #[serde(rename = "USBControllers")]
227    #[serde(default, skip_serializing_if = "Option::is_none")]
228    pub usb_controllers: Option<models::odata_v4::IdRef>,
229    #[serde(rename = "UUID")]
230    #[serde(default, skip_serializing_if = "Option::is_none")]
231    pub uuid: Option<models::resource::UUID>,
232    #[serde(rename = "VirtualMedia")]
233    #[serde(default, skip_serializing_if = "Option::is_none")]
234    pub virtual_media: Option<models::odata_v4::IdRef>,
235    #[serde(rename = "VirtualMediaConfig")]
236    #[serde(default, skip_serializing_if = "Option::is_none")]
237    pub virtual_media_config: Option<models::computer_system::v1_20_1::VirtualMediaConfig>,
238}
239
240impl crate::Metadata<'static> for ComputerSystem {
241    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_1.json";
242}