1665e7602SGunnar Mills #pragma once 2665e7602SGunnar Mills /**************************************************************** 3665e7602SGunnar Mills * READ THIS WARNING FIRST 4665e7602SGunnar Mills * This is an auto-generated header which contains definitions 5665e7602SGunnar Mills * for Redfish DMTF defined messages. 6665e7602SGunnar Mills * DO NOT modify this registry outside of running the 7665e7602SGunnar Mills * parse_registries.py script. The definitions contained within 8665e7602SGunnar Mills * this file are owned by DMTF. Any modifications to these files 9665e7602SGunnar Mills * should be first pushed to the relevant registry in the DMTF 10665e7602SGunnar Mills * github organization. 11665e7602SGunnar Mills ***************************************************************/ 12665e7602SGunnar Mills #include "registries.hpp" 13665e7602SGunnar Mills 14665e7602SGunnar Mills #include <array> 15665e7602SGunnar Mills 16665e7602SGunnar Mills // clang-format off 17665e7602SGunnar Mills 18665e7602SGunnar Mills namespace redfish::registries::license 19665e7602SGunnar Mills { 20665e7602SGunnar Mills const Header header = { 21665e7602SGunnar Mills "Copyright 2014-2023 DMTF. All rights reserved.", 22665e7602SGunnar Mills "#MessageRegistry.v1_6_2.MessageRegistry", 23*56b81992SEd Tanous 1, 24*56b81992SEd Tanous 0, 25*56b81992SEd Tanous 3, 26665e7602SGunnar Mills "License Message Registry", 27665e7602SGunnar Mills "en", 28665e7602SGunnar Mills "This registry defines the license status and error messages.", 29665e7602SGunnar Mills "License", 30665e7602SGunnar Mills "DMTF", 31665e7602SGunnar Mills }; 32665e7602SGunnar Mills constexpr const char* url = 33665e7602SGunnar Mills "https://redfish.dmtf.org/registries/License.1.0.3.json"; 34665e7602SGunnar Mills 35665e7602SGunnar Mills constexpr std::array registry = 36665e7602SGunnar Mills { 37665e7602SGunnar Mills MessageEntry{ 38665e7602SGunnar Mills "DaysBeforeExpiration", 39665e7602SGunnar Mills { 40665e7602SGunnar Mills "Indicates the number of days remaining on a license before expiration.", 41665e7602SGunnar Mills "The license '%1' will expire in %2 days.", 42665e7602SGunnar Mills "OK", 43665e7602SGunnar Mills 2, 44665e7602SGunnar Mills { 45665e7602SGunnar Mills "string", 46665e7602SGunnar Mills "number", 47665e7602SGunnar Mills }, 48665e7602SGunnar Mills "None.", 49665e7602SGunnar Mills }}, 50665e7602SGunnar Mills MessageEntry{ 51665e7602SGunnar Mills "Expired", 52665e7602SGunnar Mills { 53665e7602SGunnar Mills "Indicates that a license has expired and its functionality was disabled.", 54665e7602SGunnar Mills "The license '%1' has expired.", 55665e7602SGunnar Mills "Warning", 56665e7602SGunnar Mills 1, 57665e7602SGunnar Mills { 58665e7602SGunnar Mills "string", 59665e7602SGunnar Mills }, 60665e7602SGunnar Mills "None.", 61665e7602SGunnar Mills }}, 62665e7602SGunnar Mills MessageEntry{ 63665e7602SGunnar Mills "GracePeriod", 64665e7602SGunnar Mills { 65665e7602SGunnar Mills "Indicates that a license has expired and entered its grace period.", 66665e7602SGunnar Mills "The license '%1' has expired, %2 day grace period before licensed functionality is disabled.", 67665e7602SGunnar Mills "Warning", 68665e7602SGunnar Mills 2, 69665e7602SGunnar Mills { 70665e7602SGunnar Mills "string", 71665e7602SGunnar Mills "number", 72665e7602SGunnar Mills }, 73665e7602SGunnar Mills "None.", 74665e7602SGunnar Mills }}, 75665e7602SGunnar Mills MessageEntry{ 76665e7602SGunnar Mills "InstallFailed", 77665e7602SGunnar Mills { 78665e7602SGunnar Mills "Indicates that the service failed to install the license.", 79665e7602SGunnar Mills "Failed to install the license. Reason: %1.", 80665e7602SGunnar Mills "Critical", 81665e7602SGunnar Mills 1, 82665e7602SGunnar Mills { 83665e7602SGunnar Mills "string", 84665e7602SGunnar Mills }, 85665e7602SGunnar Mills "None.", 86665e7602SGunnar Mills }}, 87665e7602SGunnar Mills MessageEntry{ 88665e7602SGunnar Mills "InvalidLicense", 89665e7602SGunnar Mills { 90665e7602SGunnar Mills "Indicates that the license was not recognized, is corrupted, or is invalid.", 91665e7602SGunnar Mills "The content of the license was not recognized, is corrupted, or is invalid.", 92665e7602SGunnar Mills "Critical", 93665e7602SGunnar Mills 0, 94665e7602SGunnar Mills {}, 95665e7602SGunnar Mills "Verify the license content is correct and resubmit the request.", 96665e7602SGunnar Mills }}, 97665e7602SGunnar Mills MessageEntry{ 98665e7602SGunnar Mills "LicenseInstalled", 99665e7602SGunnar Mills { 100665e7602SGunnar Mills "Indicates that a license was installed.", 101665e7602SGunnar Mills "The license '%1' was installed.", 102665e7602SGunnar Mills "OK", 103665e7602SGunnar Mills 1, 104665e7602SGunnar Mills { 105665e7602SGunnar Mills "string", 106665e7602SGunnar Mills }, 107665e7602SGunnar Mills "None.", 108665e7602SGunnar Mills }}, 109665e7602SGunnar Mills MessageEntry{ 110665e7602SGunnar Mills "NotApplicableToTarget", 111665e7602SGunnar Mills { 112665e7602SGunnar Mills "Indicates that the license is not applicable to the target.", 113665e7602SGunnar Mills "The license is not applicable to the target.", 114665e7602SGunnar Mills "Critical", 115665e7602SGunnar Mills 0, 116665e7602SGunnar Mills {}, 117665e7602SGunnar Mills "Check the license compatibility or applicability to the specified target.", 118665e7602SGunnar Mills }}, 119665e7602SGunnar Mills MessageEntry{ 120665e7602SGunnar Mills "TargetsRequired", 121665e7602SGunnar Mills { 122665e7602SGunnar Mills "Indicates that one or more targets need to be specified with the license.", 123665e7602SGunnar Mills "The license requires targets to be specified.", 124665e7602SGunnar Mills "Critical", 125665e7602SGunnar Mills 0, 126665e7602SGunnar Mills {}, 127665e7602SGunnar Mills "Add AuthorizedDevices to Links and resubmit the request.", 128665e7602SGunnar Mills }}, 129665e7602SGunnar Mills 130665e7602SGunnar Mills }; 131665e7602SGunnar Mills 132665e7602SGunnar Mills enum class Index 133665e7602SGunnar Mills { 134665e7602SGunnar Mills daysBeforeExpiration = 0, 135665e7602SGunnar Mills expired = 1, 136665e7602SGunnar Mills gracePeriod = 2, 137665e7602SGunnar Mills installFailed = 3, 138665e7602SGunnar Mills invalidLicense = 4, 139665e7602SGunnar Mills licenseInstalled = 5, 140665e7602SGunnar Mills notApplicableToTarget = 6, 141665e7602SGunnar Mills targetsRequired = 7, 142665e7602SGunnar Mills }; 143665e7602SGunnar Mills } // namespace redfish::registries::license 144