redfish_codegen/models/port/v1_9_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 endpoints at the other end of the link.
11    #[serde(rename = "AssociatedEndpoints")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub associated_endpoints: Option<Vec<models::odata_v4::IdRef>>,
14    #[serde(rename = "AssociatedEndpoints@odata.count")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub associated_endpoints_odata_count: Option<models::odata_v4::Count>,
17    /// An array of links to the cables connected to this port.
18    #[serde(rename = "Cables")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub cables: Option<Vec<models::odata_v4::IdRef>>,
21    #[serde(rename = "Cables@odata.count")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub cables_odata_count: Option<models::odata_v4::Count>,
24    /// An array of links to the remote device ports at the other end of the link.
25    #[serde(rename = "ConnectedPorts")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub connected_ports: Option<Vec<models::odata_v4::IdRef>>,
28    #[serde(rename = "ConnectedPorts@odata.count")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub connected_ports_odata_count: Option<models::odata_v4::Count>,
31    /// An array of links to the switch ports at the other end of the link.
32    #[serde(rename = "ConnectedSwitchPorts")]
33    #[serde(default, skip_serializing_if = "Option::is_none")]
34    pub connected_switch_ports: Option<Vec<models::odata_v4::IdRef>>,
35    #[serde(rename = "ConnectedSwitchPorts@odata.count")]
36    #[serde(default, skip_serializing_if = "Option::is_none")]
37    pub connected_switch_ports_odata_count: Option<models::odata_v4::Count>,
38    /// An array of links to the switches at the other end of the link.
39    #[serde(rename = "ConnectedSwitches")]
40    #[serde(default, skip_serializing_if = "Option::is_none")]
41    pub connected_switches: Option<Vec<models::odata_v4::IdRef>>,
42    #[serde(rename = "ConnectedSwitches@odata.count")]
43    #[serde(default, skip_serializing_if = "Option::is_none")]
44    pub connected_switches_odata_count: Option<models::odata_v4::Count>,
45    /// The links to the Ethernet interfaces this port provides.
46    #[serde(rename = "EthernetInterfaces")]
47    #[serde(default, skip_serializing_if = "Option::is_none")]
48    pub ethernet_interfaces: Option<Vec<models::odata_v4::IdRef>>,
49    #[serde(rename = "EthernetInterfaces@odata.count")]
50    #[serde(default, skip_serializing_if = "Option::is_none")]
51    pub ethernet_interfaces_odata_count: Option<models::odata_v4::Count>,
52    #[serde(rename = "Oem")]
53    #[serde(default, skip_serializing_if = "Option::is_none")]
54    pub oem: Option<models::resource::Oem>,
55}
56
57impl crate::Metadata<'static> for Links {
58    const JSON_SCHEMA: &'static str = "Port.v1_9_0.json";
59}