redfish_codegen/models/cable/v1_2_1/
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 downstream chassis connected to this cable.
11    #[serde(rename = "DownstreamChassis")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub downstream_chassis: Option<Vec<models::odata_v4::IdRef>>,
14    #[serde(rename = "DownstreamChassis@odata.count")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub downstream_chassis_odata_count: Option<models::odata_v4::Count>,
17    /// An array of links to the downstream ports connected to this cable.
18    #[serde(rename = "DownstreamPorts")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub downstream_ports: Option<Vec<models::odata_v4::IdRef>>,
21    #[serde(rename = "DownstreamPorts@odata.count")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub downstream_ports_odata_count: Option<models::odata_v4::Count>,
24    /// An array of links to the downstream resources connected to this cable.
25    #[serde(rename = "DownstreamResources")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub downstream_resources: Option<Vec<models::odata_v4::IdRef>>,
28    #[serde(rename = "DownstreamResources@odata.count")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub downstream_resources_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    /// An array of links to the upstream chassis connected to this cable.
35    #[serde(rename = "UpstreamChassis")]
36    #[serde(default, skip_serializing_if = "Option::is_none")]
37    pub upstream_chassis: Option<Vec<models::odata_v4::IdRef>>,
38    #[serde(rename = "UpstreamChassis@odata.count")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub upstream_chassis_odata_count: Option<models::odata_v4::Count>,
41    /// An array of links to the upstream ports connected to this cable.
42    #[serde(rename = "UpstreamPorts")]
43    #[serde(default, skip_serializing_if = "Option::is_none")]
44    pub upstream_ports: Option<Vec<models::odata_v4::IdRef>>,
45    #[serde(rename = "UpstreamPorts@odata.count")]
46    #[serde(default, skip_serializing_if = "Option::is_none")]
47    pub upstream_ports_odata_count: Option<models::odata_v4::Count>,
48    /// An array of links to the upstream resources connected to this cable.
49    #[serde(rename = "UpstreamResources")]
50    #[serde(default, skip_serializing_if = "Option::is_none")]
51    pub upstream_resources: Option<Vec<models::odata_v4::IdRef>>,
52    #[serde(rename = "UpstreamResources@odata.count")]
53    #[serde(default, skip_serializing_if = "Option::is_none")]
54    pub upstream_resources_odata_count: Option<models::odata_v4::Count>,
55}
56
57impl crate::Metadata<'static> for Links {
58    const JSON_SCHEMA: &'static str = "Cable.v1_2_1.json";
59}