1 /****************************************************************
2  *                 READ THIS WARNING FIRST
3  * This is an auto-generated header which contains definitions
4  * for Redfish DMTF defined messages.
5  * DO NOT modify this registry outside of running the
6  * parse_registries.py script.  The definitions contained within
7  * this file are owned by DMTF.  Any modifications to these files
8  * should be first pushed to the relevant registry in the DMTF
9  * github organization.
10  ***************************************************************/
11 #pragma once
12 #include <registries.hpp>
13 
14 // clang-format off
15 
16 namespace redfish::registries::base
17 {
18 const Header header = {
19     "Copyright 2014-2021 DMTF. All rights reserved.",
20     "#MessageRegistry.v1_4_0.MessageRegistry",
21     "Base.1.11.0",
22     "Base Message Registry",
23     "en",
24     "This registry defines the base messages for Redfish",
25     "Base",
26     "1.11.0",
27     "DMTF",
28 };
29 constexpr const char* url =
30     "https://redfish.dmtf.org/registries/Base.1.11.0.json";
31 
32 constexpr std::array registry =
33 {
34     MessageEntry{
35         "AccessDenied",
36         {
37             "Indicates that while attempting to access, connect to, or transfer to or from another resource, the service denied access.",
38             "While attempting to establish a connection to '%1', the service denied access.",
39             "Critical",
40             1,
41             {
42                 "string",
43             },
44             "Attempt to ensure that the URI is correct and that the service has the appropriate credentials.",
45         }},
46     MessageEntry{
47         "AccountForSessionNoLongerExists",
48         {
49             "Indicates that the account for the session has been removed, thus the session has been removed as well.",
50             "The account for the current session has been removed, thus the current session has been removed as well.",
51             "OK",
52             0,
53             {},
54             "Attempt to connect with a valid account.",
55         }},
56     MessageEntry{
57         "AccountModified",
58         {
59             "Indicates that the account was successfully modified.",
60             "The account was successfully modified.",
61             "OK",
62             0,
63             {},
64             "No resolution is required.",
65         }},
66     MessageEntry{
67         "AccountNotModified",
68         {
69             "Indicates that the modification requested for the account was not successful.",
70             "The account modification request failed.",
71             "Warning",
72             0,
73             {},
74             "The modification may have failed due to permission issues or issues with the request body.",
75         }},
76     MessageEntry{
77         "AccountRemoved",
78         {
79             "Indicates that the account was successfully removed.",
80             "The account was successfully removed.",
81             "OK",
82             0,
83             {},
84             "No resolution is required.",
85         }},
86     MessageEntry{
87         "ActionDeprecated",
88         {
89             "Indicates the action is deprecated.",
90             "The action %1 is deprecated.",
91             "Warning",
92             1,
93             {
94                 "string",
95             },
96             "Refer to the schema guide for more information.",
97         }},
98     MessageEntry{
99         "ActionNotSupported",
100         {
101             "Indicates that the action supplied with the POST operation is not supported by the resource.",
102             "The action %1 is not supported by the resource.",
103             "Critical",
104             1,
105             {
106                 "string",
107             },
108             "The action supplied cannot be resubmitted to the implementation.  Perhaps the action was invalid, the wrong resource was the target or the implementation documentation may be of assistance.",
109         }},
110     MessageEntry{
111         "ActionParameterDuplicate",
112         {
113             "Indicates that the action was supplied with a duplicated parameter in the request body.",
114             "The action %1 was submitted with more than one value for the parameter %2.",
115             "Warning",
116             2,
117             {
118                 "string",
119                 "string",
120             },
121             "Resubmit the action with only one instance of the parameter in the request body if the operation failed.",
122         }},
123     MessageEntry{
124         "ActionParameterMissing",
125         {
126             "Indicates that the action requested was missing a parameter that is required to process the action.",
127             "The action %1 requires the parameter %2 to be present in the request body.",
128             "Critical",
129             2,
130             {
131                 "string",
132                 "string",
133             },
134             "Supply the action with the required parameter in the request body when the request is resubmitted.",
135         }},
136     MessageEntry{
137         "ActionParameterNotSupported",
138         {
139             "Indicates that the parameter supplied for the action is not supported on the resource.",
140             "The parameter %1 for the action %2 is not supported on the target resource.",
141             "Warning",
142             2,
143             {
144                 "string",
145                 "string",
146             },
147             "Remove the parameter supplied and resubmit the request if the operation failed.",
148         }},
149     MessageEntry{
150         "ActionParameterUnknown",
151         {
152             "Indicates that an action was submitted but a parameter supplied did not match any of the known parameters.",
153             "The action %1 was submitted with the invalid parameter %2.",
154             "Warning",
155             2,
156             {
157                 "string",
158                 "string",
159             },
160             "Correct the invalid parameter and resubmit the request if the operation failed.",
161         }},
162     MessageEntry{
163         "ActionParameterValueError",
164         {
165             "Indicates that a parameter was given an invalid value.",
166             "The value for the parameter %1 in the action %2 is invalid.",
167             "Warning",
168             2,
169             {
170                 "string",
171                 "string",
172             },
173             "Correct the value for the parameter in the request body and resubmit the request if the operation failed.",
174         }},
175     MessageEntry{
176         "ActionParameterValueFormatError",
177         {
178             "Indicates that a parameter was given the correct value type but the value of that parameter was not supported.  This includes the value size or length has been exceeded.",
179             "The value '%1' for the parameter %2 in the action %3 is of a different format than the parameter can accept.",
180             "Warning",
181             3,
182             {
183                 "string",
184                 "string",
185                 "string",
186             },
187             "Correct the value for the parameter in the request body and resubmit the request if the operation failed.",
188         }},
189     MessageEntry{
190         "ActionParameterValueNotInList",
191         {
192             "Indicates that a parameter was given the correct value type but the value of that parameter was not supported.  The value is not in an enumeration.",
193             "The value '%1' for the parameter %2 in the action %3 is not in the list of acceptable values.",
194             "Warning",
195             3,
196             {
197                 "string",
198                 "string",
199                 "string",
200             },
201             "Choose a value from the enumeration list that the implementation can support and resubmit the request if the operation failed.",
202         }},
203     MessageEntry{
204         "ActionParameterValueTypeError",
205         {
206             "Indicates that a parameter was given the wrong value type, such as when a number is supplied for a parameter that requires a string.",
207             "The value '%1' for the parameter %2 in the action %3 is of a different type than the parameter can accept.",
208             "Warning",
209             3,
210             {
211                 "string",
212                 "string",
213                 "string",
214             },
215             "Correct the value for the parameter in the request body and resubmit the request if the operation failed.",
216         }},
217     MessageEntry{
218         "ChassisPowerStateOffRequired",
219         {
220             "Indicates that the request requires a specified chassis to be powered off.",
221             "The Chassis with Id '%1' requires to be powered off to perform this request.",
222             "Warning",
223             1,
224             {
225                 "string",
226             },
227             "Power off the specified chassis and resubmit the request.",
228         }},
229     MessageEntry{
230         "ChassisPowerStateOnRequired",
231         {
232             "Indicates that the request requires a specified chassis to be powered on.",
233             "The chassis with Id '%1' requires to be powered on to perform this request.",
234             "Warning",
235             1,
236             {
237                 "string",
238             },
239             "Power on the specified chassis and resubmit the request.",
240         }},
241     MessageEntry{
242         "ConditionInRelatedResource",
243         {
244             "Indicates that one or more fault or error conditions exist in a related resource.",
245             "One or more conditions exist in a related resource.  See the OriginOfCondition property.",
246             "Warning",
247             0,
248             {},
249             "Check the Conditions array in the resource shown in the OriginOfCondition property to determine the conditions that need attention.",
250         }},
251     MessageEntry{
252         "CouldNotEstablishConnection",
253         {
254             "Indicates that the attempt to access the resource, file, or image at the URI was unsuccessful because a session could not be established.",
255             "The service failed to establish a connection with the URI '%1'.",
256             "Critical",
257             1,
258             {
259                 "string",
260             },
261             "Ensure that the URI contains a valid and reachable node name, protocol information and other URI components.",
262         }},
263     MessageEntry{
264         "CreateFailedMissingReqProperties",
265         {
266             "Indicates that a create was attempted on a resource but that properties that are required for the create operation were missing from the request.",
267             "The create operation failed because the required property %1 was missing from the request.",
268             "Critical",
269             1,
270             {
271                 "string",
272             },
273             "Correct the body to include the required property with a valid value and resubmit the request if the operation failed.",
274         }},
275     MessageEntry{
276         "CreateLimitReachedForResource",
277         {
278             "Indicates that no more resources can be created on the resource as it has reached its create limit.",
279             "The create operation failed because the resource has reached the limit of possible resources.",
280             "Critical",
281             0,
282             {},
283             "Either delete resources and resubmit the request if the operation failed or do not resubmit the request.",
284         }},
285     MessageEntry{
286         "Created",
287         {
288             "Indicates that all conditions of a successful create operation have been met.",
289             "The resource has been created successfully.",
290             "OK",
291             0,
292             {},
293             "None.",
294         }},
295     MessageEntry{
296         "EmptyJSON",
297         {
298             "Indicates that the request body contained an empty JSON object when one or more properties are expected in the body.",
299             "The request body submitted contained an empty JSON object and the service is unable to process it.",
300             "Warning",
301             0,
302             {},
303             "Add properties in the JSON object and resubmit the request.",
304         }},
305     MessageEntry{
306         "EventSubscriptionLimitExceeded",
307         {
308             "Indicates that a event subscription establishment has been requested but the operation failed due to the number of simultaneous connection exceeding the limit of the implementation.",
309             "The event subscription failed due to the number of simultaneous subscriptions exceeding the limit of the implementation.",
310             "Critical",
311             0,
312             {},
313             "Reduce the number of other subscriptions before trying to establish the event subscription or increase the limit of simultaneous subscriptions, if supported.",
314         }},
315     MessageEntry{
316         "GeneralError",
317         {
318             "Indicates that a general error has occurred.  Use in `@Message.ExtendedInfo` is discouraged.  When used in `@Message.ExtendedInfo`, implementations are expected to include a `Resolution` property with this message and provide a service-defined resolution to indicate how to resolve the error.",
319             "A general error has occurred.  See Resolution for information on how to resolve the error, or @Message.ExtendedInfo if Resolution is not provided.",
320             "Critical",
321             0,
322             {},
323             "None.",
324         }},
325     MessageEntry{
326         "InsufficientPrivilege",
327         {
328             "Indicates that the credentials associated with the established session do not have sufficient privileges for the requested operation.",
329             "There are insufficient privileges for the account or credentials associated with the current session to perform the requested operation.",
330             "Critical",
331             0,
332             {},
333             "Either abandon the operation or change the associated access rights and resubmit the request if the operation failed.",
334         }},
335     MessageEntry{
336         "InternalError",
337         {
338             "Indicates that the request failed for an unknown internal error but that the service is still operational.",
339             "The request failed due to an internal service error.  The service is still operational.",
340             "Critical",
341             0,
342             {},
343             "Resubmit the request.  If the problem persists, consider resetting the service.",
344         }},
345     MessageEntry{
346         "InvalidIndex",
347         {
348             "The index is not valid.",
349             "The index %1 is not a valid offset into the array.",
350             "Warning",
351             1,
352             {
353                 "number",
354             },
355             "Verify the index value provided is within the bounds of the array.",
356         }},
357     MessageEntry{
358         "InvalidJSON",
359         {
360             "Indicates that the request body contains invalid JSON.",
361             "The request body submitted is invalid JSON starting at line $1 and could not be parsed by the receiving service.",
362             "Critical",
363             1,
364             {
365                 "number",
366             },
367             "Ensure that the request body is valid JSON and resubmit the request.",
368         }},
369     MessageEntry{
370         "InvalidObject",
371         {
372             "Indicates that the object in question is invalid according to the implementation.  Examples include a firmware update malformed URI.",
373             "The object at '%1' is invalid.",
374             "Critical",
375             1,
376             {
377                 "string",
378             },
379             "Either the object is malformed or the URI is not correct.  Correct the condition and resubmit the request if it failed.",
380         }},
381     MessageEntry{
382         "InvalidURI",
383         {
384             "Indicates that the operation encountered a URI that does not correspond to a valid resource.",
385             "The URI %1 was not found.",
386             "Critical",
387             1,
388             {
389                 "string",
390             },
391             "Provide a valid URI and resubmit the request.",
392         }},
393     MessageEntry{
394         "MalformedJSON",
395         {
396             "Indicates that the request body was malformed JSON.",
397             "The request body submitted was malformed JSON and could not be parsed by the receiving service.",
398             "Critical",
399             0,
400             {},
401             "Ensure that the request body is valid JSON and resubmit the request.",
402         }},
403     MessageEntry{
404         "MaximumErrorsExceeded",
405         {
406             "Indicates that sufficient errors have occurred that the reporting service cannot return them all.",
407             "Too many errors have occurred to report them all.",
408             "Critical",
409             0,
410             {},
411             "Resolve other reported errors and retry the current operation.",
412         }},
413     MessageEntry{
414         "NetworkNameResolutionNotConfigured",
415         {
416             "Indicates that network-based name resolution has not been configured on the service.",
417             "Network name resolution has not been configured on this service.",
418             "Warning",
419             0,
420             {},
421             "Configure the network name resolution protocol support on this service, or update any URI values to include an IP address instead of a network name and resubmit the request.",
422         }},
423     MessageEntry{
424         "NetworkNameResolutionNotSupported",
425         {
426             "Indicates the service does not support network-based name resolution.",
427             "Resolution of network-based names is not supported by this service.",
428             "Warning",
429             0,
430             {},
431             "Update any URI values to include an IP address instead of a network name and resubmit the request.",
432         }},
433     MessageEntry{
434         "NoOperation",
435         {
436             "Indicates that the requested operation will not perform any changes on the service.",
437             "The request body submitted contain no data to act upon and no changes to the resource took place.",
438             "Warning",
439             0,
440             {},
441             "Add properties in the JSON object and resubmit the request.",
442         }},
443     MessageEntry{
444         "NoValidSession",
445         {
446             "Indicates that the operation failed because a valid session is required in order to access any resources.",
447             "There is no valid session established with the implementation.",
448             "Critical",
449             0,
450             {},
451             "Establish a session before attempting any operations.",
452         }},
453     MessageEntry{
454         "OperationFailed",
455         {
456             "Indicates that one of the internal operations necessary to complete the request failed.  Examples of this are when an internal service provider is unable to complete the request, such as in aggregation or RDE.",
457             "An error occurred internal to the service as part of the overall request.  Partial results may have been returned.",
458             "Warning",
459             0,
460             {},
461             "Resubmit the request.  If the problem persists, consider resetting the service or provider.",
462         }},
463     MessageEntry{
464         "OperationTimeout",
465         {
466             "Indicates that one of the internal operations necessary to complete the request timed out.  Examples of this are when an internal service provider is unable to complete the request, such as in aggregation or RDE.",
467             "A timeout internal to the service occured as part of the request.  Partial results may have been returned.",
468             "Warning",
469             0,
470             {},
471             "Resubmit the request.  If the problem persists, consider resetting the service or provider.",
472         }},
473     MessageEntry{
474         "PasswordChangeRequired",
475         {
476             "Indicates that the password for the account provided must be changed before accessing the service.  The password can be changed with a PATCH to the `Password` property in the manager account resource instance.  Implementations that provide a default password for an account may require a password change prior to first access to the service.",
477             "The password provided for this account must be changed before access is granted.  PATCH the Password property for this account located at the target URI '%1' to complete this process.",
478             "Critical",
479             1,
480             {
481                 "string",
482             },
483             "Change the password for this account using a PATCH to the Password property at the URI provided.",
484         }},
485     MessageEntry{
486         "PreconditionFailed",
487         {
488             "Indicates that the ETag supplied did not match the current ETag of the resource.",
489             "The ETag supplied did not match the ETag required to change this resource.",
490             "Critical",
491             0,
492             {},
493             "Try the operation again using the appropriate ETag.",
494         }},
495     MessageEntry{
496         "PreconditionRequired",
497         {
498             "Indicates that the request did not provide the required precondition such as an `If-Match` or `If-None-Match` header, or `@odata.etag` annotations.",
499             "A precondition header or annotation is required to change this resource.",
500             "Critical",
501             0,
502             {},
503             "Try the operation again using an If-Match or If-None-Match header and appropriate ETag.",
504         }},
505     MessageEntry{
506         "PropertyDeprecated",
507         {
508             "Indicates the property is deprecated.",
509             "The deprecated property %1 was included in the request body.",
510             "Warning",
511             1,
512             {
513                 "string",
514             },
515             "Refer to the schema guide for more information.",
516         }},
517     MessageEntry{
518         "PropertyDuplicate",
519         {
520             "Indicates that a duplicate property was included in the request body.",
521             "The property %1 was duplicated in the request.",
522             "Warning",
523             1,
524             {
525                 "string",
526             },
527             "Remove the duplicate property from the request body and resubmit the request if the operation failed.",
528         }},
529     MessageEntry{
530         "PropertyMissing",
531         {
532             "Indicates that a required property was not supplied as part of the request.",
533             "The property %1 is a required property and must be included in the request.",
534             "Warning",
535             1,
536             {
537                 "string",
538             },
539             "Ensure that the property is in the request body and has a valid value and resubmit the request if the operation failed.",
540         }},
541     MessageEntry{
542         "PropertyNotWritable",
543         {
544             "Indicates that a property was given a value in the request body, but the property is a readonly property.",
545             "The property %1 is a read only property and cannot be assigned a value.",
546             "Warning",
547             1,
548             {
549                 "string",
550             },
551             "Remove the property from the request body and resubmit the request if the operation failed.",
552         }},
553     MessageEntry{
554         "PropertyUnknown",
555         {
556             "Indicates that an unknown property was included in the request body.",
557             "The property %1 is not in the list of valid properties for the resource.",
558             "Warning",
559             1,
560             {
561                 "string",
562             },
563             "Remove the unknown property from the request body and resubmit the request if the operation failed.",
564         }},
565     MessageEntry{
566         "PropertyValueConflict",
567         {
568             "Indicates that the requested write of a property value could not be completed, because of a conflict with another property value.",
569             "The property '%1' could not be written because its value would conflict with the value of the '%2' property.",
570             "Warning",
571             2,
572             {
573                 "string",
574                 "string",
575             },
576             "No resolution is required.",
577         }},
578     MessageEntry{
579         "PropertyValueDeprecated",
580         {
581             "Indicates that a property was given a deprecated value.",
582             "The value '%1' for the property %2 is deprecated.",
583             "Warning",
584             1,
585             {
586                 "string",
587                 "string",
588             },
589             "Refer to the schema guide for more information.",
590         }},
591     MessageEntry{
592         "PropertyValueError",
593         {
594             "Indicates that a property was given an invalid value.",
595             "The value provided for the property %1 is not valid.",
596             "Warning",
597             1,
598             {
599                 "string",
600             },
601             "Correct the value for the property in the request body and resubmit the request if the operation failed.",
602         }},
603     MessageEntry{
604         "PropertyValueExternalConflict",
605         {
606             "Indicates that the requested write of a property value could not be completed, due to the current state or configuration of the resource.  This can include configuration conflicts with other resources or parameters that are not exposed by this interface.",
607             "The property '%1' with the requested value of '%2' could not be written because the value is not available due to a configuration conflict.",
608             "Warning",
609             2,
610             {
611                 "string",
612                 "string",
613             },
614             "No resolution is required.",
615         }},
616     MessageEntry{
617         "PropertyValueFormatError",
618         {
619             "Indicates that a property was given the correct value type but the value of that property was not supported.",
620             "The value '%1' for the property %2 is of a different format than the property can accept.",
621             "Warning",
622             2,
623             {
624                 "string",
625                 "string",
626             },
627             "Correct the value for the property in the request body and resubmit the request if the operation failed.",
628         }},
629     MessageEntry{
630         "PropertyValueIncorrect",
631         {
632             "Indicates that the requested write of a property value could not be completed, because of an incorrect value of the property.  Examples include values that do not match a regular expression requirement or passwords that do not match the implementation constraints.",
633             "The property '%1' with the requested value of '%2' could not be written because the value does not meet the constraints of the implementation.",
634             "Warning",
635             2,
636             {
637                 "string",
638                 "string",
639             },
640             "No resolution is required.",
641         }},
642     MessageEntry{
643         "PropertyValueModified",
644         {
645             "Indicates that a property was given the correct value type but the value of that property was modified.  Examples are truncated or rounded values.",
646             "The property %1 was assigned the value '%2' due to modification by the service.",
647             "Warning",
648             2,
649             {
650                 "string",
651                 "string",
652             },
653             "No resolution is required.",
654         }},
655     MessageEntry{
656         "PropertyValueNotInList",
657         {
658             "Indicates that a property was given the correct value type but the value of that property was not supported.  The value is not in an enumeration.",
659             "The value '%1' for the property %2 is not in the list of acceptable values.",
660             "Warning",
661             2,
662             {
663                 "string",
664                 "string",
665             },
666             "Choose a value from the enumeration list that the implementation can support and resubmit the request if the operation failed.",
667         }},
668     MessageEntry{
669         "PropertyValueResourceConflict",
670         {
671             "Indicates that the requested write of a property value could not be completed, due to the current state or configuration of another resource.",
672             "The property '%1' with the requested value of '%2' could not be written because the value conflicts with the state or configuration of the resource at '%3'.",
673             "Warning",
674             3,
675             {
676                 "string",
677                 "string",
678                 "string",
679             },
680             "No resolution is required.",
681         }},
682     MessageEntry{
683         "PropertyValueTypeError",
684         {
685             "Indicates that a property was given the wrong value type, such as when a number is supplied for a property that requires a string.",
686             "The value '%1' for the property %2 is of a different type than the property can accept.",
687             "Warning",
688             2,
689             {
690                 "string",
691                 "string",
692             },
693             "Correct the value for the property in the request body and resubmit the request if the operation failed.",
694         }},
695     MessageEntry{
696         "QueryCombinationInvalid",
697         {
698             "Indicates the request contains multiple query parameters, and that two or more of them cannot be used together.",
699             "Two or more query parameters in the request cannot be used together.",
700             "Warning",
701             0,
702             {},
703             "Remove one or more of the query parameters and resubmit the request if the operation failed.",
704         }},
705     MessageEntry{
706         "QueryNotSupported",
707         {
708             "Indicates that query is not supported on the implementation.",
709             "Querying is not supported by the implementation.",
710             "Warning",
711             0,
712             {},
713             "Remove the query parameters and resubmit the request if the operation failed.",
714         }},
715     MessageEntry{
716         "QueryNotSupportedOnOperation",
717         {
718             "Indicates that query is not supported with the given operation, such as when the `$expand` query is attempted with a PATCH operation.",
719             "Querying is not supported with the requested operation.",
720             "Warning",
721             0,
722             {},
723             "Remove the query parameters and resubmit the request if the operation failed.",
724         }},
725     MessageEntry{
726         "QueryNotSupportedOnResource",
727         {
728             "Indicates that query is not supported on the given resource, such as when the `$skip` query is attempted on a resource that is not a collection.",
729             "Querying is not supported on the requested resource.",
730             "Warning",
731             0,
732             {},
733             "Remove the query parameters and resubmit the request if the operation failed.",
734         }},
735     MessageEntry{
736         "QueryParameterOutOfRange",
737         {
738             "Indicates that a query parameter was provided that is out of range for the given resource.  This can happen with values that are too low or beyond that possible for the supplied resource, such as when a page is requested that is beyond the last page.",
739             "The value '%1' for the query parameter %2 is out of range %3.",
740             "Warning",
741             3,
742             {
743                 "string",
744                 "string",
745                 "string",
746             },
747             "Reduce the value for the query parameter to a value that is within range, such as a start or count value that is within bounds of the number of resources in a collection or a page that is within the range of valid pages.",
748         }},
749     MessageEntry{
750         "QueryParameterValueError",
751         {
752             "Indicates that a query parameter was given an invalid value.",
753             "The value for the parameter %1 is invalid.",
754             "Warning",
755             1,
756             {
757                 "string",
758             },
759             "Correct the value for the query parameter in the request and resubmit the request if the operation failed.",
760         }},
761     MessageEntry{
762         "QueryParameterValueFormatError",
763         {
764             "Indicates that a query parameter was given the correct value type but the value of that parameter was not supported.  This includes the value size or length has been exceeded.",
765             "The value '%1' for the parameter %2 is of a different format than the parameter can accept.",
766             "Warning",
767             2,
768             {
769                 "string",
770                 "string",
771             },
772             "Correct the value for the query parameter in the request and resubmit the request if the operation failed.",
773         }},
774     MessageEntry{
775         "QueryParameterValueTypeError",
776         {
777             "Indicates that a query parameter was given the wrong value type, such as when a number is supplied for a query parameter that requires a string.",
778             "The value '%1' for the query parameter %2 is of a different type than the parameter can accept.",
779             "Warning",
780             2,
781             {
782                 "string",
783                 "string",
784             },
785             "Correct the value for the query parameter in the request and resubmit the request if the operation failed.",
786         }},
787     MessageEntry{
788         "ResetRequired",
789         {
790             "Indicates that a component reset is required for changes or operations to complete.",
791             "In order to complete the operation, a component reset is required with the Reset action URI '%1' and ResetType '%2'.",
792             "Warning",
793             2,
794             {
795                 "string",
796                 "string",
797             },
798             "Perform the required reset action on the specified component.",
799         }},
800     MessageEntry{
801         "ResourceAlreadyExists",
802         {
803             "Indicates that a resource change or creation was attempted but that the operation cannot proceed because the resource already exists.",
804             "The requested resource of type %1 with the property %2 with the value '%3' already exists.",
805             "Critical",
806             3,
807             {
808                 "string",
809                 "string",
810                 "string",
811             },
812             "Do not repeat the create operation as the resource has already been created.",
813         }},
814     MessageEntry{
815         "ResourceAtUriInUnknownFormat",
816         {
817             "Indicates that the URI was valid but the resource or image at that URI was in a format not supported by the service.",
818             "The resource at '%1' is in a format not recognized by the service.",
819             "Critical",
820             1,
821             {
822                 "string",
823             },
824             "Place an image or resource or file that is recognized by the service at the URI.",
825         }},
826     MessageEntry{
827         "ResourceAtUriUnauthorized",
828         {
829             "Indicates that the attempt to access the resource, file, or image at the URI was unauthorized.",
830             "While accessing the resource at '%1', the service received an authorization error '%2'.",
831             "Critical",
832             2,
833             {
834                 "string",
835                 "string",
836             },
837             "Ensure that the appropriate access is provided for the service in order for it to access the URI.",
838         }},
839     MessageEntry{
840         "ResourceCannotBeDeleted",
841         {
842             "Indicates that a delete operation was attempted on a resource that cannot be deleted.",
843             "The delete request failed because the resource requested cannot be deleted.",
844             "Critical",
845             0,
846             {},
847             "Do not attempt to delete a non-deletable resource.",
848         }},
849     MessageEntry{
850         "ResourceCreationConflict",
851         {
852             "Indicates that the requested resource creation could not be completed because the service has a resource that conflicts with the request.",
853             "The resource could not be created.  The service has a resource at URI '%1' that conflicts with the creation request.",
854             "Warning",
855             1,
856             {
857                 "string",
858             },
859             "No resolution is required.",
860         }},
861     MessageEntry{
862         "ResourceDeprecated",
863         {
864             "Indicates the resource is deprecated.",
865             "The operation was performed on a deprecated resource '%1'.",
866             "Warning",
867             1,
868             {
869                 "string",
870             },
871             "Refer to the schema guide for more information.",
872         }},
873     MessageEntry{
874         "ResourceExhaustion",
875         {
876             "Indicates that a resource could not satisfy the request due to some unavailability of resources.  An example is that available capacity has been allocated.",
877             "The resource '%1' was unable to satisfy the request due to unavailability of resources.",
878             "Critical",
879             1,
880             {
881                 "string",
882             },
883             "Ensure that the resources are available and resubmit the request.",
884         }},
885     MessageEntry{
886         "ResourceInStandby",
887         {
888             "Indicates that the request could not be performed because the resource is in standby.",
889             "The request could not be performed because the resource is in standby.",
890             "Critical",
891             0,
892             {},
893             "Ensure that the resource is in the correct power state and resubmit the request.",
894         }},
895     MessageEntry{
896         "ResourceInUse",
897         {
898             "Indicates that a change was requested to a resource but the change was rejected due to the resource being in use or transition.",
899             "The change to the requested resource failed because the resource is in use or in transition.",
900             "Warning",
901             0,
902             {},
903             "Remove the condition and resubmit the request if the operation failed.",
904         }},
905     MessageEntry{
906         "ResourceMissingAtURI",
907         {
908             "Indicates that the operation expected an image or other resource at the provided URI but none was found.  Examples of this are in requests that require URIs like firmware update.",
909             "The resource at the URI '%1' was not found.",
910             "Critical",
911             1,
912             {
913                 "string",
914             },
915             "Place a valid resource at the URI or correct the URI and resubmit the request.",
916         }},
917     MessageEntry{
918         "ResourceNotFound",
919         {
920             "Indicates that the operation expected a resource identifier that corresponds to an existing resource but one was not found.",
921             "The requested resource of type %1 named '%2' was not found.",
922             "Critical",
923             2,
924             {
925                 "string",
926                 "string",
927             },
928             "Provide a valid resource identifier and resubmit the request.",
929         }},
930     MessageEntry{
931         "ResourceTypeIncompatible",
932         {
933             "Indicates that the resource type of the operation does not match that for the operation destination.  Examples of when this can happen include during a POST to a resource collection using the wrong resource type, an update where the `@odata.type` properties do not match, or on a major version incompatibility.",
934             "The @odata.type of the request body %1 is incompatible with the @odata.type of the resource, which is %2.",
935             "Critical",
936             2,
937             {
938                 "string",
939                 "string",
940             },
941             "Resubmit the request with a payload compatible with the resource's schema.",
942         }},
943     MessageEntry{
944         "RestrictedPrivilege",
945         {
946             "Indicates that the operation was not successful because a privilege is restricted.",
947             "The operation was not successful because the privilege '%1' is restricted.",
948             "Warning",
949             1,
950             {
951                 "string",
952             },
953             "Remove restricted privileges from the request body and resubmit the request.",
954         }},
955     MessageEntry{
956         "RestrictedRole",
957         {
958             "Indicates that the operation was not successful because the role is restricted.",
959             "The operation was not successful because the role '%1' is restricted.",
960             "Warning",
961             1,
962             {
963                 "string",
964             },
965             "No resolution is required.  For standard roles, consider using the role specified in the AlternateRoleId property in the Role resource.",
966         }},
967     MessageEntry{
968         "ServiceDisabled",
969         {
970             "Indicates that the operation failed because the service, such as the account service, is disabled and cannot accept requests.",
971             "The operation failed because the service at %1 is disabled and cannot accept requests.",
972             "Warning",
973             1,
974             {
975                 "string",
976             },
977             "Enable the service and resubmit the request if the operation failed.",
978         }},
979     MessageEntry{
980         "ServiceInUnknownState",
981         {
982             "Indicates that the operation failed because the service is in an unknown state and cannot accept additional requests.",
983             "The operation failed because the service is in an unknown state and can no longer take incoming requests.",
984             "Critical",
985             0,
986             {},
987             "Restart the service and resubmit the request if the operation failed.",
988         }},
989     MessageEntry{
990         "ServiceShuttingDown",
991         {
992             "Indicates that the operation failed as the service is shutting down, such as when the service reboots.",
993             "The operation failed because the service is shutting down and can no longer take incoming requests.",
994             "Critical",
995             0,
996             {},
997             "When the service becomes available, resubmit the request if the operation failed.",
998         }},
999     MessageEntry{
1000         "ServiceTemporarilyUnavailable",
1001         {
1002             "Indicates the service is temporarily unavailable.",
1003             "The service is temporarily unavailable.  Retry in %1 seconds.",
1004             "Critical",
1005             1,
1006             {
1007                 "string",
1008             },
1009             "Wait for the indicated retry duration and retry the operation.",
1010         }},
1011     MessageEntry{
1012         "SessionLimitExceeded",
1013         {
1014             "Indicates that a session establishment has been requested but the operation failed due to the number of simultaneous sessions exceeding the limit of the implementation.",
1015             "The session establishment failed due to the number of simultaneous sessions exceeding the limit of the implementation.",
1016             "Critical",
1017             0,
1018             {},
1019             "Reduce the number of other sessions before trying to establish the session or increase the limit of simultaneous sessions, if supported.",
1020         }},
1021     MessageEntry{
1022         "SessionTerminated",
1023         {
1024             "Indicates that the DELETE operation on the session resource resulted in the successful termination of the session.",
1025             "The session was successfully terminated.",
1026             "OK",
1027             0,
1028             {},
1029             "No resolution is required.",
1030         }},
1031     MessageEntry{
1032         "SourceDoesNotSupportProtocol",
1033         {
1034             "Indicates that while attempting to access, connect to or transfer a resource, file, or image from another location that the other end of the connection did not support the protocol.",
1035             "The other end of the connection at '%1' does not support the specified protocol %2.",
1036             "Critical",
1037             2,
1038             {
1039                 "string",
1040                 "string",
1041             },
1042             "Change protocols or URIs.",
1043         }},
1044     MessageEntry{
1045         "StrictAccountTypes",
1046         {
1047             "Indicates the request failed because a set of `AccountTypes` or `OEMAccountTypes` was not accepted while `StrictAccountTypes` is set to `true`.",
1048             "The request was not possible to fulfill with the account types included in property '%1' and property StrictAccountTypes set to true.",
1049             "Warning",
1050             1,
1051             {
1052                 "string",
1053             },
1054             "Resubmit the request either with an acceptable set of AccountTypes and OEMAccountTypes or with StrictAccountTypes set to false.",
1055         }},
1056     MessageEntry{
1057         "StringValueTooLong",
1058         {
1059             "Indicates that a string value passed to the given resource exceeded its length limit.  An example is when a shorter limit is imposed by an implementation than that allowed by the specification.",
1060             "The string '%1' exceeds the length limit %2.",
1061             "Warning",
1062             2,
1063             {
1064                 "string",
1065                 "number",
1066             },
1067             "Resubmit the request with an appropriate string length.",
1068         }},
1069     MessageEntry{
1070         "SubscriptionTerminated",
1071         {
1072             "An event subscription has been terminated by the service.  No further events will be delivered.",
1073             "The event subscription has been terminated.",
1074             "OK",
1075             0,
1076             {},
1077             "No resolution is required.",
1078         }},
1079     MessageEntry{
1080         "Success",
1081         {
1082             "Indicates that all conditions of a successful operation have been met.",
1083             "The request completed successfully.",
1084             "OK",
1085             0,
1086             {},
1087             "None",
1088         }},
1089     MessageEntry{
1090         "UndeterminedFault",
1091         {
1092             "Indicates that a fault or error condition exists but the source of the fault cannot be determined or is unknown to the service.",
1093             "A undetermined fault condition has been reported by '%1'.",
1094             "Critical",
1095             1,
1096             {
1097                 "string",
1098             },
1099             "None.",
1100         }},
1101     MessageEntry{
1102         "UnrecognizedRequestBody",
1103         {
1104             "Indicates that the service encountered an unrecognizable request body that could not even be interpreted as malformed JSON.",
1105             "The service detected a malformed request body that it was unable to interpret.",
1106             "Warning",
1107             0,
1108             {},
1109             "Correct the request body and resubmit the request if it failed.",
1110         }},
1111 
1112 };
1113 
1114 enum class Index
1115 {
1116     accessDenied = 0,
1117     accountForSessionNoLongerExists = 1,
1118     accountModified = 2,
1119     accountNotModified = 3,
1120     accountRemoved = 4,
1121     actionDeprecated = 5,
1122     actionNotSupported = 6,
1123     actionParameterDuplicate = 7,
1124     actionParameterMissing = 8,
1125     actionParameterNotSupported = 9,
1126     actionParameterUnknown = 10,
1127     actionParameterValueError = 11,
1128     actionParameterValueFormatError = 12,
1129     actionParameterValueNotInList = 13,
1130     actionParameterValueTypeError = 14,
1131     chassisPowerStateOffRequired = 15,
1132     chassisPowerStateOnRequired = 16,
1133     conditionInRelatedResource = 17,
1134     couldNotEstablishConnection = 18,
1135     createFailedMissingReqProperties = 19,
1136     createLimitReachedForResource = 20,
1137     created = 21,
1138     emptyJSON = 22,
1139     eventSubscriptionLimitExceeded = 23,
1140     generalError = 24,
1141     insufficientPrivilege = 25,
1142     internalError = 26,
1143     invalidIndex = 27,
1144     invalidJSON = 28,
1145     invalidObject = 29,
1146     invalidURI = 30,
1147     malformedJSON = 31,
1148     maximumErrorsExceeded = 32,
1149     networkNameResolutionNotConfigured = 33,
1150     networkNameResolutionNotSupported = 34,
1151     noOperation = 35,
1152     noValidSession = 36,
1153     operationFailed = 37,
1154     operationTimeout = 38,
1155     passwordChangeRequired = 39,
1156     preconditionFailed = 40,
1157     preconditionRequired = 41,
1158     propertyDeprecated = 42,
1159     propertyDuplicate = 43,
1160     propertyMissing = 44,
1161     propertyNotWritable = 45,
1162     propertyUnknown = 46,
1163     propertyValueConflict = 47,
1164     propertyValueDeprecated = 48,
1165     propertyValueError = 49,
1166     propertyValueExternalConflict = 50,
1167     propertyValueFormatError = 51,
1168     propertyValueIncorrect = 52,
1169     propertyValueModified = 53,
1170     propertyValueNotInList = 54,
1171     propertyValueResourceConflict = 55,
1172     propertyValueTypeError = 56,
1173     queryCombinationInvalid = 57,
1174     queryNotSupported = 58,
1175     queryNotSupportedOnOperation = 59,
1176     queryNotSupportedOnResource = 60,
1177     queryParameterOutOfRange = 61,
1178     queryParameterValueError = 62,
1179     queryParameterValueFormatError = 63,
1180     queryParameterValueTypeError = 64,
1181     resetRequired = 65,
1182     resourceAlreadyExists = 66,
1183     resourceAtUriInUnknownFormat = 67,
1184     resourceAtUriUnauthorized = 68,
1185     resourceCannotBeDeleted = 69,
1186     resourceCreationConflict = 70,
1187     resourceDeprecated = 71,
1188     resourceExhaustion = 72,
1189     resourceInStandby = 73,
1190     resourceInUse = 74,
1191     resourceMissingAtURI = 75,
1192     resourceNotFound = 76,
1193     resourceTypeIncompatible = 77,
1194     restrictedPrivilege = 78,
1195     restrictedRole = 79,
1196     serviceDisabled = 80,
1197     serviceInUnknownState = 81,
1198     serviceShuttingDown = 82,
1199     serviceTemporarilyUnavailable = 83,
1200     sessionLimitExceeded = 84,
1201     sessionTerminated = 85,
1202     sourceDoesNotSupportProtocol = 86,
1203     strictAccountTypes = 87,
1204     stringValueTooLong = 88,
1205     subscriptionTerminated = 89,
1206     success = 90,
1207     undeterminedFault = 91,
1208     unrecognizedRequestBody = 92,
1209 };
1210 } // namespace redfish::registries::base
1211