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::job_event 19 { 20 const Header header = { 21 "Copyright 2014-2023 DMTF in cooperation with the Storage Networking Industry Association (SNIA). All rights reserved.", 22 "#MessageRegistry.v1_6_2.MessageRegistry", 23 "JobEvent.1.0.1", 24 "Job Event Message Registry", 25 "en", 26 "This registry defines the messages for job related events.", 27 "JobEvent", 28 "1.0.1", 29 "DMTF", 30 }; 31 constexpr const char* url = 32 "https://redfish.dmtf.org/registries/JobEvent.1.0.1.json"; 33 34 constexpr std::array registry = 35 { 36 MessageEntry{ 37 "JobCancelled", 38 { 39 "A job was cancelled.", 40 "The job with Id '%1' was cancelled.", 41 "Warning", 42 1, 43 { 44 "string", 45 }, 46 "None.", 47 }}, 48 MessageEntry{ 49 "JobCompletedException", 50 { 51 "A job has completed with warnings or errors.", 52 "The job with Id '%1' has completed with warnings or errors.", 53 "Warning", 54 1, 55 { 56 "string", 57 }, 58 "None.", 59 }}, 60 MessageEntry{ 61 "JobCompletedOK", 62 { 63 "A job has completed.", 64 "The job with Id '%1' has completed.", 65 "OK", 66 1, 67 { 68 "string", 69 }, 70 "None.", 71 }}, 72 MessageEntry{ 73 "JobProgressChanged", 74 { 75 "A job has changed progress.", 76 "The job with Id '%1' has changed to progress %2 percent complete.", 77 "OK", 78 2, 79 { 80 "string", 81 "number", 82 }, 83 "None.", 84 }}, 85 MessageEntry{ 86 "JobRemoved", 87 { 88 "A job was removed.", 89 "The job with Id '%1' was removed.", 90 "Warning", 91 1, 92 { 93 "string", 94 }, 95 "None.", 96 }}, 97 MessageEntry{ 98 "JobResumed", 99 { 100 "A job has resumed.", 101 "The job with Id '%1' has resumed.", 102 "OK", 103 1, 104 { 105 "string", 106 }, 107 "None.", 108 }}, 109 MessageEntry{ 110 "JobStarted", 111 { 112 "A job has started.", 113 "The job with Id '%1' has started.", 114 "OK", 115 1, 116 { 117 "string", 118 }, 119 "None.", 120 }}, 121 MessageEntry{ 122 "JobSuspended", 123 { 124 "A job was suspended.", 125 "The job with Id '%1' was suspended.", 126 "Warning", 127 1, 128 { 129 "string", 130 }, 131 "None.", 132 }}, 133 134 }; 135 136 enum class Index 137 { 138 jobCancelled = 0, 139 jobCompletedException = 1, 140 jobCompletedOK = 2, 141 jobProgressChanged = 3, 142 jobRemoved = 4, 143 jobResumed = 5, 144 jobStarted = 6, 145 jobSuspended = 7, 146 }; 147 } // namespace redfish::registries::job_event 148