1 #pragma once 2 /**************************************************************** 3 * READ THIS WARNING FIRST 4 * This is an auto-generated header which contains definitions 5 * for Redfish DMTF defined messages. 6 * DO NOT modify this registry outside of running the 7 * parse_registries.py script. The definitions contained within 8 * this file are owned by DMTF. Any modifications to these files 9 * should be first pushed to the relevant registry in the DMTF 10 * github organization. 11 ***************************************************************/ 12 #include "registries.hpp" 13 14 #include <array> 15 16 // clang-format off 17 18 namespace redfish::registries::license 19 { 20 const Header header = { 21 "Copyright 2014-2023 DMTF. All rights reserved.", 22 "#MessageRegistry.v1_6_2.MessageRegistry", 23 1, 24 0, 25 3, 26 "License Message Registry", 27 "en", 28 "This registry defines the license status and error messages.", 29 "License", 30 "DMTF", 31 }; 32 constexpr const char* url = 33 "https://redfish.dmtf.org/registries/License.1.0.3.json"; 34 35 constexpr std::array registry = 36 { 37 MessageEntry{ 38 "DaysBeforeExpiration", 39 { 40 "Indicates the number of days remaining on a license before expiration.", 41 "The license '%1' will expire in %2 days.", 42 "OK", 43 2, 44 { 45 "string", 46 "number", 47 }, 48 "None.", 49 }}, 50 MessageEntry{ 51 "Expired", 52 { 53 "Indicates that a license has expired and its functionality was disabled.", 54 "The license '%1' has expired.", 55 "Warning", 56 1, 57 { 58 "string", 59 }, 60 "None.", 61 }}, 62 MessageEntry{ 63 "GracePeriod", 64 { 65 "Indicates that a license has expired and entered its grace period.", 66 "The license '%1' has expired, %2 day grace period before licensed functionality is disabled.", 67 "Warning", 68 2, 69 { 70 "string", 71 "number", 72 }, 73 "None.", 74 }}, 75 MessageEntry{ 76 "InstallFailed", 77 { 78 "Indicates that the service failed to install the license.", 79 "Failed to install the license. Reason: %1.", 80 "Critical", 81 1, 82 { 83 "string", 84 }, 85 "None.", 86 }}, 87 MessageEntry{ 88 "InvalidLicense", 89 { 90 "Indicates that the license was not recognized, is corrupted, or is invalid.", 91 "The content of the license was not recognized, is corrupted, or is invalid.", 92 "Critical", 93 0, 94 {}, 95 "Verify the license content is correct and resubmit the request.", 96 }}, 97 MessageEntry{ 98 "LicenseInstalled", 99 { 100 "Indicates that a license was installed.", 101 "The license '%1' was installed.", 102 "OK", 103 1, 104 { 105 "string", 106 }, 107 "None.", 108 }}, 109 MessageEntry{ 110 "NotApplicableToTarget", 111 { 112 "Indicates that the license is not applicable to the target.", 113 "The license is not applicable to the target.", 114 "Critical", 115 0, 116 {}, 117 "Check the license compatibility or applicability to the specified target.", 118 }}, 119 MessageEntry{ 120 "TargetsRequired", 121 { 122 "Indicates that one or more targets need to be specified with the license.", 123 "The license requires targets to be specified.", 124 "Critical", 125 0, 126 {}, 127 "Add AuthorizedDevices to Links and resubmit the request.", 128 }}, 129 130 }; 131 132 enum class Index 133 { 134 daysBeforeExpiration = 0, 135 expired = 1, 136 gracePeriod = 2, 137 installFailed = 3, 138 invalidLicense = 4, 139 licenseInstalled = 5, 140 notApplicableToTarget = 6, 141 targetsRequired = 7, 142 }; 143 } // namespace redfish::registries::license 144