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::task_event 19 { 20 const Header header = { 21 "Copyright 2014-2020 DMTF in cooperation with the Storage Networking Industry Association (SNIA). All rights reserved.", 22 "#MessageRegistry.v1_4_1.MessageRegistry", 23 "TaskEvent.1.0.3", 24 "Task Event Message Registry", 25 "en", 26 "This registry defines the messages for task related events.", 27 "TaskEvent", 28 "1.0.3", 29 "DMTF", 30 }; 31 constexpr const char* url = 32 "https://redfish.dmtf.org/registries/TaskEvent.1.0.3.json"; 33 34 constexpr std::array registry = 35 { 36 MessageEntry{ 37 "TaskAborted", 38 { 39 "A task has completed with errors.", 40 "The task with Id '%1' has completed with errors.", 41 "Critical", 42 1, 43 { 44 "string", 45 }, 46 "None.", 47 }}, 48 MessageEntry{ 49 "TaskCancelled", 50 { 51 "A task has been cancelled.", 52 "Work on the task with Id '%1' has been halted prior to completion due to an explicit request.", 53 "Warning", 54 1, 55 { 56 "string", 57 }, 58 "None.", 59 }}, 60 MessageEntry{ 61 "TaskCompletedOK", 62 { 63 "A task has completed.", 64 "The task with Id '%1' has completed.", 65 "OK", 66 1, 67 { 68 "string", 69 }, 70 "None.", 71 }}, 72 MessageEntry{ 73 "TaskCompletedWarning", 74 { 75 "A task has completed with warnings.", 76 "The task with Id '%1' has completed with warnings.", 77 "Warning", 78 1, 79 { 80 "string", 81 }, 82 "None.", 83 }}, 84 MessageEntry{ 85 "TaskPaused", 86 { 87 "A task has been paused.", 88 "The task with Id '%1' has been paused.", 89 "Warning", 90 1, 91 { 92 "string", 93 }, 94 "None.", 95 }}, 96 MessageEntry{ 97 "TaskProgressChanged", 98 { 99 "A task has changed progress.", 100 "The task with Id '%1' has changed to progress %2 percent complete.", 101 "OK", 102 2, 103 { 104 "string", 105 "number", 106 }, 107 "None.", 108 }}, 109 MessageEntry{ 110 "TaskRemoved", 111 { 112 "A task has been removed.", 113 "The task with Id '%1' has been removed.", 114 "Warning", 115 1, 116 { 117 "string", 118 }, 119 "None.", 120 }}, 121 MessageEntry{ 122 "TaskResumed", 123 { 124 "A task has been resumed.", 125 "The task with Id '%1' has been resumed.", 126 "OK", 127 1, 128 { 129 "string", 130 }, 131 "None.", 132 }}, 133 MessageEntry{ 134 "TaskStarted", 135 { 136 "A task has started.", 137 "The task with Id '%1' has started.", 138 "OK", 139 1, 140 { 141 "string", 142 }, 143 "None.", 144 }}, 145 146 }; 147 148 enum class Index 149 { 150 taskAborted = 0, 151 taskCancelled = 1, 152 taskCompletedOK = 2, 153 taskCompletedWarning = 3, 154 taskPaused = 4, 155 taskProgressChanged = 5, 156 taskRemoved = 6, 157 taskResumed = 7, 158 taskStarted = 8, 159 }; 160 } // namespace redfish::registries::task_event 161