redfish_codegen/models/storage/v1_1_10/
storage_controller.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The StorageController schema describes a storage controller and its properties.  A storage controller represents a physical or virtual storage device that produces volumes.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct StorageController {
10    #[serde(rename = "@odata.id")]
11    #[serde(skip_deserializing)]
12    pub odata_id: models::odata_v4::Id,
13    /// The user-assigned asset tag for this storage controller.
14    #[serde(rename = "AssetTag")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub asset_tag: Option<String>,
17    /// The firmware version of this storage controller.
18    #[serde(rename = "FirmwareVersion")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub firmware_version: Option<String>,
21    /// The durable names for the storage controller.
22    #[serde(rename = "Identifiers")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub identifiers: Option<Vec<models::resource::Identifier>>,
25    #[serde(rename = "Links")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub links: Option<models::storage::v1_1_10::StorageControllerLinks>,
28    /// The manufacturer of this storage controller.
29    #[serde(rename = "Manufacturer")]
30    #[serde(default, skip_serializing_if = "Option::is_none")]
31    pub manufacturer: Option<String>,
32    /// The identifier for the member within the collection.
33    #[serde(rename = "MemberId")]
34    pub member_id: String,
35    /// The model number for the storage controller.
36    #[serde(rename = "Model")]
37    #[serde(default, skip_serializing_if = "Option::is_none")]
38    pub model: Option<String>,
39    #[serde(rename = "Oem")]
40    #[serde(default, skip_serializing_if = "Option::is_none")]
41    pub oem: Option<models::resource::Oem>,
42    /// The part number for this storage controller.
43    #[serde(rename = "PartNumber")]
44    #[serde(default, skip_serializing_if = "Option::is_none")]
45    pub part_number: Option<String>,
46    /// The SKU for this storage controller.
47    #[serde(rename = "SKU")]
48    #[serde(default, skip_serializing_if = "Option::is_none")]
49    pub sku: Option<String>,
50    /// The serial number for this storage controller.
51    #[serde(rename = "SerialNumber")]
52    #[serde(default, skip_serializing_if = "Option::is_none")]
53    pub serial_number: Option<String>,
54    /// The maximum speed of the storage controller's device interface.
55    #[serde(rename = "SpeedGbps")]
56    #[serde(default, skip_serializing_if = "Option::is_none")]
57    pub speed_gbps: Option<f64>,
58    #[serde(rename = "Status")]
59    #[serde(default, skip_serializing_if = "Option::is_none")]
60    pub status: Option<models::resource::Status>,
61    /// The supported set of protocols for communicating to this storage controller.
62    #[serde(rename = "SupportedControllerProtocols")]
63    #[serde(default, skip_serializing_if = "Option::is_none")]
64    pub supported_controller_protocols: Option<Vec<models::protocol::Protocol>>,
65    /// The protocols that the storage controller can use to communicate with attached devices.
66    #[serde(rename = "SupportedDeviceProtocols")]
67    #[serde(default, skip_serializing_if = "Option::is_none")]
68    pub supported_device_protocols: Option<Vec<models::protocol::Protocol>>,
69}
70
71impl crate::Metadata<'static> for StorageController {
72    const JSON_SCHEMA: &'static str = "Storage.v1_1_10.json";
73}