1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
// Generated by redfish-codegen. Do not modify.
// Author: Ethan D. Twardy <ethan.twardy@gmail.com>
//
// Copyright 2023, Ethan Twardy. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the \"License\");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an \"AS IS\" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::models;

/// 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.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(Default)]
pub struct ComputerSystem {
    #[serde(rename = "@odata.context")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub odata_context: Option<models::odata_v4::Context>,
    #[serde(rename = "@odata.etag")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub odata_etag: Option<models::odata_v4::Etag>,
    #[serde(rename = "@odata.id")]
    pub odata_id: models::odata_v4::Id,
    #[serde(rename = "@odata.type")]
    pub odata_type: monostate::MustBe!("#ComputerSystem.v1_20_0.ComputerSystem"),
    #[serde(rename = "Actions")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub actions: Option<models::computer_system::v1_20_0::Actions>,
    /// The user-definable tag that can track this computer system for inventory or other client purposes.
    #[serde(rename = "AssetTag")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub asset_tag: Option<String>,
    #[serde(rename = "Bios")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bios: Option<models::odata_v4::IdRef>,
    /// The version of the system BIOS or primary system firmware.
    #[serde(rename = "BiosVersion")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bios_version: Option<String>,
    #[serde(rename = "Boot")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub boot: Option<models::computer_system::v1_20_0::Boot>,
    #[serde(rename = "BootProgress")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub boot_progress: Option<models::computer_system::v1_20_0::BootProgress>,
    #[serde(rename = "Certificates")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub certificates: Option<models::odata_v4::IdRef>,
    #[serde(rename = "Composition")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub composition: Option<models::computer_system::v1_20_0::Composition>,
    #[serde(rename = "Description")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<models::resource::Description>,
    #[serde(rename = "EthernetInterfaces")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ethernet_interfaces: Option<models::odata_v4::IdRef>,
    #[serde(rename = "FabricAdapters")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub fabric_adapters: Option<models::odata_v4::IdRef>,
    #[serde(rename = "GraphicalConsole")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub graphical_console: Option<models::computer_system::v1_20_0::HostGraphicalConsole>,
    #[serde(rename = "GraphicsControllers")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub graphics_controllers: Option<models::odata_v4::IdRef>,
    /// The DNS host name, without any domain information.
    #[serde(rename = "HostName")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host_name: Option<String>,
    #[serde(rename = "HostWatchdogTimer")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host_watchdog_timer: Option<models::computer_system::v1_20_0::WatchdogTimer>,
    #[serde(rename = "HostedServices")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub hosted_services: Option<models::computer_system::v1_20_0::HostedServices>,
    /// The hosting roles that this computer system supports.
    #[serde(rename = "HostingRoles")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub hosting_roles: Option<Vec<models::computer_system::v1_20_0::HostingRole>>,
    #[serde(rename = "Id")]
    pub id: models::resource::Id,
    #[serde(rename = "IdlePowerSaver")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub idle_power_saver: Option<models::computer_system::v1_20_0::IdlePowerSaver>,
    #[serde(rename = "IndicatorLED")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub indicator_led: Option<models::computer_system::v1_20_0::IndicatorLED>,
    #[serde(rename = "KeyManagement")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub key_management: Option<models::computer_system::v1_20_0::KeyManagement>,
    /// The date and time when the system was last reset or rebooted.
    #[serde(rename = "LastResetTime")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub last_reset_time: Option<String>,
    #[serde(rename = "Links")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub links: Option<models::computer_system::v1_20_0::Links>,
    /// An indicator allowing an operator to physically locate this resource.
    #[serde(rename = "LocationIndicatorActive")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub location_indicator_active: Option<bool>,
    #[serde(rename = "LogServices")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub log_services: Option<models::odata_v4::IdRef>,
    /// The manufacturer or OEM of this system.
    #[serde(rename = "Manufacturer")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub manufacturer: Option<String>,
    /// 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.
    #[serde(rename = "ManufacturingMode")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub manufacturing_mode: Option<bool>,
    /// An array of DSP0274-defined measurement blocks.
    #[serde(rename = "Measurements")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub measurements: Option<Vec<models::software_inventory::MeasurementBlock>>,
    #[serde(rename = "Memory")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory: Option<models::odata_v4::IdRef>,
    #[serde(rename = "MemoryDomains")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory_domains: Option<models::odata_v4::IdRef>,
    #[serde(rename = "MemorySummary")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory_summary: Option<models::computer_system::v1_20_0::MemorySummary>,
    /// The product name for this system, without the manufacturer name.
    #[serde(rename = "Model")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub model: Option<String>,
    #[serde(rename = "Name")]
    pub name: models::resource::Name,
    #[serde(rename = "NetworkInterfaces")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub network_interfaces: Option<models::odata_v4::IdRef>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    /// The link to a collection of PCIe devices that this computer system uses.
    #[serde(rename = "PCIeDevices")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcie_devices: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "PCIeDevices@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcie_devices_odata_count: Option<models::odata_v4::Count>,
    /// The link to a collection of PCIe functions that this computer system uses.
    #[serde(rename = "PCIeFunctions")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcie_functions: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "PCIeFunctions@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcie_functions_odata_count: Option<models::odata_v4::Count>,
    /// The part number for this system.
    #[serde(rename = "PartNumber")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub part_number: Option<String>,
    /// The number of seconds to delay power on after a `Reset` action requesting `PowerCycle`.  Zero seconds indicates no delay.
    #[serde(rename = "PowerCycleDelaySeconds")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub power_cycle_delay_seconds: Option<f64>,
    #[serde(rename = "PowerMode")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub power_mode: Option<models::computer_system::v1_20_0::PowerMode>,
    /// The number of seconds to delay power off during a reset.  Zero seconds indicates no delay to power off.
    #[serde(rename = "PowerOffDelaySeconds")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub power_off_delay_seconds: Option<f64>,
    /// The number of seconds to delay power on after a power cycle or during a reset.  Zero seconds indicates no delay to power up.
    #[serde(rename = "PowerOnDelaySeconds")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub power_on_delay_seconds: Option<f64>,
    #[serde(rename = "PowerRestorePolicy")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub power_restore_policy: Option<models::computer_system::v1_20_0::PowerRestorePolicyTypes>,
    #[serde(rename = "PowerState")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub power_state: Option<models::resource::PowerState>,
    #[serde(rename = "ProcessorSummary")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub processor_summary: Option<models::computer_system::v1_20_0::ProcessorSummary>,
    #[serde(rename = "Processors")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub processors: Option<models::odata_v4::IdRef>,
    /// 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.
    #[serde(rename = "Redundancy")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub redundancy: Option<Vec<models::redundancy::Redundancy>>,
    #[serde(rename = "Redundancy@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub redundancy_odata_count: Option<models::odata_v4::Count>,
    /// The manufacturer SKU for this system.
    #[serde(rename = "SKU")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sku: Option<String>,
    #[serde(rename = "SecureBoot")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub secure_boot: Option<models::odata_v4::IdRef>,
    #[serde(rename = "SerialConsole")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub serial_console: Option<models::computer_system::v1_20_0::HostSerialConsole>,
    /// The serial number for this system.
    #[serde(rename = "SerialNumber")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub serial_number: Option<String>,
    #[serde(rename = "SimpleStorage")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub simple_storage: Option<models::odata_v4::IdRef>,
    #[serde(rename = "Status")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<models::resource::Status>,
    #[serde(rename = "Storage")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub storage: Option<models::odata_v4::IdRef>,
    /// The sub-model for this system.
    #[serde(rename = "SubModel")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sub_model: Option<String>,
    #[serde(rename = "SystemType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub system_type: Option<models::computer_system::v1_20_0::SystemType>,
    /// An array of trusted modules in the system.
    #[serde(rename = "TrustedModules")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub trusted_modules: Option<Vec<models::computer_system::v1_20_0::TrustedModules>>,
    #[serde(rename = "USBControllers")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub usb_controllers: Option<models::odata_v4::IdRef>,
    #[serde(rename = "UUID")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uuid: Option<models::resource::UUID>,
    #[serde(rename = "VirtualMedia")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub virtual_media: Option<models::odata_v4::IdRef>,
    #[serde(rename = "VirtualMediaConfig")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub virtual_media_config: Option<models::computer_system::v1_20_0::VirtualMediaConfig>,
}