redfish_codegen/registries/composition/
v1_1_1.rs1use redfish_macros::IntoRedfishMessage;
4
5#[derive(Clone, Debug, IntoRedfishMessage)]
7#[message(crate::models::message::v1_1_2::Message)]
8pub enum Composition {
9 #[message(message = "The composition status of the `ResourceBlock` '%1' has changed.")]
11 #[message(id = "Composition.1.1.1.ResourceBlockCompositionStateChanged")]
12 #[message(severity = "crate::models::resource::Health::OK")]
13 #[message(resolution = "Refresh your cached version of the `ResourceBlock` to get the updated information from the service.")]
14 ResourceBlockCompositionStateChanged(
15 String,
17 ),
18 #[message(message = "Resource block '%1' is not found.")]
20 #[message(id = "Composition.1.1.1.ResourceBlockNotFound")]
21 #[message(severity = "crate::models::resource::Health::Critical")]
22 #[message(resolution = "Remove the resource block and resubmit the request.")]
23 ResourceBlockNotFound(
24 String,
26 ),
27 #[message(message = "Resource block '%1' is not valid.")]
29 #[message(id = "Composition.1.1.1.ResourceBlockInvalid")]
30 #[message(severity = "crate::models::resource::Health::Critical")]
31 #[message(resolution = "Remove the resource block and resubmit the request.")]
32 ResourceBlockInvalid(
33 String,
35 ),
36 #[message(message = "The requested resources are reserved under reservation '%1'.")]
38 #[message(id = "Composition.1.1.1.ConstrainedResourceAlreadyReserved")]
39 #[message(severity = "crate::models::resource::Health::Critical")]
40 #[message(resolution = "Delete the reservation containing the resources and resubmit the request.")]
41 ConstrainedResourceAlreadyReserved(
42 String,
44 ),
45 #[message(message = "The state of the `ResourceBlock` '%1' has changed.")]
47 #[message(id = "Composition.1.1.1.ResourceBlockStateChanged")]
48 #[message(severity = "crate::models::resource::Health::OK")]
49 #[message(resolution = "Refresh your cached version of the `ResourceBlock` to get the updated information from the service.")]
50 ResourceBlockStateChanged(
51 String,
53 ),
54 #[message(message = "Resource block '%1' is already reserved under reservation '%2'.")]
56 #[message(id = "Composition.1.1.1.SpecifiedResourceAlreadyReserved")]
57 #[message(severity = "crate::models::resource::Health::Critical")]
58 #[message(resolution = "Delete the reservation containing the resource block or select a different resource block and resubmit the request.")]
59 SpecifiedResourceAlreadyReserved(
60 String,
62 String,
64 ),
65 #[message(message = "The provided manifest for the `Compose` action of type %1 contains a stanza with `Id` of value '%2' with a `Content` parameter that could not be processed.")]
67 #[message(id = "Composition.1.1.1.UnableToProcessStanzaRequest")]
68 #[message(severity = "crate::models::resource::Health::Critical")]
69 #[message(resolution = "Add the `Content` parameter to the stanza or remove the stanza, and resubmit the request.")]
70 UnableToProcessStanzaRequest(
71 String,
73 String,
75 ),
76 #[message(message = "The membership of resource zone '%1' has been changed.")]
78 #[message(id = "Composition.1.1.1.ResourceZoneMembershipChanged")]
79 #[message(severity = "crate::models::resource::Health::OK")]
80 #[message(resolution = "Refresh your cached version of the resource zone to get the updated information from the service.")]
81 ResourceZoneMembershipChanged(
82 String,
84 ),
85 #[message(message = "The `ResourceBlock` with Id '%1' cannot be part of any new compositions.")]
87 #[message(id = "Composition.1.1.1.ResourceBlockInUse")]
88 #[message(severity = "crate::models::resource::Health::Warning")]
89 #[message(resolution = "Remove the `ResourceBlock` from the request and resubmit the request.")]
90 ResourceBlockInUse(
91 String,
93 ),
94 #[message(message = "The requested resources of type '%1' are not available for allocation.")]
96 #[message(id = "Composition.1.1.1.NoResourceMatch")]
97 #[message(severity = "crate::models::resource::Health::Critical")]
98 #[message(resolution = "Change parameters associated with the resource, such as quantity or performance, and resubmit the request.")]
99 NoResourceMatch(
100 String,
102 ),
103 #[message(message = "The provided manifest is empty or a stanza in the manifest contains no request.")]
105 #[message(id = "Composition.1.1.1.EmptyManifest")]
106 #[message(severity = "crate::models::resource::Health::Warning")]
107 #[message(resolution = "Provide a request content for the manifest and resubmit.")]
108 EmptyManifest,
109
110 #[message(message = "The requested resource blocks span multiple resource zones.")]
112 #[message(id = "Composition.1.1.1.IncompatibleZone")]
113 #[message(severity = "crate::models::resource::Health::Critical")]
114 #[message(resolution = "Request resource blocks from the same resource zone.")]
115 IncompatibleZone,
116
117 #[message(message = "The `ResourceBlock` '%1' has changed on the service.")]
119 #[message(id = "Composition.1.1.1.ResourceBlockChanged")]
120 #[message(severity = "crate::models::resource::Health::OK")]
121 #[message(resolution = "Refresh your cached version of the `ResourceBlock` to get the updated information from the service.")]
122 ResourceBlockChanged(
123 String,
125 ),
126}