redfish_codegen/models/composition_service/v1_2_1/compose_request_type.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum ComposeRequestType {
6 /// This value shall indicate that the request is to preview the outcome of the operations specified by the manifest to show what the service will do based on the contents of the request, and not affect any resources within the service.
7 Preview,
8 /// This value shall indicate that the request is to preview the outcome of the operations specified by the manifest to show what the service will do based on the contents of the request. Resources that would have been affected by this request shall be marked as reserved, but otherwise shall not be affected.
9 PreviewReserve,
10 /// This value shall indicate that the request is to apply the requested operations specified by the manifest and modify resources as needed.
11 Apply,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for ComposeRequestType {
16 fn default() -> ComposeRequestType {
17 ComposeRequestType::Preview
18 }
19}
20
21impl crate::Metadata<'static> for ComposeRequestType {
22 const JSON_SCHEMA: &'static str = "CompositionService.v1_2_1.json";
23}