redfish_codegen/models/storage/v1_15_0/
links.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The links to other resources that are related to this resource.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Links {
10    /// An array of links to the chassis to which this storage subsystem is attached.
11    #[serde(rename = "Enclosures")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub enclosures: Option<Vec<models::odata_v4::IdRef>>,
14    #[serde(rename = "Enclosures@odata.count")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub enclosures_odata_count: Option<models::odata_v4::Count>,
17    /// The storage systems that host this storage subsystem.
18    #[serde(rename = "HostingStorageSystems")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub hosting_storage_systems: Option<Vec<models::odata_v4::IdRef>>,
21    #[serde(rename = "HostingStorageSystems@odata.count")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub hosting_storage_systems_odata_count: Option<models::odata_v4::Count>,
24    /// An array of links to the discovery subsystems that discovered this subsystem in an NVMe-oF environment.
25    #[serde(rename = "NVMeoFDiscoverySubysystems")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub nvme_of_discovery_subysystems: Option<Vec<models::odata_v4::IdRef>>,
28    #[serde(rename = "NVMeoFDiscoverySubysystems@odata.count")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub nvme_of_discovery_subysystems_odata_count: Option<models::odata_v4::Count>,
31    #[serde(rename = "Oem")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub oem: Option<models::resource::Oem>,
34    #[serde(rename = "SimpleStorage")]
35    #[serde(default, skip_serializing_if = "Option::is_none")]
36    pub simple_storage: Option<models::odata_v4::IdRef>,
37    /// An array of links to the storage services that connect to this storage subsystem.
38    #[serde(rename = "StorageServices")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub storage_services: Option<Vec<models::odata_v4::IdRef>>,
41    #[serde(rename = "StorageServices@odata.count")]
42    #[serde(default, skip_serializing_if = "Option::is_none")]
43    pub storage_services_odata_count: Option<models::odata_v4::Count>,
44}
45
46impl crate::Metadata<'static> for Links {
47    const JSON_SCHEMA: &'static str = "Storage.v1_15_0.json";
48}