redfish_codegen/registries/composition/
v1_1_1.rs

1// Generated by redfish-codegen. Do not modify.
2
3use redfish_macros::IntoRedfishMessage;
4
5/// This registry defines the messages for composition related events
6#[derive(Clone, Debug, IntoRedfishMessage)]
7#[message(crate::models::message::v1_1_2::Message)]
8pub enum Composition {
9    /// This message shall be used to indicate that the `CompositionState` property within the `CompositionStatus` object of a `ResourceBlock` has changed.
10    #[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        /// The value of this argument shall contain the value of the `Id` property of the `ResourceBlock` that has changed.
16        String,
17    ),
18    /// This message shall be used to indicate that the referenced resource block is not found.
19    #[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        /// The value of this argument shall contain the value of the URI of the resource block that is not found.
25        String,
26    ),
27    /// This message shall be used to indicate that the `Id` of a referenced resource block is no longer valid.
28    #[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        /// The value of this argument shall contain the value of the `Id` property of the resource block that is no longer valid.
34        String,
35    ),
36    /// This message shall be used to indicate that the requested resources are already reserved in response to a constrained composition request.
37    #[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        /// The value of this argument shall contain the value of the `Id` property of the reservation containing the requested resources.
43        String,
44    ),
45    /// This message shall be used to indicate that the `State` property within the `Status` object of a `ResourceBlock` has changed.
46    #[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        /// The value of this argument shall contain the value of the `Id` property of the `ResourceBlock` that has changed.
52        String,
53    ),
54    /// This message shall be used to indicate that a resource block is already reserved in response to a specific composition request.
55    #[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        /// The value of this argument shall contain the value of the `Id` property of the resource block that is already reserved.
61        String,
62        /// The value of this argument shall contain the value of the `Id` property of the reservation containing the requested resource.
63        String,
64    ),
65    /// This message shall be used to indicate that the manifest provided for the `Compose` action contains a stanza with `Content` that could not be processed.
66    #[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        /// The value of this argument shall contain the value of the `RequestType` parameter of the `Compose` action.
72        String,
73        /// The value of this argument shall contain the value of the `Id` parameter of the stanza.
74        String,
75    ),
76    /// This message shall be used to indicate that entries found in the `ResourceBlocks` array within the `Links` object for a resource zone have been added or removed.
77    #[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        /// The value of this argument shall contain the value of the `Id` property of the resource zone that has changed.
83        String,
84    ),
85    /// This message shall be used to indicate that the composition request contains a `ResourceBlock` that is unable to participate in more compositions due to restrictions specified in its `CompositionStatus` property.  For example, the `ResourceBlock` has reached its composition limit specified by the `MaxCompositions` property.
86    #[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        /// The value of this argument shall contain the value of the `Id` property of the `ResourceBlock` that cannot be part of any new compositions.
92        String,
93    ),
94    /// This message shall be used to indicate that the service could not find a matching resource based on the given parameters.
95    #[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        /// This argument shall contain the schema name of the requested resource.
101        String,
102    ),
103    /// This message shall be used to indicate that the manifest contains no stanzas, or a stanza in the manifest contains no request.
104    #[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    /// This message shall be used to indicate that not all referenced resource blocks are in the same resource zone.
111    #[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    /// This message shall be used to indicate that one or more properties of a `ResourceBlock` have changed.  This message shall not be used for cases where a more specific message could be used in its place.
118    #[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        /// The value of this argument shall contain the value of the `Id` property of the `ResourceBlock` that has changed.
124        String,
125    ),
126}