1 /* 2 // Copyright (c) 2020 Intel Corporation 3 // 4 // Licensed under the Apache License, Version 2.0 (the "License"); 5 // you may not use this file except in compliance with the License. 6 // You may obtain a copy of the License at 7 // 8 // http://www.apache.org/licenses/LICENSE-2.0 9 // 10 // Unless required by applicable law or agreed to in writing, software 11 // distributed under the License is distributed on an "AS IS" BASIS, 12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 // See the License for the specific language governing permissions and 14 // limitations under the License. 15 */ 16 /**************************************************************** 17 * This is an auto-generated header which contains definitions 18 * for Redfish DMTF defined messages. 19 ***************************************************************/ 20 #pragma once 21 #include <registries.hpp> 22 23 namespace redfish::message_registries::task_event 24 { 25 const Header header = { 26 "Copyright 2014-2018 DMTF in cooperation with the Storage Networking " 27 "Industry Association (SNIA). All rights reserved.", 28 "#MessageRegistry.v1_2_0.MessageRegistry", 29 "TaskEvent.1.0.1", 30 "Task Event Message Registry", 31 "en", 32 "This registry defines the messages for task related events.", 33 "TaskEvent", 34 "1.0.1", 35 "DMTF", 36 }; 37 constexpr const char* url = 38 "https://redfish.dmtf.org/registries/TaskEvent.1.0.1.json"; 39 40 constexpr std::array<MessageEntry, 9> registry = { 41 MessageEntry{"TaskAborted", 42 { 43 "The task with id %1 has been aborted.", 44 "The task with id %1 has been aborted.", 45 "Critical", 46 1, 47 { 48 "string", 49 }, 50 "None.", 51 }}, 52 MessageEntry{"TaskCancelled", 53 { 54 "The task with id %1 has been cancelled.", 55 "The task with id %1 has been cancelled.", 56 "Warning", 57 1, 58 { 59 "string", 60 }, 61 "None.", 62 }}, 63 MessageEntry{"TaskCompletedOK", 64 { 65 "The task with id %1 has completed.", 66 "The task with id %1 has completed.", 67 "OK", 68 1, 69 { 70 "string", 71 }, 72 "None.", 73 }}, 74 MessageEntry{"TaskCompletedWarning", 75 { 76 "The task with id %1 has completed with warnings.", 77 "The task with id %1 has completed with warnings.", 78 "Warning", 79 1, 80 { 81 "string", 82 }, 83 "None.", 84 }}, 85 MessageEntry{"TaskPaused", 86 { 87 "The task with id %1 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 "The task with id %1 has changed to progress %2 percent complete.", 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{"TaskRemoved", 110 { 111 "The task with id %1 has been removed.", 112 "The task with id %1 has been removed.", 113 "Warning", 114 1, 115 { 116 "string", 117 }, 118 "None.", 119 }}, 120 MessageEntry{"TaskResumed", 121 { 122 "The task with id %1 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{"TaskStarted", 132 { 133 "The task with id %1 has started.", 134 "The task with id %1 has started.", 135 "OK", 136 1, 137 { 138 "string", 139 }, 140 "None.", 141 }}, 142 }; 143 } // namespace redfish::message_registries::task_event 144