xref: /openbmc/bmcweb/features/redfish/include/registries/composition_message_registry.hpp (revision 56b81992ba8a8e644f2e75251a94df4f4d0d0880)
1665e7602SGunnar Mills #pragma once
2665e7602SGunnar Mills /****************************************************************
3665e7602SGunnar Mills  *                 READ THIS WARNING FIRST
4665e7602SGunnar Mills  * This is an auto-generated header which contains definitions
5665e7602SGunnar Mills  * for Redfish DMTF defined messages.
6665e7602SGunnar Mills  * DO NOT modify this registry outside of running the
7665e7602SGunnar Mills  * parse_registries.py script.  The definitions contained within
8665e7602SGunnar Mills  * this file are owned by DMTF.  Any modifications to these files
9665e7602SGunnar Mills  * should be first pushed to the relevant registry in the DMTF
10665e7602SGunnar Mills  * github organization.
11665e7602SGunnar Mills  ***************************************************************/
12665e7602SGunnar Mills #include "registries.hpp"
13665e7602SGunnar Mills 
14665e7602SGunnar Mills #include <array>
15665e7602SGunnar Mills 
16665e7602SGunnar Mills // clang-format off
17665e7602SGunnar Mills 
18665e7602SGunnar Mills namespace redfish::registries::composition
19665e7602SGunnar Mills {
20665e7602SGunnar Mills const Header header = {
21665e7602SGunnar Mills     "Copyright 2019-2023 DMTF. All rights reserved.",
22665e7602SGunnar Mills     "#MessageRegistry.v1_6_2.MessageRegistry",
23*56b81992SEd Tanous     1,
24*56b81992SEd Tanous     1,
25*56b81992SEd Tanous     2,
26665e7602SGunnar Mills     "Composition Message Registry",
27665e7602SGunnar Mills     "en",
28665e7602SGunnar Mills     "This registry defines the messages for composition related events.",
29665e7602SGunnar Mills     "Composition",
30665e7602SGunnar Mills     "DMTF",
31665e7602SGunnar Mills };
32665e7602SGunnar Mills constexpr const char* url =
33665e7602SGunnar Mills     "https://redfish.dmtf.org/registries/Composition.1.1.2.json";
34665e7602SGunnar Mills 
35665e7602SGunnar Mills constexpr std::array registry =
36665e7602SGunnar Mills {
37665e7602SGunnar Mills     MessageEntry{
38665e7602SGunnar Mills         "ConstrainedResourceAlreadyReserved",
39665e7602SGunnar Mills         {
40665e7602SGunnar Mills             "Indicates that the requested resources are already reserved in response to a constrained composition request.",
41665e7602SGunnar Mills             "The requested resources are reserved under reservation '%1'.",
42665e7602SGunnar Mills             "Critical",
43665e7602SGunnar Mills             1,
44665e7602SGunnar Mills             {
45665e7602SGunnar Mills                 "string",
46665e7602SGunnar Mills             },
47665e7602SGunnar Mills             "Delete the reservation containing the resources and resubmit the request.",
48665e7602SGunnar Mills         }},
49665e7602SGunnar Mills     MessageEntry{
50665e7602SGunnar Mills         "EmptyManifest",
51665e7602SGunnar Mills         {
52665e7602SGunnar Mills             "Indicates that the manifest contains no stanzas or that a stanza in the manifest contains no request.",
53665e7602SGunnar Mills             "The provided manifest is empty or a stanza in the manifest contains no request.",
54665e7602SGunnar Mills             "Warning",
55665e7602SGunnar Mills             0,
56665e7602SGunnar Mills             {},
57665e7602SGunnar Mills             "Provide a request content for the manifest and resubmit.",
58665e7602SGunnar Mills         }},
59665e7602SGunnar Mills     MessageEntry{
60665e7602SGunnar Mills         "IncompatibleZone",
61665e7602SGunnar Mills         {
62665e7602SGunnar Mills             "Indicates that not all referenced resource blocks are in the same resource zone.",
63665e7602SGunnar Mills             "The requested resource blocks span multiple resource zones.",
64665e7602SGunnar Mills             "Critical",
65665e7602SGunnar Mills             0,
66665e7602SGunnar Mills             {},
67665e7602SGunnar Mills             "Request resource blocks from the same resource zone.",
68665e7602SGunnar Mills         }},
69665e7602SGunnar Mills     MessageEntry{
70665e7602SGunnar Mills         "NoResourceMatch",
71665e7602SGunnar Mills         {
72665e7602SGunnar Mills             "Indicates that the service could not find a matching resource based on the given parameters.",
73665e7602SGunnar Mills             "The requested resources of type '%1' are not available for allocation.",
74665e7602SGunnar Mills             "Critical",
75665e7602SGunnar Mills             1,
76665e7602SGunnar Mills             {
77665e7602SGunnar Mills                 "string",
78665e7602SGunnar Mills             },
79665e7602SGunnar Mills             "Change parameters associated with the resource, such as quantity or performance, and resubmit the request.",
80665e7602SGunnar Mills         }},
81665e7602SGunnar Mills     MessageEntry{
82665e7602SGunnar Mills         "ResourceBlockChanged",
83665e7602SGunnar Mills         {
84665e7602SGunnar Mills             "Indicates that a resource block has changed.  This is not used whenever there is another event message for that specific change, such as when only the state has changed.",
85665e7602SGunnar Mills             "Resource block '%1' has changed on the service.",
86665e7602SGunnar Mills             "OK",
87665e7602SGunnar Mills             1,
88665e7602SGunnar Mills             {
89665e7602SGunnar Mills                 "string",
90665e7602SGunnar Mills             },
91665e7602SGunnar Mills             "None.",
92665e7602SGunnar Mills         }},
93665e7602SGunnar Mills     MessageEntry{
94665e7602SGunnar Mills         "ResourceBlockCompositionStateChanged",
95665e7602SGunnar Mills         {
96665e7602SGunnar Mills             "Indicates that the composition state of a resource block has changed, specifically the value of the `CompositionState` property within `CompositionStatus`.",
97665e7602SGunnar Mills             "The composition status of the resource block '%1' has changed.",
98665e7602SGunnar Mills             "OK",
99665e7602SGunnar Mills             1,
100665e7602SGunnar Mills             {
101665e7602SGunnar Mills                 "string",
102665e7602SGunnar Mills             },
103665e7602SGunnar Mills             "None.",
104665e7602SGunnar Mills         }},
105665e7602SGunnar Mills     MessageEntry{
106665e7602SGunnar Mills         "ResourceBlockInUse",
107665e7602SGunnar Mills         {
108665e7602SGunnar Mills             "Indicates that the composition request contains a resource block that is unable to participate in more compositions.",
109665e7602SGunnar Mills             "Resource block '%1' cannot be part of any new compositions.",
110665e7602SGunnar Mills             "Warning",
111665e7602SGunnar Mills             1,
112665e7602SGunnar Mills             {
113665e7602SGunnar Mills                 "string",
114665e7602SGunnar Mills             },
115665e7602SGunnar Mills             "Remove the resource block from the request and resubmit the request.",
116665e7602SGunnar Mills         }},
117665e7602SGunnar Mills     MessageEntry{
118665e7602SGunnar Mills         "ResourceBlockInvalid",
119665e7602SGunnar Mills         {
120665e7602SGunnar Mills             "Indicates that the `Id` of a referenced resource block is no longer valid.",
121665e7602SGunnar Mills             "Resource block '%1' is not valid.",
122665e7602SGunnar Mills             "Critical",
123665e7602SGunnar Mills             1,
124665e7602SGunnar Mills             {
125665e7602SGunnar Mills                 "string",
126665e7602SGunnar Mills             },
127665e7602SGunnar Mills             "Remove the resource block and resubmit the request.",
128665e7602SGunnar Mills         }},
129665e7602SGunnar Mills     MessageEntry{
130665e7602SGunnar Mills         "ResourceBlockNotFound",
131665e7602SGunnar Mills         {
132665e7602SGunnar Mills             "Indicates that the referenced resource block was not found.",
133665e7602SGunnar Mills             "Resource block '%1' was not found.",
134665e7602SGunnar Mills             "Critical",
135665e7602SGunnar Mills             1,
136665e7602SGunnar Mills             {
137665e7602SGunnar Mills                 "string",
138665e7602SGunnar Mills             },
139665e7602SGunnar Mills             "Remove the resource block and resubmit the request.",
140665e7602SGunnar Mills         }},
141665e7602SGunnar Mills     MessageEntry{
142665e7602SGunnar Mills         "ResourceBlockStateChanged",
143665e7602SGunnar Mills         {
144665e7602SGunnar Mills             "Indicates that the state of a resource block has changed, specifically the value of the `State` property within `Status`.",
145665e7602SGunnar Mills             "The state of resource block '%1' has changed.",
146665e7602SGunnar Mills             "OK",
147665e7602SGunnar Mills             1,
148665e7602SGunnar Mills             {
149665e7602SGunnar Mills                 "string",
150665e7602SGunnar Mills             },
151665e7602SGunnar Mills             "None.",
152665e7602SGunnar Mills         }},
153665e7602SGunnar Mills     MessageEntry{
154665e7602SGunnar Mills         "ResourceZoneMembershipChanged",
155665e7602SGunnar Mills         {
156665e7602SGunnar Mills             "Indicates that the membership of a resource zone has changed due to resource blocks being added or removed from the resource zone.",
157665e7602SGunnar Mills             "The membership of resource zone '%1' has been changed.",
158665e7602SGunnar Mills             "OK",
159665e7602SGunnar Mills             1,
160665e7602SGunnar Mills             {
161665e7602SGunnar Mills                 "string",
162665e7602SGunnar Mills             },
163665e7602SGunnar Mills             "None.",
164665e7602SGunnar Mills         }},
165665e7602SGunnar Mills     MessageEntry{
166665e7602SGunnar Mills         "SpecifiedResourceAlreadyReserved",
167665e7602SGunnar Mills         {
168665e7602SGunnar Mills             "Indicates that a resource block is already reserved in response to a specific composition request.",
169665e7602SGunnar Mills             "Resource block '%1' is already reserved under reservation '%2'.",
170665e7602SGunnar Mills             "Critical",
171665e7602SGunnar Mills             2,
172665e7602SGunnar Mills             {
173665e7602SGunnar Mills                 "string",
174665e7602SGunnar Mills                 "string",
175665e7602SGunnar Mills             },
176665e7602SGunnar Mills             "Delete the reservation containing the resource block or select a different resource block and resubmit the request.",
177665e7602SGunnar Mills         }},
178665e7602SGunnar Mills     MessageEntry{
179665e7602SGunnar Mills         "UnableToProcessStanzaRequest",
180665e7602SGunnar Mills         {
181665e7602SGunnar Mills             "Indicates that the manifest provided for the `Compose` action contains a stanza with `Content` that could not be processed.",
182665e7602SGunnar Mills             "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.",
183665e7602SGunnar Mills             "Critical",
184665e7602SGunnar Mills             2,
185665e7602SGunnar Mills             {
186665e7602SGunnar Mills                 "string",
187665e7602SGunnar Mills                 "string",
188665e7602SGunnar Mills             },
189665e7602SGunnar Mills             "Add the Content parameter to the stanza or remove the stanza, and resubmit the request.",
190665e7602SGunnar Mills         }},
191665e7602SGunnar Mills 
192665e7602SGunnar Mills };
193665e7602SGunnar Mills 
194665e7602SGunnar Mills enum class Index
195665e7602SGunnar Mills {
196665e7602SGunnar Mills     constrainedResourceAlreadyReserved = 0,
197665e7602SGunnar Mills     emptyManifest = 1,
198665e7602SGunnar Mills     incompatibleZone = 2,
199665e7602SGunnar Mills     noResourceMatch = 3,
200665e7602SGunnar Mills     resourceBlockChanged = 4,
201665e7602SGunnar Mills     resourceBlockCompositionStateChanged = 5,
202665e7602SGunnar Mills     resourceBlockInUse = 6,
203665e7602SGunnar Mills     resourceBlockInvalid = 7,
204665e7602SGunnar Mills     resourceBlockNotFound = 8,
205665e7602SGunnar Mills     resourceBlockStateChanged = 9,
206665e7602SGunnar Mills     resourceZoneMembershipChanged = 10,
207665e7602SGunnar Mills     specifiedResourceAlreadyReserved = 11,
208665e7602SGunnar Mills     unableToProcessStanzaRequest = 12,
209665e7602SGunnar Mills };
210665e7602SGunnar Mills } // namespace redfish::registries::composition
211