redfish_codegen/models/computer_system/v1_20_1/
boot.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The boot information for this resource.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Boot {
10    /// Ordered array of boot source aliases representing the persistent boot order associated with this computer system.
11    #[serde(rename = "AliasBootOrder")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub alias_boot_order: Option<Vec<models::computer_system::BootSource>>,
14    /// The number of attempts the system will automatically retry booting.
15    #[serde(rename = "AutomaticRetryAttempts")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub automatic_retry_attempts: Option<i64>,
18    #[serde(rename = "AutomaticRetryConfig")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub automatic_retry_config: Option<models::computer_system::v1_20_1::AutomaticRetryConfig>,
21    /// The BootOptionReference of the Boot Option to perform a one-time boot from when BootSourceOverrideTarget is `UefiBootNext`.
22    #[serde(rename = "BootNext")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub boot_next: Option<String>,
25    #[serde(rename = "BootOptions")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub boot_options: Option<models::odata_v4::IdRef>,
28    /// An array of BootOptionReference strings that represent the persistent boot order for with this computer system.  Changes to the boot order typically require a system reset before they take effect.  It is likely that a client finds the `@Redfish.Settings` term in this resource, and if it is found, the client makes requests to change boot order settings by modifying the resource identified by the `@Redfish.Settings` term.
29    #[serde(rename = "BootOrder")]
30    #[serde(default, skip_serializing_if = "Option::is_none")]
31    pub boot_order: Option<Vec<String>>,
32    #[serde(rename = "BootOrderPropertySelection")]
33    #[serde(default, skip_serializing_if = "Option::is_none")]
34    pub boot_order_property_selection: Option<models::computer_system::v1_20_1::BootOrderTypes>,
35    #[serde(rename = "BootSourceOverrideEnabled")]
36    #[serde(default, skip_serializing_if = "Option::is_none")]
37    pub boot_source_override_enabled: Option<models::computer_system::v1_20_1::BootSourceOverrideEnabled>,
38    #[serde(rename = "BootSourceOverrideMode")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub boot_source_override_mode: Option<models::computer_system::v1_20_1::BootSourceOverrideMode>,
41    #[serde(rename = "BootSourceOverrideTarget")]
42    #[serde(default, skip_serializing_if = "Option::is_none")]
43    pub boot_source_override_target: Option<models::computer_system::BootSource>,
44    #[serde(rename = "Certificates")]
45    #[serde(default, skip_serializing_if = "Option::is_none")]
46    pub certificates: Option<models::odata_v4::IdRef>,
47    /// The URI to boot from when BootSourceOverrideTarget is set to `UefiHttp`.
48    #[serde(rename = "HttpBootUri")]
49    #[serde(default, skip_serializing_if = "Option::is_none")]
50    pub http_boot_uri: Option<String>,
51    /// The number of remaining automatic retry boots.
52    #[serde(rename = "RemainingAutomaticRetryAttempts")]
53    #[serde(default, skip_serializing_if = "Option::is_none")]
54    pub remaining_automatic_retry_attempts: Option<i64>,
55    #[serde(rename = "StopBootOnFault")]
56    #[serde(default, skip_serializing_if = "Option::is_none")]
57    pub stop_boot_on_fault: Option<models::computer_system::v1_20_1::StopBootOnFault>,
58    #[serde(rename = "TrustedModuleRequiredToBoot")]
59    #[serde(default, skip_serializing_if = "Option::is_none")]
60    pub trusted_module_required_to_boot: Option<models::computer_system::v1_20_1::TrustedModuleRequiredToBoot>,
61    /// The UEFI device path of the device from which to boot when BootSourceOverrideTarget is `UefiTarget`.
62    #[serde(rename = "UefiTargetBootSourceOverride")]
63    #[serde(default, skip_serializing_if = "Option::is_none")]
64    pub uefi_target_boot_source_override: Option<String>,
65}
66
67impl crate::Metadata<'static> for Boot {
68    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_1.json";
69}