redfish_codegen/models/redundancy/v1_4_1/
redundant_group.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The redundancy information for the devices in a redundancy group.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct RedundantGroup {
10    /// The maximum number of devices supported in this redundancy group.
11    #[serde(rename = "MaxSupportedInGroup")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub max_supported_in_group: Option<i64>,
14    /// The minimum number of devices needed for this group to be redundant.
15    #[serde(rename = "MinNeededInGroup")]
16    pub min_needed_in_group: i64,
17    /// The links to the devices included in this redundancy group.
18    #[serde(rename = "RedundancyGroup")]
19    pub redundancy_group: Vec<models::odata_v4::IdRef>,
20    #[serde(rename = "RedundancyGroup@odata.count")]
21    #[serde(default, skip_serializing_if = "Option::is_none")]
22    pub redundancy_group_odata_count: Option<models::odata_v4::Count>,
23    #[serde(rename = "RedundancyType")]
24    pub redundancy_type: models::redundancy::v1_4_1::RedundancyType,
25    #[serde(rename = "Status")]
26    pub status: models::resource::Status,
27}
28
29impl crate::Metadata<'static> for RedundantGroup {
30    const JSON_SCHEMA: &'static str = "Redundancy.v1_4_1.json";
31}