redfish_codegen/models/network_device_function/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 endpoints associated with this network device function.
11    #[serde(rename = "Endpoints")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub endpoints: Option<Vec<models::odata_v4::IdRef>>,
14    #[serde(rename = "Endpoints@odata.count")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub endpoints_odata_count: Option<models::odata_v4::Count>,
17    #[serde(rename = "EthernetInterface")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub ethernet_interface: Option<models::odata_v4::IdRef>,
20    /// The links to Ethernet interfaces that were created when one of the network device function VLANs is represented as a virtual NIC for the purpose of showing the IP address associated with that VLAN.
21    #[serde(rename = "EthernetInterfaces")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub ethernet_interfaces: Option<Vec<models::odata_v4::IdRef>>,
24    #[serde(rename = "EthernetInterfaces@odata.count")]
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub ethernet_interfaces_odata_count: Option<models::odata_v4::Count>,
27    #[serde(rename = "Oem")]
28    #[serde(default, skip_serializing_if = "Option::is_none")]
29    pub oem: Option<models::resource::Oem>,
30    /// The processors that perform offload computation for this network function, such as with a SmartNIC.
31    #[serde(rename = "OffloadProcessors")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub offload_processors: Option<Vec<models::odata_v4::IdRef>>,
34    #[serde(rename = "OffloadProcessors@odata.count")]
35    #[serde(default, skip_serializing_if = "Option::is_none")]
36    pub offload_processors_odata_count: Option<models::odata_v4::Count>,
37    #[serde(rename = "OffloadSystem")]
38    #[serde(default, skip_serializing_if = "Option::is_none")]
39    pub offload_system: Option<models::odata_v4::IdRef>,
40    #[serde(rename = "PCIeFunction")]
41    #[serde(default, skip_serializing_if = "Option::is_none")]
42    pub pcie_function: Option<models::odata_v4::IdRef>,
43    #[serde(rename = "PhysicalNetworkPortAssignment")]
44    #[serde(default, skip_serializing_if = "Option::is_none")]
45    pub physical_network_port_assignment: Option<models::odata_v4::IdRef>,
46    #[serde(rename = "PhysicalPortAssignment")]
47    #[serde(default, skip_serializing_if = "Option::is_none")]
48    pub physical_port_assignment: Option<models::odata_v4::IdRef>,
49}
50
51impl crate::Metadata<'static> for Links {
52    const JSON_SCHEMA: &'static str = "NetworkDeviceFunction.v1_9_0.json";
53}