redfish_codegen/models/resource_block/v1_4_1/composition_state.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum CompositionState {
6 /// Intermediate state indicating composition is in progress.
7 Composing,
8 /// The resource block is currently participating in one or more compositions, and is available to use in more compositions. Added in version v1_1_0.
9 ComposedAndAvailable,
10 /// Final successful state of a resource block that has participated in composition.
11 Composed,
12 /// The resource block is free and can participate in composition.
13 Unused,
14 /// The final composition resulted in failure and manual intervention might be required to fix it.
15 Failed,
16 /// The resource block has been made unavailable by the service, such as due to maintenance being performed on the resource block. Added in version v1_2_0.
17 Unavailable,
18}
19
20#[allow(clippy::derivable_impls)]
21impl Default for CompositionState {
22 fn default() -> CompositionState {
23 CompositionState::Composing
24 }
25}
26
27impl crate::Metadata<'static> for CompositionState {
28 const JSON_SCHEMA: &'static str = "ResourceBlock.v1_4_1.json";
29}