redfish_codegen/models/volume/v1_9_0/
change_raid_layout_request_body.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// Request system change the RAID layout of the volume.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct ChangeRAIDLayoutRequestBody {
10    /// An array of the drives to be used by the volume.
11    #[serde(rename = "Drives")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub drives: Option<Vec<models::odata_v4::IdRef>>,
14    /// The requested number of media elements used per span in the secondary RAID for a hierarchical RAID type.
15    #[serde(rename = "MediaSpanCount")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub media_span_count: Option<i64>,
18    #[serde(rename = "RAIDType")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub raid_type: Option<models::volume::RAIDType>,
21    /// The number of blocks (bytes) requested for new strip size.
22    #[serde(rename = "StripSizeBytes")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub strip_size_bytes: Option<i64>,
25}
26
27impl crate::Metadata<'static> for ChangeRAIDLayoutRequestBody {
28    const JSON_SCHEMA: &'static str = "Volume.v1_9_0.json";
29}