140e9b92eSEd Tanous // SPDX-License-Identifier: Apache-2.0 240e9b92eSEd Tanous // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3665e7602SGunnar Mills #pragma once 4665e7602SGunnar Mills /**************************************************************** 5665e7602SGunnar Mills * READ THIS WARNING FIRST 6665e7602SGunnar Mills * This is an auto-generated header which contains definitions 7665e7602SGunnar Mills * for Redfish DMTF defined messages. 8665e7602SGunnar Mills * DO NOT modify this registry outside of running the 9665e7602SGunnar Mills * parse_registries.py script. The definitions contained within 10665e7602SGunnar Mills * this file are owned by DMTF. Any modifications to these files 11665e7602SGunnar Mills * should be first pushed to the relevant registry in the DMTF 12665e7602SGunnar Mills * github organization. 13665e7602SGunnar Mills ***************************************************************/ 14665e7602SGunnar Mills #include "registries.hpp" 15665e7602SGunnar Mills 16665e7602SGunnar Mills #include <array> 17665e7602SGunnar Mills 18665e7602SGunnar Mills // clang-format off 19665e7602SGunnar Mills 204a102cd4SPatrick Williams namespace redfish::registries 21665e7602SGunnar Mills { 224a102cd4SPatrick Williams struct Update 234a102cd4SPatrick Williams { 244a102cd4SPatrick Williams static constexpr Header header = { 25*d3616d13SAlexander Hansen "Copyright 2014-2025 DMTF. All rights reserved.", 26665e7602SGunnar Mills "#MessageRegistry.v1_6_2.MessageRegistry", 2756b81992SEd Tanous 1, 2856b81992SEd Tanous 2, 29*d3616d13SAlexander Hansen 0, 30665e7602SGunnar Mills "Update Message Registry", 31665e7602SGunnar Mills "en", 32665e7602SGunnar Mills "This registry defines the update status and error messages.", 33665e7602SGunnar Mills "Update", 34665e7602SGunnar Mills "DMTF", 35665e7602SGunnar Mills }; 364a102cd4SPatrick Williams 374a102cd4SPatrick Williams static constexpr const char* url = 38*d3616d13SAlexander Hansen "https://redfish.dmtf.org/registries/Update.1.2.0.json"; 39665e7602SGunnar Mills 404a102cd4SPatrick Williams static constexpr std::array registry = 41665e7602SGunnar Mills { 42665e7602SGunnar Mills MessageEntry{ 43665e7602SGunnar Mills "ActivateFailed", 44665e7602SGunnar Mills { 45665e7602SGunnar Mills "Indicates that the component failed to activate the image.", 46665e7602SGunnar Mills "Activation of image '%1' on '%2' failed.", 47665e7602SGunnar Mills "Critical", 48665e7602SGunnar Mills 2, 49665e7602SGunnar Mills { 50665e7602SGunnar Mills "string", 51665e7602SGunnar Mills "string", 52665e7602SGunnar Mills }, 53665e7602SGunnar Mills "None.", 54665e7602SGunnar Mills }}, 55665e7602SGunnar Mills MessageEntry{ 56665e7602SGunnar Mills "AllTargetsDetermined", 57665e7602SGunnar Mills { 58665e7602SGunnar Mills "Indicates that all target resources or devices for an update operation were determined by the service.", 59665e7602SGunnar Mills "All the target devices to be updated were determined.", 60665e7602SGunnar Mills "OK", 61665e7602SGunnar Mills 0, 62665e7602SGunnar Mills {}, 63665e7602SGunnar Mills "None.", 64665e7602SGunnar Mills }}, 65665e7602SGunnar Mills MessageEntry{ 66665e7602SGunnar Mills "ApplyFailed", 67665e7602SGunnar Mills { 68665e7602SGunnar Mills "Indicates that the component failed to apply an image.", 69665e7602SGunnar Mills "Installation of image '%1' to '%2' failed.", 70665e7602SGunnar Mills "Critical", 71665e7602SGunnar Mills 2, 72665e7602SGunnar Mills { 73665e7602SGunnar Mills "string", 74665e7602SGunnar Mills "string", 75665e7602SGunnar Mills }, 76665e7602SGunnar Mills "None.", 77665e7602SGunnar Mills }}, 78665e7602SGunnar Mills MessageEntry{ 79665e7602SGunnar Mills "ApplyingOnComponent", 80665e7602SGunnar Mills { 81665e7602SGunnar Mills "Indicates that a component is applying an image.", 82665e7602SGunnar Mills "Image '%1' is being applied on '%2'.", 83665e7602SGunnar Mills "OK", 84665e7602SGunnar Mills 2, 85665e7602SGunnar Mills { 86665e7602SGunnar Mills "string", 87665e7602SGunnar Mills "string", 88665e7602SGunnar Mills }, 89665e7602SGunnar Mills "None.", 90665e7602SGunnar Mills }}, 91665e7602SGunnar Mills MessageEntry{ 92665e7602SGunnar Mills "AwaitToActivate", 93665e7602SGunnar Mills { 94665e7602SGunnar Mills "Indicates that the resource or device is waiting for an action to proceed with activating an image.", 95665e7602SGunnar Mills "Awaiting for an action to proceed with activating image '%1' on '%2'.", 96665e7602SGunnar Mills "OK", 97665e7602SGunnar Mills 2, 98665e7602SGunnar Mills { 99665e7602SGunnar Mills "string", 100665e7602SGunnar Mills "string", 101665e7602SGunnar Mills }, 102665e7602SGunnar Mills "Perform the requested action to advance the update operation.", 103665e7602SGunnar Mills }}, 104665e7602SGunnar Mills MessageEntry{ 105665e7602SGunnar Mills "AwaitToUpdate", 106665e7602SGunnar Mills { 107665e7602SGunnar Mills "Indicates that the resource or device is waiting for an action to proceed with installing an image.", 108665e7602SGunnar Mills "Awaiting for an action to proceed with installing image '%1' on '%2'.", 109665e7602SGunnar Mills "OK", 110665e7602SGunnar Mills 2, 111665e7602SGunnar Mills { 112665e7602SGunnar Mills "string", 113665e7602SGunnar Mills "string", 114665e7602SGunnar Mills }, 115665e7602SGunnar Mills "Perform the requested action to advance the update operation.", 116665e7602SGunnar Mills }}, 117665e7602SGunnar Mills MessageEntry{ 118665e7602SGunnar Mills "InstallingOnComponent", 119665e7602SGunnar Mills { 120665e7602SGunnar Mills "Indicates that a component is installing an image.", 121665e7602SGunnar Mills "Image '%1' is being installed on '%2'.", 122665e7602SGunnar Mills "OK", 123665e7602SGunnar Mills 2, 124665e7602SGunnar Mills { 125665e7602SGunnar Mills "string", 126665e7602SGunnar Mills "string", 127665e7602SGunnar Mills }, 128665e7602SGunnar Mills "None.", 129665e7602SGunnar Mills }}, 130665e7602SGunnar Mills MessageEntry{ 131*d3616d13SAlexander Hansen "NoTargetsDetermined", 132*d3616d13SAlexander Hansen { 133*d3616d13SAlexander Hansen "Indicates that no target resource or device for an image was determined for update.", 134*d3616d13SAlexander Hansen "No target device will be updated with image '%1'.", 135*d3616d13SAlexander Hansen "OK", 136*d3616d13SAlexander Hansen 1, 137*d3616d13SAlexander Hansen { 138*d3616d13SAlexander Hansen "string", 139*d3616d13SAlexander Hansen }, 140*d3616d13SAlexander Hansen "None.", 141*d3616d13SAlexander Hansen }}, 142*d3616d13SAlexander Hansen MessageEntry{ 143665e7602SGunnar Mills "OperationTransitionedToJob", 144665e7602SGunnar Mills { 145665e7602SGunnar Mills "Indicates that the update operation transitioned to a job for managing the progress of the operation.", 146665e7602SGunnar Mills "The update operation has transitioned to the job at URI '%1'.", 147665e7602SGunnar Mills "OK", 148665e7602SGunnar Mills 1, 149665e7602SGunnar Mills { 150665e7602SGunnar Mills "string", 151665e7602SGunnar Mills }, 152665e7602SGunnar Mills "Follow the referenced job and monitor the job for further updates.", 153665e7602SGunnar Mills }}, 154665e7602SGunnar Mills MessageEntry{ 155665e7602SGunnar Mills "TargetDetermined", 156665e7602SGunnar Mills { 157665e7602SGunnar Mills "Indicates that a target resource or device for an image was determined for update.", 158665e7602SGunnar Mills "The target device '%1' will be updated with image '%2'.", 159665e7602SGunnar Mills "OK", 160665e7602SGunnar Mills 2, 161665e7602SGunnar Mills { 162665e7602SGunnar Mills "string", 163665e7602SGunnar Mills "string", 164665e7602SGunnar Mills }, 165665e7602SGunnar Mills "None.", 166665e7602SGunnar Mills }}, 167665e7602SGunnar Mills MessageEntry{ 168665e7602SGunnar Mills "TransferFailed", 169665e7602SGunnar Mills { 170665e7602SGunnar Mills "Indicates that the service failed to transfer an image to a component.", 171665e7602SGunnar Mills "Transfer of image '%1' to '%2' failed.", 172665e7602SGunnar Mills "Critical", 173665e7602SGunnar Mills 2, 174665e7602SGunnar Mills { 175665e7602SGunnar Mills "string", 176665e7602SGunnar Mills "string", 177665e7602SGunnar Mills }, 178665e7602SGunnar Mills "None.", 179665e7602SGunnar Mills }}, 180665e7602SGunnar Mills MessageEntry{ 181665e7602SGunnar Mills "TransferringToComponent", 182665e7602SGunnar Mills { 183665e7602SGunnar Mills "Indicates that the service is transferring an image to a component.", 184665e7602SGunnar Mills "Image '%1' is being transferred to '%2'.", 185665e7602SGunnar Mills "OK", 186665e7602SGunnar Mills 2, 187665e7602SGunnar Mills { 188665e7602SGunnar Mills "string", 189665e7602SGunnar Mills "string", 190665e7602SGunnar Mills }, 191665e7602SGunnar Mills "None.", 192665e7602SGunnar Mills }}, 193665e7602SGunnar Mills MessageEntry{ 194665e7602SGunnar Mills "UpdateInProgress", 195665e7602SGunnar Mills { 196665e7602SGunnar Mills "Indicates that an update is in progress.", 197665e7602SGunnar Mills "An update is in progress.", 198665e7602SGunnar Mills "OK", 199665e7602SGunnar Mills 0, 200665e7602SGunnar Mills {}, 201665e7602SGunnar Mills "None.", 202665e7602SGunnar Mills }}, 203665e7602SGunnar Mills MessageEntry{ 204*d3616d13SAlexander Hansen "UpdateNotApplicable", 205*d3616d13SAlexander Hansen { 206*d3616d13SAlexander Hansen "Indicates that the update was not applicable to the resource or device.", 207*d3616d13SAlexander Hansen "Image '%1' was not applicable to device '%2'.", 208*d3616d13SAlexander Hansen "Warning", 209*d3616d13SAlexander Hansen 2, 210*d3616d13SAlexander Hansen { 211*d3616d13SAlexander Hansen "string", 212*d3616d13SAlexander Hansen "string", 213*d3616d13SAlexander Hansen }, 214*d3616d13SAlexander Hansen "None.", 215*d3616d13SAlexander Hansen }}, 216*d3616d13SAlexander Hansen MessageEntry{ 217*d3616d13SAlexander Hansen "UpdateSkipped", 218*d3616d13SAlexander Hansen { 219*d3616d13SAlexander Hansen "Indicates that an image was applicable to a resource or device, but the update was skipped due to policies in the service.", 220*d3616d13SAlexander Hansen "Device '%1' skipped the update with image '%2'.", 221*d3616d13SAlexander Hansen "OK", 222*d3616d13SAlexander Hansen 2, 223*d3616d13SAlexander Hansen { 224*d3616d13SAlexander Hansen "string", 225*d3616d13SAlexander Hansen "string", 226*d3616d13SAlexander Hansen }, 227*d3616d13SAlexander Hansen "None.", 228*d3616d13SAlexander Hansen }}, 229*d3616d13SAlexander Hansen MessageEntry{ 230*d3616d13SAlexander Hansen "UpdateSkippedSameVersion", 231*d3616d13SAlexander Hansen { 232*d3616d13SAlexander Hansen "Indicates that a resource or device update was skipped because the same version is already installed.", 233*d3616d13SAlexander Hansen "Device '%1' skipped the update with image '%2' because the same version is already installed.", 234*d3616d13SAlexander Hansen "OK", 235*d3616d13SAlexander Hansen 2, 236*d3616d13SAlexander Hansen { 237*d3616d13SAlexander Hansen "string", 238*d3616d13SAlexander Hansen "string", 239*d3616d13SAlexander Hansen }, 240*d3616d13SAlexander Hansen "None.", 241*d3616d13SAlexander Hansen }}, 242*d3616d13SAlexander Hansen MessageEntry{ 243665e7602SGunnar Mills "UpdateSuccessful", 244665e7602SGunnar Mills { 245665e7602SGunnar Mills "Indicates that a resource or device was updated.", 246665e7602SGunnar Mills "Device '%1' successfully updated with image '%2'.", 247665e7602SGunnar Mills "OK", 248665e7602SGunnar Mills 2, 249665e7602SGunnar Mills { 250665e7602SGunnar Mills "string", 251665e7602SGunnar Mills "string", 252665e7602SGunnar Mills }, 253665e7602SGunnar Mills "None.", 254665e7602SGunnar Mills }}, 255665e7602SGunnar Mills MessageEntry{ 256665e7602SGunnar Mills "VerificationFailed", 257665e7602SGunnar Mills { 258*d3616d13SAlexander Hansen "Indicates that the service or component failed to verify an image.", 259665e7602SGunnar Mills "Verification of image '%1' at '%2' failed.", 260665e7602SGunnar Mills "Critical", 261665e7602SGunnar Mills 2, 262665e7602SGunnar Mills { 263665e7602SGunnar Mills "string", 264665e7602SGunnar Mills "string", 265665e7602SGunnar Mills }, 266665e7602SGunnar Mills "None.", 267665e7602SGunnar Mills }}, 268665e7602SGunnar Mills MessageEntry{ 269665e7602SGunnar Mills "VerifyingAtComponent", 270665e7602SGunnar Mills { 271665e7602SGunnar Mills "Indicates that a component is verifying an image.", 272665e7602SGunnar Mills "Image '%1' is being verified at '%2'.", 273665e7602SGunnar Mills "OK", 274665e7602SGunnar Mills 2, 275665e7602SGunnar Mills { 276665e7602SGunnar Mills "string", 277665e7602SGunnar Mills "string", 278665e7602SGunnar Mills }, 279665e7602SGunnar Mills "None.", 280665e7602SGunnar Mills }}, 281665e7602SGunnar Mills 282665e7602SGunnar Mills }; 283665e7602SGunnar Mills 284665e7602SGunnar Mills enum class Index 285665e7602SGunnar Mills { 286665e7602SGunnar Mills activateFailed = 0, 287665e7602SGunnar Mills allTargetsDetermined = 1, 288665e7602SGunnar Mills applyFailed = 2, 289665e7602SGunnar Mills applyingOnComponent = 3, 290665e7602SGunnar Mills awaitToActivate = 4, 291665e7602SGunnar Mills awaitToUpdate = 5, 292665e7602SGunnar Mills installingOnComponent = 6, 293*d3616d13SAlexander Hansen noTargetsDetermined = 7, 294*d3616d13SAlexander Hansen operationTransitionedToJob = 8, 295*d3616d13SAlexander Hansen targetDetermined = 9, 296*d3616d13SAlexander Hansen transferFailed = 10, 297*d3616d13SAlexander Hansen transferringToComponent = 11, 298*d3616d13SAlexander Hansen updateInProgress = 12, 299*d3616d13SAlexander Hansen updateNotApplicable = 13, 300*d3616d13SAlexander Hansen updateSkipped = 14, 301*d3616d13SAlexander Hansen updateSkippedSameVersion = 15, 302*d3616d13SAlexander Hansen updateSuccessful = 16, 303*d3616d13SAlexander Hansen verificationFailed = 17, 304*d3616d13SAlexander Hansen verifyingAtComponent = 18, 305665e7602SGunnar Mills }; 3064a102cd4SPatrick Williams }; // struct update 3074a102cd4SPatrick Williams 3084a102cd4SPatrick Williams [[gnu::constructor]] inline void registerUpdate() 3094a102cd4SPatrick Williams { registerRegistry<Update>(); } 3104a102cd4SPatrick Williams 3114a102cd4SPatrick Williams } // namespace redfish::registries 312