redfish_codegen/models/aggregation_source/v1_3_1/
aggregation_source.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The AggregationSource schema is used to represent the source of information for a subset of the resources provided by a Redfish service.  It can be thought of as a provider of information.  As such, most such interfaces have requirements to support the gathering of information like address and account used to access the information.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct AggregationSource {
10    #[serde(rename = "@odata.context")]
11    #[serde(skip_deserializing)]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub odata_context: Option<models::odata_v4::Context>,
14    #[serde(rename = "@odata.etag")]
15    #[serde(skip_deserializing)]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub odata_etag: Option<models::odata_v4::Etag>,
18    #[serde(rename = "@odata.id")]
19    #[serde(skip_deserializing)]
20    pub odata_id: models::odata_v4::Id,
21    #[serde(rename = "@odata.type")]
22    #[serde(skip_deserializing)]
23    #[derivative(Default(value = "models::odata_v4::Type(\"#AggregationSource.v1_3_1.AggregationSource\".to_string())"))]
24    pub odata_type: models::odata_v4::Type,
25    #[serde(rename = "Actions")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub actions: Option<models::aggregation_source::v1_3_1::Actions>,
28    #[serde(rename = "AggregationType")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub aggregation_type: Option<models::aggregation_source::v1_3_1::AggregationType>,
31    #[serde(rename = "Description")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub description: Option<models::resource::Description>,
34    /// The URI of the system to be accessed.
35    #[serde(rename = "HostName")]
36    #[serde(default, skip_serializing_if = "Option::is_none")]
37    pub host_name: Option<String>,
38    #[serde(rename = "Id")]
39    #[serde(skip_deserializing)]
40    pub id: models::resource::Id,
41    #[serde(rename = "Links")]
42    #[serde(default, skip_serializing_if = "Option::is_none")]
43    pub links: Option<models::aggregation_source::v1_3_1::Links>,
44    #[serde(rename = "Name")]
45    #[serde(skip_deserializing)]
46    pub name: models::resource::Name,
47    #[serde(rename = "Oem")]
48    #[serde(default, skip_serializing_if = "Option::is_none")]
49    pub oem: Option<models::resource::Oem>,
50    /// The password for accessing the aggregation source.  The value is `null` in responses.
51    #[serde(rename = "Password")]
52    #[serde(default, skip_serializing_if = "Option::is_none")]
53    pub password: Option<String>,
54    #[serde(rename = "SNMP")]
55    #[serde(default, skip_serializing_if = "Option::is_none")]
56    pub snmp: Option<models::aggregation_source::v1_3_1::SNMPSettings>,
57    #[serde(rename = "SSHSettings")]
58    #[serde(default, skip_serializing_if = "Option::is_none")]
59    pub ssh_settings: Option<models::aggregation_source::v1_3_1::SSHSettingsType>,
60    #[serde(rename = "Status")]
61    #[serde(default, skip_serializing_if = "Option::is_none")]
62    pub status: Option<models::resource::Status>,
63    /// The user name for accessing the aggregation source.
64    #[serde(rename = "UserName")]
65    #[serde(default, skip_serializing_if = "Option::is_none")]
66    pub user_name: Option<String>,
67}
68
69impl crate::Metadata<'static> for AggregationSource {
70    const JSON_SCHEMA: &'static str = "AggregationSource.v1_3_1.json";
71}