redfish_codegen/models/assembly/v1_4_0/
assembly_data.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 AssemblyData {
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::assembly::v1_4_0::AssemblyDataActions>,
15    /// The URI at which to access an image of the assembly information.
16    #[serde(rename = "BinaryDataURI")]
17    #[serde(default, skip_serializing_if = "Option::is_none")]
18    pub binary_data_uri: Option<String>,
19    /// The description of the assembly.
20    #[serde(rename = "Description")]
21    #[serde(default, skip_serializing_if = "Option::is_none")]
22    pub description: Option<String>,
23    /// The engineering change level of the assembly.
24    #[serde(rename = "EngineeringChangeLevel")]
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub engineering_change_level: Option<String>,
27    #[serde(rename = "Location")]
28    #[serde(default, skip_serializing_if = "Option::is_none")]
29    pub location: Option<models::resource::Location>,
30    /// An indicator allowing an operator to physically locate this resource.
31    #[serde(rename = "LocationIndicatorActive")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub location_indicator_active: Option<bool>,
34    /// The unique identifier for the member within an array.
35    #[serde(rename = "MemberId")]
36    pub member_id: String,
37    /// The model number of the assembly.
38    #[serde(rename = "Model")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub model: Option<String>,
41    /// The name of the assembly.
42    #[serde(rename = "Name")]
43    #[serde(default, skip_serializing_if = "Option::is_none")]
44    pub name: Option<String>,
45    #[serde(rename = "Oem")]
46    #[serde(default, skip_serializing_if = "Option::is_none")]
47    pub oem: Option<models::resource::Oem>,
48    /// The part number of the assembly.
49    #[serde(rename = "PartNumber")]
50    #[serde(default, skip_serializing_if = "Option::is_none")]
51    pub part_number: Option<String>,
52    #[serde(rename = "PhysicalContext")]
53    #[serde(default, skip_serializing_if = "Option::is_none")]
54    pub physical_context: Option<models::physical_context::PhysicalContext>,
55    /// The producer or manufacturer of the assembly.
56    #[serde(rename = "Producer")]
57    #[serde(default, skip_serializing_if = "Option::is_none")]
58    pub producer: Option<String>,
59    /// The production date of the assembly.
60    #[serde(rename = "ProductionDate")]
61    #[serde(default, skip_serializing_if = "Option::is_none")]
62    pub production_date: Option<String>,
63    /// An indication of whether the component associated this assembly can be independently replaced as allowed by the vendor's replacement policy.
64    #[serde(rename = "Replaceable")]
65    #[serde(default, skip_serializing_if = "Option::is_none")]
66    pub replaceable: Option<bool>,
67    /// The SKU of the assembly.
68    #[serde(rename = "SKU")]
69    #[serde(default, skip_serializing_if = "Option::is_none")]
70    pub sku: Option<String>,
71    /// The serial number of the assembly.
72    #[serde(rename = "SerialNumber")]
73    #[serde(default, skip_serializing_if = "Option::is_none")]
74    pub serial_number: Option<String>,
75    /// The spare part number of the assembly.
76    #[serde(rename = "SparePartNumber")]
77    #[serde(default, skip_serializing_if = "Option::is_none")]
78    pub spare_part_number: Option<String>,
79    #[serde(rename = "Status")]
80    #[serde(default, skip_serializing_if = "Option::is_none")]
81    pub status: Option<models::resource::Status>,
82    /// The vendor of the assembly.
83    #[serde(rename = "Vendor")]
84    #[serde(default, skip_serializing_if = "Option::is_none")]
85    pub vendor: Option<String>,
86    /// The hardware version of the assembly.
87    #[serde(rename = "Version")]
88    #[serde(default, skip_serializing_if = "Option::is_none")]
89    pub version: Option<String>,
90}
91
92impl crate::Metadata<'static> for AssemblyData {
93    const JSON_SCHEMA: &'static str = "Assembly.v1_4_0.json";
94}