redfish_codegen/models/bios/v1_2_1/
bios.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The Bios schema contains properties related to the BIOS attribute registry.  The attribute registry describes the system-specific BIOS attributes and actions for changing to BIOS settings.  Changes to the BIOS 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 BIOS settings by modifying the resource identified by the `@Redfish.Settings` term.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Bios {
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(\"#Bios.v1_2_1.Bios\".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::bios::v1_2_1::Actions>,
28    /// The resource ID of the attribute registry that has the system-specific information about a BIOS resource.
29    #[serde(rename = "AttributeRegistry")]
30    #[serde(default, skip_serializing_if = "Option::is_none")]
31    pub attribute_registry: Option<String>,
32    #[serde(rename = "Attributes")]
33    #[serde(default, skip_serializing_if = "Option::is_none")]
34    pub attributes: Option<models::bios::v1_2_1::Attributes>,
35    #[serde(rename = "Description")]
36    #[serde(default, skip_serializing_if = "Option::is_none")]
37    pub description: Option<models::resource::Description>,
38    #[serde(rename = "Id")]
39    #[serde(skip_deserializing)]
40    pub id: models::resource::Id,
41    #[serde(rename = "Links")]
42    #[serde(default, skip_serializing_if = "Option::is_none")]
43    pub links: Option<models::bios::v1_2_1::Links>,
44    #[serde(rename = "Name")]
45    #[serde(skip_deserializing)]
46    pub name: models::resource::Name,
47    #[serde(rename = "Oem")]
48    #[serde(default, skip_serializing_if = "Option::is_none")]
49    pub oem: Option<models::resource::Oem>,
50    /// An indication of whether there is a pending request to reset the BIOS attributes to default values.
51    #[serde(rename = "ResetBiosToDefaultsPending")]
52    #[serde(default, skip_serializing_if = "Option::is_none")]
53    pub reset_bios_to_defaults_pending: Option<bool>,
54}
55
56impl crate::Metadata<'static> for Bios {
57    const JSON_SCHEMA: &'static str = "Bios.v1_2_1.json";
58}