1f4c4dcf4SKowalski, Kamil #pragma once 242079ecbSEd Tanous /**************************************************************** 342079ecbSEd Tanous * READ THIS WARNING FIRST 442079ecbSEd Tanous * This is an auto-generated header which contains definitions 542079ecbSEd Tanous * for Redfish DMTF defined messages. 642079ecbSEd Tanous * DO NOT modify this registry outside of running the 742079ecbSEd Tanous * parse_registries.py script. The definitions contained within 842079ecbSEd Tanous * this file are owned by DMTF. Any modifications to these files 942079ecbSEd Tanous * should be first pushed to the relevant registry in the DMTF 1042079ecbSEd Tanous * github organization. 1142079ecbSEd Tanous ***************************************************************/ 124aad6ed2SEd Tanous // These generated headers are a superset of what is needed. 134aad6ed2SEd Tanous // clang sees them as an error, so ignore 144aad6ed2SEd Tanous // NOLINTBEGIN(misc-include-cleaner) 1504e438cbSEd Tanous #include "http_response.hpp" 16f12894f8SJason M. Bills 174a7fbefdSEd Tanous #include <boost/url/url_view_base.hpp> 181214b7e7SGunnar Mills #include <nlohmann/json.hpp> 191214b7e7SGunnar Mills 20d7857201SEd Tanous #include <cstdint> 21d85418e3SPatrick Williams #include <source_location> 220442ef92SNan Zhou #include <string_view> 234aad6ed2SEd Tanous // NOLINTEND(misc-include-cleaner) 249ea15c35SEd Tanous 251abe55efSEd Tanous namespace redfish 261abe55efSEd Tanous { 27f4c4dcf4SKowalski, Kamil 281abe55efSEd Tanous namespace messages 291abe55efSEd Tanous { 303590bd1dSNan Zhou /** 31f8cca876SEd Tanous * @brief Formats Success message into JSON 32f8cca876SEd Tanous * Message body: "The request completed successfully." 33f4c4dcf4SKowalski, Kamil * 34f4c4dcf4SKowalski, Kamil * 35f8cca876SEd Tanous * @returns Message Success formatted to JSON */ 36*10cf50dcSEd Tanous nlohmann::json::object_t success(); 37b5c07418SJames Feist 38f8cca876SEd Tanous void success(crow::Response& res); 39f4c4dcf4SKowalski, Kamil 40f4c4dcf4SKowalski, Kamil /** 41f8cca876SEd Tanous * @brief Formats GeneralError message into JSON 42f8cca876SEd Tanous * Message body: "A general error has occurred. See Resolution for information 43f8cca876SEd Tanous * on how to resolve the error, or @Message.ExtendedInfo if Resolution is not 44f8cca876SEd Tanous * provided." 45f4c4dcf4SKowalski, Kamil * 46f4c4dcf4SKowalski, Kamil * 47f8cca876SEd Tanous * @returns Message GeneralError formatted to JSON */ 48*10cf50dcSEd Tanous nlohmann::json::object_t generalError(); 49b5c07418SJames Feist 50f8cca876SEd Tanous void generalError(crow::Response& res); 51f4c4dcf4SKowalski, Kamil 52f4c4dcf4SKowalski, Kamil /** 53f8cca876SEd Tanous * @brief Formats Created message into JSON 54f8cca876SEd Tanous * Message body: "The resource was created successfully." 55f4c4dcf4SKowalski, Kamil * 56f4c4dcf4SKowalski, Kamil * 57f8cca876SEd Tanous * @returns Message Created formatted to JSON */ 58*10cf50dcSEd Tanous nlohmann::json::object_t created(); 59b5c07418SJames Feist 60f8cca876SEd Tanous void created(crow::Response& res); 61f4c4dcf4SKowalski, Kamil 62f4c4dcf4SKowalski, Kamil /** 63f8cca876SEd Tanous * @brief Formats NoOperation message into JSON 64f8cca876SEd Tanous * Message body: "The request body submitted contain no data to act upon and no 65f8cca876SEd Tanous * changes to the resource took place." 66f4c4dcf4SKowalski, Kamil * 67f4c4dcf4SKowalski, Kamil * 68f8cca876SEd Tanous * @returns Message NoOperation formatted to JSON */ 69*10cf50dcSEd Tanous nlohmann::json::object_t noOperation(); 70b5c07418SJames Feist 71f8cca876SEd Tanous void noOperation(crow::Response& res); 72f4c4dcf4SKowalski, Kamil 73f4c4dcf4SKowalski, Kamil /** 74f4c4dcf4SKowalski, Kamil * @brief Formats PropertyDuplicate message into JSON 7566ac2b8cSJason M. Bills * Message body: "The property <arg1> was duplicated in the request." 76f4c4dcf4SKowalski, Kamil * 77f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 78f4c4dcf4SKowalski, Kamil * 79f4c4dcf4SKowalski, Kamil * @returns Message PropertyDuplicate formatted to JSON */ 80*10cf50dcSEd Tanous nlohmann::json::object_t propertyDuplicate(std::string_view arg1); 81b5c07418SJames Feist 821668ce6dSEd Tanous void propertyDuplicate(crow::Response& res, std::string_view arg1); 83f4c4dcf4SKowalski, Kamil 84f4c4dcf4SKowalski, Kamil /** 85f8cca876SEd Tanous * @brief Formats PropertyUnknown message into JSON 86f8cca876SEd Tanous * Message body: "The property <arg1> is not in the list of valid properties for 87f8cca876SEd Tanous * the resource." 88f4c4dcf4SKowalski, Kamil * 89f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 90f4c4dcf4SKowalski, Kamil * 91f8cca876SEd Tanous * @returns Message PropertyUnknown formatted to JSON */ 92*10cf50dcSEd Tanous nlohmann::json::object_t propertyUnknown(std::string_view arg1); 93b5c07418SJames Feist 94f8cca876SEd Tanous void propertyUnknown(crow::Response& res, std::string_view arg1); 95f4c4dcf4SKowalski, Kamil 96f4c4dcf4SKowalski, Kamil /** 97f8cca876SEd Tanous * @brief Formats PropertyValueTypeError message into JSON 98f8cca876SEd Tanous * Message body: "The value <arg1> for the property <arg2> is not a type that 99f8cca876SEd Tanous * the property can accept." 100f4c4dcf4SKowalski, Kamil * 101f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 102f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 103f4c4dcf4SKowalski, Kamil * 104f8cca876SEd Tanous * @returns Message PropertyValueTypeError formatted to JSON */ 105*10cf50dcSEd Tanous nlohmann::json::object_t propertyValueTypeError(const nlohmann::json& arg1, 106f8cca876SEd Tanous std::string_view arg2); 107b5c07418SJames Feist 108f8cca876SEd Tanous void propertyValueTypeError(crow::Response& res, const nlohmann::json& arg1, 109f8cca876SEd Tanous std::string_view arg2); 110f4c4dcf4SKowalski, Kamil 111f4c4dcf4SKowalski, Kamil /** 112f4c4dcf4SKowalski, Kamil * @brief Formats PropertyValueFormatError message into JSON 11342079ecbSEd Tanous * Message body: "The value <arg1> for the property <arg2> is not a format that 11442079ecbSEd Tanous * the property can accept." 115f4c4dcf4SKowalski, Kamil * 116f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 117f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 118f4c4dcf4SKowalski, Kamil * 119f4c4dcf4SKowalski, Kamil * @returns Message PropertyValueFormatError formatted to JSON */ 120*10cf50dcSEd Tanous nlohmann::json::object_t propertyValueFormatError(const nlohmann::json& arg1, 1211668ce6dSEd Tanous std::string_view arg2); 122b5c07418SJames Feist 123f818b04dSEd Tanous void propertyValueFormatError(crow::Response& res, const nlohmann::json& arg1, 1241668ce6dSEd Tanous std::string_view arg2); 125f4c4dcf4SKowalski, Kamil 126f4c4dcf4SKowalski, Kamil /** 127f4c4dcf4SKowalski, Kamil * @brief Formats PropertyValueNotInList message into JSON 12866ac2b8cSJason M. Bills * Message body: "The value <arg1> for the property <arg2> is not in the list of 129f4c4dcf4SKowalski, Kamil * acceptable values." 130f4c4dcf4SKowalski, Kamil * 131f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 132f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 133f4c4dcf4SKowalski, Kamil * 134f4c4dcf4SKowalski, Kamil * @returns Message PropertyValueNotInList formatted to JSON */ 135*10cf50dcSEd Tanous nlohmann::json::object_t propertyValueNotInList(const nlohmann::json& arg1, 1361668ce6dSEd Tanous std::string_view arg2); 137b5c07418SJames Feist 138e2616cc5SEd Tanous void propertyValueNotInList(crow::Response& res, const nlohmann::json& arg1, 1391668ce6dSEd Tanous std::string_view arg2); 14042079ecbSEd Tanous 141f4c4dcf4SKowalski, Kamil /** 142227a2b0aSJiaqing Zhao * @brief Formats PropertyValueOutOfRange message into JSON 14342079ecbSEd Tanous * Message body: "The value <arg1> for the property <arg2> is not in the 14442079ecbSEd Tanous * supported range of acceptable values." 145227a2b0aSJiaqing Zhao * 146227a2b0aSJiaqing Zhao * @param[in] arg1 Parameter of message that will replace %1 in its body. 147227a2b0aSJiaqing Zhao * @param[in] arg2 Parameter of message that will replace %2 in its body. 148227a2b0aSJiaqing Zhao * 14942079ecbSEd Tanous * @returns Message PropertyValueOutOfRange formatted to JSON */ 150*10cf50dcSEd Tanous nlohmann::json::object_t propertyValueOutOfRange(const nlohmann::json& arg1, 151227a2b0aSJiaqing Zhao std::string_view arg2); 152227a2b0aSJiaqing Zhao 15395b3ad73SEd Tanous void propertyValueOutOfRange(crow::Response& res, const nlohmann::json& arg1, 154227a2b0aSJiaqing Zhao std::string_view arg2); 155227a2b0aSJiaqing Zhao 156227a2b0aSJiaqing Zhao /** 157f8cca876SEd Tanous * @brief Formats PropertyValueError message into JSON 158f8cca876SEd Tanous * Message body: "The value provided for the property <arg1> is not valid." 159f4c4dcf4SKowalski, Kamil * 160f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 161f4c4dcf4SKowalski, Kamil * 162f8cca876SEd Tanous * @returns Message PropertyValueError formatted to JSON */ 163*10cf50dcSEd Tanous nlohmann::json::object_t propertyValueError(std::string_view arg1); 164b5c07418SJames Feist 165f8cca876SEd Tanous void propertyValueError(crow::Response& res, std::string_view arg1); 166f4c4dcf4SKowalski, Kamil 167f4c4dcf4SKowalski, Kamil /** 168f8cca876SEd Tanous * @brief Formats PropertyNotWritable message into JSON 169f8cca876SEd Tanous * Message body: "The property <arg1> is a read-only property and cannot be 170f8cca876SEd Tanous * assigned a value." 17181856681SAsmitha Karunanithi * 17281856681SAsmitha Karunanithi * @param[in] arg1 Parameter of message that will replace %1 in its body. 17381856681SAsmitha Karunanithi * 174f8cca876SEd Tanous * @returns Message PropertyNotWritable formatted to JSON */ 175*10cf50dcSEd Tanous nlohmann::json::object_t propertyNotWritable(std::string_view arg1); 17681856681SAsmitha Karunanithi 177f8cca876SEd Tanous void propertyNotWritable(crow::Response& res, std::string_view arg1); 17881856681SAsmitha Karunanithi 17981856681SAsmitha Karunanithi /** 180f8cca876SEd Tanous * @brief Formats PropertyNotUpdated message into JSON 181f8cca876SEd Tanous * Message body: "The property <arg1> was not updated due to an internal service 182f8cca876SEd Tanous * error. The service is still operational." 183f4c4dcf4SKowalski, Kamil * 184f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 185f4c4dcf4SKowalski, Kamil * 186f8cca876SEd Tanous * @returns Message PropertyNotUpdated formatted to JSON */ 187*10cf50dcSEd Tanous nlohmann::json::object_t propertyNotUpdated(std::string_view arg1); 188b5c07418SJames Feist 189f8cca876SEd Tanous void propertyNotUpdated(crow::Response& res, std::string_view arg1); 190f4c4dcf4SKowalski, Kamil 191f4c4dcf4SKowalski, Kamil /** 192f8cca876SEd Tanous * @brief Formats PropertyMissing message into JSON 193f8cca876SEd Tanous * Message body: "The property <arg1> is a required property and must be 194f8cca876SEd Tanous * included in the request." 195f4c4dcf4SKowalski, Kamil * 196f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 197f4c4dcf4SKowalski, Kamil * 198f8cca876SEd Tanous * @returns Message PropertyMissing formatted to JSON */ 199*10cf50dcSEd Tanous nlohmann::json::object_t propertyMissing(std::string_view arg1); 200b5c07418SJames Feist 201f8cca876SEd Tanous void propertyMissing(crow::Response& res, std::string_view arg1); 202f8cca876SEd Tanous 203f8cca876SEd Tanous /** 204f8cca876SEd Tanous * @brief Formats MalformedJSON message into JSON 205f8cca876SEd Tanous * Message body: "The request body submitted was malformed JSON and could not be 206f8cca876SEd Tanous * parsed by the receiving service." 207f8cca876SEd Tanous * 208f8cca876SEd Tanous * 209f8cca876SEd Tanous * @returns Message MalformedJSON formatted to JSON */ 210*10cf50dcSEd Tanous nlohmann::json::object_t malformedJSON(); 211f8cca876SEd Tanous 212f8cca876SEd Tanous void malformedJSON(crow::Response& res); 213f8cca876SEd Tanous 214f8cca876SEd Tanous /** 215f8cca876SEd Tanous * @brief Formats InvalidJSON message into JSON 216f8cca876SEd Tanous * Message body: "The request body submitted is invalid JSON starting at line 217f8cca876SEd Tanous * <arg1> and could not be parsed by the receiving service." 218f8cca876SEd Tanous * 219f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 220f8cca876SEd Tanous * 221f8cca876SEd Tanous * @returns Message InvalidJSON formatted to JSON */ 222*10cf50dcSEd Tanous nlohmann::json::object_t invalidJSON(std::string_view arg1); 223f8cca876SEd Tanous 224f8cca876SEd Tanous void invalidJSON(crow::Response& res, std::string_view arg1); 225f8cca876SEd Tanous 226f8cca876SEd Tanous /** 227f8cca876SEd Tanous * @brief Formats EmptyJSON message into JSON 228f8cca876SEd Tanous * Message body: "The request body submitted contained an empty JSON object and 229f8cca876SEd Tanous * the service is unable to process it." 230f8cca876SEd Tanous * 231f8cca876SEd Tanous * 232f8cca876SEd Tanous * @returns Message EmptyJSON formatted to JSON */ 233*10cf50dcSEd Tanous nlohmann::json::object_t emptyJSON(); 234f8cca876SEd Tanous 235f8cca876SEd Tanous void emptyJSON(crow::Response& res); 236f8cca876SEd Tanous 237f8cca876SEd Tanous /** 238f8cca876SEd Tanous * @brief Formats ActionNotSupported message into JSON 239f8cca876SEd Tanous * Message body: "The action <arg1> is not supported by the resource." 240f8cca876SEd Tanous * 241f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 242f8cca876SEd Tanous * 243f8cca876SEd Tanous * @returns Message ActionNotSupported formatted to JSON */ 244*10cf50dcSEd Tanous nlohmann::json::object_t actionNotSupported(std::string_view arg1); 245f8cca876SEd Tanous 246f8cca876SEd Tanous void actionNotSupported(crow::Response& res, std::string_view arg1); 247f4c4dcf4SKowalski, Kamil 248f4c4dcf4SKowalski, Kamil /** 249f4c4dcf4SKowalski, Kamil * @brief Formats ActionParameterMissing message into JSON 25066ac2b8cSJason M. Bills * Message body: "The action <arg1> requires the parameter <arg2> to be present 251f4c4dcf4SKowalski, Kamil * in the request body." 252f4c4dcf4SKowalski, Kamil * 253f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 254f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 255f4c4dcf4SKowalski, Kamil * 256f4c4dcf4SKowalski, Kamil * @returns Message ActionParameterMissing formatted to JSON */ 257*10cf50dcSEd Tanous nlohmann::json::object_t actionParameterMissing(std::string_view arg1, 2581668ce6dSEd Tanous std::string_view arg2); 259b5c07418SJames Feist 2601668ce6dSEd Tanous void actionParameterMissing(crow::Response& res, std::string_view arg1, 2611668ce6dSEd Tanous std::string_view arg2); 262f4c4dcf4SKowalski, Kamil 263f4c4dcf4SKowalski, Kamil /** 264f8cca876SEd Tanous * @brief Formats ActionParameterDuplicate message into JSON 265f8cca876SEd Tanous * Message body: "The action <arg1> was submitted with more than one value for 266f8cca876SEd Tanous * the parameter <arg2>." 267f8cca876SEd Tanous * 268f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 269f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 270f8cca876SEd Tanous * 271f8cca876SEd Tanous * @returns Message ActionParameterDuplicate formatted to JSON */ 272*10cf50dcSEd Tanous nlohmann::json::object_t actionParameterDuplicate(std::string_view arg1, 273f8cca876SEd Tanous std::string_view arg2); 274f8cca876SEd Tanous 275f8cca876SEd Tanous void actionParameterDuplicate(crow::Response& res, std::string_view arg1, 276f8cca876SEd Tanous std::string_view arg2); 277f8cca876SEd Tanous 278f8cca876SEd Tanous /** 279f8cca876SEd Tanous * @brief Formats ActionParameterUnknown message into JSON 280f8cca876SEd Tanous * Message body: "The action <arg1> was submitted with the invalid parameter 281f8cca876SEd Tanous * <arg2>." 282f8cca876SEd Tanous * 283f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 284f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 285f8cca876SEd Tanous * 286f8cca876SEd Tanous * @returns Message ActionParameterUnknown formatted to JSON */ 287*10cf50dcSEd Tanous nlohmann::json::object_t actionParameterUnknown(std::string_view arg1, 288f8cca876SEd Tanous std::string_view arg2); 289f8cca876SEd Tanous 290f8cca876SEd Tanous void actionParameterUnknown(crow::Response& res, std::string_view arg1, 291f8cca876SEd Tanous std::string_view arg2); 292f8cca876SEd Tanous 293f8cca876SEd Tanous /** 294f8cca876SEd Tanous * @brief Formats ActionParameterValueTypeError message into JSON 295f8cca876SEd Tanous * Message body: "The value <arg1> for the parameter <arg2> in the action <arg3> 296f8cca876SEd Tanous * is not a type that the parameter can accept." 297f8cca876SEd Tanous * 298f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 299f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 300f8cca876SEd Tanous * @param[in] arg3 Parameter of message that will replace %3 in its body. 301f8cca876SEd Tanous * 302f8cca876SEd Tanous * @returns Message ActionParameterValueTypeError formatted to JSON */ 303*10cf50dcSEd Tanous nlohmann::json::object_t actionParameterValueTypeError( 304f8cca876SEd Tanous const nlohmann::json& arg1, std::string_view arg2, std::string_view arg3); 305f8cca876SEd Tanous 306f8cca876SEd Tanous void actionParameterValueTypeError( 307f8cca876SEd Tanous crow::Response& res, const nlohmann::json& arg1, std::string_view arg2, 308f8cca876SEd Tanous std::string_view arg3); 309f8cca876SEd Tanous 310f8cca876SEd Tanous /** 311f8cca876SEd Tanous * @brief Formats ActionParameterValueFormatError message into JSON 312f8cca876SEd Tanous * Message body: "The value <arg1> for the parameter <arg2> in the action <arg3> 313f8cca876SEd Tanous * is not a format that the parameter can accept." 314f8cca876SEd Tanous * 315f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 316f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 317f8cca876SEd Tanous * @param[in] arg3 Parameter of message that will replace %3 in its body. 318f8cca876SEd Tanous * 319f8cca876SEd Tanous * @returns Message ActionParameterValueFormatError formatted to JSON */ 320*10cf50dcSEd Tanous nlohmann::json::object_t actionParameterValueFormatError( 321f8cca876SEd Tanous const nlohmann::json& arg1, std::string_view arg2, std::string_view arg3); 322f8cca876SEd Tanous 323f8cca876SEd Tanous void actionParameterValueFormatError( 324f8cca876SEd Tanous crow::Response& res, const nlohmann::json& arg1, std::string_view arg2, 325f8cca876SEd Tanous std::string_view arg3); 326f8cca876SEd Tanous 327f8cca876SEd Tanous /** 328f8cca876SEd Tanous * @brief Formats ActionParameterValueNotInList message into JSON 329f8cca876SEd Tanous * Message body: "The value <arg1> for the parameter <arg2> in the action <arg3> 330f8cca876SEd Tanous * is not in the list of acceptable values." 331f8cca876SEd Tanous * 332f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 333f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 334f8cca876SEd Tanous * @param[in] arg3 Parameter of message that will replace %3 in its body. 335f8cca876SEd Tanous * 336f8cca876SEd Tanous * @returns Message ActionParameterValueNotInList formatted to JSON */ 337*10cf50dcSEd Tanous nlohmann::json::object_t actionParameterValueNotInList( 338f8cca876SEd Tanous std::string_view arg1, std::string_view arg2, std::string_view arg3); 339f8cca876SEd Tanous 340f8cca876SEd Tanous void actionParameterValueNotInList(crow::Response& res, std::string_view arg1, 341f8cca876SEd Tanous std::string_view arg2, 342f8cca876SEd Tanous std::string_view arg3); 343f8cca876SEd Tanous 344f8cca876SEd Tanous /** 345f8cca876SEd Tanous * @brief Formats ActionParameterValueOutOfRange message into JSON 346f8cca876SEd Tanous * Message body: "The value <arg1> for the parameter <arg2> in the action <arg3> 347f8cca876SEd Tanous * is not in the supported range of acceptable values." 348f8cca876SEd Tanous * 349f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 350f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 351f8cca876SEd Tanous * @param[in] arg3 Parameter of message that will replace %3 in its body. 352f8cca876SEd Tanous * 353f8cca876SEd Tanous * @returns Message ActionParameterValueOutOfRange formatted to JSON */ 354*10cf50dcSEd Tanous nlohmann::json::object_t actionParameterValueOutOfRange( 355f8cca876SEd Tanous std::string_view arg1, std::string_view arg2, std::string_view arg3); 356f8cca876SEd Tanous 357f8cca876SEd Tanous void actionParameterValueOutOfRange(crow::Response& res, std::string_view arg1, 358f8cca876SEd Tanous std::string_view arg2, 359f8cca876SEd Tanous std::string_view arg3); 360f8cca876SEd Tanous 361f8cca876SEd Tanous /** 362f8cca876SEd Tanous * @brief Formats ActionParameterValueError message into JSON 363f8cca876SEd Tanous * Message body: "The value for the parameter <arg1> in the action <arg2> is 364f8cca876SEd Tanous * invalid." 365f8cca876SEd Tanous * 366f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 367f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 368f8cca876SEd Tanous * 369f8cca876SEd Tanous * @returns Message ActionParameterValueError formatted to JSON */ 370*10cf50dcSEd Tanous nlohmann::json::object_t actionParameterValueError(const nlohmann::json& arg1, 371f8cca876SEd Tanous std::string_view arg2); 372f8cca876SEd Tanous 373f8cca876SEd Tanous void actionParameterValueError(crow::Response& res, const nlohmann::json& arg1, 374f8cca876SEd Tanous std::string_view arg2); 375f8cca876SEd Tanous 376f8cca876SEd Tanous /** 377f8cca876SEd Tanous * @brief Formats ActionParameterNotSupported message into JSON 378f8cca876SEd Tanous * Message body: "The parameter <arg1> for the action <arg2> is not supported on 379f8cca876SEd Tanous * the target resource." 380f8cca876SEd Tanous * 381f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 382f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 383f8cca876SEd Tanous * 384f8cca876SEd Tanous * @returns Message ActionParameterNotSupported formatted to JSON */ 385*10cf50dcSEd Tanous nlohmann::json::object_t actionParameterNotSupported(std::string_view arg1, 386f8cca876SEd Tanous std::string_view arg2); 387f8cca876SEd Tanous 388f8cca876SEd Tanous void actionParameterNotSupported(crow::Response& res, std::string_view arg1, 389f8cca876SEd Tanous std::string_view arg2); 390f8cca876SEd Tanous 391f8cca876SEd Tanous /** 392f8cca876SEd Tanous * @brief Formats ArraySizeTooLong message into JSON 393f8cca876SEd Tanous * Message body: "The array provided for property <arg1> exceeds the size limit 394f8cca876SEd Tanous * <arg2>." 395f8cca876SEd Tanous * 396f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 397f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 398f8cca876SEd Tanous * 399f8cca876SEd Tanous * @returns Message ArraySizeTooLong formatted to JSON */ 400*10cf50dcSEd Tanous nlohmann::json::object_t arraySizeTooLong(std::string_view arg1, uint64_t arg2); 401f8cca876SEd Tanous 402f8cca876SEd Tanous void arraySizeTooLong(crow::Response& res, std::string_view arg1, 403f8cca876SEd Tanous uint64_t arg2); 404f8cca876SEd Tanous 405f8cca876SEd Tanous /** 406f8cca876SEd Tanous * @brief Formats ArraySizeTooShort message into JSON 407f8cca876SEd Tanous * Message body: "The array provided for property <arg1> is under the minimum 408f8cca876SEd Tanous * size limit <arg2>." 409f8cca876SEd Tanous * 410f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 411f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 412f8cca876SEd Tanous * 413f8cca876SEd Tanous * @returns Message ArraySizeTooShort formatted to JSON */ 414*10cf50dcSEd Tanous nlohmann::json::object_t arraySizeTooShort(std::string_view arg1, 415*10cf50dcSEd Tanous std::string_view arg2); 416f8cca876SEd Tanous 417f8cca876SEd Tanous void arraySizeTooShort(crow::Response& res, std::string_view arg1, 418f8cca876SEd Tanous std::string_view arg2); 419f8cca876SEd Tanous 420f8cca876SEd Tanous /** 421f8cca876SEd Tanous * @brief Formats QueryParameterValueTypeError message into JSON 422f8cca876SEd Tanous * Message body: "The value <arg1> for the query parameter <arg2> is not a type 423f8cca876SEd Tanous * that the parameter can accept." 424f8cca876SEd Tanous * 425f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 426f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 427f8cca876SEd Tanous * 428f8cca876SEd Tanous * @returns Message QueryParameterValueTypeError formatted to JSON */ 429*10cf50dcSEd Tanous nlohmann::json::object_t queryParameterValueTypeError( 430*10cf50dcSEd Tanous const nlohmann::json& arg1, std::string_view arg2); 431f8cca876SEd Tanous 432f8cca876SEd Tanous void queryParameterValueTypeError( 433f8cca876SEd Tanous crow::Response& res, const nlohmann::json& arg1, std::string_view arg2); 434f8cca876SEd Tanous 435f8cca876SEd Tanous /** 436f8cca876SEd Tanous * @brief Formats QueryParameterValueFormatError message into JSON 437f8cca876SEd Tanous * Message body: "The value <arg1> for the parameter <arg2> is not a format that 438f8cca876SEd Tanous * the parameter can accept." 439f8cca876SEd Tanous * 440f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 441f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 442f8cca876SEd Tanous * 443f8cca876SEd Tanous * @returns Message QueryParameterValueFormatError formatted to JSON */ 444*10cf50dcSEd Tanous nlohmann::json::object_t queryParameterValueFormatError( 445*10cf50dcSEd Tanous const nlohmann::json& arg1, std::string_view arg2); 446f8cca876SEd Tanous 447f8cca876SEd Tanous void queryParameterValueFormatError( 448f8cca876SEd Tanous crow::Response& res, const nlohmann::json& arg1, std::string_view arg2); 449f8cca876SEd Tanous 450f8cca876SEd Tanous /** 451f8cca876SEd Tanous * @brief Formats QueryParameterValueError message into JSON 452f8cca876SEd Tanous * Message body: "The value for the parameter <arg1> is invalid." 453f8cca876SEd Tanous * 454f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 455f8cca876SEd Tanous * 456f8cca876SEd Tanous * @returns Message QueryParameterValueError formatted to JSON */ 457*10cf50dcSEd Tanous nlohmann::json::object_t queryParameterValueError(std::string_view arg1); 458f8cca876SEd Tanous 459f8cca876SEd Tanous void queryParameterValueError(crow::Response& res, std::string_view arg1); 460f8cca876SEd Tanous 461f8cca876SEd Tanous /** 462f8cca876SEd Tanous * @brief Formats QueryParameterOutOfRange message into JSON 463f8cca876SEd Tanous * Message body: "The value <arg1> for the query parameter <arg2> is out of 464f8cca876SEd Tanous * range <arg3>." 465f8cca876SEd Tanous * 466f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 467f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 468f8cca876SEd Tanous * @param[in] arg3 Parameter of message that will replace %3 in its body. 469f8cca876SEd Tanous * 470f8cca876SEd Tanous * @returns Message QueryParameterOutOfRange formatted to JSON */ 471*10cf50dcSEd Tanous nlohmann::json::object_t queryParameterOutOfRange( 472f8cca876SEd Tanous std::string_view arg1, std::string_view arg2, std::string_view arg3); 473f8cca876SEd Tanous 474f8cca876SEd Tanous void queryParameterOutOfRange(crow::Response& res, std::string_view arg1, 475f8cca876SEd Tanous std::string_view arg2, std::string_view arg3); 476f8cca876SEd Tanous 477f8cca876SEd Tanous /** 478f8cca876SEd Tanous * @brief Formats QueryNotSupportedOnResource message into JSON 479f8cca876SEd Tanous * Message body: "Querying is not supported on the requested resource." 480f8cca876SEd Tanous * 481f8cca876SEd Tanous * 482f8cca876SEd Tanous * @returns Message QueryNotSupportedOnResource formatted to JSON */ 483*10cf50dcSEd Tanous nlohmann::json::object_t queryNotSupportedOnResource(); 484f8cca876SEd Tanous 485f8cca876SEd Tanous void queryNotSupportedOnResource(crow::Response& res); 486f8cca876SEd Tanous 487f8cca876SEd Tanous /** 488f8cca876SEd Tanous * @brief Formats QueryNotSupportedOnOperation message into JSON 489f8cca876SEd Tanous * Message body: "Querying is not supported with the requested operation." 490f8cca876SEd Tanous * 491f8cca876SEd Tanous * 492f8cca876SEd Tanous * @returns Message QueryNotSupportedOnOperation formatted to JSON */ 493*10cf50dcSEd Tanous nlohmann::json::object_t queryNotSupportedOnOperation(); 494f8cca876SEd Tanous 495f8cca876SEd Tanous void queryNotSupportedOnOperation(crow::Response& res); 496f8cca876SEd Tanous 497f8cca876SEd Tanous /** 498f8cca876SEd Tanous * @brief Formats QueryNotSupported message into JSON 499f8cca876SEd Tanous * Message body: "Querying is not supported by the implementation." 500f8cca876SEd Tanous * 501f8cca876SEd Tanous * 502f8cca876SEd Tanous * @returns Message QueryNotSupported formatted to JSON */ 503*10cf50dcSEd Tanous nlohmann::json::object_t queryNotSupported(); 504f8cca876SEd Tanous 505f8cca876SEd Tanous void queryNotSupported(crow::Response& res); 506f8cca876SEd Tanous 507f8cca876SEd Tanous /** 508f8cca876SEd Tanous * @brief Formats QueryCombinationInvalid message into JSON 509f8cca876SEd Tanous * Message body: "Two or more query parameters in the request cannot be used 510f8cca876SEd Tanous * together." 511f8cca876SEd Tanous * 512f8cca876SEd Tanous * 513f8cca876SEd Tanous * @returns Message QueryCombinationInvalid formatted to JSON */ 514*10cf50dcSEd Tanous nlohmann::json::object_t queryCombinationInvalid(); 515f8cca876SEd Tanous 516f8cca876SEd Tanous void queryCombinationInvalid(crow::Response& res); 517f8cca876SEd Tanous 518f8cca876SEd Tanous /** 519f8cca876SEd Tanous * @brief Formats QueryParameterUnsupported message into JSON 520f8cca876SEd Tanous * Message body: "Query parameter <arg1> is not supported." 521f8cca876SEd Tanous * 522f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 523f8cca876SEd Tanous * 524f8cca876SEd Tanous * @returns Message QueryParameterUnsupported formatted to JSON */ 525*10cf50dcSEd Tanous nlohmann::json::object_t queryParameterUnsupported(std::string_view arg1); 526f8cca876SEd Tanous 527f8cca876SEd Tanous void queryParameterUnsupported(crow::Response& res, std::string_view arg1); 528f8cca876SEd Tanous 529f8cca876SEd Tanous /** 530f8cca876SEd Tanous * @brief Formats SessionLimitExceeded message into JSON 531f8cca876SEd Tanous * Message body: "The session establishment failed due to the number of 532f8cca876SEd Tanous * simultaneous sessions exceeding the limit of the implementation." 533f8cca876SEd Tanous * 534f8cca876SEd Tanous * 535f8cca876SEd Tanous * @returns Message SessionLimitExceeded formatted to JSON */ 536*10cf50dcSEd Tanous nlohmann::json::object_t sessionLimitExceeded(); 537f8cca876SEd Tanous 538f8cca876SEd Tanous void sessionLimitExceeded(crow::Response& res); 539f8cca876SEd Tanous 540f8cca876SEd Tanous /** 541f8cca876SEd Tanous * @brief Formats EventSubscriptionLimitExceeded message into JSON 542f8cca876SEd Tanous * Message body: "The event subscription failed due to the number of 543f8cca876SEd Tanous * simultaneous subscriptions exceeding the limit of the implementation." 544f8cca876SEd Tanous * 545f8cca876SEd Tanous * 546f8cca876SEd Tanous * @returns Message EventSubscriptionLimitExceeded formatted to JSON */ 547*10cf50dcSEd Tanous nlohmann::json::object_t eventSubscriptionLimitExceeded(); 548f8cca876SEd Tanous 549f8cca876SEd Tanous void eventSubscriptionLimitExceeded(crow::Response& res); 550f8cca876SEd Tanous 551f8cca876SEd Tanous /** 552f8cca876SEd Tanous * @brief Formats ResourceCannotBeDeleted message into JSON 553f8cca876SEd Tanous * Message body: "The delete request failed because the resource requested 554f8cca876SEd Tanous * cannot be deleted." 555f8cca876SEd Tanous * 556f8cca876SEd Tanous * 557f8cca876SEd Tanous * @returns Message ResourceCannotBeDeleted formatted to JSON */ 558*10cf50dcSEd Tanous nlohmann::json::object_t resourceCannotBeDeleted(); 559f8cca876SEd Tanous 560f8cca876SEd Tanous void resourceCannotBeDeleted(crow::Response& res); 561f8cca876SEd Tanous 562f8cca876SEd Tanous /** 563f8cca876SEd Tanous * @brief Formats ResourceInUse message into JSON 564f8cca876SEd Tanous * Message body: "The change to the requested resource failed because the 565f8cca876SEd Tanous * resource is in use or in transition." 566f8cca876SEd Tanous * 567f8cca876SEd Tanous * 568f8cca876SEd Tanous * @returns Message ResourceInUse formatted to JSON */ 569*10cf50dcSEd Tanous nlohmann::json::object_t resourceInUse(); 570f8cca876SEd Tanous 571f8cca876SEd Tanous void resourceInUse(crow::Response& res); 572f8cca876SEd Tanous 573f8cca876SEd Tanous /** 574f8cca876SEd Tanous * @brief Formats ResourceAlreadyExists message into JSON 575f8cca876SEd Tanous * Message body: "The requested resource of type <arg1> with the property <arg2> 576f8cca876SEd Tanous * with the value <arg3> already exists." 577f8cca876SEd Tanous * 578f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 579f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 580f8cca876SEd Tanous * @param[in] arg3 Parameter of message that will replace %3 in its body. 581f8cca876SEd Tanous * 582f8cca876SEd Tanous * @returns Message ResourceAlreadyExists formatted to JSON */ 583*10cf50dcSEd Tanous nlohmann::json::object_t resourceAlreadyExists( 584f8cca876SEd Tanous std::string_view arg1, std::string_view arg2, std::string_view arg3); 585f8cca876SEd Tanous 586f8cca876SEd Tanous void resourceAlreadyExists(crow::Response& res, std::string_view arg1, 587f8cca876SEd Tanous std::string_view arg2, std::string_view arg3); 588f8cca876SEd Tanous 589f8cca876SEd Tanous /** 590f8cca876SEd Tanous * @brief Formats ResourceNotFound message into JSON 591f8cca876SEd Tanous * Message body: "The requested resource of type <arg1> named <arg2> was not 592f8cca876SEd Tanous * found." 593f8cca876SEd Tanous * 594f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 595f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 596f8cca876SEd Tanous * 597f8cca876SEd Tanous * @returns Message ResourceNotFound formatted to JSON */ 598*10cf50dcSEd Tanous nlohmann::json::object_t resourceNotFound(std::string_view arg1, 599*10cf50dcSEd Tanous std::string_view arg2); 600f8cca876SEd Tanous 601f8cca876SEd Tanous void resourceNotFound(crow::Response& res, std::string_view arg1, 602f8cca876SEd Tanous std::string_view arg2); 603f8cca876SEd Tanous 604f8cca876SEd Tanous /** 605f8cca876SEd Tanous * @brief Formats PayloadTooLarge message into JSON 606f8cca876SEd Tanous * Message body: "The supplied payload exceeds the maximum size supported by the 607f8cca876SEd Tanous * service." 608f8cca876SEd Tanous * 609f8cca876SEd Tanous * 610f8cca876SEd Tanous * @returns Message PayloadTooLarge formatted to JSON */ 611*10cf50dcSEd Tanous nlohmann::json::object_t payloadTooLarge(); 612f8cca876SEd Tanous 613f8cca876SEd Tanous void payloadTooLarge(crow::Response& res); 614f8cca876SEd Tanous 615f8cca876SEd Tanous /** 616f8cca876SEd Tanous * @brief Formats InsufficientStorage message into JSON 617f8cca876SEd Tanous * Message body: "Insufficient storage or memory available to complete the 618f8cca876SEd Tanous * request." 619f8cca876SEd Tanous * 620f8cca876SEd Tanous * 621f8cca876SEd Tanous * @returns Message InsufficientStorage formatted to JSON */ 622*10cf50dcSEd Tanous nlohmann::json::object_t insufficientStorage(); 623f8cca876SEd Tanous 624f8cca876SEd Tanous void insufficientStorage(crow::Response& res); 625f8cca876SEd Tanous 626f8cca876SEd Tanous /** 627f8cca876SEd Tanous * @brief Formats MissingOrMalformedPart message into JSON 628f8cca876SEd Tanous * Message body: "The multipart request contains malformed parts or is missing 629f8cca876SEd Tanous * required parts." 630f8cca876SEd Tanous * 631f8cca876SEd Tanous * 632f8cca876SEd Tanous * @returns Message MissingOrMalformedPart formatted to JSON */ 633*10cf50dcSEd Tanous nlohmann::json::object_t missingOrMalformedPart(); 634f8cca876SEd Tanous 635f8cca876SEd Tanous void missingOrMalformedPart(crow::Response& res); 636f8cca876SEd Tanous 637f8cca876SEd Tanous /** 638f8cca876SEd Tanous * @brief Formats InvalidURI message into JSON 639f8cca876SEd Tanous * Message body: "The URI <arg1> was not found." 640f8cca876SEd Tanous * 641f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 642f8cca876SEd Tanous * 643f8cca876SEd Tanous * @returns Message InvalidURI formatted to JSON */ 644*10cf50dcSEd Tanous nlohmann::json::object_t invalidURI(std::string_view arg1); 645f8cca876SEd Tanous 646f8cca876SEd Tanous void invalidURI(crow::Response& res, std::string_view arg1); 647f8cca876SEd Tanous 648f8cca876SEd Tanous /** 649f8cca876SEd Tanous * @brief Formats CreateFailedMissingReqProperties message into JSON 650f8cca876SEd Tanous * Message body: "The create operation failed because the required property 651f8cca876SEd Tanous * <arg1> was missing from the request." 652f8cca876SEd Tanous * 653f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 654f8cca876SEd Tanous * 655f8cca876SEd Tanous * @returns Message CreateFailedMissingReqProperties formatted to JSON */ 656*10cf50dcSEd Tanous nlohmann::json::object_t createFailedMissingReqProperties( 657*10cf50dcSEd Tanous std::string_view arg1); 658f8cca876SEd Tanous 659f8cca876SEd Tanous void createFailedMissingReqProperties(crow::Response& res, 660f8cca876SEd Tanous std::string_view arg1); 661f8cca876SEd Tanous 662f8cca876SEd Tanous /** 663f8cca876SEd Tanous * @brief Formats CreateLimitReachedForResource message into JSON 664f8cca876SEd Tanous * Message body: "The create operation failed because the resource has reached 665f8cca876SEd Tanous * the limit of possible resources." 666f8cca876SEd Tanous * 667f8cca876SEd Tanous * 668f8cca876SEd Tanous * @returns Message CreateLimitReachedForResource formatted to JSON */ 669*10cf50dcSEd Tanous nlohmann::json::object_t createLimitReachedForResource(); 670f8cca876SEd Tanous 671f8cca876SEd Tanous void createLimitReachedForResource(crow::Response& res); 672f8cca876SEd Tanous 673f8cca876SEd Tanous /** 674f8cca876SEd Tanous * @brief Formats ServiceShuttingDown message into JSON 675f8cca876SEd Tanous * Message body: "The operation failed because the service is shutting down and 676f8cca876SEd Tanous * can no longer take incoming requests." 677f8cca876SEd Tanous * 678f8cca876SEd Tanous * 679f8cca876SEd Tanous * @returns Message ServiceShuttingDown formatted to JSON */ 680*10cf50dcSEd Tanous nlohmann::json::object_t serviceShuttingDown(); 681f8cca876SEd Tanous 682f8cca876SEd Tanous void serviceShuttingDown(crow::Response& res); 683f8cca876SEd Tanous 684f8cca876SEd Tanous /** 685f8cca876SEd Tanous * @brief Formats ServiceInUnknownState message into JSON 686f8cca876SEd Tanous * Message body: "The operation failed because the service is in an unknown 687f8cca876SEd Tanous * state and can no longer take incoming requests." 688f8cca876SEd Tanous * 689f8cca876SEd Tanous * 690f8cca876SEd Tanous * @returns Message ServiceInUnknownState formatted to JSON */ 691*10cf50dcSEd Tanous nlohmann::json::object_t serviceInUnknownState(); 692f8cca876SEd Tanous 693f8cca876SEd Tanous void serviceInUnknownState(crow::Response& res); 694f8cca876SEd Tanous 695f8cca876SEd Tanous /** 696f8cca876SEd Tanous * @brief Formats NoValidSession message into JSON 697f8cca876SEd Tanous * Message body: "There is no valid session established with the 698f8cca876SEd Tanous * implementation." 699f8cca876SEd Tanous * 700f8cca876SEd Tanous * 701f8cca876SEd Tanous * @returns Message NoValidSession formatted to JSON */ 702*10cf50dcSEd Tanous nlohmann::json::object_t noValidSession(); 703f8cca876SEd Tanous 704f8cca876SEd Tanous void noValidSession(crow::Response& res); 705f8cca876SEd Tanous 706f8cca876SEd Tanous /** 707f8cca876SEd Tanous * @brief Formats InsufficientPrivilege message into JSON 708f8cca876SEd Tanous * Message body: "There are insufficient privileges for the account or 709f8cca876SEd Tanous * credentials associated with the current session to perform the requested 710f8cca876SEd Tanous * operation." 711f8cca876SEd Tanous * 712f8cca876SEd Tanous * 713f8cca876SEd Tanous * @returns Message InsufficientPrivilege formatted to JSON */ 714*10cf50dcSEd Tanous nlohmann::json::object_t insufficientPrivilege(); 715f8cca876SEd Tanous 716f8cca876SEd Tanous void insufficientPrivilege(crow::Response& res); 717f8cca876SEd Tanous 718f8cca876SEd Tanous /** 719f8cca876SEd Tanous * @brief Formats AccountModified message into JSON 720f8cca876SEd Tanous * Message body: "The account was successfully modified." 721f8cca876SEd Tanous * 722f8cca876SEd Tanous * 723f8cca876SEd Tanous * @returns Message AccountModified formatted to JSON */ 724*10cf50dcSEd Tanous nlohmann::json::object_t accountModified(); 725f8cca876SEd Tanous 726f8cca876SEd Tanous void accountModified(crow::Response& res); 727f8cca876SEd Tanous 728f8cca876SEd Tanous /** 729f8cca876SEd Tanous * @brief Formats AccountNotModified message into JSON 730f8cca876SEd Tanous * Message body: "The account modification request failed." 731f8cca876SEd Tanous * 732f8cca876SEd Tanous * 733f8cca876SEd Tanous * @returns Message AccountNotModified formatted to JSON */ 734*10cf50dcSEd Tanous nlohmann::json::object_t accountNotModified(); 735f8cca876SEd Tanous 736f8cca876SEd Tanous void accountNotModified(crow::Response& res); 737f8cca876SEd Tanous 738f8cca876SEd Tanous /** 739f8cca876SEd Tanous * @brief Formats AccountRemoved message into JSON 740f8cca876SEd Tanous * Message body: "The account was successfully removed." 741f8cca876SEd Tanous * 742f8cca876SEd Tanous * 743f8cca876SEd Tanous * @returns Message AccountRemoved formatted to JSON */ 744*10cf50dcSEd Tanous nlohmann::json::object_t accountRemoved(); 745f8cca876SEd Tanous 746f8cca876SEd Tanous void accountRemoved(crow::Response& res); 747f8cca876SEd Tanous 748f8cca876SEd Tanous /** 749f8cca876SEd Tanous * @brief Formats AccountForSessionNoLongerExists message into JSON 750f8cca876SEd Tanous * Message body: "The account for the current session was removed, and so the 751f8cca876SEd Tanous * current session was removed as well." 752f8cca876SEd Tanous * 753f8cca876SEd Tanous * 754f8cca876SEd Tanous * @returns Message AccountForSessionNoLongerExists formatted to JSON */ 755*10cf50dcSEd Tanous nlohmann::json::object_t accountForSessionNoLongerExists(); 756f8cca876SEd Tanous 757f8cca876SEd Tanous void accountForSessionNoLongerExists(crow::Response& res); 758f8cca876SEd Tanous 759f8cca876SEd Tanous /** 760f8cca876SEd Tanous * @brief Formats InvalidObject message into JSON 761f8cca876SEd Tanous * Message body: "The object at <arg1> is invalid." 762f8cca876SEd Tanous * 763f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 764f8cca876SEd Tanous * 765f8cca876SEd Tanous * @returns Message InvalidObject formatted to JSON */ 766*10cf50dcSEd Tanous nlohmann::json::object_t invalidObject(const boost::urls::url_view_base& arg1); 767f8cca876SEd Tanous 768f8cca876SEd Tanous void invalidObject(crow::Response& res, const boost::urls::url_view_base& arg1); 769f8cca876SEd Tanous 770f8cca876SEd Tanous /** 771f8cca876SEd Tanous * @brief Formats InternalError message into JSON 772f8cca876SEd Tanous * Message body: "The request failed due to an internal service error. The 773f8cca876SEd Tanous * service is still operational." 774f8cca876SEd Tanous * 775f8cca876SEd Tanous * 776f8cca876SEd Tanous * @returns Message InternalError formatted to JSON */ 777*10cf50dcSEd Tanous nlohmann::json::object_t internalError(); 778f8cca876SEd Tanous 779f8cca876SEd Tanous void internalError(crow::Response& res, std::source_location location = 780f8cca876SEd Tanous std::source_location::current()); 781f8cca876SEd Tanous 782f8cca876SEd Tanous /** 783f8cca876SEd Tanous * @brief Formats UnrecognizedRequestBody message into JSON 784f8cca876SEd Tanous * Message body: "The service detected a malformed request body that it was 785f8cca876SEd Tanous * unable to interpret." 786f8cca876SEd Tanous * 787f8cca876SEd Tanous * 788f8cca876SEd Tanous * @returns Message UnrecognizedRequestBody formatted to JSON */ 789*10cf50dcSEd Tanous nlohmann::json::object_t unrecognizedRequestBody(); 790f8cca876SEd Tanous 791f8cca876SEd Tanous void unrecognizedRequestBody(crow::Response& res); 792f8cca876SEd Tanous 793f8cca876SEd Tanous /** 794f8cca876SEd Tanous * @brief Formats ResourceMissingAtURI message into JSON 795f8cca876SEd Tanous * Message body: "The resource at the URI <arg1> was not found." 796f8cca876SEd Tanous * 797f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 798f8cca876SEd Tanous * 799f8cca876SEd Tanous * @returns Message ResourceMissingAtURI formatted to JSON */ 800*10cf50dcSEd Tanous nlohmann::json::object_t resourceMissingAtURI( 801*10cf50dcSEd Tanous const boost::urls::url_view_base& arg1); 802f8cca876SEd Tanous 803f8cca876SEd Tanous void resourceMissingAtURI(crow::Response& res, 804f8cca876SEd Tanous const boost::urls::url_view_base& arg1); 805f8cca876SEd Tanous 806f8cca876SEd Tanous /** 807f8cca876SEd Tanous * @brief Formats ResourceAtUriInUnknownFormat message into JSON 808f8cca876SEd Tanous * Message body: "The resource at <arg1> is in a format not recognized by the 809f8cca876SEd Tanous * service." 810f8cca876SEd Tanous * 811f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 812f8cca876SEd Tanous * 813f8cca876SEd Tanous * @returns Message ResourceAtUriInUnknownFormat formatted to JSON */ 814*10cf50dcSEd Tanous nlohmann::json::object_t resourceAtUriInUnknownFormat( 815504af5a0SPatrick Williams const boost::urls::url_view_base& arg1); 816f8cca876SEd Tanous 817f8cca876SEd Tanous void resourceAtUriInUnknownFormat(crow::Response& res, 818f8cca876SEd Tanous const boost::urls::url_view_base& arg1); 819f8cca876SEd Tanous 820f8cca876SEd Tanous /** 821f8cca876SEd Tanous * @brief Formats ResourceAtUriUnauthorized message into JSON 822f8cca876SEd Tanous * Message body: "While accessing the resource at <arg1>, the service received 823f8cca876SEd Tanous * an authorization error <arg2>." 824f8cca876SEd Tanous * 825f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 826f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 827f8cca876SEd Tanous * 828f8cca876SEd Tanous * @returns Message ResourceAtUriUnauthorized formatted to JSON */ 829*10cf50dcSEd Tanous nlohmann::json::object_t resourceAtUriUnauthorized( 830*10cf50dcSEd Tanous const boost::urls::url_view_base& arg1, std::string_view arg2); 831f8cca876SEd Tanous 832f8cca876SEd Tanous void resourceAtUriUnauthorized(crow::Response& res, 833f8cca876SEd Tanous const boost::urls::url_view_base& arg1, 834f8cca876SEd Tanous std::string_view arg2); 835f8cca876SEd Tanous 836f8cca876SEd Tanous /** 837f8cca876SEd Tanous * @brief Formats CouldNotEstablishConnection message into JSON 838f8cca876SEd Tanous * Message body: "The service failed to establish a connection with the URI 839f8cca876SEd Tanous * <arg1>." 840f8cca876SEd Tanous * 841f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 842f8cca876SEd Tanous * 843f8cca876SEd Tanous * @returns Message CouldNotEstablishConnection formatted to JSON */ 844*10cf50dcSEd Tanous nlohmann::json::object_t couldNotEstablishConnection( 845504af5a0SPatrick Williams const boost::urls::url_view_base& arg1); 846f8cca876SEd Tanous 847f8cca876SEd Tanous void couldNotEstablishConnection(crow::Response& res, 848f8cca876SEd Tanous const boost::urls::url_view_base& arg1); 849f8cca876SEd Tanous 850f8cca876SEd Tanous /** 851f8cca876SEd Tanous * @brief Formats SourceDoesNotSupportProtocol message into JSON 852f8cca876SEd Tanous * Message body: "The other end of the connection at <arg1> does not support the 853f8cca876SEd Tanous * specified protocol <arg2>." 854f8cca876SEd Tanous * 855f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 856f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 857f8cca876SEd Tanous * 858f8cca876SEd Tanous * @returns Message SourceDoesNotSupportProtocol formatted to JSON */ 859*10cf50dcSEd Tanous nlohmann::json::object_t sourceDoesNotSupportProtocol( 860f8cca876SEd Tanous const boost::urls::url_view_base& arg1, std::string_view arg2); 861f8cca876SEd Tanous 862f8cca876SEd Tanous void sourceDoesNotSupportProtocol(crow::Response& res, 863f8cca876SEd Tanous const boost::urls::url_view_base& arg1, 864f8cca876SEd Tanous std::string_view arg2); 865f8cca876SEd Tanous 866f8cca876SEd Tanous /** 867f8cca876SEd Tanous * @brief Formats AccessDenied message into JSON 868f8cca876SEd Tanous * Message body: "While attempting to establish a connection to <arg1>, the 869f8cca876SEd Tanous * service denied access." 870f8cca876SEd Tanous * 871f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 872f8cca876SEd Tanous * 873f8cca876SEd Tanous * @returns Message AccessDenied formatted to JSON */ 874*10cf50dcSEd Tanous nlohmann::json::object_t accessDenied(const boost::urls::url_view_base& arg1); 875f8cca876SEd Tanous 876f8cca876SEd Tanous void accessDenied(crow::Response& res, const boost::urls::url_view_base& arg1); 877f8cca876SEd Tanous 878f8cca876SEd Tanous /** 879f8cca876SEd Tanous * @brief Formats ServiceTemporarilyUnavailable message into JSON 880f8cca876SEd Tanous * Message body: "The service is temporarily unavailable. Retry in <arg1> 881f8cca876SEd Tanous * seconds." 882f8cca876SEd Tanous * 883f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 884f8cca876SEd Tanous * 885f8cca876SEd Tanous * @returns Message ServiceTemporarilyUnavailable formatted to JSON */ 886*10cf50dcSEd Tanous nlohmann::json::object_t serviceTemporarilyUnavailable(std::string_view arg1); 887f8cca876SEd Tanous 888f8cca876SEd Tanous void serviceTemporarilyUnavailable(crow::Response& res, std::string_view arg1); 889f8cca876SEd Tanous 890f8cca876SEd Tanous /** 891f8cca876SEd Tanous * @brief Formats InvalidIndex message into JSON 892f8cca876SEd Tanous * Message body: "The index <arg1> is not a valid offset into the array." 893f8cca876SEd Tanous * 894f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 895f8cca876SEd Tanous * 896f8cca876SEd Tanous * @returns Message InvalidIndex formatted to JSON */ 897*10cf50dcSEd Tanous nlohmann::json::object_t invalidIndex(uint64_t arg1); 898f8cca876SEd Tanous 899644cdcb8SEd Tanous void invalidIndex(crow::Response& res, uint64_t arg1); 900f8cca876SEd Tanous 901f8cca876SEd Tanous /** 902f8cca876SEd Tanous * @brief Formats PropertyValueModified message into JSON 903f8cca876SEd Tanous * Message body: "The property <arg1> was assigned the value <arg2> due to 904f8cca876SEd Tanous * modification by the service." 905f8cca876SEd Tanous * 906f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 907f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 908f8cca876SEd Tanous * 909f8cca876SEd Tanous * @returns Message PropertyValueModified formatted to JSON */ 910*10cf50dcSEd Tanous nlohmann::json::object_t propertyValueModified(std::string_view arg1, 911f8cca876SEd Tanous const nlohmann::json& arg2); 912f8cca876SEd Tanous 913f8cca876SEd Tanous void propertyValueModified(crow::Response& res, std::string_view arg1, 914f8cca876SEd Tanous const nlohmann::json& arg2); 915f8cca876SEd Tanous 916f8cca876SEd Tanous /** 917f8cca876SEd Tanous * @brief Formats ResourceInStandby message into JSON 918f8cca876SEd Tanous * Message body: "The request could not be performed because the resource is in 919f8cca876SEd Tanous * standby." 920f8cca876SEd Tanous * 921f8cca876SEd Tanous * 922f8cca876SEd Tanous * @returns Message ResourceInStandby formatted to JSON */ 923*10cf50dcSEd Tanous nlohmann::json::object_t resourceInStandby(); 924f8cca876SEd Tanous 925f8cca876SEd Tanous void resourceInStandby(crow::Response& res); 926f8cca876SEd Tanous 927f8cca876SEd Tanous /** 928f8cca876SEd Tanous * @brief Formats ResourceExhaustion message into JSON 929f8cca876SEd Tanous * Message body: "The resource <arg1> was unable to satisfy the request due to 930f8cca876SEd Tanous * unavailability of resources." 931f8cca876SEd Tanous * 932f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 933f8cca876SEd Tanous * 934f8cca876SEd Tanous * @returns Message ResourceExhaustion formatted to JSON */ 935*10cf50dcSEd Tanous nlohmann::json::object_t resourceExhaustion(std::string_view arg1); 936f8cca876SEd Tanous 937f8cca876SEd Tanous void resourceExhaustion(crow::Response& res, std::string_view arg1); 938f8cca876SEd Tanous 939f8cca876SEd Tanous /** 940f4c4dcf4SKowalski, Kamil * @brief Formats StringValueTooLong message into JSON 94166ac2b8cSJason M. Bills * Message body: "The string <arg1> exceeds the length limit <arg2>." 942f4c4dcf4SKowalski, Kamil * 943f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 944f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 945f4c4dcf4SKowalski, Kamil * 946f4c4dcf4SKowalski, Kamil * @returns Message StringValueTooLong formatted to JSON */ 947*10cf50dcSEd Tanous nlohmann::json::object_t stringValueTooLong(std::string_view arg1, 948*10cf50dcSEd Tanous uint64_t arg2); 949b5c07418SJames Feist 950644cdcb8SEd Tanous void stringValueTooLong(crow::Response& res, std::string_view arg1, 951644cdcb8SEd Tanous uint64_t arg2); 952f4c4dcf4SKowalski, Kamil 953f4c4dcf4SKowalski, Kamil /** 954f8cca876SEd Tanous * @brief Formats StringValueTooShort message into JSON 955f8cca876SEd Tanous * Message body: "The string <arg1> was under the minimum required length 956f8cca876SEd Tanous * <arg2>." 957f8cca876SEd Tanous * 958f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 959f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 960f8cca876SEd Tanous * 961f8cca876SEd Tanous * @returns Message StringValueTooShort formatted to JSON */ 962*10cf50dcSEd Tanous nlohmann::json::object_t stringValueTooShort(std::string_view arg1, 963f8cca876SEd Tanous std::string_view arg2); 964f8cca876SEd Tanous 965f8cca876SEd Tanous void stringValueTooShort(crow::Response& res, std::string_view arg1, 966f8cca876SEd Tanous std::string_view arg2); 967f8cca876SEd Tanous 968f8cca876SEd Tanous /** 969cc9139ecSJason M. Bills * @brief Formats SessionTerminated message into JSON 970cc9139ecSJason M. Bills * Message body: "The session was successfully terminated." 971cc9139ecSJason M. Bills * 972cc9139ecSJason M. Bills * 973cc9139ecSJason M. Bills * @returns Message SessionTerminated formatted to JSON */ 974*10cf50dcSEd Tanous nlohmann::json::object_t sessionTerminated(); 975b5c07418SJames Feist 976cc9139ecSJason M. Bills void sessionTerminated(crow::Response& res); 977cc9139ecSJason M. Bills 978cc9139ecSJason M. Bills /** 979684bb4b8SJason M. Bills * @brief Formats SubscriptionTerminated message into JSON 98042079ecbSEd Tanous * Message body: "The event subscription was terminated." 981684bb4b8SJason M. Bills * 982684bb4b8SJason M. Bills * 983684bb4b8SJason M. Bills * @returns Message SubscriptionTerminated formatted to JSON */ 984*10cf50dcSEd Tanous nlohmann::json::object_t subscriptionTerminated(); 985684bb4b8SJason M. Bills 986684bb4b8SJason M. Bills void subscriptionTerminated(crow::Response& res); 987684bb4b8SJason M. Bills 988684bb4b8SJason M. Bills /** 989cc9139ecSJason M. Bills * @brief Formats ResourceTypeIncompatible message into JSON 990cc9139ecSJason M. Bills * Message body: "The @odata.type of the request body <arg1> is incompatible 99142079ecbSEd Tanous * with the @odata.type of the resource, which is <arg2>." 992cc9139ecSJason M. Bills * 993cc9139ecSJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 994cc9139ecSJason M. Bills * @param[in] arg2 Parameter of message that will replace %2 in its body. 995cc9139ecSJason M. Bills * 996cc9139ecSJason M. Bills * @returns Message ResourceTypeIncompatible formatted to JSON */ 997*10cf50dcSEd Tanous nlohmann::json::object_t resourceTypeIncompatible(std::string_view arg1, 9981668ce6dSEd Tanous std::string_view arg2); 999b5c07418SJames Feist 10001668ce6dSEd Tanous void resourceTypeIncompatible(crow::Response& res, std::string_view arg1, 10011668ce6dSEd Tanous std::string_view arg2); 1002cc9139ecSJason M. Bills 1003cc9139ecSJason M. Bills /** 1004f8cca876SEd Tanous * @brief Formats PasswordChangeRequired message into JSON 1005f8cca876SEd Tanous * Message body: "The password provided for this account must be changed before 1006f8cca876SEd Tanous * access is granted. PATCH the Password property for this account located at 1007f8cca876SEd Tanous * the target URI <arg1> to complete this process." 1008f8cca876SEd Tanous * 1009f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1010f8cca876SEd Tanous * 1011f8cca876SEd Tanous * @returns Message PasswordChangeRequired formatted to JSON */ 1012*10cf50dcSEd Tanous nlohmann::json::object_t passwordChangeRequired( 1013*10cf50dcSEd Tanous const boost::urls::url_view_base& arg1); 1014f8cca876SEd Tanous 1015f8cca876SEd Tanous void passwordChangeRequired(crow::Response& res, 1016f8cca876SEd Tanous const boost::urls::url_view_base& arg1); 1017f8cca876SEd Tanous 1018f8cca876SEd Tanous /** 1019684bb4b8SJason M. Bills * @brief Formats ResetRequired message into JSON 102042079ecbSEd Tanous * Message body: "In order to apply changes, recover from errors, or complete 102142079ecbSEd Tanous * the operation, a component reset is required with the Reset action URI <arg1> 102242079ecbSEd Tanous * and ResetType <arg2>." 1023684bb4b8SJason M. Bills * 1024684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 1025684bb4b8SJason M. Bills * @param[in] arg2 Parameter of message that will replace %2 in its body. 1026684bb4b8SJason M. Bills * 1027684bb4b8SJason M. Bills * @returns Message ResetRequired formatted to JSON */ 1028*10cf50dcSEd Tanous nlohmann::json::object_t resetRequired(const boost::urls::url_view_base& arg1, 10294a7fbefdSEd Tanous std::string_view arg2); 1030684bb4b8SJason M. Bills 10314a7fbefdSEd Tanous void resetRequired(crow::Response& res, const boost::urls::url_view_base& arg1, 10321668ce6dSEd Tanous std::string_view arg2); 1033684bb4b8SJason M. Bills 1034684bb4b8SJason M. Bills /** 1035f8cca876SEd Tanous * @brief Formats ResetRecommended message into JSON 1036f8cca876SEd Tanous * Message body: "In order to recover from errors, a component reset is 1037f8cca876SEd Tanous * recommended with the Reset action URI <arg1> and ResetType <arg2>." 1038f8cca876SEd Tanous * 1039f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1040f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 1041f8cca876SEd Tanous * 1042f8cca876SEd Tanous * @returns Message ResetRecommended formatted to JSON */ 1043*10cf50dcSEd Tanous nlohmann::json::object_t resetRecommended(std::string_view arg1, 1044*10cf50dcSEd Tanous std::string_view arg2); 1045f8cca876SEd Tanous 1046f8cca876SEd Tanous void resetRecommended(crow::Response& res, std::string_view arg1, 1047f8cca876SEd Tanous std::string_view arg2); 1048f8cca876SEd Tanous 1049f8cca876SEd Tanous /** 1050684bb4b8SJason M. Bills * @brief Formats ChassisPowerStateOnRequired message into JSON 105142079ecbSEd Tanous * Message body: "The chassis with Id <arg1> is required to be powered on to 1052684bb4b8SJason M. Bills * perform this request." 1053684bb4b8SJason M. Bills * 1054684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 1055684bb4b8SJason M. Bills * 1056684bb4b8SJason M. Bills * @returns Message ChassisPowerStateOnRequired formatted to JSON */ 1057*10cf50dcSEd Tanous nlohmann::json::object_t chassisPowerStateOnRequired(std::string_view arg1); 1058684bb4b8SJason M. Bills 10591668ce6dSEd Tanous void chassisPowerStateOnRequired(crow::Response& res, std::string_view arg1); 1060684bb4b8SJason M. Bills 1061684bb4b8SJason M. Bills /** 1062684bb4b8SJason M. Bills * @brief Formats ChassisPowerStateOffRequired message into JSON 106342079ecbSEd Tanous * Message body: "The chassis with Id <arg1> is required to be powered off to 1064684bb4b8SJason M. Bills * perform this request." 1065684bb4b8SJason M. Bills * 1066684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 1067684bb4b8SJason M. Bills * 1068684bb4b8SJason M. Bills * @returns Message ChassisPowerStateOffRequired formatted to JSON */ 1069*10cf50dcSEd Tanous nlohmann::json::object_t chassisPowerStateOffRequired(std::string_view arg1); 1070684bb4b8SJason M. Bills 10711668ce6dSEd Tanous void chassisPowerStateOffRequired(crow::Response& res, std::string_view arg1); 1072684bb4b8SJason M. Bills 1073684bb4b8SJason M. Bills /** 1074684bb4b8SJason M. Bills * @brief Formats PropertyValueConflict message into JSON 107542079ecbSEd Tanous * Message body: "The property <arg1> could not be written because its value 107642079ecbSEd Tanous * would conflict with the value of the <arg2> property." 1077684bb4b8SJason M. Bills * 1078684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 1079684bb4b8SJason M. Bills * @param[in] arg2 Parameter of message that will replace %2 in its body. 1080684bb4b8SJason M. Bills * 1081684bb4b8SJason M. Bills * @returns Message PropertyValueConflict formatted to JSON */ 1082*10cf50dcSEd Tanous nlohmann::json::object_t propertyValueConflict(std::string_view arg1, 10831668ce6dSEd Tanous std::string_view arg2); 1084684bb4b8SJason M. Bills 10851668ce6dSEd Tanous void propertyValueConflict(crow::Response& res, std::string_view arg1, 10861668ce6dSEd Tanous std::string_view arg2); 1087684bb4b8SJason M. Bills 1088684bb4b8SJason M. Bills /** 10892a6af81cSRamesh Iyyar * @brief Formats PropertyValueResourceConflict message into JSON 109042079ecbSEd Tanous * Message body: "The property <arg1> with the requested value of <arg2> could 109142079ecbSEd Tanous * not be written because the value conflicts with the state or configuration of 109242079ecbSEd Tanous * the resource at <arg3>." 10932a6af81cSRamesh Iyyar * 10942a6af81cSRamesh Iyyar * @param[in] arg1 Parameter of message that will replace %1 in its body. 10952a6af81cSRamesh Iyyar * @param[in] arg2 Parameter of message that will replace %2 in its body. 10962a6af81cSRamesh Iyyar * @param[in] arg3 Parameter of message that will replace %3 in its body. 10972a6af81cSRamesh Iyyar * 109842079ecbSEd Tanous * @returns Message PropertyValueResourceConflict formatted to JSON */ 1099*10cf50dcSEd Tanous nlohmann::json::object_t propertyValueResourceConflict( 1100bd79bce8SPatrick Williams std::string_view arg1, const nlohmann::json& arg2, 11014a7fbefdSEd Tanous const boost::urls::url_view_base& arg3); 11022a6af81cSRamesh Iyyar 11032a6af81cSRamesh Iyyar void propertyValueResourceConflict(crow::Response& res, std::string_view arg1, 110495b3ad73SEd Tanous const nlohmann::json& arg2, 11054a7fbefdSEd Tanous const boost::urls::url_view_base& arg3); 11062a6af81cSRamesh Iyyar 11072a6af81cSRamesh Iyyar /** 110824861a28SRamesh Iyyar * @brief Formats PropertyValueExternalConflict message into JSON 110942079ecbSEd Tanous * Message body: "The property <arg1> with the requested value of <arg2> could 111042079ecbSEd Tanous * not be written because the value is not available due to a configuration 111124861a28SRamesh Iyyar * conflict." 111224861a28SRamesh Iyyar * 111324861a28SRamesh Iyyar * @param[in] arg1 Parameter of message that will replace %1 in its body. 111424861a28SRamesh Iyyar * @param[in] arg2 Parameter of message that will replace %2 in its body. 111524861a28SRamesh Iyyar * 111624861a28SRamesh Iyyar * @returns Message PropertyValueExternalConflict formatted to JSON */ 1117*10cf50dcSEd Tanous nlohmann::json::object_t propertyValueExternalConflict( 1118*10cf50dcSEd Tanous std::string_view arg1, const nlohmann::json& arg2); 111924861a28SRamesh Iyyar 112024861a28SRamesh Iyyar void propertyValueExternalConflict(crow::Response& res, std::string_view arg1, 112195b3ad73SEd Tanous const nlohmann::json& arg2); 112224861a28SRamesh Iyyar 112324861a28SRamesh Iyyar /** 1124684bb4b8SJason M. Bills * @brief Formats PropertyValueIncorrect message into JSON 112542079ecbSEd Tanous * Message body: "The property <arg1> with the requested value of <arg2> could 112642079ecbSEd Tanous * not be written because the value does not meet the constraints of the 1127684bb4b8SJason M. Bills * implementation." 1128684bb4b8SJason M. Bills * 1129684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 1130684bb4b8SJason M. Bills * @param[in] arg2 Parameter of message that will replace %2 in its body. 1131684bb4b8SJason M. Bills * 1132684bb4b8SJason M. Bills * @returns Message PropertyValueIncorrect formatted to JSON */ 1133*10cf50dcSEd Tanous nlohmann::json::object_t propertyValueIncorrect(std::string_view arg1, 1134367b3dceSGinu George const nlohmann::json& arg2); 1135684bb4b8SJason M. Bills 1136367b3dceSGinu George void propertyValueIncorrect(crow::Response& res, std::string_view arg1, 1137367b3dceSGinu George const nlohmann::json& arg2); 1138684bb4b8SJason M. Bills 1139684bb4b8SJason M. Bills /** 1140684bb4b8SJason M. Bills * @brief Formats ResourceCreationConflict message into JSON 1141684bb4b8SJason M. Bills * Message body: "The resource could not be created. The service has a resource 114242079ecbSEd Tanous * at URI <arg1> that conflicts with the creation request." 1143684bb4b8SJason M. Bills * 1144684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 1145684bb4b8SJason M. Bills * 1146684bb4b8SJason M. Bills * @returns Message ResourceCreationConflict formatted to JSON */ 1147*10cf50dcSEd Tanous nlohmann::json::object_t resourceCreationConflict( 1148*10cf50dcSEd Tanous const boost::urls::url_view_base& arg1); 1149684bb4b8SJason M. Bills 11504a7fbefdSEd Tanous void resourceCreationConflict(crow::Response& res, 11514a7fbefdSEd Tanous const boost::urls::url_view_base& arg1); 1152684bb4b8SJason M. Bills 1153684bb4b8SJason M. Bills /** 1154f8cca876SEd Tanous * @brief Formats ActionParameterValueConflict message into JSON 1155f8cca876SEd Tanous * Message body: "The parameter <arg1> with the requested value of <arg2> does 1156f8cca876SEd Tanous * not meet the constraints of the implementation." 1157f8cca876SEd Tanous * 1158f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1159f8cca876SEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 1160f8cca876SEd Tanous * 1161f8cca876SEd Tanous * @returns Message ActionParameterValueConflict formatted to JSON */ 1162*10cf50dcSEd Tanous nlohmann::json::object_t actionParameterValueConflict(std::string_view arg1, 1163504af5a0SPatrick Williams std::string_view arg2); 1164f8cca876SEd Tanous 1165f8cca876SEd Tanous void actionParameterValueConflict(crow::Response& res, std::string_view arg1, 1166f8cca876SEd Tanous std::string_view arg2); 1167f8cca876SEd Tanous 1168f8cca876SEd Tanous /** 1169684bb4b8SJason M. Bills * @brief Formats MaximumErrorsExceeded message into JSON 1170684bb4b8SJason M. Bills * Message body: "Too many errors have occurred to report them all." 1171684bb4b8SJason M. Bills * 1172684bb4b8SJason M. Bills * 1173684bb4b8SJason M. Bills * @returns Message MaximumErrorsExceeded formatted to JSON */ 1174*10cf50dcSEd Tanous nlohmann::json::object_t maximumErrorsExceeded(); 1175684bb4b8SJason M. Bills 1176684bb4b8SJason M. Bills void maximumErrorsExceeded(crow::Response& res); 1177684bb4b8SJason M. Bills 1178684bb4b8SJason M. Bills /** 1179684bb4b8SJason M. Bills * @brief Formats PreconditionFailed message into JSON 1180684bb4b8SJason M. Bills * Message body: "The ETag supplied did not match the ETag required to change 1181684bb4b8SJason M. Bills * this resource." 1182684bb4b8SJason M. Bills * 1183684bb4b8SJason M. Bills * 1184684bb4b8SJason M. Bills * @returns Message PreconditionFailed formatted to JSON */ 1185*10cf50dcSEd Tanous nlohmann::json::object_t preconditionFailed(); 1186684bb4b8SJason M. Bills 1187684bb4b8SJason M. Bills void preconditionFailed(crow::Response& res); 1188684bb4b8SJason M. Bills 1189684bb4b8SJason M. Bills /** 1190684bb4b8SJason M. Bills * @brief Formats PreconditionRequired message into JSON 1191684bb4b8SJason M. Bills * Message body: "A precondition header or annotation is required to change this 1192684bb4b8SJason M. Bills * resource." 1193684bb4b8SJason M. Bills * 1194684bb4b8SJason M. Bills * 1195684bb4b8SJason M. Bills * @returns Message PreconditionRequired formatted to JSON */ 1196*10cf50dcSEd Tanous nlohmann::json::object_t preconditionRequired(); 1197684bb4b8SJason M. Bills 1198684bb4b8SJason M. Bills void preconditionRequired(crow::Response& res); 1199684bb4b8SJason M. Bills 1200684bb4b8SJason M. Bills /** 1201f8cca876SEd Tanous * @brief Formats HeaderMissing message into JSON 1202f8cca876SEd Tanous * Message body: "Required header <arg1> is missing in the request." 1203f8cca876SEd Tanous * 1204f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1205f8cca876SEd Tanous * 1206f8cca876SEd Tanous * @returns Message HeaderMissing formatted to JSON */ 1207*10cf50dcSEd Tanous nlohmann::json::object_t headerMissing(std::string_view arg1); 1208f8cca876SEd Tanous 1209f8cca876SEd Tanous void headerMissing(crow::Response& res, std::string_view arg1); 1210f8cca876SEd Tanous 1211f8cca876SEd Tanous /** 1212f8cca876SEd Tanous * @brief Formats HeaderInvalid message into JSON 1213f8cca876SEd Tanous * Message body: "Header <arg1> is invalid." 1214f8cca876SEd Tanous * 1215f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1216f8cca876SEd Tanous * 1217f8cca876SEd Tanous * @returns Message HeaderInvalid formatted to JSON */ 1218*10cf50dcSEd Tanous nlohmann::json::object_t headerInvalid(std::string_view arg1); 1219f8cca876SEd Tanous 1220f8cca876SEd Tanous void headerInvalid(crow::Response& res, std::string_view arg1); 1221f8cca876SEd Tanous 1222f8cca876SEd Tanous /** 1223684bb4b8SJason M. Bills * @brief Formats OperationFailed message into JSON 1224684bb4b8SJason M. Bills * Message body: "An error occurred internal to the service as part of the 1225684bb4b8SJason M. Bills * overall request. Partial results may have been returned." 1226684bb4b8SJason M. Bills * 1227684bb4b8SJason M. Bills * 1228684bb4b8SJason M. Bills * @returns Message OperationFailed formatted to JSON */ 1229*10cf50dcSEd Tanous nlohmann::json::object_t operationFailed(); 1230684bb4b8SJason M. Bills 1231684bb4b8SJason M. Bills void operationFailed(crow::Response& res); 1232684bb4b8SJason M. Bills 1233684bb4b8SJason M. Bills /** 1234684bb4b8SJason M. Bills * @brief Formats OperationTimeout message into JSON 12358ece0e45SEd Tanous * Message body: "A timeout internal to the service occurred as part of the 1236684bb4b8SJason M. Bills * request. Partial results may have been returned." 1237684bb4b8SJason M. Bills * 1238684bb4b8SJason M. Bills * 1239684bb4b8SJason M. Bills * @returns Message OperationTimeout formatted to JSON */ 1240*10cf50dcSEd Tanous nlohmann::json::object_t operationTimeout(); 1241684bb4b8SJason M. Bills 1242684bb4b8SJason M. Bills void operationTimeout(crow::Response& res); 1243684bb4b8SJason M. Bills 1244684bb4b8SJason M. Bills /** 124544c70412SEd Tanous * @brief Formats OperationNotAllowed message into JSON 124642079ecbSEd Tanous * Message body: "The HTTP method is not allowed on this resource." 124742079ecbSEd Tanous * 124842079ecbSEd Tanous * 124944c70412SEd Tanous * @returns Message OperationNotAllowed formatted to JSON */ 1250*10cf50dcSEd Tanous nlohmann::json::object_t operationNotAllowed(); 125144c70412SEd Tanous 125244c70412SEd Tanous void operationNotAllowed(crow::Response& res); 125344c70412SEd Tanous 1254600af5f1SAppaRao Puli /** 125542079ecbSEd Tanous * @brief Formats UndeterminedFault message into JSON 125642079ecbSEd Tanous * Message body: "An undetermined fault condition was reported by <arg1>." 125742079ecbSEd Tanous * 125842079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 125942079ecbSEd Tanous * 126042079ecbSEd Tanous * @returns Message UndeterminedFault formatted to JSON */ 1261*10cf50dcSEd Tanous nlohmann::json::object_t undeterminedFault(std::string_view arg1); 126242079ecbSEd Tanous 126342079ecbSEd Tanous void undeterminedFault(crow::Response& res, std::string_view arg1); 126442079ecbSEd Tanous 126542079ecbSEd Tanous /** 126642079ecbSEd Tanous * @brief Formats ConditionInRelatedResource message into JSON 126742079ecbSEd Tanous * Message body: "One or more conditions exist in a related resource. See the 126842079ecbSEd Tanous * OriginOfCondition property." 126942079ecbSEd Tanous * 127042079ecbSEd Tanous * 127142079ecbSEd Tanous * @returns Message ConditionInRelatedResource formatted to JSON */ 1272*10cf50dcSEd Tanous nlohmann::json::object_t conditionInRelatedResource(); 127342079ecbSEd Tanous 127442079ecbSEd Tanous void conditionInRelatedResource(crow::Response& res); 127542079ecbSEd Tanous 127642079ecbSEd Tanous /** 127742079ecbSEd Tanous * @brief Formats RestrictedRole message into JSON 127842079ecbSEd Tanous * Message body: "The operation was not successful because the role <arg1> is 127942079ecbSEd Tanous * restricted." 128042079ecbSEd Tanous * 128142079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 128242079ecbSEd Tanous * 128342079ecbSEd Tanous * @returns Message RestrictedRole formatted to JSON */ 1284*10cf50dcSEd Tanous nlohmann::json::object_t restrictedRole(std::string_view arg1); 128542079ecbSEd Tanous 128642079ecbSEd Tanous void restrictedRole(crow::Response& res, std::string_view arg1); 128742079ecbSEd Tanous 128842079ecbSEd Tanous /** 128942079ecbSEd Tanous * @brief Formats RestrictedPrivilege message into JSON 129042079ecbSEd Tanous * Message body: "The operation was not successful because the privilege <arg1> 129142079ecbSEd Tanous * is restricted." 129242079ecbSEd Tanous * 129342079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 129442079ecbSEd Tanous * 129542079ecbSEd Tanous * @returns Message RestrictedPrivilege formatted to JSON */ 1296*10cf50dcSEd Tanous nlohmann::json::object_t restrictedPrivilege(std::string_view arg1); 129742079ecbSEd Tanous 129842079ecbSEd Tanous void restrictedPrivilege(crow::Response& res, std::string_view arg1); 129942079ecbSEd Tanous 130042079ecbSEd Tanous /** 1301f8cca876SEd Tanous * @brief Formats StrictAccountTypes message into JSON 1302f8cca876SEd Tanous * Message body: "The request could not be fulfilled with the account types 1303f8cca876SEd Tanous * included in property <arg1> because the property StrictAccountTypes is set to 1304f8cca876SEd Tanous * true." 1305f8cca876SEd Tanous * 1306f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1307f8cca876SEd Tanous * 1308f8cca876SEd Tanous * @returns Message StrictAccountTypes formatted to JSON */ 1309*10cf50dcSEd Tanous nlohmann::json::object_t strictAccountTypes(std::string_view arg1); 1310f8cca876SEd Tanous 1311f8cca876SEd Tanous void strictAccountTypes(crow::Response& res, std::string_view arg1); 1312f8cca876SEd Tanous 1313f8cca876SEd Tanous /** 131442079ecbSEd Tanous * @brief Formats PropertyDeprecated message into JSON 131542079ecbSEd Tanous * Message body: "The deprecated property <arg1> was included in the request 131642079ecbSEd Tanous * body." 131742079ecbSEd Tanous * 131842079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 131942079ecbSEd Tanous * 132042079ecbSEd Tanous * @returns Message PropertyDeprecated formatted to JSON */ 1321*10cf50dcSEd Tanous nlohmann::json::object_t propertyDeprecated(std::string_view arg1); 132242079ecbSEd Tanous 132342079ecbSEd Tanous void propertyDeprecated(crow::Response& res, std::string_view arg1); 132442079ecbSEd Tanous 132542079ecbSEd Tanous /** 132642079ecbSEd Tanous * @brief Formats ResourceDeprecated message into JSON 132742079ecbSEd Tanous * Message body: "The operation was performed on a deprecated resource <arg1>." 132842079ecbSEd Tanous * 132942079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 133042079ecbSEd Tanous * 133142079ecbSEd Tanous * @returns Message ResourceDeprecated formatted to JSON */ 1332*10cf50dcSEd Tanous nlohmann::json::object_t resourceDeprecated(std::string_view arg1); 133342079ecbSEd Tanous 133442079ecbSEd Tanous void resourceDeprecated(crow::Response& res, std::string_view arg1); 133542079ecbSEd Tanous 133642079ecbSEd Tanous /** 133742079ecbSEd Tanous * @brief Formats PropertyValueDeprecated message into JSON 133842079ecbSEd Tanous * Message body: "The value <arg1> for the property <arg2> is deprecated." 133942079ecbSEd Tanous * 134042079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 134142079ecbSEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 134242079ecbSEd Tanous * 134342079ecbSEd Tanous * @returns Message PropertyValueDeprecated formatted to JSON */ 1344*10cf50dcSEd Tanous nlohmann::json::object_t propertyValueDeprecated(std::string_view arg1, 134542079ecbSEd Tanous std::string_view arg2); 134642079ecbSEd Tanous 134742079ecbSEd Tanous void propertyValueDeprecated(crow::Response& res, std::string_view arg1, 134842079ecbSEd Tanous std::string_view arg2); 134942079ecbSEd Tanous 135042079ecbSEd Tanous /** 135142079ecbSEd Tanous * @brief Formats ActionDeprecated message into JSON 135242079ecbSEd Tanous * Message body: "The action <arg1> is deprecated." 135342079ecbSEd Tanous * 135442079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 135542079ecbSEd Tanous * 135642079ecbSEd Tanous * @returns Message ActionDeprecated formatted to JSON */ 1357*10cf50dcSEd Tanous nlohmann::json::object_t actionDeprecated(std::string_view arg1); 135842079ecbSEd Tanous 135942079ecbSEd Tanous void actionDeprecated(crow::Response& res, std::string_view arg1); 136042079ecbSEd Tanous 136142079ecbSEd Tanous /** 136242079ecbSEd Tanous * @brief Formats NetworkNameResolutionNotConfigured message into JSON 136342079ecbSEd Tanous * Message body: "Network name resolution is not configured on this service." 136442079ecbSEd Tanous * 136542079ecbSEd Tanous * 136642079ecbSEd Tanous * @returns Message NetworkNameResolutionNotConfigured formatted to JSON */ 1367*10cf50dcSEd Tanous nlohmann::json::object_t networkNameResolutionNotConfigured(); 136842079ecbSEd Tanous 136942079ecbSEd Tanous void networkNameResolutionNotConfigured(crow::Response& res); 137042079ecbSEd Tanous 137142079ecbSEd Tanous /** 137242079ecbSEd Tanous * @brief Formats NetworkNameResolutionNotSupported message into JSON 137342079ecbSEd Tanous * Message body: "Resolution of network-based names is not supported by this 137442079ecbSEd Tanous * service." 137542079ecbSEd Tanous * 137642079ecbSEd Tanous * 137742079ecbSEd Tanous * @returns Message NetworkNameResolutionNotSupported formatted to JSON */ 1378*10cf50dcSEd Tanous nlohmann::json::object_t networkNameResolutionNotSupported(); 137942079ecbSEd Tanous 138042079ecbSEd Tanous void networkNameResolutionNotSupported(crow::Response& res); 138142079ecbSEd Tanous 138242079ecbSEd Tanous /** 1383f8cca876SEd Tanous * @brief Formats ServiceDisabled message into JSON 1384f8cca876SEd Tanous * Message body: "The operation failed because the service at <arg1> is disabled 1385f8cca876SEd Tanous * and cannot accept requests." 1386f8cca876SEd Tanous * 1387f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1388f8cca876SEd Tanous * 1389f8cca876SEd Tanous * @returns Message ServiceDisabled formatted to JSON */ 1390*10cf50dcSEd Tanous nlohmann::json::object_t serviceDisabled(std::string_view arg1); 1391f8cca876SEd Tanous 1392f8cca876SEd Tanous void serviceDisabled(crow::Response& res, std::string_view arg1); 1393f8cca876SEd Tanous 1394f8cca876SEd Tanous /** 1395f8cca876SEd Tanous * @brief Formats EventBufferExceeded message into JSON 1396f8cca876SEd Tanous * Message body: "Undelivered events may have been lost due to exceeding the 1397f8cca876SEd Tanous * event buffer." 1398f8cca876SEd Tanous * 1399f8cca876SEd Tanous * 1400f8cca876SEd Tanous * @returns Message EventBufferExceeded formatted to JSON */ 1401*10cf50dcSEd Tanous nlohmann::json::object_t eventBufferExceeded(); 1402f8cca876SEd Tanous 1403f8cca876SEd Tanous void eventBufferExceeded(crow::Response& res); 1404f8cca876SEd Tanous 1405f8cca876SEd Tanous /** 140642079ecbSEd Tanous * @brief Formats AuthenticationTokenRequired message into JSON 140742079ecbSEd Tanous * Message body: "The request could not be performed because an authentication 140842079ecbSEd Tanous * token was not provided." 140942079ecbSEd Tanous * 141042079ecbSEd Tanous * 141142079ecbSEd Tanous * @returns Message AuthenticationTokenRequired formatted to JSON */ 1412*10cf50dcSEd Tanous nlohmann::json::object_t authenticationTokenRequired(); 141342079ecbSEd Tanous 141442079ecbSEd Tanous void authenticationTokenRequired(crow::Response& res); 141542079ecbSEd Tanous 141642079ecbSEd Tanous /** 141742079ecbSEd Tanous * @brief Formats OneTimePasscodeSent message into JSON 141842079ecbSEd Tanous * Message body: "A one-time passcode was sent to: <arg1>. Supply the passcode 141942079ecbSEd Tanous * as the `Token` property in the request to create a session." 142042079ecbSEd Tanous * 142142079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 142242079ecbSEd Tanous * 142342079ecbSEd Tanous * @returns Message OneTimePasscodeSent formatted to JSON */ 1424*10cf50dcSEd Tanous nlohmann::json::object_t oneTimePasscodeSent(std::string_view arg1); 142542079ecbSEd Tanous 142642079ecbSEd Tanous void oneTimePasscodeSent(crow::Response& res, std::string_view arg1); 142742079ecbSEd Tanous 142842079ecbSEd Tanous /** 142942079ecbSEd Tanous * @brief Formats LicenseRequired message into JSON 143042079ecbSEd Tanous * Message body: "A license is required for this operation: <arg1>." 143142079ecbSEd Tanous * 143242079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 143342079ecbSEd Tanous * 143442079ecbSEd Tanous * @returns Message LicenseRequired formatted to JSON */ 1435*10cf50dcSEd Tanous nlohmann::json::object_t licenseRequired(std::string_view arg1); 143642079ecbSEd Tanous 143742079ecbSEd Tanous void licenseRequired(crow::Response& res, std::string_view arg1); 143842079ecbSEd Tanous 143942079ecbSEd Tanous /** 144042079ecbSEd Tanous * @brief Formats PropertyModified message into JSON 144142079ecbSEd Tanous * Message body: "One or more properties were successfully modified." 144242079ecbSEd Tanous * 144342079ecbSEd Tanous * 144442079ecbSEd Tanous * @returns Message PropertyModified formatted to JSON */ 1445*10cf50dcSEd Tanous nlohmann::json::object_t propertyModified(); 144642079ecbSEd Tanous 144742079ecbSEd Tanous void propertyModified(crow::Response& res); 144842079ecbSEd Tanous 1449f8cca876SEd Tanous /** 1450f8cca876SEd Tanous * @brief Formats GenerateSecretKeyRequired message into JSON 1451f8cca876SEd Tanous * Message body: "The Time-based One-Time Password (TOTP) secret key for this 1452f8cca876SEd Tanous * account must be generated before access is granted. Perform the 1453f8cca876SEd Tanous * GenerateSecretKey action at URI <arg1> and retain the secret key from the 1454f8cca876SEd Tanous * response." 1455f8cca876SEd Tanous * 1456f8cca876SEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1457f8cca876SEd Tanous * 1458f8cca876SEd Tanous * @returns Message GenerateSecretKeyRequired formatted to JSON */ 1459*10cf50dcSEd Tanous nlohmann::json::object_t generateSecretKeyRequired( 1460504af5a0SPatrick Williams const boost::urls::url_view_base& arg1); 1461f8cca876SEd Tanous 1462f8cca876SEd Tanous void generateSecretKeyRequired(crow::Response& res, 1463f8cca876SEd Tanous const boost::urls::url_view_base& arg1); 1464f8cca876SEd Tanous 146542079ecbSEd Tanous } // namespace messages 1466f4c4dcf4SKowalski, Kamil } // namespace redfish 1467