redfish_codegen/models/redundancy/v1_0_10/
redundancy.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The common redundancy definition and structure used in other Redfish schemas.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Redundancy {
10    #[serde(rename = "@odata.id")]
11    #[serde(skip_deserializing)]
12    pub odata_id: models::odata_v4::Id,
13    /// The maximum number of members allowable for this particular redundancy group.
14    #[serde(rename = "MaxNumSupported")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub max_num_supported: Option<i64>,
17    /// The identifier for the member within the collection.
18    #[serde(rename = "MemberId")]
19    pub member_id: String,
20    /// The minimum number of members needed for this group to be redundant.
21    #[serde(rename = "MinNumNeeded")]
22    pub min_num_needed: i64,
23    #[serde(rename = "Mode")]
24    pub mode: models::redundancy::v1_0_10::RedundancyMode,
25    /// The name of the resource or array member.
26    #[serde(rename = "Name")]
27    pub name: String,
28    #[serde(rename = "Oem")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub oem: Option<models::resource::Oem>,
31    /// The links to components of this redundancy set.
32    #[serde(rename = "RedundancySet")]
33    pub redundancy_set: Vec<models::odata_v4::IdRef>,
34    #[serde(rename = "RedundancySet@odata.count")]
35    #[serde(default, skip_serializing_if = "Option::is_none")]
36    pub redundancy_set_odata_count: Option<models::odata_v4::Count>,
37    #[serde(rename = "Status")]
38    pub status: models::resource::Status,
39}
40
41impl crate::Metadata<'static> for Redundancy {
42    const JSON_SCHEMA: &'static str = "Redundancy.v1_0_10.json";
43}