redfish_codegen/models/redundancy/v1_2_6/
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    #[serde(rename = "Actions")]
14    #[serde(default, skip_serializing_if = "Option::is_none")]
15    pub actions: Option<models::redundancy::v1_2_6::Actions>,
16    /// The maximum number of members allowable for this particular redundancy group.
17    #[serde(rename = "MaxNumSupported")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub max_num_supported: Option<i64>,
20    /// The identifier for the member within the collection.
21    #[serde(rename = "MemberId")]
22    pub member_id: String,
23    /// The minimum number of members needed for this group to be redundant.
24    #[serde(rename = "MinNumNeeded")]
25    pub min_num_needed: i64,
26    #[serde(rename = "Mode")]
27    pub mode: models::redundancy::v1_2_6::RedundancyMode,
28    /// The name of the resource or array member.
29    #[serde(rename = "Name")]
30    pub name: String,
31    #[serde(rename = "Oem")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub oem: Option<models::resource::Oem>,
34    /// An indication of whether redundancy is enabled.
35    #[serde(rename = "RedundancyEnabled")]
36    #[serde(default, skip_serializing_if = "Option::is_none")]
37    pub redundancy_enabled: Option<bool>,
38    /// The links to components of this redundancy set.
39    #[serde(rename = "RedundancySet")]
40    pub redundancy_set: Vec<models::odata_v4::IdRef>,
41    #[serde(rename = "RedundancySet@odata.count")]
42    #[serde(default, skip_serializing_if = "Option::is_none")]
43    pub redundancy_set_odata_count: Option<models::odata_v4::Count>,
44    #[serde(rename = "Status")]
45    pub status: models::resource::Status,
46}
47
48impl crate::Metadata<'static> for Redundancy {
49    const JSON_SCHEMA: &'static str = "Redundancy.v1_2_6.json";
50}