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