redfish_codegen/models/aggregation_source/v1_3_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    #[serde(rename = "ConnectionMethod")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub connection_method: Option<models::odata_v4::IdRef>,
13    #[serde(rename = "Oem")]
14    #[serde(default, skip_serializing_if = "Option::is_none")]
15    pub oem: Option<models::resource::Oem>,
16    /// An array links to the resources added to the service through this aggregation source.  It is recommended that this be the minimal number of properties needed to find the resources that would be lost when the aggregation source is deleted.
17    #[serde(rename = "ResourcesAccessed")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub resources_accessed: Option<Vec<models::odata_v4::IdRef>>,
20    #[serde(rename = "ResourcesAccessed@odata.count")]
21    #[serde(default, skip_serializing_if = "Option::is_none")]
22    pub resources_accessed_odata_count: Option<models::odata_v4::Count>,
23}
24
25impl crate::Metadata<'static> for Links {
26    const JSON_SCHEMA: &'static str = "AggregationSource.v1_3_1.json";
27}