redfish_codegen/models/capacity/v1_0_4/
capacity_info.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The capacity of specific data type in a data store.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct CapacityInfo {
9    /// The number of bytes currently allocated by the storage system in this data store for this data type.
10    #[serde(rename = "AllocatedBytes")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub allocated_bytes: Option<i64>,
13    /// The number of bytes consumed in this data store for this data type.
14    #[serde(rename = "ConsumedBytes")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub consumed_bytes: Option<i64>,
17    /// The number of bytes the storage system guarantees can be allocated in this data store for this data type.
18    #[serde(rename = "GuaranteedBytes")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub guaranteed_bytes: Option<i64>,
21    /// The maximum number of bytes that can be allocated in this data store for this data type.
22    #[serde(rename = "ProvisionedBytes")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub provisioned_bytes: Option<i64>,
25}
26
27impl crate::Metadata<'static> for CapacityInfo {
28    const JSON_SCHEMA: &'static str = "Capacity.v1_0_4.json";
29}