redfish_codegen/models/drive/v1_17_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    #[serde(rename = "ActiveSoftwareImage")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub active_software_image: Option<models::odata_v4::IdRef>,
13    #[serde(rename = "Chassis")]
14    #[serde(default, skip_serializing_if = "Option::is_none")]
15    pub chassis: Option<models::odata_v4::IdRef>,
16    /// An array of links to the endpoints that connect to this drive.
17    #[serde(rename = "Endpoints")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub endpoints: Option<Vec<models::odata_v4::IdRef>>,
20    #[serde(rename = "Endpoints@odata.count")]
21    #[serde(default, skip_serializing_if = "Option::is_none")]
22    pub endpoints_odata_count: Option<models::odata_v4::Count>,
23    /// An array of links to the network device functions that provide network connectivity for this drive.
24    #[serde(rename = "NetworkDeviceFunctions")]
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub network_device_functions: Option<Vec<models::odata_v4::IdRef>>,
27    #[serde(rename = "NetworkDeviceFunctions@odata.count")]
28    #[serde(default, skip_serializing_if = "Option::is_none")]
29    pub network_device_functions_odata_count: Option<models::odata_v4::Count>,
30    #[serde(rename = "Oem")]
31    #[serde(default, skip_serializing_if = "Option::is_none")]
32    pub oem: Option<models::resource::Oem>,
33    /// An array of links to the PCIe functions that the drive produces.
34    #[serde(rename = "PCIeFunctions")]
35    #[serde(default, skip_serializing_if = "Option::is_none")]
36    pub pcie_functions: Option<Vec<models::odata_v4::IdRef>>,
37    #[serde(rename = "PCIeFunctions@odata.count")]
38    #[serde(default, skip_serializing_if = "Option::is_none")]
39    pub pcie_functions_odata_count: Option<models::odata_v4::Count>,
40    /// The images that are associated with this drive.
41    #[serde(rename = "SoftwareImages")]
42    #[serde(default, skip_serializing_if = "Option::is_none")]
43    pub software_images: Option<Vec<models::odata_v4::IdRef>>,
44    #[serde(rename = "SoftwareImages@odata.count")]
45    #[serde(default, skip_serializing_if = "Option::is_none")]
46    pub software_images_odata_count: Option<models::odata_v4::Count>,
47    #[serde(rename = "Storage")]
48    #[serde(default, skip_serializing_if = "Option::is_none")]
49    pub storage: Option<models::odata_v4::IdRef>,
50    /// An array of links to the storage pools to which this drive belongs.
51    #[serde(rename = "StoragePools")]
52    #[serde(default, skip_serializing_if = "Option::is_none")]
53    pub storage_pools: Option<Vec<models::odata_v4::IdRef>>,
54    #[serde(rename = "StoragePools@odata.count")]
55    #[serde(default, skip_serializing_if = "Option::is_none")]
56    pub storage_pools_odata_count: Option<models::odata_v4::Count>,
57    /// An array of links to the volumes that this drive either wholly or only partially contains.
58    #[serde(rename = "Volumes")]
59    #[serde(default, skip_serializing_if = "Option::is_none")]
60    pub volumes: Option<Vec<models::odata_v4::IdRef>>,
61    #[serde(rename = "Volumes@odata.count")]
62    #[serde(default, skip_serializing_if = "Option::is_none")]
63    pub volumes_odata_count: Option<models::odata_v4::Count>,
64}
65
66impl crate::Metadata<'static> for Links {
67    const JSON_SCHEMA: &'static str = "Drive.v1_17_0.json";
68}