redfish_codegen/models/redundancy/v1_1_8/
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_1_8::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    /// An indication of whether redundancy is enabled.
32    #[serde(rename = "RedundancyEnabled")]
33    #[serde(default, skip_serializing_if = "Option::is_none")]
34    pub redundancy_enabled: Option<bool>,
35    /// The links to components of this redundancy set.
36    #[serde(rename = "RedundancySet")]
37    pub redundancy_set: Vec<models::odata_v4::IdRef>,
38    #[serde(rename = "RedundancySet@odata.count")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub redundancy_set_odata_count: Option<models::odata_v4::Count>,
41    #[serde(rename = "Status")]
42    pub status: models::resource::Status,
43}
44
45impl crate::Metadata<'static> for Redundancy {
46    const JSON_SCHEMA: &'static str = "Redundancy.v1_1_8.json";
47}