redfish_codegen/models/storage/v1_0_11/
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    /// The manufacturer of this storage controller.
26    #[serde(rename = "Manufacturer")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub manufacturer: Option<String>,
29    /// The identifier for the member within the collection.
30    #[serde(rename = "MemberId")]
31    pub member_id: String,
32    /// The model number for the storage controller.
33    #[serde(rename = "Model")]
34    #[serde(default, skip_serializing_if = "Option::is_none")]
35    pub model: Option<String>,
36    #[serde(rename = "Oem")]
37    #[serde(default, skip_serializing_if = "Option::is_none")]
38    pub oem: Option<models::resource::Oem>,
39    /// The part number for this storage controller.
40    #[serde(rename = "PartNumber")]
41    #[serde(default, skip_serializing_if = "Option::is_none")]
42    pub part_number: Option<String>,
43    /// The SKU for this storage controller.
44    #[serde(rename = "SKU")]
45    #[serde(default, skip_serializing_if = "Option::is_none")]
46    pub sku: Option<String>,
47    /// The serial number for this storage controller.
48    #[serde(rename = "SerialNumber")]
49    #[serde(default, skip_serializing_if = "Option::is_none")]
50    pub serial_number: Option<String>,
51    /// The maximum speed of the storage controller's device interface.
52    #[serde(rename = "SpeedGbps")]
53    #[serde(default, skip_serializing_if = "Option::is_none")]
54    pub speed_gbps: Option<f64>,
55    #[serde(rename = "Status")]
56    #[serde(default, skip_serializing_if = "Option::is_none")]
57    pub status: Option<models::resource::Status>,
58    /// The supported set of protocols for communicating to this storage controller.
59    #[serde(rename = "SupportedControllerProtocols")]
60    #[serde(default, skip_serializing_if = "Option::is_none")]
61    pub supported_controller_protocols: Option<Vec<models::protocol::Protocol>>,
62    /// The protocols that the storage controller can use to communicate with attached devices.
63    #[serde(rename = "SupportedDeviceProtocols")]
64    #[serde(default, skip_serializing_if = "Option::is_none")]
65    pub supported_device_protocols: Option<Vec<models::protocol::Protocol>>,
66}
67
68impl crate::Metadata<'static> for StorageController {
69    const JSON_SCHEMA: &'static str = "Storage.v1_0_11.json";
70}