summaryrefslogtreecommitdiff
path: root/redfish-core/include/registries/license_message_registry.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/include/registries/license_message_registry.hpp')
-rw-r--r--redfish-core/include/registries/license_message_registry.hpp142
1 files changed, 142 insertions, 0 deletions
diff --git a/redfish-core/include/registries/license_message_registry.hpp b/redfish-core/include/registries/license_message_registry.hpp
new file mode 100644
index 0000000000..1132cb4234
--- /dev/null
+++ b/redfish-core/include/registries/license_message_registry.hpp
@@ -0,0 +1,142 @@
+#pragma once
+/****************************************************************
+ * 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.
+ ***************************************************************/
+#include "registries.hpp"
+
+#include <array>
+
+// clang-format off
+
+namespace redfish::registries::license
+{
+const Header header = {
+ "Copyright 2014-2023 DMTF. All rights reserved.",
+ "#MessageRegistry.v1_6_2.MessageRegistry",
+ "License.1.0.3",
+ "License Message Registry",
+ "en",
+ "This registry defines the license status and error messages.",
+ "License",
+ "1.0.3",
+ "DMTF",
+};
+constexpr const char* url =
+ "https://redfish.dmtf.org/registries/License.1.0.3.json";
+
+constexpr std::array registry =
+{
+ MessageEntry{
+ "DaysBeforeExpiration",
+ {
+ "Indicates the number of days remaining on a license before expiration.",
+ "The license '%1' will expire in %2 days.",
+ "OK",
+ 2,
+ {
+ "string",
+ "number",
+ },
+ "None.",
+ }},
+ MessageEntry{
+ "Expired",
+ {
+ "Indicates that a license has expired and its functionality was disabled.",
+ "The license '%1' has expired.",
+ "Warning",
+ 1,
+ {
+ "string",
+ },
+ "None.",
+ }},
+ MessageEntry{
+ "GracePeriod",
+ {
+ "Indicates that a license has expired and entered its grace period.",
+ "The license '%1' has expired, %2 day grace period before licensed functionality is disabled.",
+ "Warning",
+ 2,
+ {
+ "string",
+ "number",
+ },
+ "None.",
+ }},
+ MessageEntry{
+ "InstallFailed",
+ {
+ "Indicates that the service failed to install the license.",
+ "Failed to install the license. Reason: %1.",
+ "Critical",
+ 1,
+ {
+ "string",
+ },
+ "None.",
+ }},
+ MessageEntry{
+ "InvalidLicense",
+ {
+ "Indicates that the license was not recognized, is corrupted, or is invalid.",
+ "The content of the license was not recognized, is corrupted, or is invalid.",
+ "Critical",
+ 0,
+ {},
+ "Verify the license content is correct and resubmit the request.",
+ }},
+ MessageEntry{
+ "LicenseInstalled",
+ {
+ "Indicates that a license was installed.",
+ "The license '%1' was installed.",
+ "OK",
+ 1,
+ {
+ "string",
+ },
+ "None.",
+ }},
+ MessageEntry{
+ "NotApplicableToTarget",
+ {
+ "Indicates that the license is not applicable to the target.",
+ "The license is not applicable to the target.",
+ "Critical",
+ 0,
+ {},
+ "Check the license compatibility or applicability to the specified target.",
+ }},
+ MessageEntry{
+ "TargetsRequired",
+ {
+ "Indicates that one or more targets need to be specified with the license.",
+ "The license requires targets to be specified.",
+ "Critical",
+ 0,
+ {},
+ "Add AuthorizedDevices to Links and resubmit the request.",
+ }},
+
+};
+
+enum class Index
+{
+ daysBeforeExpiration = 0,
+ expired = 1,
+ gracePeriod = 2,
+ installFailed = 3,
+ invalidLicense = 4,
+ licenseInstalled = 5,
+ notApplicableToTarget = 6,
+ targetsRequired = 7,
+};
+} // namespace redfish::registries::license