summaryrefslogtreecommitdiff
path: root/redfish-core/include/registries/base_message_registry.hpp
blob: d36b04100e9ce248e797b29e092b6b99da3526ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
/****************************************************************
 *                 READ THIS WARNING FIRST
 * This is an auto-generated header which contains definitions
 * for Redfish DMTF defined messages.
 * DO NOT modify this registry outside of running the
 * parse_registries.py script.  The definitions contained within
 * this file are owned by DMTF.  Any modifications to these files
 * should be first pushed to the relevant registry in the DMTF
 * github organization.
 ***************************************************************/
#pragma once
#include <registries.hpp>

// clang-format off

namespace redfish::registries::base
{
const Header header = {
    "Copyright 2014-2021 DMTF. All rights reserved.",
    "#MessageRegistry.v1_4_0.MessageRegistry",
    "Base.1.11.0",
    "Base Message Registry",
    "en",
    "This registry defines the base messages for Redfish",
    "Base",
    "1.11.0",
    "DMTF",
};
constexpr const char* url =
    "https://redfish.dmtf.org/registries/Base.1.11.0.json";

constexpr std::array registry =
{
    MessageEntry{
        "AccessDenied",
        {
            "Indicates that while attempting to access, connect to, or transfer to or from another resource, the service denied access.",
            "While attempting to establish a connection to '%1', the service denied access.",
            "Critical",
            1,
            {
                "string",
            },
            "Attempt to ensure that the URI is correct and that the service has the appropriate credentials.",
        }},
    MessageEntry{
        "AccountForSessionNoLongerExists",
        {
            "Indicates that the account for the session has been removed, thus the session has been removed as well.",
            "The account for the current session has been removed, thus the current session has been removed as well.",
            "OK",
            0,
            {},
            "Attempt to connect with a valid account.",
        }},
    MessageEntry{
        "AccountModified",
        {
            "Indicates that the account was successfully modified.",
            "The account was successfully modified.",
            "OK",
            0,
            {},
            "No resolution is required.",
        }},
    MessageEntry{
        "AccountNotModified",
        {
            "Indicates that the modification requested for the account was not successful.",
            "The account modification request failed.",
            "Warning",
            0,
            {},
            "The modification may have failed due to permission issues or issues with the request body.",
        }},
    MessageEntry{
        "AccountRemoved",
        {
            "Indicates that the account was successfully removed.",
            "The account was successfully removed.",
            "OK",
            0,
            {},
            "No resolution is required.",
        }},
    MessageEntry{
        "ActionDeprecated",
        {
            "Indicates the action is deprecated.",
            "The action %1 is deprecated.",
            "Warning",
            1,
            {
                "string",
            },
            "Refer to the schema guide for more information.",
        }},
    MessageEntry{
        "ActionNotSupported",
        {
            "Indicates that the action supplied with the POST operation is not supported by the resource.",
            "The action %1 is not supported by the resource.",
            "Critical",
            1,
            {
                "string",
            },
            "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.",
        }},
    MessageEntry{
        "ActionParameterDuplicate",
        {
            "Indicates that the action was supplied with a duplicated parameter in the request body.",
            "The action %1 was submitted with more than one value for the parameter %2.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Resubmit the action with only one instance of the parameter in the request body if the operation failed.",
        }},
    MessageEntry{
        "ActionParameterMissing",
        {
            "Indicates that the action requested was missing a parameter that is required to process the action.",
            "The action %1 requires the parameter %2 to be present in the request body.",
            "Critical",
            2,
            {
                "string",
                "string",
            },
            "Supply the action with the required parameter in the request body when the request is resubmitted.",
        }},
    MessageEntry{
        "ActionParameterNotSupported",
        {
            "Indicates that the parameter supplied for the action is not supported on the resource.",
            "The parameter %1 for the action %2 is not supported on the target resource.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Remove the parameter supplied and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "ActionParameterUnknown",
        {
            "Indicates that an action was submitted but a parameter supplied did not match any of the known parameters.",
            "The action %1 was submitted with the invalid parameter %2.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Correct the invalid parameter and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "ActionParameterValueError",
        {
            "Indicates that a parameter was given an invalid value.",
            "The value for the parameter %1 in the action %2 is invalid.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Correct the value for the parameter in the request body and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "ActionParameterValueFormatError",
        {
            "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.",
            "The value '%1' for the parameter %2 in the action %3 is of a different format than the parameter can accept.",
            "Warning",
            3,
            {
                "string",
                "string",
                "string",
            },
            "Correct the value for the parameter in the request body and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "ActionParameterValueNotInList",
        {
            "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.",
            "The value '%1' for the parameter %2 in the action %3 is not in the list of acceptable values.",
            "Warning",
            3,
            {
                "string",
                "string",
                "string",
            },
            "Choose a value from the enumeration list that the implementation can support and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "ActionParameterValueTypeError",
        {
            "Indicates that a parameter was given the wrong value type, such as when a number is supplied for a parameter that requires a string.",
            "The value '%1' for the parameter %2 in the action %3 is of a different type than the parameter can accept.",
            "Warning",
            3,
            {
                "string",
                "string",
                "string",
            },
            "Correct the value for the parameter in the request body and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "ChassisPowerStateOffRequired",
        {
            "Indicates that the request requires a specified chassis to be powered off.",
            "The Chassis with Id '%1' requires to be powered off to perform this request.",
            "Warning",
            1,
            {
                "string",
            },
            "Power off the specified chassis and resubmit the request.",
        }},
    MessageEntry{
        "ChassisPowerStateOnRequired",
        {
            "Indicates that the request requires a specified chassis to be powered on.",
            "The chassis with Id '%1' requires to be powered on to perform this request.",
            "Warning",
            1,
            {
                "string",
            },
            "Power on the specified chassis and resubmit the request.",
        }},
    MessageEntry{
        "ConditionInRelatedResource",
        {
            "Indicates that one or more fault or error conditions exist in a related resource.",
            "One or more conditions exist in a related resource.  See the OriginOfCondition property.",
            "Warning",
            0,
            {},
            "Check the Conditions array in the resource shown in the OriginOfCondition property to determine the conditions that need attention.",
        }},
    MessageEntry{
        "CouldNotEstablishConnection",
        {
            "Indicates that the attempt to access the resource, file, or image at the URI was unsuccessful because a session could not be established.",
            "The service failed to establish a connection with the URI '%1'.",
            "Critical",
            1,
            {
                "string",
            },
            "Ensure that the URI contains a valid and reachable node name, protocol information and other URI components.",
        }},
    MessageEntry{
        "CreateFailedMissingReqProperties",
        {
            "Indicates that a create was attempted on a resource but that properties that are required for the create operation were missing from the request.",
            "The create operation failed because the required property %1 was missing from the request.",
            "Critical",
            1,
            {
                "string",
            },
            "Correct the body to include the required property with a valid value and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "CreateLimitReachedForResource",
        {
            "Indicates that no more resources can be created on the resource as it has reached its create limit.",
            "The create operation failed because the resource has reached the limit of possible resources.",
            "Critical",
            0,
            {},
            "Either delete resources and resubmit the request if the operation failed or do not resubmit the request.",
        }},
    MessageEntry{
        "Created",
        {
            "Indicates that all conditions of a successful create operation have been met.",
            "The resource has been created successfully.",
            "OK",
            0,
            {},
            "None.",
        }},
    MessageEntry{
        "EmptyJSON",
        {
            "Indicates that the request body contained an empty JSON object when one or more properties are expected in the body.",
            "The request body submitted contained an empty JSON object and the service is unable to process it.",
            "Warning",
            0,
            {},
            "Add properties in the JSON object and resubmit the request.",
        }},
    MessageEntry{
        "EventSubscriptionLimitExceeded",
        {
            "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.",
            "The event subscription failed due to the number of simultaneous subscriptions exceeding the limit of the implementation.",
            "Critical",
            0,
            {},
            "Reduce the number of other subscriptions before trying to establish the event subscription or increase the limit of simultaneous subscriptions, if supported.",
        }},
    MessageEntry{
        "GeneralError",
        {
            "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.",
            "A general error has occurred.  See Resolution for information on how to resolve the error, or @Message.ExtendedInfo if Resolution is not provided.",
            "Critical",
            0,
            {},
            "None.",
        }},
    MessageEntry{
        "InsufficientPrivilege",
        {
            "Indicates that the credentials associated with the established session do not have sufficient privileges for the requested operation.",
            "There are insufficient privileges for the account or credentials associated with the current session to perform the requested operation.",
            "Critical",
            0,
            {},
            "Either abandon the operation or change the associated access rights and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "InternalError",
        {
            "Indicates that the request failed for an unknown internal error but that the service is still operational.",
            "The request failed due to an internal service error.  The service is still operational.",
            "Critical",
            0,
            {},
            "Resubmit the request.  If the problem persists, consider resetting the service.",
        }},
    MessageEntry{
        "InvalidIndex",
        {
            "The index is not valid.",
            "The index %1 is not a valid offset into the array.",
            "Warning",
            1,
            {
                "number",
            },
            "Verify the index value provided is within the bounds of the array.",
        }},
    MessageEntry{
        "InvalidJSON",
        {
            "Indicates that the request body contains invalid JSON.",
            "The request body submitted is invalid JSON starting at line $1 and could not be parsed by the receiving service.",
            "Critical",
            1,
            {
                "number",
            },
            "Ensure that the request body is valid JSON and resubmit the request.",
        }},
    MessageEntry{
        "InvalidObject",
        {
            "Indicates that the object in question is invalid according to the implementation.  Examples include a firmware update malformed URI.",
            "The object at '%1' is invalid.",
            "Critical",
            1,
            {
                "string",
            },
            "Either the object is malformed or the URI is not correct.  Correct the condition and resubmit the request if it failed.",
        }},
    MessageEntry{
        "InvalidURI",
        {
            "Indicates that the operation encountered a URI that does not correspond to a valid resource.",
            "The URI %1 was not found.",
            "Critical",
            1,
            {
                "string",
            },
            "Provide a valid URI and resubmit the request.",
        }},
    MessageEntry{
        "MalformedJSON",
        {
            "Indicates that the request body was malformed JSON.",
            "The request body submitted was malformed JSON and could not be parsed by the receiving service.",
            "Critical",
            0,
            {},
            "Ensure that the request body is valid JSON and resubmit the request.",
        }},
    MessageEntry{
        "MaximumErrorsExceeded",
        {
            "Indicates that sufficient errors have occurred that the reporting service cannot return them all.",
            "Too many errors have occurred to report them all.",
            "Critical",
            0,
            {},
            "Resolve other reported errors and retry the current operation.",
        }},
    MessageEntry{
        "NetworkNameResolutionNotConfigured",
        {
            "Indicates that network-based name resolution has not been configured on the service.",
            "Network name resolution has not been configured on this service.",
            "Warning",
            0,
            {},
            "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.",
        }},
    MessageEntry{
        "NetworkNameResolutionNotSupported",
        {
            "Indicates the service does not support network-based name resolution.",
            "Resolution of network-based names is not supported by this service.",
            "Warning",
            0,
            {},
            "Update any URI values to include an IP address instead of a network name and resubmit the request.",
        }},
    MessageEntry{
        "NoOperation",
        {
            "Indicates that the requested operation will not perform any changes on the service.",
            "The request body submitted contain no data to act upon and no changes to the resource took place.",
            "Warning",
            0,
            {},
            "Add properties in the JSON object and resubmit the request.",
        }},
    MessageEntry{
        "NoValidSession",
        {
            "Indicates that the operation failed because a valid session is required in order to access any resources.",
            "There is no valid session established with the implementation.",
            "Critical",
            0,
            {},
            "Establish a session before attempting any operations.",
        }},
    MessageEntry{
        "OperationFailed",
        {
            "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.",
            "An error occurred internal to the service as part of the overall request.  Partial results may have been returned.",
            "Warning",
            0,
            {},
            "Resubmit the request.  If the problem persists, consider resetting the service or provider.",
        }},
    MessageEntry{
        "OperationTimeout",
        {
            "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.",
            "A timeout internal to the service occured as part of the request.  Partial results may have been returned.",
            "Warning",
            0,
            {},
            "Resubmit the request.  If the problem persists, consider resetting the service or provider.",
        }},
    MessageEntry{
        "PasswordChangeRequired",
        {
            "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.",
            "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.",
            "Critical",
            1,
            {
                "string",
            },
            "Change the password for this account using a PATCH to the Password property at the URI provided.",
        }},
    MessageEntry{
        "PreconditionFailed",
        {
            "Indicates that the ETag supplied did not match the current ETag of the resource.",
            "The ETag supplied did not match the ETag required to change this resource.",
            "Critical",
            0,
            {},
            "Try the operation again using the appropriate ETag.",
        }},
    MessageEntry{
        "PreconditionRequired",
        {
            "Indicates that the request did not provide the required precondition such as an `If-Match` or `If-None-Match` header, or `@odata.etag` annotations.",
            "A precondition header or annotation is required to change this resource.",
            "Critical",
            0,
            {},
            "Try the operation again using an If-Match or If-None-Match header and appropriate ETag.",
        }},
    MessageEntry{
        "PropertyDeprecated",
        {
            "Indicates the property is deprecated.",
            "The deprecated property %1 was included in the request body.",
            "Warning",
            1,
            {
                "string",
            },
            "Refer to the schema guide for more information.",
        }},
    MessageEntry{
        "PropertyDuplicate",
        {
            "Indicates that a duplicate property was included in the request body.",
            "The property %1 was duplicated in the request.",
            "Warning",
            1,
            {
                "string",
            },
            "Remove the duplicate property from the request body and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "PropertyMissing",
        {
            "Indicates that a required property was not supplied as part of the request.",
            "The property %1 is a required property and must be included in the request.",
            "Warning",
            1,
            {
                "string",
            },
            "Ensure that the property is in the request body and has a valid value and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "PropertyNotWritable",
        {
            "Indicates that a property was given a value in the request body, but the property is a readonly property.",
            "The property %1 is a read only property and cannot be assigned a value.",
            "Warning",
            1,
            {
                "string",
            },
            "Remove the property from the request body and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "PropertyUnknown",
        {
            "Indicates that an unknown property was included in the request body.",
            "The property %1 is not in the list of valid properties for the resource.",
            "Warning",
            1,
            {
                "string",
            },
            "Remove the unknown property from the request body and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "PropertyValueConflict",
        {
            "Indicates that the requested write of a property value could not be completed, because of a conflict with another property value.",
            "The property '%1' could not be written because its value would conflict with the value of the '%2' property.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "No resolution is required.",
        }},
    MessageEntry{
        "PropertyValueDeprecated",
        {
            "Indicates that a property was given a deprecated value.",
            "The value '%1' for the property %2 is deprecated.",
            "Warning",
            1,
            {
                "string",
                "string",
            },
            "Refer to the schema guide for more information.",
        }},
    MessageEntry{
        "PropertyValueError",
        {
            "Indicates that a property was given an invalid value.",
            "The value provided for the property %1 is not valid.",
            "Warning",
            1,
            {
                "string",
            },
            "Correct the value for the property in the request body and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "PropertyValueExternalConflict",
        {
            "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.",
            "The property '%1' with the requested value of '%2' could not be written because the value is not available due to a configuration conflict.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "No resolution is required.",
        }},
    MessageEntry{
        "PropertyValueFormatError",
        {
            "Indicates that a property was given the correct value type but the value of that property was not supported.",
            "The value '%1' for the property %2 is of a different format than the property can accept.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Correct the value for the property in the request body and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "PropertyValueIncorrect",
        {
            "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.",
            "The property '%1' with the requested value of '%2' could not be written because the value does not meet the constraints of the implementation.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "No resolution is required.",
        }},
    MessageEntry{
        "PropertyValueModified",
        {
            "Indicates that a property was given the correct value type but the value of that property was modified.  Examples are truncated or rounded values.",
            "The property %1 was assigned the value '%2' due to modification by the service.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "No resolution is required.",
        }},
    MessageEntry{
        "PropertyValueNotInList",
        {
            "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.",
            "The value '%1' for the property %2 is not in the list of acceptable values.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Choose a value from the enumeration list that the implementation can support and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "PropertyValueResourceConflict",
        {
            "Indicates that the requested write of a property value could not be completed, due to the current state or configuration of another resource.",
            "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'.",
            "Warning",
            3,
            {
                "string",
                "string",
                "string",
            },
            "No resolution is required.",
        }},
    MessageEntry{
        "PropertyValueTypeError",
        {
            "Indicates that a property was given the wrong value type, such as when a number is supplied for a property that requires a string.",
            "The value '%1' for the property %2 is of a different type than the property can accept.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Correct the value for the property in the request body and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "QueryCombinationInvalid",
        {
            "Indicates the request contains multiple query parameters, and that two or more of them cannot be used together.",
            "Two or more query parameters in the request cannot be used together.",
            "Warning",
            0,
            {},
            "Remove one or more of the query parameters and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "QueryNotSupported",
        {
            "Indicates that query is not supported on the implementation.",
            "Querying is not supported by the implementation.",
            "Warning",
            0,
            {},
            "Remove the query parameters and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "QueryNotSupportedOnOperation",
        {
            "Indicates that query is not supported with the given operation, such as when the `$expand` query is attempted with a PATCH operation.",
            "Querying is not supported with the requested operation.",
            "Warning",
            0,
            {},
            "Remove the query parameters and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "QueryNotSupportedOnResource",
        {
            "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.",
            "Querying is not supported on the requested resource.",
            "Warning",
            0,
            {},
            "Remove the query parameters and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "QueryParameterOutOfRange",
        {
            "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.",
            "The value '%1' for the query parameter %2 is out of range %3.",
            "Warning",
            3,
            {
                "string",
                "string",
                "string",
            },
            "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.",
        }},
    MessageEntry{
        "QueryParameterValueError",
        {
            "Indicates that a query parameter was given an invalid value.",
            "The value for the parameter %1 is invalid.",
            "Warning",
            1,
            {
                "string",
            },
            "Correct the value for the query parameter in the request and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "QueryParameterValueFormatError",
        {
            "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.",
            "The value '%1' for the parameter %2 is of a different format than the parameter can accept.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Correct the value for the query parameter in the request and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "QueryParameterValueTypeError",
        {
            "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.",
            "The value '%1' for the query parameter %2 is of a different type than the parameter can accept.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Correct the value for the query parameter in the request and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "ResetRequired",
        {
            "Indicates that a component reset is required for changes or operations to complete.",
            "In order to complete the operation, a component reset is required with the Reset action URI '%1' and ResetType '%2'.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Perform the required reset action on the specified component.",
        }},
    MessageEntry{
        "ResourceAlreadyExists",
        {
            "Indicates that a resource change or creation was attempted but that the operation cannot proceed because the resource already exists.",
            "The requested resource of type %1 with the property %2 with the value '%3' already exists.",
            "Critical",
            3,
            {
                "string",
                "string",
                "string",
            },
            "Do not repeat the create operation as the resource has already been created.",
        }},
    MessageEntry{
        "ResourceAtUriInUnknownFormat",
        {
            "Indicates that the URI was valid but the resource or image at that URI was in a format not supported by the service.",
            "The resource at '%1' is in a format not recognized by the service.",
            "Critical",
            1,
            {
                "string",
            },
            "Place an image or resource or file that is recognized by the service at the URI.",
        }},
    MessageEntry{
        "ResourceAtUriUnauthorized",
        {
            "Indicates that the attempt to access the resource, file, or image at the URI was unauthorized.",
            "While accessing the resource at '%1', the service received an authorization error '%2'.",
            "Critical",
            2,
            {
                "string",
                "string",
            },
            "Ensure that the appropriate access is provided for the service in order for it to access the URI.",
        }},
    MessageEntry{
        "ResourceCannotBeDeleted",
        {
            "Indicates that a delete operation was attempted on a resource that cannot be deleted.",
            "The delete request failed because the resource requested cannot be deleted.",
            "Critical",
            0,
            {},
            "Do not attempt to delete a non-deletable resource.",
        }},
    MessageEntry{
        "ResourceCreationConflict",
        {
            "Indicates that the requested resource creation could not be completed because the service has a resource that conflicts with the request.",
            "The resource could not be created.  The service has a resource at URI '%1' that conflicts with the creation request.",
            "Warning",
            1,
            {
                "string",
            },
            "No resolution is required.",
        }},
    MessageEntry{
        "ResourceDeprecated",
        {
            "Indicates the resource is deprecated.",
            "The operation was performed on a deprecated resource '%1'.",
            "Warning",
            1,
            {
                "string",
            },
            "Refer to the schema guide for more information.",
        }},
    MessageEntry{
        "ResourceExhaustion",
        {
            "Indicates that a resource could not satisfy the request due to some unavailability of resources.  An example is that available capacity has been allocated.",
            "The resource '%1' was unable to satisfy the request due to unavailability of resources.",
            "Critical",
            1,
            {
                "string",
            },
            "Ensure that the resources are available and resubmit the request.",
        }},
    MessageEntry{
        "ResourceInStandby",
        {
            "Indicates that the request could not be performed because the resource is in standby.",
            "The request could not be performed because the resource is in standby.",
            "Critical",
            0,
            {},
            "Ensure that the resource is in the correct power state and resubmit the request.",
        }},
    MessageEntry{
        "ResourceInUse",
        {
            "Indicates that a change was requested to a resource but the change was rejected due to the resource being in use or transition.",
            "The change to the requested resource failed because the resource is in use or in transition.",
            "Warning",
            0,
            {},
            "Remove the condition and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "ResourceMissingAtURI",
        {
            "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.",
            "The resource at the URI '%1' was not found.",
            "Critical",
            1,
            {
                "string",
            },
            "Place a valid resource at the URI or correct the URI and resubmit the request.",
        }},
    MessageEntry{
        "ResourceNotFound",
        {
            "Indicates that the operation expected a resource identifier that corresponds to an existing resource but one was not found.",
            "The requested resource of type %1 named '%2' was not found.",
            "Critical",
            2,
            {
                "string",
                "string",
            },
            "Provide a valid resource identifier and resubmit the request.",
        }},
    MessageEntry{
        "ResourceTypeIncompatible",
        {
            "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.",
            "The @odata.type of the request body %1 is incompatible with the @odata.type of the resource, which is %2.",
            "Critical",
            2,
            {
                "string",
                "string",
            },
            "Resubmit the request with a payload compatible with the resource's schema.",
        }},
    MessageEntry{
        "RestrictedPrivilege",
        {
            "Indicates that the operation was not successful because a privilege is restricted.",
            "The operation was not successful because the privilege '%1' is restricted.",
            "Warning",
            1,
            {
                "string",
            },
            "Remove restricted privileges from the request body and resubmit the request.",
        }},
    MessageEntry{
        "RestrictedRole",
        {
            "Indicates that the operation was not successful because the role is restricted.",
            "The operation was not successful because the role '%1' is restricted.",
            "Warning",
            1,
            {
                "string",
            },
            "No resolution is required.  For standard roles, consider using the role specified in the AlternateRoleId property in the Role resource.",
        }},
    MessageEntry{
        "ServiceDisabled",
        {
            "Indicates that the operation failed because the service, such as the account service, is disabled and cannot accept requests.",
            "The operation failed because the service at %1 is disabled and cannot accept requests.",
            "Warning",
            1,
            {
                "string",
            },
            "Enable the service and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "ServiceInUnknownState",
        {
            "Indicates that the operation failed because the service is in an unknown state and cannot accept additional requests.",
            "The operation failed because the service is in an unknown state and can no longer take incoming requests.",
            "Critical",
            0,
            {},
            "Restart the service and resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "ServiceShuttingDown",
        {
            "Indicates that the operation failed as the service is shutting down, such as when the service reboots.",
            "The operation failed because the service is shutting down and can no longer take incoming requests.",
            "Critical",
            0,
            {},
            "When the service becomes available, resubmit the request if the operation failed.",
        }},
    MessageEntry{
        "ServiceTemporarilyUnavailable",
        {
            "Indicates the service is temporarily unavailable.",
            "The service is temporarily unavailable.  Retry in %1 seconds.",
            "Critical",
            1,
            {
                "string",
            },
            "Wait for the indicated retry duration and retry the operation.",
        }},
    MessageEntry{
        "SessionLimitExceeded",
        {
            "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.",
            "The session establishment failed due to the number of simultaneous sessions exceeding the limit of the implementation.",
            "Critical",
            0,
            {},
            "Reduce the number of other sessions before trying to establish the session or increase the limit of simultaneous sessions, if supported.",
        }},
    MessageEntry{
        "SessionTerminated",
        {
            "Indicates that the DELETE operation on the session resource resulted in the successful termination of the session.",
            "The session was successfully terminated.",
            "OK",
            0,
            {},
            "No resolution is required.",
        }},
    MessageEntry{
        "SourceDoesNotSupportProtocol",
        {
            "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.",
            "The other end of the connection at '%1' does not support the specified protocol %2.",
            "Critical",
            2,
            {
                "string",
                "string",
            },
            "Change protocols or URIs.",
        }},
    MessageEntry{
        "StrictAccountTypes",
        {
            "Indicates the request failed because a set of `AccountTypes` or `OEMAccountTypes` was not accepted while `StrictAccountTypes` is set to `true`.",
            "The request was not possible to fulfill with the account types included in property '%1' and property StrictAccountTypes set to true.",
            "Warning",
            1,
            {
                "string",
            },
            "Resubmit the request either with an acceptable set of AccountTypes and OEMAccountTypes or with StrictAccountTypes set to false.",
        }},
    MessageEntry{
        "StringValueTooLong",
        {
            "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.",
            "The string '%1' exceeds the length limit %2.",
            "Warning",
            2,
            {
                "string",
                "number",
            },
            "Resubmit the request with an appropriate string length.",
        }},
    MessageEntry{
        "SubscriptionTerminated",
        {
            "An event subscription has been terminated by the service.  No further events will be delivered.",
            "The event subscription has been terminated.",
            "OK",
            0,
            {},
            "No resolution is required.",
        }},
    MessageEntry{
        "Success",
        {
            "Indicates that all conditions of a successful operation have been met.",
            "The request completed successfully.",
            "OK",
            0,
            {},
            "None",
        }},
    MessageEntry{
        "UndeterminedFault",
        {
            "Indicates that a fault or error condition exists but the source of the fault cannot be determined or is unknown to the service.",
            "A undetermined fault condition has been reported by '%1'.",
            "Critical",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "UnrecognizedRequestBody",
        {
            "Indicates that the service encountered an unrecognizable request body that could not even be interpreted as malformed JSON.",
            "The service detected a malformed request body that it was unable to interpret.",
            "Warning",
            0,
            {},
            "Correct the request body and resubmit the request if it failed.",
        }},

};

enum class Index
{
    accessDenied = 0,
    accountForSessionNoLongerExists = 1,
    accountModified = 2,
    accountNotModified = 3,
    accountRemoved = 4,
    actionDeprecated = 5,
    actionNotSupported = 6,
    actionParameterDuplicate = 7,
    actionParameterMissing = 8,
    actionParameterNotSupported = 9,
    actionParameterUnknown = 10,
    actionParameterValueError = 11,
    actionParameterValueFormatError = 12,
    actionParameterValueNotInList = 13,
    actionParameterValueTypeError = 14,
    chassisPowerStateOffRequired = 15,
    chassisPowerStateOnRequired = 16,
    conditionInRelatedResource = 17,
    couldNotEstablishConnection = 18,
    createFailedMissingReqProperties = 19,
    createLimitReachedForResource = 20,
    created = 21,
    emptyJSON = 22,
    eventSubscriptionLimitExceeded = 23,
    generalError = 24,
    insufficientPrivilege = 25,
    internalError = 26,
    invalidIndex = 27,
    invalidJSON = 28,
    invalidObject = 29,
    invalidURI = 30,
    malformedJSON = 31,
    maximumErrorsExceeded = 32,
    networkNameResolutionNotConfigured = 33,
    networkNameResolutionNotSupported = 34,
    noOperation = 35,
    noValidSession = 36,
    operationFailed = 37,
    operationTimeout = 38,
    passwordChangeRequired = 39,
    preconditionFailed = 40,
    preconditionRequired = 41,
    propertyDeprecated = 42,
    propertyDuplicate = 43,
    propertyMissing = 44,
    propertyNotWritable = 45,
    propertyUnknown = 46,
    propertyValueConflict = 47,
    propertyValueDeprecated = 48,
    propertyValueError = 49,
    propertyValueExternalConflict = 50,
    propertyValueFormatError = 51,
    propertyValueIncorrect = 52,
    propertyValueModified = 53,
    propertyValueNotInList = 54,
    propertyValueResourceConflict = 55,
    propertyValueTypeError = 56,
    queryCombinationInvalid = 57,
    queryNotSupported = 58,
    queryNotSupportedOnOperation = 59,
    queryNotSupportedOnResource = 60,
    queryParameterOutOfRange = 61,
    queryParameterValueError = 62,
    queryParameterValueFormatError = 63,
    queryParameterValueTypeError = 64,
    resetRequired = 65,
    resourceAlreadyExists = 66,
    resourceAtUriInUnknownFormat = 67,
    resourceAtUriUnauthorized = 68,
    resourceCannotBeDeleted = 69,
    resourceCreationConflict = 70,
    resourceDeprecated = 71,
    resourceExhaustion = 72,
    resourceInStandby = 73,
    resourceInUse = 74,
    resourceMissingAtURI = 75,
    resourceNotFound = 76,
    resourceTypeIncompatible = 77,
    restrictedPrivilege = 78,
    restrictedRole = 79,
    serviceDisabled = 80,
    serviceInUnknownState = 81,
    serviceShuttingDown = 82,
    serviceTemporarilyUnavailable = 83,
    sessionLimitExceeded = 84,
    sessionTerminated = 85,
    sourceDoesNotSupportProtocol = 86,
    strictAccountTypes = 87,
    stringValueTooLong = 88,
    subscriptionTerminated = 89,
    success = 90,
    undeterminedFault = 91,
    unrecognizedRequestBody = 92,
};
} // namespace redfish::registries::base