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