1f4c4dcf4SKowalski, Kamil #pragma once 2*42079ecbSEd Tanous /**************************************************************** 3*42079ecbSEd Tanous * READ THIS WARNING FIRST 4*42079ecbSEd Tanous * This is an auto-generated header which contains definitions 5*42079ecbSEd Tanous * for Redfish DMTF defined messages. 6*42079ecbSEd Tanous * DO NOT modify this registry outside of running the 7*42079ecbSEd Tanous * parse_registries.py script. The definitions contained within 8*42079ecbSEd Tanous * this file are owned by DMTF. Any modifications to these files 9*42079ecbSEd Tanous * should be first pushed to the relevant registry in the DMTF 10*42079ecbSEd Tanous * github organization. 11*42079ecbSEd Tanous ***************************************************************/ 120442ef92SNan Zhou 1304e438cbSEd Tanous #include "http_response.hpp" 14f12894f8SJason M. Bills 154a7fbefdSEd Tanous #include <boost/url/url_view_base.hpp> 161214b7e7SGunnar Mills #include <nlohmann/json.hpp> 171214b7e7SGunnar Mills 180442ef92SNan Zhou #include <cstdint> 19d85418e3SPatrick Williams #include <source_location> 209ea15c35SEd Tanous #include <string> 210442ef92SNan Zhou #include <string_view> 220442ef92SNan Zhou 230442ef92SNan Zhou // IWYU pragma: no_forward_declare crow::Response 249ea15c35SEd Tanous 251abe55efSEd Tanous namespace redfish 261abe55efSEd Tanous { 27f4c4dcf4SKowalski, Kamil 281abe55efSEd Tanous namespace messages 291abe55efSEd Tanous { 30f4c4dcf4SKowalski, Kamil 3181856681SAsmitha Karunanithi constexpr const char* messageVersionPrefix = "Base.1.11.0."; 3255c7b7a2SEd Tanous constexpr const char* messageAnnotation = "@Message.ExtendedInfo"; 33f4c4dcf4SKowalski, Kamil 34f4c4dcf4SKowalski, Kamil /** 353590bd1dSNan Zhou * @brief Moves all error messages from the |source| JSON to |target| 363590bd1dSNan Zhou */ 373590bd1dSNan Zhou void moveErrorsToErrorJson(nlohmann::json& target, nlohmann::json& source); 383590bd1dSNan Zhou 393590bd1dSNan Zhou /** 40f4c4dcf4SKowalski, Kamil * @brief Formats ResourceInUse message into JSON 41f4c4dcf4SKowalski, Kamil * Message body: "The change to the requested resource failed because the 42f4c4dcf4SKowalski, Kamil * resource is in use or in transition." 43f4c4dcf4SKowalski, Kamil * 44f4c4dcf4SKowalski, Kamil * 45f4c4dcf4SKowalski, Kamil * @returns Message ResourceInUse formatted to JSON */ 4665176d39SEd Tanous nlohmann::json resourceInUse(); 47b5c07418SJames Feist 48f12894f8SJason M. Bills void resourceInUse(crow::Response& res); 49f4c4dcf4SKowalski, Kamil 50f4c4dcf4SKowalski, Kamil /** 51f4c4dcf4SKowalski, Kamil * @brief Formats MalformedJSON message into JSON 52f4c4dcf4SKowalski, Kamil * Message body: "The request body submitted was malformed JSON and could not be 53f4c4dcf4SKowalski, Kamil * parsed by the receiving service." 54f4c4dcf4SKowalski, Kamil * 55f4c4dcf4SKowalski, Kamil * 56f4c4dcf4SKowalski, Kamil * @returns Message MalformedJSON formatted to JSON */ 5765176d39SEd Tanous nlohmann::json malformedJSON(); 58b5c07418SJames Feist 59f12894f8SJason M. Bills void malformedJSON(crow::Response& res); 60f4c4dcf4SKowalski, Kamil 61f4c4dcf4SKowalski, Kamil /** 62f4c4dcf4SKowalski, Kamil * @brief Formats ResourceMissingAtURI message into JSON 6366ac2b8cSJason M. Bills * Message body: "The resource at the URI <arg1> was not found." 64f4c4dcf4SKowalski, Kamil * 65f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 66f4c4dcf4SKowalski, Kamil * 67f4c4dcf4SKowalski, Kamil * @returns Message ResourceMissingAtURI formatted to JSON */ 684a7fbefdSEd Tanous nlohmann::json resourceMissingAtURI(const boost::urls::url_view_base& arg1); 69b5c07418SJames Feist 704a7fbefdSEd Tanous void resourceMissingAtURI(crow::Response& res, 714a7fbefdSEd Tanous const boost::urls::url_view_base& arg1); 72f4c4dcf4SKowalski, Kamil 73f4c4dcf4SKowalski, Kamil /** 74f4c4dcf4SKowalski, Kamil * @brief Formats ActionParameterValueFormatError message into JSON 7566ac2b8cSJason M. Bills * Message body: "The value <arg1> for the parameter <arg2> in the action <arg3> 76*42079ecbSEd Tanous * is not a format that the parameter can accept." 77f4c4dcf4SKowalski, Kamil * 78f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 79f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 80f4c4dcf4SKowalski, Kamil * @param[in] arg3 Parameter of message that will replace %3 in its body. 81f4c4dcf4SKowalski, Kamil * 82f4c4dcf4SKowalski, Kamil * @returns Message ActionParameterValueFormatError formatted to JSON */ 83bd79bce8SPatrick Williams nlohmann::json actionParameterValueFormatError( 84bd79bce8SPatrick Williams const nlohmann::json& arg1, std::string_view arg2, std::string_view arg3); 85b5c07418SJames Feist 86bd79bce8SPatrick Williams void actionParameterValueFormatError( 87bd79bce8SPatrick Williams crow::Response& res, const nlohmann::json& arg1, std::string_view arg2, 881668ce6dSEd Tanous std::string_view arg3); 89f4c4dcf4SKowalski, Kamil 90f4c4dcf4SKowalski, Kamil /** 914ef82a15SAlex Schendel * @brief Formats ActionParameterValueNotInList message into JSON 924ef82a15SAlex Schendel * Message body: "The value <arg1> for the parameter <arg2> in the action <arg3> 934ef82a15SAlex Schendel * is not in the list of acceptable values." 944ef82a15SAlex Schendel * 954ef82a15SAlex Schendel * @param[in] arg1 Parameter of message that will replace %1 in its body. 964ef82a15SAlex Schendel * @param[in] arg2 Parameter of message that will replace %2 in its body. 974ef82a15SAlex Schendel * @param[in] arg3 Parameter of message that will replace %3 in its body. 984ef82a15SAlex Schendel * 99*42079ecbSEd Tanous * @returns Message ActionParameterValueNotInList formatted to JSON */ 100bd79bce8SPatrick Williams nlohmann::json actionParameterValueNotInList( 101bd79bce8SPatrick Williams std::string_view arg1, std::string_view arg2, std::string_view arg3); 1024ef82a15SAlex Schendel 1034ef82a15SAlex Schendel void actionParameterValueNotInList(crow::Response& res, std::string_view arg1, 1044ef82a15SAlex Schendel std::string_view arg2, 1054ef82a15SAlex Schendel std::string_view arg3); 1064ef82a15SAlex Schendel 1074ef82a15SAlex Schendel /** 108f4c4dcf4SKowalski, Kamil * @brief Formats InternalError message into JSON 109f4c4dcf4SKowalski, Kamil * Message body: "The request failed due to an internal service error. The 110f4c4dcf4SKowalski, Kamil * service is still operational." 111f4c4dcf4SKowalski, Kamil * 112f4c4dcf4SKowalski, Kamil * 113f4c4dcf4SKowalski, Kamil * @returns Message InternalError formatted to JSON */ 11465176d39SEd Tanous nlohmann::json internalError(); 115b5c07418SJames Feist 116d85418e3SPatrick Williams void internalError(crow::Response& res, std::source_location location = 117d85418e3SPatrick Williams std::source_location::current()); 118f12894f8SJason M. Bills 119f12894f8SJason M. Bills /** 120f4c4dcf4SKowalski, Kamil * @brief Formats UnrecognizedRequestBody message into JSON 121f4c4dcf4SKowalski, Kamil * Message body: "The service detected a malformed request body that it was 122f4c4dcf4SKowalski, Kamil * unable to interpret." 123f4c4dcf4SKowalski, Kamil * 124f4c4dcf4SKowalski, Kamil * 125f4c4dcf4SKowalski, Kamil * @returns Message UnrecognizedRequestBody formatted to JSON */ 12665176d39SEd Tanous nlohmann::json unrecognizedRequestBody(); 127b5c07418SJames Feist 128f12894f8SJason M. Bills void unrecognizedRequestBody(crow::Response& res); 129f4c4dcf4SKowalski, Kamil 130f4c4dcf4SKowalski, Kamil /** 131f4c4dcf4SKowalski, Kamil * @brief Formats ResourceAtUriUnauthorized message into JSON 13266ac2b8cSJason M. Bills * Message body: "While accessing the resource at <arg1>, the service received 13366ac2b8cSJason M. Bills * an authorization error <arg2>." 134f4c4dcf4SKowalski, Kamil * 135f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 136f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 137f4c4dcf4SKowalski, Kamil * 138f4c4dcf4SKowalski, Kamil * @returns Message ResourceAtUriUnauthorized formatted to JSON */ 1394a7fbefdSEd Tanous nlohmann::json resourceAtUriUnauthorized(const boost::urls::url_view_base& arg1, 1401668ce6dSEd Tanous std::string_view arg2); 141b5c07418SJames Feist 1424a7fbefdSEd Tanous void resourceAtUriUnauthorized(crow::Response& res, 1434a7fbefdSEd Tanous const boost::urls::url_view_base& arg1, 1441668ce6dSEd Tanous std::string_view arg2); 145f4c4dcf4SKowalski, Kamil 146f4c4dcf4SKowalski, Kamil /** 147f4c4dcf4SKowalski, Kamil * @brief Formats ActionParameterUnknown message into JSON 14866ac2b8cSJason M. Bills * Message body: "The action <arg1> was submitted with the invalid parameter 14966ac2b8cSJason M. Bills * <arg2>." 150f4c4dcf4SKowalski, Kamil * 151f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 152f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 153f4c4dcf4SKowalski, Kamil * 154f4c4dcf4SKowalski, Kamil * @returns Message ActionParameterUnknown formatted to JSON */ 1551668ce6dSEd Tanous nlohmann::json actionParameterUnknown(std::string_view arg1, 1561668ce6dSEd Tanous std::string_view arg2); 157b5c07418SJames Feist 1581668ce6dSEd Tanous void actionParameterUnknown(crow::Response& res, std::string_view arg1, 1591668ce6dSEd Tanous std::string_view arg2); 160f4c4dcf4SKowalski, Kamil 161f4c4dcf4SKowalski, Kamil /** 162f4c4dcf4SKowalski, Kamil * @brief Formats ResourceCannotBeDeleted message into JSON 163f4c4dcf4SKowalski, Kamil * Message body: "The delete request failed because the resource requested 164f4c4dcf4SKowalski, Kamil * cannot be deleted." 165f4c4dcf4SKowalski, Kamil * 166f4c4dcf4SKowalski, Kamil * 167f4c4dcf4SKowalski, Kamil * @returns Message ResourceCannotBeDeleted formatted to JSON */ 16865176d39SEd Tanous nlohmann::json resourceCannotBeDeleted(); 169b5c07418SJames Feist 170f12894f8SJason M. Bills void resourceCannotBeDeleted(crow::Response& res); 171f4c4dcf4SKowalski, Kamil 172f4c4dcf4SKowalski, Kamil /** 173f4c4dcf4SKowalski, Kamil * @brief Formats PropertyDuplicate message into JSON 17466ac2b8cSJason M. Bills * Message body: "The property <arg1> was duplicated in the request." 175f4c4dcf4SKowalski, Kamil * 176f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 177f4c4dcf4SKowalski, Kamil * 178f4c4dcf4SKowalski, Kamil * @returns Message PropertyDuplicate formatted to JSON */ 1791668ce6dSEd Tanous nlohmann::json propertyDuplicate(std::string_view arg1); 180b5c07418SJames Feist 1811668ce6dSEd Tanous void propertyDuplicate(crow::Response& res, std::string_view arg1); 182f4c4dcf4SKowalski, Kamil 183f4c4dcf4SKowalski, Kamil /** 184f4c4dcf4SKowalski, Kamil * @brief Formats ServiceTemporarilyUnavailable message into JSON 18566ac2b8cSJason M. Bills * Message body: "The service is temporarily unavailable. Retry in <arg1> 186f4c4dcf4SKowalski, Kamil * seconds." 187f4c4dcf4SKowalski, Kamil * 188f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 189f4c4dcf4SKowalski, Kamil * 190f4c4dcf4SKowalski, Kamil * @returns Message ServiceTemporarilyUnavailable formatted to JSON */ 1911668ce6dSEd Tanous nlohmann::json serviceTemporarilyUnavailable(std::string_view arg1); 192b5c07418SJames Feist 1931668ce6dSEd Tanous void serviceTemporarilyUnavailable(crow::Response& res, std::string_view arg1); 194f4c4dcf4SKowalski, Kamil 195f4c4dcf4SKowalski, Kamil /** 196f4c4dcf4SKowalski, Kamil * @brief Formats ResourceAlreadyExists message into JSON 19766ac2b8cSJason M. Bills * Message body: "The requested resource of type <arg1> with the property <arg2> 19866ac2b8cSJason M. Bills * with the value <arg3> already exists." 199f4c4dcf4SKowalski, Kamil * 200f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 201f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 202f4c4dcf4SKowalski, Kamil * @param[in] arg3 Parameter of message that will replace %3 in its body. 203f4c4dcf4SKowalski, Kamil * 204f4c4dcf4SKowalski, Kamil * @returns Message ResourceAlreadyExists formatted to JSON */ 205bd79bce8SPatrick Williams nlohmann::json resourceAlreadyExists( 206bd79bce8SPatrick Williams std::string_view arg1, std::string_view arg2, std::string_view arg3); 207b5c07418SJames Feist 2081668ce6dSEd Tanous void resourceAlreadyExists(crow::Response& res, std::string_view arg1, 2091668ce6dSEd Tanous std::string_view arg2, std::string_view arg3); 210f4c4dcf4SKowalski, Kamil 211f4c4dcf4SKowalski, Kamil /** 212f4c4dcf4SKowalski, Kamil * @brief Formats AccountForSessionNoLongerExists message into JSON 213*42079ecbSEd Tanous * Message body: "The account for the current session was removed, and so the 214*42079ecbSEd Tanous * current session was removed as well." 215f4c4dcf4SKowalski, Kamil * 216f4c4dcf4SKowalski, Kamil * 217f4c4dcf4SKowalski, Kamil * @returns Message AccountForSessionNoLongerExists formatted to JSON */ 21865176d39SEd Tanous nlohmann::json accountForSessionNoLongerExists(); 219b5c07418SJames Feist 220f12894f8SJason M. Bills void accountForSessionNoLongerExists(crow::Response& res); 221f4c4dcf4SKowalski, Kamil 222f4c4dcf4SKowalski, Kamil /** 223f4c4dcf4SKowalski, Kamil * @brief Formats CreateFailedMissingReqProperties message into JSON 224f4c4dcf4SKowalski, Kamil * Message body: "The create operation failed because the required property 22566ac2b8cSJason M. Bills * <arg1> was missing from the request." 226f4c4dcf4SKowalski, Kamil * 227f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 228f4c4dcf4SKowalski, Kamil * 229f4c4dcf4SKowalski, Kamil * @returns Message CreateFailedMissingReqProperties formatted to JSON */ 2301668ce6dSEd Tanous nlohmann::json createFailedMissingReqProperties(std::string_view arg1); 231b5c07418SJames Feist 232f12894f8SJason M. Bills void createFailedMissingReqProperties(crow::Response& res, 2331668ce6dSEd Tanous std::string_view arg1); 234f4c4dcf4SKowalski, Kamil 235f4c4dcf4SKowalski, Kamil /** 236f4c4dcf4SKowalski, Kamil * @brief Formats PropertyValueFormatError message into JSON 237*42079ecbSEd Tanous * Message body: "The value <arg1> for the property <arg2> is not a format that 238*42079ecbSEd Tanous * the property can accept." 239f4c4dcf4SKowalski, Kamil * 240f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 241f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 242f4c4dcf4SKowalski, Kamil * 243f4c4dcf4SKowalski, Kamil * @returns Message PropertyValueFormatError formatted to JSON */ 244f818b04dSEd Tanous nlohmann::json propertyValueFormatError(const nlohmann::json& arg1, 2451668ce6dSEd Tanous std::string_view arg2); 246b5c07418SJames Feist 247f818b04dSEd Tanous void propertyValueFormatError(crow::Response& res, const nlohmann::json& arg1, 2481668ce6dSEd Tanous std::string_view arg2); 249f4c4dcf4SKowalski, Kamil 250f4c4dcf4SKowalski, Kamil /** 251f4c4dcf4SKowalski, Kamil * @brief Formats PropertyValueNotInList message into JSON 25266ac2b8cSJason M. Bills * Message body: "The value <arg1> for the property <arg2> is not in the list of 253f4c4dcf4SKowalski, Kamil * acceptable values." 254f4c4dcf4SKowalski, Kamil * 255f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 256f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 257f4c4dcf4SKowalski, Kamil * 258f4c4dcf4SKowalski, Kamil * @returns Message PropertyValueNotInList formatted to JSON */ 259e2616cc5SEd Tanous nlohmann::json propertyValueNotInList(const nlohmann::json& arg1, 2601668ce6dSEd Tanous std::string_view arg2); 261b5c07418SJames Feist 262e2616cc5SEd Tanous void propertyValueNotInList(crow::Response& res, const nlohmann::json& arg1, 2631668ce6dSEd Tanous std::string_view arg2); 264*42079ecbSEd Tanous 265f4c4dcf4SKowalski, Kamil /** 266227a2b0aSJiaqing Zhao * @brief Formats PropertyValueOutOfRange message into JSON 267*42079ecbSEd Tanous * Message body: "The value <arg1> for the property <arg2> is not in the 268*42079ecbSEd Tanous * supported range of acceptable values." 269227a2b0aSJiaqing Zhao * 270227a2b0aSJiaqing Zhao * @param[in] arg1 Parameter of message that will replace %1 in its body. 271227a2b0aSJiaqing Zhao * @param[in] arg2 Parameter of message that will replace %2 in its body. 272227a2b0aSJiaqing Zhao * 273*42079ecbSEd Tanous * @returns Message PropertyValueOutOfRange formatted to JSON */ 27495b3ad73SEd Tanous nlohmann::json propertyValueOutOfRange(const nlohmann::json& arg1, 275227a2b0aSJiaqing Zhao std::string_view arg2); 276227a2b0aSJiaqing Zhao 27795b3ad73SEd Tanous void propertyValueOutOfRange(crow::Response& res, const nlohmann::json& arg1, 278227a2b0aSJiaqing Zhao std::string_view arg2); 279227a2b0aSJiaqing Zhao 280227a2b0aSJiaqing Zhao /** 281f4c4dcf4SKowalski, Kamil * @brief Formats ResourceAtUriInUnknownFormat message into JSON 28266ac2b8cSJason M. Bills * Message body: "The resource at <arg1> is in a format not recognized by the 283f4c4dcf4SKowalski, Kamil * service." 284f4c4dcf4SKowalski, Kamil * 285f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 286f4c4dcf4SKowalski, Kamil * 287f4c4dcf4SKowalski, Kamil * @returns Message ResourceAtUriInUnknownFormat formatted to JSON */ 2884a7fbefdSEd Tanous nlohmann::json 2894a7fbefdSEd Tanous resourceAtUriInUnknownFormat(const boost::urls::url_view_base& arg1); 290b5c07418SJames Feist 291ace85d60SEd Tanous void resourceAtUriInUnknownFormat(crow::Response& res, 2924a7fbefdSEd Tanous const boost::urls::url_view_base& arg1); 293f4c4dcf4SKowalski, Kamil 294f4c4dcf4SKowalski, Kamil /** 29581856681SAsmitha Karunanithi * @brief Formats ServiceDisabled message into JSON 29681856681SAsmitha Karunanithi * Message body: "The operation failed because the service at <arg1> is disabled 297*42079ecbSEd Tanous * and cannot accept requests." 29881856681SAsmitha Karunanithi * 29981856681SAsmitha Karunanithi * @param[in] arg1 Parameter of message that will replace %1 in its body. 30081856681SAsmitha Karunanithi * 30181856681SAsmitha Karunanithi * @returns Message ServiceDisabled formatted to JSON */ 3021668ce6dSEd Tanous nlohmann::json serviceDisabled(std::string_view arg1); 30381856681SAsmitha Karunanithi 3041668ce6dSEd Tanous void serviceDisabled(crow::Response& res, std::string_view arg1); 30581856681SAsmitha Karunanithi 30681856681SAsmitha Karunanithi /** 307f4c4dcf4SKowalski, Kamil * @brief Formats ServiceInUnknownState message into JSON 308f4c4dcf4SKowalski, Kamil * Message body: "The operation failed because the service is in an unknown 309f4c4dcf4SKowalski, Kamil * state and can no longer take incoming requests." 310f4c4dcf4SKowalski, Kamil * 311f4c4dcf4SKowalski, Kamil * 312f4c4dcf4SKowalski, Kamil * @returns Message ServiceInUnknownState formatted to JSON */ 31365176d39SEd Tanous nlohmann::json serviceInUnknownState(); 314b5c07418SJames Feist 315f12894f8SJason M. Bills void serviceInUnknownState(crow::Response& res); 316f4c4dcf4SKowalski, Kamil 317f4c4dcf4SKowalski, Kamil /** 318f4c4dcf4SKowalski, Kamil * @brief Formats EventSubscriptionLimitExceeded message into JSON 319f4c4dcf4SKowalski, Kamil * Message body: "The event subscription failed due to the number of 320f4c4dcf4SKowalski, Kamil * simultaneous subscriptions exceeding the limit of the implementation." 321f4c4dcf4SKowalski, Kamil * 322f4c4dcf4SKowalski, Kamil * 323f4c4dcf4SKowalski, Kamil * @returns Message EventSubscriptionLimitExceeded formatted to JSON */ 32465176d39SEd Tanous nlohmann::json eventSubscriptionLimitExceeded(); 325b5c07418SJames Feist 326f12894f8SJason M. Bills void eventSubscriptionLimitExceeded(crow::Response& res); 327f4c4dcf4SKowalski, Kamil 328f4c4dcf4SKowalski, Kamil /** 329f4c4dcf4SKowalski, Kamil * @brief Formats ActionParameterMissing message into JSON 33066ac2b8cSJason M. Bills * Message body: "The action <arg1> requires the parameter <arg2> to be present 331f4c4dcf4SKowalski, Kamil * in the request body." 332f4c4dcf4SKowalski, Kamil * 333f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 334f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 335f4c4dcf4SKowalski, Kamil * 336f4c4dcf4SKowalski, Kamil * @returns Message ActionParameterMissing formatted to JSON */ 3371668ce6dSEd Tanous nlohmann::json actionParameterMissing(std::string_view arg1, 3381668ce6dSEd Tanous std::string_view arg2); 339b5c07418SJames Feist 3401668ce6dSEd Tanous void actionParameterMissing(crow::Response& res, std::string_view arg1, 3411668ce6dSEd Tanous std::string_view arg2); 342f4c4dcf4SKowalski, Kamil 343f4c4dcf4SKowalski, Kamil /** 344f4c4dcf4SKowalski, Kamil * @brief Formats StringValueTooLong message into JSON 34566ac2b8cSJason M. Bills * Message body: "The string <arg1> exceeds the length limit <arg2>." 346f4c4dcf4SKowalski, Kamil * 347f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 348f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 349f4c4dcf4SKowalski, Kamil * 350f4c4dcf4SKowalski, Kamil * @returns Message StringValueTooLong formatted to JSON */ 3511668ce6dSEd Tanous nlohmann::json stringValueTooLong(std::string_view arg1, int arg2); 352b5c07418SJames Feist 3531668ce6dSEd Tanous void stringValueTooLong(crow::Response& res, std::string_view arg1, int arg2); 354f4c4dcf4SKowalski, Kamil 355f4c4dcf4SKowalski, Kamil /** 356cc9139ecSJason M. Bills * @brief Formats SessionTerminated message into JSON 357cc9139ecSJason M. Bills * Message body: "The session was successfully terminated." 358cc9139ecSJason M. Bills * 359cc9139ecSJason M. Bills * 360cc9139ecSJason M. Bills * @returns Message SessionTerminated formatted to JSON */ 36165176d39SEd Tanous nlohmann::json sessionTerminated(); 362b5c07418SJames Feist 363cc9139ecSJason M. Bills void sessionTerminated(crow::Response& res); 364cc9139ecSJason M. Bills 365cc9139ecSJason M. Bills /** 366684bb4b8SJason M. Bills * @brief Formats SubscriptionTerminated message into JSON 367*42079ecbSEd Tanous * Message body: "The event subscription was terminated." 368684bb4b8SJason M. Bills * 369684bb4b8SJason M. Bills * 370684bb4b8SJason M. Bills * @returns Message SubscriptionTerminated formatted to JSON */ 37165176d39SEd Tanous nlohmann::json subscriptionTerminated(); 372684bb4b8SJason M. Bills 373684bb4b8SJason M. Bills void subscriptionTerminated(crow::Response& res); 374684bb4b8SJason M. Bills 375684bb4b8SJason M. Bills /** 376cc9139ecSJason M. Bills * @brief Formats ResourceTypeIncompatible message into JSON 377cc9139ecSJason M. Bills * Message body: "The @odata.type of the request body <arg1> is incompatible 378*42079ecbSEd Tanous * with the @odata.type of the resource, which is <arg2>." 379cc9139ecSJason M. Bills * 380cc9139ecSJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 381cc9139ecSJason M. Bills * @param[in] arg2 Parameter of message that will replace %2 in its body. 382cc9139ecSJason M. Bills * 383cc9139ecSJason M. Bills * @returns Message ResourceTypeIncompatible formatted to JSON */ 3841668ce6dSEd Tanous nlohmann::json resourceTypeIncompatible(std::string_view arg1, 3851668ce6dSEd Tanous std::string_view arg2); 386b5c07418SJames Feist 3871668ce6dSEd Tanous void resourceTypeIncompatible(crow::Response& res, std::string_view arg1, 3881668ce6dSEd Tanous std::string_view arg2); 389cc9139ecSJason M. Bills 390cc9139ecSJason M. Bills /** 391684bb4b8SJason M. Bills * @brief Formats ResetRequired message into JSON 392*42079ecbSEd Tanous * Message body: "In order to apply changes, recover from errors, or complete 393*42079ecbSEd Tanous * the operation, a component reset is required with the Reset action URI <arg1> 394*42079ecbSEd Tanous * and ResetType <arg2>." 395684bb4b8SJason M. Bills * 396684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 397684bb4b8SJason M. Bills * @param[in] arg2 Parameter of message that will replace %2 in its body. 398684bb4b8SJason M. Bills * 399684bb4b8SJason M. Bills * @returns Message ResetRequired formatted to JSON */ 4004a7fbefdSEd Tanous nlohmann::json resetRequired(const boost::urls::url_view_base& arg1, 4014a7fbefdSEd Tanous std::string_view arg2); 402684bb4b8SJason M. Bills 4034a7fbefdSEd Tanous void resetRequired(crow::Response& res, const boost::urls::url_view_base& arg1, 4041668ce6dSEd Tanous std::string_view arg2); 405684bb4b8SJason M. Bills 406684bb4b8SJason M. Bills /** 407684bb4b8SJason M. Bills * @brief Formats ChassisPowerStateOnRequired message into JSON 408*42079ecbSEd Tanous * Message body: "The chassis with Id <arg1> is required to be powered on to 409684bb4b8SJason M. Bills * perform this request." 410684bb4b8SJason M. Bills * 411684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 412684bb4b8SJason M. Bills * 413684bb4b8SJason M. Bills * @returns Message ChassisPowerStateOnRequired formatted to JSON */ 4141668ce6dSEd Tanous nlohmann::json chassisPowerStateOnRequired(std::string_view arg1); 415684bb4b8SJason M. Bills 4161668ce6dSEd Tanous void chassisPowerStateOnRequired(crow::Response& res, std::string_view arg1); 417684bb4b8SJason M. Bills 418684bb4b8SJason M. Bills /** 419684bb4b8SJason M. Bills * @brief Formats ChassisPowerStateOffRequired message into JSON 420*42079ecbSEd Tanous * Message body: "The chassis with Id <arg1> is required to be powered off to 421684bb4b8SJason M. Bills * perform this request." 422684bb4b8SJason M. Bills * 423684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 424684bb4b8SJason M. Bills * 425684bb4b8SJason M. Bills * @returns Message ChassisPowerStateOffRequired formatted to JSON */ 4261668ce6dSEd Tanous nlohmann::json chassisPowerStateOffRequired(std::string_view arg1); 427684bb4b8SJason M. Bills 4281668ce6dSEd Tanous void chassisPowerStateOffRequired(crow::Response& res, std::string_view arg1); 429684bb4b8SJason M. Bills 430684bb4b8SJason M. Bills /** 431684bb4b8SJason M. Bills * @brief Formats PropertyValueConflict message into JSON 432*42079ecbSEd Tanous * Message body: "The property <arg1> could not be written because its value 433*42079ecbSEd Tanous * would conflict with the value of the <arg2> property." 434684bb4b8SJason M. Bills * 435684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 436684bb4b8SJason M. Bills * @param[in] arg2 Parameter of message that will replace %2 in its body. 437684bb4b8SJason M. Bills * 438684bb4b8SJason M. Bills * @returns Message PropertyValueConflict formatted to JSON */ 4391668ce6dSEd Tanous nlohmann::json propertyValueConflict(std::string_view arg1, 4401668ce6dSEd Tanous std::string_view arg2); 441684bb4b8SJason M. Bills 4421668ce6dSEd Tanous void propertyValueConflict(crow::Response& res, std::string_view arg1, 4431668ce6dSEd Tanous std::string_view arg2); 444684bb4b8SJason M. Bills 445684bb4b8SJason M. Bills /** 4462a6af81cSRamesh Iyyar * @brief Formats PropertyValueResourceConflict message into JSON 447*42079ecbSEd Tanous * Message body: "The property <arg1> with the requested value of <arg2> could 448*42079ecbSEd Tanous * not be written because the value conflicts with the state or configuration of 449*42079ecbSEd Tanous * the resource at <arg3>." 4502a6af81cSRamesh Iyyar * 4512a6af81cSRamesh Iyyar * @param[in] arg1 Parameter of message that will replace %1 in its body. 4522a6af81cSRamesh Iyyar * @param[in] arg2 Parameter of message that will replace %2 in its body. 4532a6af81cSRamesh Iyyar * @param[in] arg3 Parameter of message that will replace %3 in its body. 4542a6af81cSRamesh Iyyar * 455*42079ecbSEd Tanous * @returns Message PropertyValueResourceConflict formatted to JSON */ 456bd79bce8SPatrick Williams nlohmann::json propertyValueResourceConflict( 457bd79bce8SPatrick Williams std::string_view arg1, const nlohmann::json& arg2, 4584a7fbefdSEd Tanous const boost::urls::url_view_base& arg3); 4592a6af81cSRamesh Iyyar 4602a6af81cSRamesh Iyyar void propertyValueResourceConflict(crow::Response& res, std::string_view arg1, 46195b3ad73SEd Tanous const nlohmann::json& arg2, 4624a7fbefdSEd Tanous const boost::urls::url_view_base& arg3); 4632a6af81cSRamesh Iyyar 4642a6af81cSRamesh Iyyar /** 46524861a28SRamesh Iyyar * @brief Formats PropertyValueExternalConflict message into JSON 466*42079ecbSEd Tanous * Message body: "The property <arg1> with the requested value of <arg2> could 467*42079ecbSEd Tanous * not be written because the value is not available due to a configuration 46824861a28SRamesh Iyyar * conflict." 46924861a28SRamesh Iyyar * 47024861a28SRamesh Iyyar * @param[in] arg1 Parameter of message that will replace %1 in its body. 47124861a28SRamesh Iyyar * @param[in] arg2 Parameter of message that will replace %2 in its body. 47224861a28SRamesh Iyyar * 47324861a28SRamesh Iyyar * @returns Message PropertyValueExternalConflict formatted to JSON */ 47424861a28SRamesh Iyyar nlohmann::json propertyValueExternalConflict(std::string_view arg1, 47595b3ad73SEd Tanous const nlohmann::json& arg2); 47624861a28SRamesh Iyyar 47724861a28SRamesh Iyyar void propertyValueExternalConflict(crow::Response& res, std::string_view arg1, 47895b3ad73SEd Tanous const nlohmann::json& arg2); 47924861a28SRamesh Iyyar 48024861a28SRamesh Iyyar /** 481684bb4b8SJason M. Bills * @brief Formats PropertyValueIncorrect message into JSON 482*42079ecbSEd Tanous * Message body: "The property <arg1> with the requested value of <arg2> could 483*42079ecbSEd Tanous * not be written because the value does not meet the constraints of the 484684bb4b8SJason M. Bills * implementation." 485684bb4b8SJason M. Bills * 486684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 487684bb4b8SJason M. Bills * @param[in] arg2 Parameter of message that will replace %2 in its body. 488684bb4b8SJason M. Bills * 489684bb4b8SJason M. Bills * @returns Message PropertyValueIncorrect formatted to JSON */ 490367b3dceSGinu George nlohmann::json propertyValueIncorrect(std::string_view arg1, 491367b3dceSGinu George const nlohmann::json& arg2); 492684bb4b8SJason M. Bills 493367b3dceSGinu George void propertyValueIncorrect(crow::Response& res, std::string_view arg1, 494367b3dceSGinu George const nlohmann::json& arg2); 495684bb4b8SJason M. Bills 496684bb4b8SJason M. Bills /** 497684bb4b8SJason M. Bills * @brief Formats ResourceCreationConflict message into JSON 498684bb4b8SJason M. Bills * Message body: "The resource could not be created. The service has a resource 499*42079ecbSEd Tanous * at URI <arg1> that conflicts with the creation request." 500684bb4b8SJason M. Bills * 501684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 502684bb4b8SJason M. Bills * 503684bb4b8SJason M. Bills * @returns Message ResourceCreationConflict formatted to JSON */ 5044a7fbefdSEd Tanous nlohmann::json resourceCreationConflict(const boost::urls::url_view_base& arg1); 505684bb4b8SJason M. Bills 5064a7fbefdSEd Tanous void resourceCreationConflict(crow::Response& res, 5074a7fbefdSEd Tanous const boost::urls::url_view_base& arg1); 508684bb4b8SJason M. Bills 509684bb4b8SJason M. Bills /** 510684bb4b8SJason M. Bills * @brief Formats MaximumErrorsExceeded message into JSON 511684bb4b8SJason M. Bills * Message body: "Too many errors have occurred to report them all." 512684bb4b8SJason M. Bills * 513684bb4b8SJason M. Bills * 514684bb4b8SJason M. Bills * @returns Message MaximumErrorsExceeded formatted to JSON */ 51565176d39SEd Tanous nlohmann::json maximumErrorsExceeded(); 516684bb4b8SJason M. Bills 517684bb4b8SJason M. Bills void maximumErrorsExceeded(crow::Response& res); 518684bb4b8SJason M. Bills 519684bb4b8SJason M. Bills /** 520684bb4b8SJason M. Bills * @brief Formats PreconditionFailed message into JSON 521684bb4b8SJason M. Bills * Message body: "The ETag supplied did not match the ETag required to change 522684bb4b8SJason M. Bills * this resource." 523684bb4b8SJason M. Bills * 524684bb4b8SJason M. Bills * 525684bb4b8SJason M. Bills * @returns Message PreconditionFailed formatted to JSON */ 52665176d39SEd Tanous nlohmann::json preconditionFailed(); 527684bb4b8SJason M. Bills 528684bb4b8SJason M. Bills void preconditionFailed(crow::Response& res); 529684bb4b8SJason M. Bills 530684bb4b8SJason M. Bills /** 531684bb4b8SJason M. Bills * @brief Formats PreconditionRequired message into JSON 532684bb4b8SJason M. Bills * Message body: "A precondition header or annotation is required to change this 533684bb4b8SJason M. Bills * resource." 534684bb4b8SJason M. Bills * 535684bb4b8SJason M. Bills * 536684bb4b8SJason M. Bills * @returns Message PreconditionRequired formatted to JSON */ 53765176d39SEd Tanous nlohmann::json preconditionRequired(); 538684bb4b8SJason M. Bills 539684bb4b8SJason M. Bills void preconditionRequired(crow::Response& res); 540684bb4b8SJason M. Bills 541684bb4b8SJason M. Bills /** 542684bb4b8SJason M. Bills * @brief Formats OperationFailed message into JSON 543684bb4b8SJason M. Bills * Message body: "An error occurred internal to the service as part of the 544684bb4b8SJason M. Bills * overall request. Partial results may have been returned." 545684bb4b8SJason M. Bills * 546684bb4b8SJason M. Bills * 547684bb4b8SJason M. Bills * @returns Message OperationFailed formatted to JSON */ 54865176d39SEd Tanous nlohmann::json operationFailed(); 549684bb4b8SJason M. Bills 550684bb4b8SJason M. Bills void operationFailed(crow::Response& res); 551684bb4b8SJason M. Bills 552684bb4b8SJason M. Bills /** 553684bb4b8SJason M. Bills * @brief Formats OperationTimeout message into JSON 5548ece0e45SEd Tanous * Message body: "A timeout internal to the service occurred as part of the 555684bb4b8SJason M. Bills * request. Partial results may have been returned." 556684bb4b8SJason M. Bills * 557684bb4b8SJason M. Bills * 558684bb4b8SJason M. Bills * @returns Message OperationTimeout formatted to JSON */ 55965176d39SEd Tanous nlohmann::json operationTimeout(); 560684bb4b8SJason M. Bills 561684bb4b8SJason M. Bills void operationTimeout(crow::Response& res); 562684bb4b8SJason M. Bills 563684bb4b8SJason M. Bills /** 564f4c4dcf4SKowalski, Kamil * @brief Formats PropertyValueTypeError message into JSON 565*42079ecbSEd Tanous * Message body: "The value <arg1> for the property <arg2> is not a type that 566*42079ecbSEd Tanous * the property can accept." 567f4c4dcf4SKowalski, Kamil * 568f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 569f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 570f4c4dcf4SKowalski, Kamil * 571f4c4dcf4SKowalski, Kamil * @returns Message PropertyValueTypeError formatted to JSON */ 5722e8c4bdaSEd Tanous nlohmann::json propertyValueTypeError(const nlohmann::json& arg1, 5731668ce6dSEd Tanous std::string_view arg2); 574b5c07418SJames Feist 5752e8c4bdaSEd Tanous void propertyValueTypeError(crow::Response& res, const nlohmann::json& arg1, 5761668ce6dSEd Tanous std::string_view arg2); 577f4c4dcf4SKowalski, Kamil 578f4c4dcf4SKowalski, Kamil /** 579b54eb49fSEd Tanous * @brief Formats PropertyValueError message into JSON 580b54eb49fSEd Tanous * Message body: "The value provided for the property <arg1> is not valid." 581b54eb49fSEd Tanous * 582b54eb49fSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 583b54eb49fSEd Tanous * 584*42079ecbSEd Tanous * @returns Message PropertyValueError formatted to JSON */ 585b54eb49fSEd Tanous nlohmann::json propertyValueError(std::string_view arg1); 586b54eb49fSEd Tanous 587b54eb49fSEd Tanous void propertyValueError(crow::Response& res, std::string_view arg1); 588b54eb49fSEd Tanous 589b54eb49fSEd Tanous /** 590f4c4dcf4SKowalski, Kamil * @brief Formats ResourceNotFound message into JSON 59166ac2b8cSJason M. Bills * Message body: "The requested resource of type <arg1> named <arg2> was not 592f4c4dcf4SKowalski, Kamil * found." 593f4c4dcf4SKowalski, Kamil * 594f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 595f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 596f4c4dcf4SKowalski, Kamil * 597f4c4dcf4SKowalski, Kamil * @returns Message ResourceNotFound formatted to JSON */ 5981668ce6dSEd Tanous nlohmann::json resourceNotFound(std::string_view arg1, std::string_view arg2); 599b5c07418SJames Feist 6001668ce6dSEd Tanous void resourceNotFound(crow::Response& res, std::string_view arg1, 6011668ce6dSEd Tanous std::string_view arg2); 602f4c4dcf4SKowalski, Kamil 603f4c4dcf4SKowalski, Kamil /** 604f4c4dcf4SKowalski, Kamil * @brief Formats CouldNotEstablishConnection message into JSON 605*42079ecbSEd Tanous * Message body: "The service failed to establish a connection with the URI 60666ac2b8cSJason M. Bills * <arg1>." 607f4c4dcf4SKowalski, Kamil * 608f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 609f4c4dcf4SKowalski, Kamil * 610f4c4dcf4SKowalski, Kamil * @returns Message CouldNotEstablishConnection formatted to JSON */ 6114a7fbefdSEd Tanous nlohmann::json 6124a7fbefdSEd Tanous couldNotEstablishConnection(const boost::urls::url_view_base& arg1); 613b5c07418SJames Feist 614ace85d60SEd Tanous void couldNotEstablishConnection(crow::Response& res, 6154a7fbefdSEd Tanous const boost::urls::url_view_base& arg1); 616f4c4dcf4SKowalski, Kamil 617f4c4dcf4SKowalski, Kamil /** 618f4c4dcf4SKowalski, Kamil * @brief Formats PropertyNotWritable message into JSON 619*42079ecbSEd Tanous * Message body: "The property <arg1> is a read-only property and cannot be 620f4c4dcf4SKowalski, Kamil * assigned a value." 621f4c4dcf4SKowalski, Kamil * 622f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 623f4c4dcf4SKowalski, Kamil * 624f4c4dcf4SKowalski, Kamil * @returns Message PropertyNotWritable formatted to JSON */ 6251668ce6dSEd Tanous nlohmann::json propertyNotWritable(std::string_view arg1); 626b5c07418SJames Feist 6271668ce6dSEd Tanous void propertyNotWritable(crow::Response& res, std::string_view arg1); 628f12894f8SJason M. Bills 629f12894f8SJason M. Bills /** 630f4c4dcf4SKowalski, Kamil * @brief Formats QueryParameterValueTypeError message into JSON 631*42079ecbSEd Tanous * Message body: "The value <arg1> for the query parameter <arg2> is not a type 632*42079ecbSEd Tanous * that the parameter can accept." 633f4c4dcf4SKowalski, Kamil * 634f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 635f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 636f4c4dcf4SKowalski, Kamil * 637f4c4dcf4SKowalski, Kamil * @returns Message QueryParameterValueTypeError formatted to JSON */ 63895b3ad73SEd Tanous nlohmann::json queryParameterValueTypeError(const nlohmann::json& arg1, 6391668ce6dSEd Tanous std::string_view arg2); 640b5c07418SJames Feist 641bd79bce8SPatrick Williams void queryParameterValueTypeError( 642bd79bce8SPatrick Williams crow::Response& res, const nlohmann::json& arg1, std::string_view arg2); 643f4c4dcf4SKowalski, Kamil 644f4c4dcf4SKowalski, Kamil /** 645f4c4dcf4SKowalski, Kamil * @brief Formats ServiceShuttingDown message into JSON 646f4c4dcf4SKowalski, Kamil * Message body: "The operation failed because the service is shutting down and 647f4c4dcf4SKowalski, Kamil * can no longer take incoming requests." 648f4c4dcf4SKowalski, Kamil * 649f4c4dcf4SKowalski, Kamil * 650f4c4dcf4SKowalski, Kamil * @returns Message ServiceShuttingDown formatted to JSON */ 65165176d39SEd Tanous nlohmann::json serviceShuttingDown(); 652b5c07418SJames Feist 653f12894f8SJason M. Bills void serviceShuttingDown(crow::Response& res); 654f4c4dcf4SKowalski, Kamil 655f4c4dcf4SKowalski, Kamil /** 656f4c4dcf4SKowalski, Kamil * @brief Formats ActionParameterDuplicate message into JSON 65766ac2b8cSJason M. Bills * Message body: "The action <arg1> was submitted with more than one value for 65866ac2b8cSJason M. Bills * the parameter <arg2>." 659f4c4dcf4SKowalski, Kamil * 660f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 661f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 662f4c4dcf4SKowalski, Kamil * 663f4c4dcf4SKowalski, Kamil * @returns Message ActionParameterDuplicate formatted to JSON */ 6641668ce6dSEd Tanous nlohmann::json actionParameterDuplicate(std::string_view arg1, 6651668ce6dSEd Tanous std::string_view arg2); 666b5c07418SJames Feist 6671668ce6dSEd Tanous void actionParameterDuplicate(crow::Response& res, std::string_view arg1, 6681668ce6dSEd Tanous std::string_view arg2); 669f4c4dcf4SKowalski, Kamil 670f4c4dcf4SKowalski, Kamil /** 671f4c4dcf4SKowalski, Kamil * @brief Formats ActionParameterNotSupported message into JSON 67266ac2b8cSJason M. Bills * Message body: "The parameter <arg1> for the action <arg2> is not supported on 673f4c4dcf4SKowalski, Kamil * the target resource." 674f4c4dcf4SKowalski, Kamil * 675f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 676f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 677f4c4dcf4SKowalski, Kamil * 678f4c4dcf4SKowalski, Kamil * @returns Message ActionParameterNotSupported formatted to JSON */ 6791668ce6dSEd Tanous nlohmann::json actionParameterNotSupported(std::string_view arg1, 6801668ce6dSEd Tanous std::string_view arg2); 681b5c07418SJames Feist 6821668ce6dSEd Tanous void actionParameterNotSupported(crow::Response& res, std::string_view arg1, 6831668ce6dSEd Tanous std::string_view arg2); 684f4c4dcf4SKowalski, Kamil 685f4c4dcf4SKowalski, Kamil /** 686f4c4dcf4SKowalski, Kamil * @brief Formats SourceDoesNotSupportProtocol message into JSON 687*42079ecbSEd Tanous * Message body: "The other end of the connection at <arg1> does not support the 68866ac2b8cSJason M. Bills * specified protocol <arg2>." 689f4c4dcf4SKowalski, Kamil * 690f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 691f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 692f4c4dcf4SKowalski, Kamil * 693f4c4dcf4SKowalski, Kamil * @returns Message SourceDoesNotSupportProtocol formatted to JSON */ 694bd79bce8SPatrick Williams nlohmann::json sourceDoesNotSupportProtocol( 695bd79bce8SPatrick Williams const boost::urls::url_view_base& arg1, std::string_view arg2); 696b5c07418SJames Feist 697ace85d60SEd Tanous void sourceDoesNotSupportProtocol(crow::Response& res, 6984a7fbefdSEd Tanous const boost::urls::url_view_base& arg1, 6991668ce6dSEd Tanous std::string_view arg2); 700f4c4dcf4SKowalski, Kamil 701f4c4dcf4SKowalski, Kamil /** 702b4ad4c05SShantappa Teekappanavar * @brief Formats StrictAccountTypes message into JSON 703*42079ecbSEd Tanous * Message body: "The request could not be fulfilled with the account types 704*42079ecbSEd Tanous * included in property <arg1> because the property StrictAccountTypes is set to 705*42079ecbSEd Tanous * true." 706*42079ecbSEd Tanous * 707b4ad4c05SShantappa Teekappanavar * @param[in] arg1 Parameter of message that will replace %1 in its body. 708b4ad4c05SShantappa Teekappanavar * 709b4ad4c05SShantappa Teekappanavar * @returns Message StrictAccountTypes formatted to JSON */ 710b4ad4c05SShantappa Teekappanavar nlohmann::json strictAccountTypes(std::string_view arg1); 711b4ad4c05SShantappa Teekappanavar 712b4ad4c05SShantappa Teekappanavar void strictAccountTypes(crow::Response& res, std::string_view arg1); 713b4ad4c05SShantappa Teekappanavar 714b4ad4c05SShantappa Teekappanavar /** 715f4c4dcf4SKowalski, Kamil * @brief Formats AccountRemoved message into JSON 716f4c4dcf4SKowalski, Kamil * Message body: "The account was successfully removed." 717f4c4dcf4SKowalski, Kamil * 718f4c4dcf4SKowalski, Kamil * 719f4c4dcf4SKowalski, Kamil * @returns Message AccountRemoved formatted to JSON */ 72065176d39SEd Tanous nlohmann::json accountRemoved(); 721b5c07418SJames Feist 722f12894f8SJason M. Bills void accountRemoved(crow::Response& res); 723f4c4dcf4SKowalski, Kamil 724f4c4dcf4SKowalski, Kamil /** 725f4c4dcf4SKowalski, Kamil * @brief Formats AccessDenied message into JSON 726*42079ecbSEd Tanous * Message body: "While attempting to establish a connection to <arg1>, the 727f4c4dcf4SKowalski, Kamil * service denied access." 728f4c4dcf4SKowalski, Kamil * 729f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 730f4c4dcf4SKowalski, Kamil * 731f4c4dcf4SKowalski, Kamil * @returns Message AccessDenied formatted to JSON */ 7324a7fbefdSEd Tanous nlohmann::json accessDenied(const boost::urls::url_view_base& arg1); 733b5c07418SJames Feist 7344a7fbefdSEd Tanous void accessDenied(crow::Response& res, const boost::urls::url_view_base& arg1); 735f4c4dcf4SKowalski, Kamil 736f4c4dcf4SKowalski, Kamil /** 737f4c4dcf4SKowalski, Kamil * @brief Formats QueryNotSupported message into JSON 738f4c4dcf4SKowalski, Kamil * Message body: "Querying is not supported by the implementation." 739f4c4dcf4SKowalski, Kamil * 740f4c4dcf4SKowalski, Kamil * 741f4c4dcf4SKowalski, Kamil * @returns Message QueryNotSupported formatted to JSON */ 74265176d39SEd Tanous nlohmann::json queryNotSupported(); 743b5c07418SJames Feist 744f12894f8SJason M. Bills void queryNotSupported(crow::Response& res); 745f4c4dcf4SKowalski, Kamil 746f4c4dcf4SKowalski, Kamil /** 747f4c4dcf4SKowalski, Kamil * @brief Formats CreateLimitReachedForResource message into JSON 748f4c4dcf4SKowalski, Kamil * Message body: "The create operation failed because the resource has reached 749f4c4dcf4SKowalski, Kamil * the limit of possible resources." 750f4c4dcf4SKowalski, Kamil * 751f4c4dcf4SKowalski, Kamil * 752f4c4dcf4SKowalski, Kamil * @returns Message CreateLimitReachedForResource formatted to JSON */ 75365176d39SEd Tanous nlohmann::json createLimitReachedForResource(); 754b5c07418SJames Feist 755f12894f8SJason M. Bills void createLimitReachedForResource(crow::Response& res); 756f4c4dcf4SKowalski, Kamil 757f4c4dcf4SKowalski, Kamil /** 758f4c4dcf4SKowalski, Kamil * @brief Formats GeneralError message into JSON 759*42079ecbSEd Tanous * Message body: "A general error has occurred. See Resolution for information 760*42079ecbSEd Tanous * on how to resolve the error, or @Message.ExtendedInfo if Resolution is not 761*42079ecbSEd Tanous * provided." 762f4c4dcf4SKowalski, Kamil * 763f4c4dcf4SKowalski, Kamil * 764f4c4dcf4SKowalski, Kamil * @returns Message GeneralError formatted to JSON */ 76565176d39SEd Tanous nlohmann::json generalError(); 766b5c07418SJames Feist 767f12894f8SJason M. Bills void generalError(crow::Response& res); 768f4c4dcf4SKowalski, Kamil 769f4c4dcf4SKowalski, Kamil /** 770f4c4dcf4SKowalski, Kamil * @brief Formats Success message into JSON 771*42079ecbSEd Tanous * Message body: "The request completed successfully." 772f4c4dcf4SKowalski, Kamil * 773f4c4dcf4SKowalski, Kamil * 774f4c4dcf4SKowalski, Kamil * @returns Message Success formatted to JSON */ 77565176d39SEd Tanous nlohmann::json success(); 776b5c07418SJames Feist 777f12894f8SJason M. Bills void success(crow::Response& res); 778f12894f8SJason M. Bills 779f12894f8SJason M. Bills /** 780f4c4dcf4SKowalski, Kamil * @brief Formats Created message into JSON 781*42079ecbSEd Tanous * Message body: "The resource was created successfully." 782f4c4dcf4SKowalski, Kamil * 783f4c4dcf4SKowalski, Kamil * 784f4c4dcf4SKowalski, Kamil * @returns Message Created formatted to JSON */ 78565176d39SEd Tanous nlohmann::json created(); 786b5c07418SJames Feist 787f12894f8SJason M. Bills void created(crow::Response& res); 788f4c4dcf4SKowalski, Kamil 789f4c4dcf4SKowalski, Kamil /** 790cc9139ecSJason M. Bills * @brief Formats NoOperation message into JSON 791*42079ecbSEd Tanous * Message body: "The request body submitted contain no data to act upon and no 792*42079ecbSEd Tanous * changes to the resource took place." 793cc9139ecSJason M. Bills * 794cc9139ecSJason M. Bills * 795cc9139ecSJason M. Bills * @returns Message NoOperation formatted to JSON */ 79665176d39SEd Tanous nlohmann::json noOperation(); 797b5c07418SJames Feist 798cc9139ecSJason M. Bills void noOperation(crow::Response& res); 799cc9139ecSJason M. Bills 800cc9139ecSJason M. Bills /** 801f4c4dcf4SKowalski, Kamil * @brief Formats PropertyUnknown message into JSON 80266ac2b8cSJason M. Bills * Message body: "The property <arg1> is not in the list of valid properties for 803f4c4dcf4SKowalski, Kamil * the resource." 804f4c4dcf4SKowalski, Kamil * 805f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 806f4c4dcf4SKowalski, Kamil * 807f4c4dcf4SKowalski, Kamil * @returns Message PropertyUnknown formatted to JSON */ 8081668ce6dSEd Tanous nlohmann::json propertyUnknown(std::string_view arg1); 809b5c07418SJames Feist 8101668ce6dSEd Tanous void propertyUnknown(crow::Response& res, std::string_view arg1); 811f12894f8SJason M. Bills 812f12894f8SJason M. Bills /** 813f4c4dcf4SKowalski, Kamil * @brief Formats NoValidSession message into JSON 814f4c4dcf4SKowalski, Kamil * Message body: "There is no valid session established with the 815f4c4dcf4SKowalski, Kamil * implementation." 816f4c4dcf4SKowalski, Kamil * 817f4c4dcf4SKowalski, Kamil * 818f4c4dcf4SKowalski, Kamil * @returns Message NoValidSession formatted to JSON */ 81965176d39SEd Tanous nlohmann::json noValidSession(); 820b5c07418SJames Feist 821f12894f8SJason M. Bills void noValidSession(crow::Response& res); 822f4c4dcf4SKowalski, Kamil 823f4c4dcf4SKowalski, Kamil /** 824f4c4dcf4SKowalski, Kamil * @brief Formats InvalidObject message into JSON 82566ac2b8cSJason M. Bills * Message body: "The object at <arg1> is invalid." 826f4c4dcf4SKowalski, Kamil * 827f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 828f4c4dcf4SKowalski, Kamil * 829f4c4dcf4SKowalski, Kamil * @returns Message InvalidObject formatted to JSON */ 8304a7fbefdSEd Tanous nlohmann::json invalidObject(const boost::urls::url_view_base& arg1); 831b5c07418SJames Feist 8324a7fbefdSEd Tanous void invalidObject(crow::Response& res, const boost::urls::url_view_base& arg1); 833f4c4dcf4SKowalski, Kamil 834f4c4dcf4SKowalski, Kamil /** 835f4c4dcf4SKowalski, Kamil * @brief Formats ResourceInStandby message into JSON 836f4c4dcf4SKowalski, Kamil * Message body: "The request could not be performed because the resource is in 837f4c4dcf4SKowalski, Kamil * standby." 838f4c4dcf4SKowalski, Kamil * 839f4c4dcf4SKowalski, Kamil * 840f4c4dcf4SKowalski, Kamil * @returns Message ResourceInStandby formatted to JSON */ 84165176d39SEd Tanous nlohmann::json resourceInStandby(); 842b5c07418SJames Feist 843f12894f8SJason M. Bills void resourceInStandby(crow::Response& res); 844f4c4dcf4SKowalski, Kamil 845f4c4dcf4SKowalski, Kamil /** 846f4c4dcf4SKowalski, Kamil * @brief Formats ActionParameterValueTypeError message into JSON 84766ac2b8cSJason M. Bills * Message body: "The value <arg1> for the parameter <arg2> in the action <arg3> 848*42079ecbSEd Tanous * is not a type that the parameter can accept." 849f4c4dcf4SKowalski, Kamil * 850f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 851f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 852f4c4dcf4SKowalski, Kamil * @param[in] arg3 Parameter of message that will replace %3 in its body. 853f4c4dcf4SKowalski, Kamil * 854f4c4dcf4SKowalski, Kamil * @returns Message ActionParameterValueTypeError formatted to JSON */ 855bd79bce8SPatrick Williams nlohmann::json actionParameterValueTypeError( 856bd79bce8SPatrick Williams const nlohmann::json& arg1, std::string_view arg2, std::string_view arg3); 857b5c07418SJames Feist 858bd79bce8SPatrick Williams void actionParameterValueTypeError( 859bd79bce8SPatrick Williams crow::Response& res, const nlohmann::json& arg1, std::string_view arg2, 8601668ce6dSEd Tanous std::string_view arg3); 861f4c4dcf4SKowalski, Kamil 862f4c4dcf4SKowalski, Kamil /** 8631827b4f1SAsmitha Karunanithi * @brief Formats ActionParameterValueError message into JSON 864*42079ecbSEd Tanous * Message body: "The value for the parameter <arg1> in the action <arg2> is 865*42079ecbSEd Tanous * invalid." 8661827b4f1SAsmitha Karunanithi * 8671827b4f1SAsmitha Karunanithi * @param[in] arg1 Parameter of message that will replace %1 in its body. 8681827b4f1SAsmitha Karunanithi * @param[in] arg2 Parameter of message that will replace %2 in its body. 8691827b4f1SAsmitha Karunanithi * 8701827b4f1SAsmitha Karunanithi * @returns Message ActionParameterValueError formatted to JSON */ 8711827b4f1SAsmitha Karunanithi nlohmann::json actionParameterValueError(const nlohmann::json& arg1, 8721827b4f1SAsmitha Karunanithi std::string_view arg2); 8731827b4f1SAsmitha Karunanithi 8741827b4f1SAsmitha Karunanithi void actionParameterValueError(crow::Response& res, const nlohmann::json& arg1, 8751827b4f1SAsmitha Karunanithi std::string_view arg2); 8761827b4f1SAsmitha Karunanithi 8771827b4f1SAsmitha Karunanithi /** 878f4c4dcf4SKowalski, Kamil * @brief Formats SessionLimitExceeded message into JSON 879f4c4dcf4SKowalski, Kamil * Message body: "The session establishment failed due to the number of 880f4c4dcf4SKowalski, Kamil * simultaneous sessions exceeding the limit of the implementation." 881f4c4dcf4SKowalski, Kamil * 882f4c4dcf4SKowalski, Kamil * 883f4c4dcf4SKowalski, Kamil * @returns Message SessionLimitExceeded formatted to JSON */ 88465176d39SEd Tanous nlohmann::json sessionLimitExceeded(); 885b5c07418SJames Feist 886f12894f8SJason M. Bills void sessionLimitExceeded(crow::Response& res); 887f4c4dcf4SKowalski, Kamil 888f4c4dcf4SKowalski, Kamil /** 889f4c4dcf4SKowalski, Kamil * @brief Formats ActionNotSupported message into JSON 89066ac2b8cSJason M. Bills * Message body: "The action <arg1> is not supported by the resource." 891f4c4dcf4SKowalski, Kamil * 892f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 893f4c4dcf4SKowalski, Kamil * 894f4c4dcf4SKowalski, Kamil * @returns Message ActionNotSupported formatted to JSON */ 8951668ce6dSEd Tanous nlohmann::json actionNotSupported(std::string_view arg1); 896b5c07418SJames Feist 8971668ce6dSEd Tanous void actionNotSupported(crow::Response& res, std::string_view arg1); 898f4c4dcf4SKowalski, Kamil 899f4c4dcf4SKowalski, Kamil /** 900f4c4dcf4SKowalski, Kamil * @brief Formats InvalidIndex message into JSON 90166ac2b8cSJason M. Bills * Message body: "The index <arg1> is not a valid offset into the array." 902f4c4dcf4SKowalski, Kamil * 903f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 904f4c4dcf4SKowalski, Kamil * 905f4c4dcf4SKowalski, Kamil * @returns Message InvalidIndex formatted to JSON */ 9065187e09bSJosh Lehan nlohmann::json invalidIndex(int64_t arg1); 907b5c07418SJames Feist 9085187e09bSJosh Lehan void invalidIndex(crow::Response& res, int64_t arg1); 909f4c4dcf4SKowalski, Kamil 910f4c4dcf4SKowalski, Kamil /** 911f4c4dcf4SKowalski, Kamil * @brief Formats EmptyJSON message into JSON 912f4c4dcf4SKowalski, Kamil * Message body: "The request body submitted contained an empty JSON object and 913f4c4dcf4SKowalski, Kamil * the service is unable to process it." 914f4c4dcf4SKowalski, Kamil * 915f4c4dcf4SKowalski, Kamil * 916f4c4dcf4SKowalski, Kamil * @returns Message EmptyJSON formatted to JSON */ 91765176d39SEd Tanous nlohmann::json emptyJSON(); 918b5c07418SJames Feist 919f12894f8SJason M. Bills void emptyJSON(crow::Response& res); 920f4c4dcf4SKowalski, Kamil 921f4c4dcf4SKowalski, Kamil /** 922f4c4dcf4SKowalski, Kamil * @brief Formats QueryNotSupportedOnResource message into JSON 923f4c4dcf4SKowalski, Kamil * Message body: "Querying is not supported on the requested resource." 924f4c4dcf4SKowalski, Kamil * 925f4c4dcf4SKowalski, Kamil * 926f4c4dcf4SKowalski, Kamil * @returns Message QueryNotSupportedOnResource formatted to JSON */ 92765176d39SEd Tanous nlohmann::json queryNotSupportedOnResource(); 928b5c07418SJames Feist 929f12894f8SJason M. Bills void queryNotSupportedOnResource(crow::Response& res); 930f4c4dcf4SKowalski, Kamil 931f4c4dcf4SKowalski, Kamil /** 932684bb4b8SJason M. Bills * @brief Formats QueryNotSupportedOnOperation message into JSON 933684bb4b8SJason M. Bills * Message body: "Querying is not supported with the requested operation." 934684bb4b8SJason M. Bills * 935684bb4b8SJason M. Bills * 936684bb4b8SJason M. Bills * @returns Message QueryNotSupportedOnOperation formatted to JSON */ 93765176d39SEd Tanous nlohmann::json queryNotSupportedOnOperation(); 938684bb4b8SJason M. Bills 939684bb4b8SJason M. Bills void queryNotSupportedOnOperation(crow::Response& res); 940684bb4b8SJason M. Bills 941684bb4b8SJason M. Bills /** 942684bb4b8SJason M. Bills * @brief Formats QueryCombinationInvalid message into JSON 943684bb4b8SJason M. Bills * Message body: "Two or more query parameters in the request cannot be used 944684bb4b8SJason M. Bills * together." 945684bb4b8SJason M. Bills * 946684bb4b8SJason M. Bills * 947684bb4b8SJason M. Bills * @returns Message QueryCombinationInvalid formatted to JSON */ 94865176d39SEd Tanous nlohmann::json queryCombinationInvalid(); 949684bb4b8SJason M. Bills 950684bb4b8SJason M. Bills void queryCombinationInvalid(crow::Response& res); 951684bb4b8SJason M. Bills 952684bb4b8SJason M. Bills /** 953fa345c78SEd Tanous * @brief Formats EventBufferExceeded message into JSON 954*42079ecbSEd Tanous * Message body: "Undelivered events may have been lost due to exceeding the 955*42079ecbSEd Tanous * event buffer." 956fa345c78SEd Tanous * 957fa345c78SEd Tanous * 958*42079ecbSEd Tanous * @returns Message EventBufferExceeded formatted to JSON */ 959fa345c78SEd Tanous nlohmann::json eventBufferExceeded(); 960fa345c78SEd Tanous 961fa345c78SEd Tanous void eventBufferExceeded(crow::Response& res); 962fa345c78SEd Tanous 963fa345c78SEd Tanous /** 964f4c4dcf4SKowalski, Kamil * @brief Formats InsufficientPrivilege message into JSON 965f4c4dcf4SKowalski, Kamil * Message body: "There are insufficient privileges for the account or 966f4c4dcf4SKowalski, Kamil * credentials associated with the current session to perform the requested 967f4c4dcf4SKowalski, Kamil * operation." 968f4c4dcf4SKowalski, Kamil * 969f4c4dcf4SKowalski, Kamil * 970f4c4dcf4SKowalski, Kamil * @returns Message InsufficientPrivilege formatted to JSON */ 97165176d39SEd Tanous nlohmann::json insufficientPrivilege(); 972b5c07418SJames Feist 973f12894f8SJason M. Bills void insufficientPrivilege(crow::Response& res); 974f4c4dcf4SKowalski, Kamil 975f4c4dcf4SKowalski, Kamil /** 976f4c4dcf4SKowalski, Kamil * @brief Formats PropertyValueModified message into JSON 97766ac2b8cSJason M. Bills * Message body: "The property <arg1> was assigned the value <arg2> due to 978f4c4dcf4SKowalski, Kamil * modification by the service." 979f4c4dcf4SKowalski, Kamil * 980f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 981f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 982f4c4dcf4SKowalski, Kamil * 983f4c4dcf4SKowalski, Kamil * @returns Message PropertyValueModified formatted to JSON */ 9841668ce6dSEd Tanous nlohmann::json propertyValueModified(std::string_view arg1, 98595b3ad73SEd Tanous const nlohmann::json& arg2); 986b5c07418SJames Feist 9871668ce6dSEd Tanous void propertyValueModified(crow::Response& res, std::string_view arg1, 98895b3ad73SEd Tanous const nlohmann::json& arg2); 989f4c4dcf4SKowalski, Kamil 990f4c4dcf4SKowalski, Kamil /** 991f4c4dcf4SKowalski, Kamil * @brief Formats AccountNotModified message into JSON 992f4c4dcf4SKowalski, Kamil * Message body: "The account modification request failed." 993f4c4dcf4SKowalski, Kamil * 994f4c4dcf4SKowalski, Kamil * 995f4c4dcf4SKowalski, Kamil * @returns Message AccountNotModified formatted to JSON */ 99665176d39SEd Tanous nlohmann::json accountNotModified(); 997b5c07418SJames Feist 998f12894f8SJason M. Bills void accountNotModified(crow::Response& res); 999f4c4dcf4SKowalski, Kamil 1000f4c4dcf4SKowalski, Kamil /** 1001f4c4dcf4SKowalski, Kamil * @brief Formats QueryParameterValueFormatError message into JSON 1002*42079ecbSEd Tanous * Message body: "The value <arg1> for the parameter <arg2> is not a format that 1003*42079ecbSEd Tanous * the parameter can accept." 1004f4c4dcf4SKowalski, Kamil * 1005f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 1006f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 1007f4c4dcf4SKowalski, Kamil * 1008f4c4dcf4SKowalski, Kamil * @returns Message QueryParameterValueFormatError formatted to JSON */ 100995b3ad73SEd Tanous nlohmann::json queryParameterValueFormatError(const nlohmann::json& arg1, 10101668ce6dSEd Tanous std::string_view arg2); 1011b5c07418SJames Feist 1012bd79bce8SPatrick Williams void queryParameterValueFormatError( 1013bd79bce8SPatrick Williams crow::Response& res, const nlohmann::json& arg1, std::string_view arg2); 1014f4c4dcf4SKowalski, Kamil 1015f4c4dcf4SKowalski, Kamil /** 1016f4c4dcf4SKowalski, Kamil * @brief Formats PropertyMissing message into JSON 101766ac2b8cSJason M. Bills * Message body: "The property <arg1> is a required property and must be 1018f4c4dcf4SKowalski, Kamil * included in the request." 1019f4c4dcf4SKowalski, Kamil * 1020f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 1021f4c4dcf4SKowalski, Kamil * 1022f4c4dcf4SKowalski, Kamil * @returns Message PropertyMissing formatted to JSON */ 10231668ce6dSEd Tanous nlohmann::json propertyMissing(std::string_view arg1); 1024b5c07418SJames Feist 10251668ce6dSEd Tanous void propertyMissing(crow::Response& res, std::string_view arg1); 1026f12894f8SJason M. Bills 1027f12894f8SJason M. Bills /** 1028f4c4dcf4SKowalski, Kamil * @brief Formats ResourceExhaustion message into JSON 102966ac2b8cSJason M. Bills * Message body: "The resource <arg1> was unable to satisfy the request due to 1030f4c4dcf4SKowalski, Kamil * unavailability of resources." 1031f4c4dcf4SKowalski, Kamil * 1032f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 1033f4c4dcf4SKowalski, Kamil * 1034f4c4dcf4SKowalski, Kamil * @returns Message ResourceExhaustion formatted to JSON */ 10351668ce6dSEd Tanous nlohmann::json resourceExhaustion(std::string_view arg1); 1036b5c07418SJames Feist 10371668ce6dSEd Tanous void resourceExhaustion(crow::Response& res, std::string_view arg1); 1038f4c4dcf4SKowalski, Kamil 1039f4c4dcf4SKowalski, Kamil /** 1040f4c4dcf4SKowalski, Kamil * @brief Formats AccountModified message into JSON 1041f4c4dcf4SKowalski, Kamil * Message body: "The account was successfully modified." 1042f4c4dcf4SKowalski, Kamil * 1043f4c4dcf4SKowalski, Kamil * 1044f4c4dcf4SKowalski, Kamil * @returns Message AccountModified formatted to JSON */ 104565176d39SEd Tanous nlohmann::json accountModified(); 1046b5c07418SJames Feist 1047a08b46ccSJason M. Bills void accountModified(crow::Response& res); 1048f4c4dcf4SKowalski, Kamil 1049f4c4dcf4SKowalski, Kamil /** 1050f4c4dcf4SKowalski, Kamil * @brief Formats QueryParameterOutOfRange message into JSON 105166ac2b8cSJason M. Bills * Message body: "The value <arg1> for the query parameter <arg2> is out of 105266ac2b8cSJason M. Bills * range <arg3>." 1053f4c4dcf4SKowalski, Kamil * 1054f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 1055f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 1056f4c4dcf4SKowalski, Kamil * @param[in] arg3 Parameter of message that will replace %3 in its body. 1057f4c4dcf4SKowalski, Kamil * 1058f4c4dcf4SKowalski, Kamil * @returns Message QueryParameterOutOfRange formatted to JSON */ 1059bd79bce8SPatrick Williams nlohmann::json queryParameterOutOfRange( 1060bd79bce8SPatrick Williams std::string_view arg1, std::string_view arg2, std::string_view arg3); 1061b5c07418SJames Feist 10621668ce6dSEd Tanous void queryParameterOutOfRange(crow::Response& res, std::string_view arg1, 10631668ce6dSEd Tanous std::string_view arg2, std::string_view arg3); 1064f4c4dcf4SKowalski, Kamil 10653bf4e632SJoseph Reynolds /** 10663bf4e632SJoseph Reynolds * @brief Formats PasswordChangeRequired message into JSON 1067*42079ecbSEd Tanous * Message body: "The password provided for this account must be changed before 1068*42079ecbSEd Tanous * access is granted. PATCH the Password property for this account located at 1069*42079ecbSEd Tanous * the target URI <arg1> to complete this process." 10703bf4e632SJoseph Reynolds * 10713bf4e632SJoseph Reynolds * @param[in] arg1 Parameter of message that will replace %1 in its body. 10723bf4e632SJoseph Reynolds * 10733bf4e632SJoseph Reynolds * @returns Message PasswordChangeRequired formatted to JSON */ 10744a7fbefdSEd Tanous nlohmann::json passwordChangeRequired(const boost::urls::url_view_base& arg1); 1075ace85d60SEd Tanous 10764a7fbefdSEd Tanous void passwordChangeRequired(crow::Response& res, 10774a7fbefdSEd Tanous const boost::urls::url_view_base& arg1); 10783bf4e632SJoseph Reynolds 10794cde5d90SJames Feist /** 10804cde5d90SJames Feist * @brief Formats InvalidUpload message into JSON 1081*42079ecbSEd Tanous * Message body: "Invalid file uploaded to <arg1>: <arg2>.*" 1082*42079ecbSEd Tanous * 10834cde5d90SJames Feist * @param[in] arg1 Parameter of message that will replace %1 in its body. 10844cde5d90SJames Feist * @param[in] arg2 Parameter of message that will replace %2 in its body. 10854cde5d90SJames Feist * 10864cde5d90SJames Feist * @returns Message InvalidUpload formatted to JSON */ 10871668ce6dSEd Tanous nlohmann::json invalidUpload(std::string_view arg1, std::string_view arg2); 10884cde5d90SJames Feist 10891668ce6dSEd Tanous void invalidUpload(crow::Response& res, std::string_view arg1, 10901668ce6dSEd Tanous std::string_view arg2); 10914cde5d90SJames Feist 1092ae688313SNan Zhou /** 1093ae688313SNan Zhou * @brief Formats InsufficientStorage message into JSON 10948ece0e45SEd Tanous * Message body: "Insufficient storage or memory available to complete the 1095ae688313SNan Zhou * request." 1096*42079ecbSEd Tanous * 1097*42079ecbSEd Tanous * 1098ae688313SNan Zhou * @returns Message InsufficientStorage formatted to JSON */ 1099ae688313SNan Zhou nlohmann::json insufficientStorage(); 1100ae688313SNan Zhou 1101ae688313SNan Zhou void insufficientStorage(crow::Response& res); 1102ae688313SNan Zhou 110344c70412SEd Tanous /** 110444c70412SEd Tanous * @brief Formats OperationNotAllowed message into JSON 1105*42079ecbSEd Tanous * Message body: "The HTTP method is not allowed on this resource." 1106*42079ecbSEd Tanous * 1107*42079ecbSEd Tanous * 110844c70412SEd Tanous * @returns Message OperationNotAllowed formatted to JSON */ 110944c70412SEd Tanous nlohmann::json operationNotAllowed(); 111044c70412SEd Tanous 111144c70412SEd Tanous void operationNotAllowed(crow::Response& res); 111244c70412SEd Tanous 1113600af5f1SAppaRao Puli /** 1114600af5f1SAppaRao Puli * @brief Formats ArraySizeTooLong message into JSON 1115*42079ecbSEd Tanous * Message body: "The array provided for property <arg1> exceeds the size limit 1116*42079ecbSEd Tanous * <arg2>." 1117*42079ecbSEd Tanous * 1118*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1119*42079ecbSEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 1120*42079ecbSEd Tanous * 1121600af5f1SAppaRao Puli * @returns Message ArraySizeTooLong formatted to JSON */ 1122aaebeaafSEd Tanous nlohmann::json arraySizeTooLong(std::string_view arg1, uint64_t arg2); 1123600af5f1SAppaRao Puli 1124aaebeaafSEd Tanous void arraySizeTooLong(crow::Response& res, std::string_view arg1, 1125aaebeaafSEd Tanous uint64_t arg2); 1126600af5f1SAppaRao Puli 11277585b760SJishnu CM /** 11287585b760SJishnu CM * @brief Formats GenerateSecretKeyRequired message into JSON 1129*42079ecbSEd Tanous * Message body: "The Time-based One-Time Password (TOTP) secret key for this 1130*42079ecbSEd Tanous * account must be generated before access is granted. Perform the 1131*42079ecbSEd Tanous * GenerateSecretKey action at URI <arg1> and retain the secret key from the 1132*42079ecbSEd Tanous * response." 11337585b760SJishnu CM * 11347585b760SJishnu CM * @param[in] arg1 Parameter of message that will replace %1 in its body. 11357585b760SJishnu CM * 11367585b760SJishnu CM * @returns Message GenerateSecretKeyRequired formatted to JSON */ 11377585b760SJishnu CM nlohmann::json 11387585b760SJishnu CM generateSecretKeyRequired(const boost::urls::url_view_base& arg1); 11397585b760SJishnu CM 11407585b760SJishnu CM void generateSecretKeyRequired(crow::Response& res, 11417585b760SJishnu CM const boost::urls::url_view_base& arg1); 1142f4c4dcf4SKowalski, Kamil 1143*42079ecbSEd Tanous /** 1144*42079ecbSEd Tanous * @brief Formats PropertyNotUpdated message into JSON 1145*42079ecbSEd Tanous * Message body: "The property <arg1> was not updated due to an internal service 1146*42079ecbSEd Tanous * error. The service is still operational." 1147*42079ecbSEd Tanous * 1148*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1149*42079ecbSEd Tanous * 1150*42079ecbSEd Tanous * @returns Message PropertyNotUpdated formatted to JSON */ 1151*42079ecbSEd Tanous nlohmann::json propertyNotUpdated(std::string_view arg1); 1152*42079ecbSEd Tanous 1153*42079ecbSEd Tanous void propertyNotUpdated(crow::Response& res, std::string_view arg1); 1154*42079ecbSEd Tanous 1155*42079ecbSEd Tanous /** 1156*42079ecbSEd Tanous * @brief Formats InvalidJSON message into JSON 1157*42079ecbSEd Tanous * Message body: "The request body submitted is invalid JSON starting at line 1158*42079ecbSEd Tanous * <arg1> and could not be parsed by the receiving service." 1159*42079ecbSEd Tanous * 1160*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1161*42079ecbSEd Tanous * 1162*42079ecbSEd Tanous * @returns Message InvalidJSON formatted to JSON */ 1163*42079ecbSEd Tanous nlohmann::json invalidJSON(std::string_view arg1); 1164*42079ecbSEd Tanous 1165*42079ecbSEd Tanous void invalidJSON(crow::Response& res, std::string_view arg1); 1166*42079ecbSEd Tanous 1167*42079ecbSEd Tanous /** 1168*42079ecbSEd Tanous * @brief Formats ActionParameterValueOutOfRange message into JSON 1169*42079ecbSEd Tanous * Message body: "The value <arg1> for the parameter <arg2> in the action <arg3> 1170*42079ecbSEd Tanous * is not in the supported range of acceptable values." 1171*42079ecbSEd Tanous * 1172*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1173*42079ecbSEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 1174*42079ecbSEd Tanous * @param[in] arg3 Parameter of message that will replace %3 in its body. 1175*42079ecbSEd Tanous * 1176*42079ecbSEd Tanous * @returns Message ActionParameterValueOutOfRange formatted to JSON */ 1177*42079ecbSEd Tanous nlohmann::json actionParameterValueOutOfRange( 1178*42079ecbSEd Tanous std::string_view arg1, std::string_view arg2, std::string_view arg3); 1179*42079ecbSEd Tanous 1180*42079ecbSEd Tanous void actionParameterValueOutOfRange(crow::Response& res, std::string_view arg1, 1181*42079ecbSEd Tanous std::string_view arg2, 1182*42079ecbSEd Tanous std::string_view arg3); 1183*42079ecbSEd Tanous 1184*42079ecbSEd Tanous /** 1185*42079ecbSEd Tanous * @brief Formats ArraySizeTooShort message into JSON 1186*42079ecbSEd Tanous * Message body: "The array provided for property <arg1> is under the minimum 1187*42079ecbSEd Tanous * size limit <arg2>." 1188*42079ecbSEd Tanous * 1189*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1190*42079ecbSEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 1191*42079ecbSEd Tanous * 1192*42079ecbSEd Tanous * @returns Message ArraySizeTooShort formatted to JSON */ 1193*42079ecbSEd Tanous nlohmann::json arraySizeTooShort(std::string_view arg1, std::string_view arg2); 1194*42079ecbSEd Tanous 1195*42079ecbSEd Tanous void arraySizeTooShort(crow::Response& res, std::string_view arg1, 1196*42079ecbSEd Tanous std::string_view arg2); 1197*42079ecbSEd Tanous 1198*42079ecbSEd Tanous /** 1199*42079ecbSEd Tanous * @brief Formats QueryParameterValueError message into JSON 1200*42079ecbSEd Tanous * Message body: "The value for the parameter <arg1> is invalid." 1201*42079ecbSEd Tanous * 1202*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1203*42079ecbSEd Tanous * 1204*42079ecbSEd Tanous * @returns Message QueryParameterValueError formatted to JSON */ 1205*42079ecbSEd Tanous nlohmann::json queryParameterValueError(std::string_view arg1); 1206*42079ecbSEd Tanous 1207*42079ecbSEd Tanous void queryParameterValueError(crow::Response& res, std::string_view arg1); 1208*42079ecbSEd Tanous 1209*42079ecbSEd Tanous /** 1210*42079ecbSEd Tanous * @brief Formats QueryParameterUnsupported message into JSON 1211*42079ecbSEd Tanous * Message body: "Query parameter <arg1> is not supported." 1212*42079ecbSEd Tanous * 1213*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1214*42079ecbSEd Tanous * 1215*42079ecbSEd Tanous * @returns Message QueryParameterUnsupported formatted to JSON */ 1216*42079ecbSEd Tanous nlohmann::json queryParameterUnsupported(std::string_view arg1); 1217*42079ecbSEd Tanous 1218*42079ecbSEd Tanous void queryParameterUnsupported(crow::Response& res, std::string_view arg1); 1219*42079ecbSEd Tanous 1220*42079ecbSEd Tanous /** 1221*42079ecbSEd Tanous * @brief Formats PayloadTooLarge message into JSON 1222*42079ecbSEd Tanous * Message body: "The supplied payload exceeds the maximum size supported by the 1223*42079ecbSEd Tanous * service." 1224*42079ecbSEd Tanous * 1225*42079ecbSEd Tanous * 1226*42079ecbSEd Tanous * @returns Message PayloadTooLarge formatted to JSON */ 1227*42079ecbSEd Tanous nlohmann::json payloadTooLarge(); 1228*42079ecbSEd Tanous 1229*42079ecbSEd Tanous void payloadTooLarge(crow::Response& res); 1230*42079ecbSEd Tanous 1231*42079ecbSEd Tanous /** 1232*42079ecbSEd Tanous * @brief Formats MissingOrMalformedPart message into JSON 1233*42079ecbSEd Tanous * Message body: "The multipart request contains malformed parts or is missing 1234*42079ecbSEd Tanous * required parts." 1235*42079ecbSEd Tanous * 1236*42079ecbSEd Tanous * 1237*42079ecbSEd Tanous * @returns Message MissingOrMalformedPart formatted to JSON */ 1238*42079ecbSEd Tanous nlohmann::json missingOrMalformedPart(); 1239*42079ecbSEd Tanous 1240*42079ecbSEd Tanous void missingOrMalformedPart(crow::Response& res); 1241*42079ecbSEd Tanous 1242*42079ecbSEd Tanous /** 1243*42079ecbSEd Tanous * @brief Formats InvalidURI message into JSON 1244*42079ecbSEd Tanous * Message body: "The URI <arg1> was not found." 1245*42079ecbSEd Tanous * 1246*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1247*42079ecbSEd Tanous * 1248*42079ecbSEd Tanous * @returns Message InvalidURI formatted to JSON */ 1249*42079ecbSEd Tanous nlohmann::json invalidURI(std::string_view arg1); 1250*42079ecbSEd Tanous 1251*42079ecbSEd Tanous void invalidURI(crow::Response& res, std::string_view arg1); 1252*42079ecbSEd Tanous 1253*42079ecbSEd Tanous /** 1254*42079ecbSEd Tanous * @brief Formats StringValueTooShort message into JSON 1255*42079ecbSEd Tanous * Message body: "The string <arg1> was under the minimum required length 1256*42079ecbSEd Tanous * <arg2>." 1257*42079ecbSEd Tanous * 1258*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1259*42079ecbSEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 1260*42079ecbSEd Tanous * 1261*42079ecbSEd Tanous * @returns Message StringValueTooShort formatted to JSON */ 1262*42079ecbSEd Tanous nlohmann::json stringValueTooShort(std::string_view arg1, 1263*42079ecbSEd Tanous std::string_view arg2); 1264*42079ecbSEd Tanous 1265*42079ecbSEd Tanous void stringValueTooShort(crow::Response& res, std::string_view arg1, 1266*42079ecbSEd Tanous std::string_view arg2); 1267*42079ecbSEd Tanous 1268*42079ecbSEd Tanous /** 1269*42079ecbSEd Tanous * @brief Formats ResetRecommended message into JSON 1270*42079ecbSEd Tanous * Message body: "In order to recover from errors, a component reset is 1271*42079ecbSEd Tanous * recommended with the Reset action URI <arg1> and ResetType <arg2>." 1272*42079ecbSEd Tanous * 1273*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1274*42079ecbSEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 1275*42079ecbSEd Tanous * 1276*42079ecbSEd Tanous * @returns Message ResetRecommended formatted to JSON */ 1277*42079ecbSEd Tanous nlohmann::json resetRecommended(std::string_view arg1, std::string_view arg2); 1278*42079ecbSEd Tanous 1279*42079ecbSEd Tanous void resetRecommended(crow::Response& res, std::string_view arg1, 1280*42079ecbSEd Tanous std::string_view arg2); 1281*42079ecbSEd Tanous 1282*42079ecbSEd Tanous /** 1283*42079ecbSEd Tanous * @brief Formats ActionParameterValueConflict message into JSON 1284*42079ecbSEd Tanous * Message body: "The parameter <arg1> with the requested value of <arg2> does 1285*42079ecbSEd Tanous * not meet the constraints of the implementation." 1286*42079ecbSEd Tanous * 1287*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1288*42079ecbSEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 1289*42079ecbSEd Tanous * 1290*42079ecbSEd Tanous * @returns Message ActionParameterValueConflict formatted to JSON */ 1291*42079ecbSEd Tanous nlohmann::json 1292*42079ecbSEd Tanous actionParameterValueConflict(std::string_view arg1, std::string_view arg2); 1293*42079ecbSEd Tanous 1294*42079ecbSEd Tanous void actionParameterValueConflict(crow::Response& res, std::string_view arg1, 1295*42079ecbSEd Tanous std::string_view arg2); 1296*42079ecbSEd Tanous 1297*42079ecbSEd Tanous /** 1298*42079ecbSEd Tanous * @brief Formats HeaderMissing message into JSON 1299*42079ecbSEd Tanous * Message body: "Required header <arg1> is missing in the request." 1300*42079ecbSEd Tanous * 1301*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1302*42079ecbSEd Tanous * 1303*42079ecbSEd Tanous * @returns Message HeaderMissing formatted to JSON */ 1304*42079ecbSEd Tanous nlohmann::json headerMissing(std::string_view arg1); 1305*42079ecbSEd Tanous 1306*42079ecbSEd Tanous void headerMissing(crow::Response& res, std::string_view arg1); 1307*42079ecbSEd Tanous 1308*42079ecbSEd Tanous /** 1309*42079ecbSEd Tanous * @brief Formats HeaderInvalid message into JSON 1310*42079ecbSEd Tanous * Message body: "Header <arg1> is invalid." 1311*42079ecbSEd Tanous * 1312*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1313*42079ecbSEd Tanous * 1314*42079ecbSEd Tanous * @returns Message HeaderInvalid formatted to JSON */ 1315*42079ecbSEd Tanous nlohmann::json headerInvalid(std::string_view arg1); 1316*42079ecbSEd Tanous 1317*42079ecbSEd Tanous void headerInvalid(crow::Response& res, std::string_view arg1); 1318*42079ecbSEd Tanous 1319*42079ecbSEd Tanous /** 1320*42079ecbSEd Tanous * @brief Formats UndeterminedFault message into JSON 1321*42079ecbSEd Tanous * Message body: "An undetermined fault condition was reported by <arg1>." 1322*42079ecbSEd Tanous * 1323*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1324*42079ecbSEd Tanous * 1325*42079ecbSEd Tanous * @returns Message UndeterminedFault formatted to JSON */ 1326*42079ecbSEd Tanous nlohmann::json undeterminedFault(std::string_view arg1); 1327*42079ecbSEd Tanous 1328*42079ecbSEd Tanous void undeterminedFault(crow::Response& res, std::string_view arg1); 1329*42079ecbSEd Tanous 1330*42079ecbSEd Tanous /** 1331*42079ecbSEd Tanous * @brief Formats ConditionInRelatedResource message into JSON 1332*42079ecbSEd Tanous * Message body: "One or more conditions exist in a related resource. See the 1333*42079ecbSEd Tanous * OriginOfCondition property." 1334*42079ecbSEd Tanous * 1335*42079ecbSEd Tanous * 1336*42079ecbSEd Tanous * @returns Message ConditionInRelatedResource formatted to JSON */ 1337*42079ecbSEd Tanous nlohmann::json conditionInRelatedResource(); 1338*42079ecbSEd Tanous 1339*42079ecbSEd Tanous void conditionInRelatedResource(crow::Response& res); 1340*42079ecbSEd Tanous 1341*42079ecbSEd Tanous /** 1342*42079ecbSEd Tanous * @brief Formats RestrictedRole message into JSON 1343*42079ecbSEd Tanous * Message body: "The operation was not successful because the role <arg1> is 1344*42079ecbSEd Tanous * restricted." 1345*42079ecbSEd Tanous * 1346*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1347*42079ecbSEd Tanous * 1348*42079ecbSEd Tanous * @returns Message RestrictedRole formatted to JSON */ 1349*42079ecbSEd Tanous nlohmann::json restrictedRole(std::string_view arg1); 1350*42079ecbSEd Tanous 1351*42079ecbSEd Tanous void restrictedRole(crow::Response& res, std::string_view arg1); 1352*42079ecbSEd Tanous 1353*42079ecbSEd Tanous /** 1354*42079ecbSEd Tanous * @brief Formats RestrictedPrivilege message into JSON 1355*42079ecbSEd Tanous * Message body: "The operation was not successful because the privilege <arg1> 1356*42079ecbSEd Tanous * is restricted." 1357*42079ecbSEd Tanous * 1358*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1359*42079ecbSEd Tanous * 1360*42079ecbSEd Tanous * @returns Message RestrictedPrivilege formatted to JSON */ 1361*42079ecbSEd Tanous nlohmann::json restrictedPrivilege(std::string_view arg1); 1362*42079ecbSEd Tanous 1363*42079ecbSEd Tanous void restrictedPrivilege(crow::Response& res, std::string_view arg1); 1364*42079ecbSEd Tanous 1365*42079ecbSEd Tanous /** 1366*42079ecbSEd Tanous * @brief Formats PropertyDeprecated message into JSON 1367*42079ecbSEd Tanous * Message body: "The deprecated property <arg1> was included in the request 1368*42079ecbSEd Tanous * body." 1369*42079ecbSEd Tanous * 1370*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1371*42079ecbSEd Tanous * 1372*42079ecbSEd Tanous * @returns Message PropertyDeprecated formatted to JSON */ 1373*42079ecbSEd Tanous nlohmann::json propertyDeprecated(std::string_view arg1); 1374*42079ecbSEd Tanous 1375*42079ecbSEd Tanous void propertyDeprecated(crow::Response& res, std::string_view arg1); 1376*42079ecbSEd Tanous 1377*42079ecbSEd Tanous /** 1378*42079ecbSEd Tanous * @brief Formats ResourceDeprecated message into JSON 1379*42079ecbSEd Tanous * Message body: "The operation was performed on a deprecated resource <arg1>." 1380*42079ecbSEd Tanous * 1381*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1382*42079ecbSEd Tanous * 1383*42079ecbSEd Tanous * @returns Message ResourceDeprecated formatted to JSON */ 1384*42079ecbSEd Tanous nlohmann::json resourceDeprecated(std::string_view arg1); 1385*42079ecbSEd Tanous 1386*42079ecbSEd Tanous void resourceDeprecated(crow::Response& res, std::string_view arg1); 1387*42079ecbSEd Tanous 1388*42079ecbSEd Tanous /** 1389*42079ecbSEd Tanous * @brief Formats PropertyValueDeprecated message into JSON 1390*42079ecbSEd Tanous * Message body: "The value <arg1> for the property <arg2> is deprecated." 1391*42079ecbSEd Tanous * 1392*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1393*42079ecbSEd Tanous * @param[in] arg2 Parameter of message that will replace %2 in its body. 1394*42079ecbSEd Tanous * 1395*42079ecbSEd Tanous * @returns Message PropertyValueDeprecated formatted to JSON */ 1396*42079ecbSEd Tanous nlohmann::json propertyValueDeprecated(std::string_view arg1, 1397*42079ecbSEd Tanous std::string_view arg2); 1398*42079ecbSEd Tanous 1399*42079ecbSEd Tanous void propertyValueDeprecated(crow::Response& res, std::string_view arg1, 1400*42079ecbSEd Tanous std::string_view arg2); 1401*42079ecbSEd Tanous 1402*42079ecbSEd Tanous /** 1403*42079ecbSEd Tanous * @brief Formats ActionDeprecated message into JSON 1404*42079ecbSEd Tanous * Message body: "The action <arg1> is deprecated." 1405*42079ecbSEd Tanous * 1406*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1407*42079ecbSEd Tanous * 1408*42079ecbSEd Tanous * @returns Message ActionDeprecated formatted to JSON */ 1409*42079ecbSEd Tanous nlohmann::json actionDeprecated(std::string_view arg1); 1410*42079ecbSEd Tanous 1411*42079ecbSEd Tanous void actionDeprecated(crow::Response& res, std::string_view arg1); 1412*42079ecbSEd Tanous 1413*42079ecbSEd Tanous /** 1414*42079ecbSEd Tanous * @brief Formats NetworkNameResolutionNotConfigured message into JSON 1415*42079ecbSEd Tanous * Message body: "Network name resolution is not configured on this service." 1416*42079ecbSEd Tanous * 1417*42079ecbSEd Tanous * 1418*42079ecbSEd Tanous * @returns Message NetworkNameResolutionNotConfigured formatted to JSON */ 1419*42079ecbSEd Tanous nlohmann::json networkNameResolutionNotConfigured(); 1420*42079ecbSEd Tanous 1421*42079ecbSEd Tanous void networkNameResolutionNotConfigured(crow::Response& res); 1422*42079ecbSEd Tanous 1423*42079ecbSEd Tanous /** 1424*42079ecbSEd Tanous * @brief Formats NetworkNameResolutionNotSupported message into JSON 1425*42079ecbSEd Tanous * Message body: "Resolution of network-based names is not supported by this 1426*42079ecbSEd Tanous * service." 1427*42079ecbSEd Tanous * 1428*42079ecbSEd Tanous * 1429*42079ecbSEd Tanous * @returns Message NetworkNameResolutionNotSupported formatted to JSON */ 1430*42079ecbSEd Tanous nlohmann::json networkNameResolutionNotSupported(); 1431*42079ecbSEd Tanous 1432*42079ecbSEd Tanous void networkNameResolutionNotSupported(crow::Response& res); 1433*42079ecbSEd Tanous 1434*42079ecbSEd Tanous /** 1435*42079ecbSEd Tanous * @brief Formats AuthenticationTokenRequired message into JSON 1436*42079ecbSEd Tanous * Message body: "The request could not be performed because an authentication 1437*42079ecbSEd Tanous * token was not provided." 1438*42079ecbSEd Tanous * 1439*42079ecbSEd Tanous * 1440*42079ecbSEd Tanous * @returns Message AuthenticationTokenRequired formatted to JSON */ 1441*42079ecbSEd Tanous nlohmann::json authenticationTokenRequired(); 1442*42079ecbSEd Tanous 1443*42079ecbSEd Tanous void authenticationTokenRequired(crow::Response& res); 1444*42079ecbSEd Tanous 1445*42079ecbSEd Tanous /** 1446*42079ecbSEd Tanous * @brief Formats OneTimePasscodeSent message into JSON 1447*42079ecbSEd Tanous * Message body: "A one-time passcode was sent to: <arg1>. Supply the passcode 1448*42079ecbSEd Tanous * as the `Token` property in the request to create a session." 1449*42079ecbSEd Tanous * 1450*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1451*42079ecbSEd Tanous * 1452*42079ecbSEd Tanous * @returns Message OneTimePasscodeSent formatted to JSON */ 1453*42079ecbSEd Tanous nlohmann::json oneTimePasscodeSent(std::string_view arg1); 1454*42079ecbSEd Tanous 1455*42079ecbSEd Tanous void oneTimePasscodeSent(crow::Response& res, std::string_view arg1); 1456*42079ecbSEd Tanous 1457*42079ecbSEd Tanous /** 1458*42079ecbSEd Tanous * @brief Formats LicenseRequired message into JSON 1459*42079ecbSEd Tanous * Message body: "A license is required for this operation: <arg1>." 1460*42079ecbSEd Tanous * 1461*42079ecbSEd Tanous * @param[in] arg1 Parameter of message that will replace %1 in its body. 1462*42079ecbSEd Tanous * 1463*42079ecbSEd Tanous * @returns Message LicenseRequired formatted to JSON */ 1464*42079ecbSEd Tanous nlohmann::json licenseRequired(std::string_view arg1); 1465*42079ecbSEd Tanous 1466*42079ecbSEd Tanous void licenseRequired(crow::Response& res, std::string_view arg1); 1467*42079ecbSEd Tanous 1468*42079ecbSEd Tanous /** 1469*42079ecbSEd Tanous * @brief Formats PropertyModified message into JSON 1470*42079ecbSEd Tanous * Message body: "One or more properties were successfully modified." 1471*42079ecbSEd Tanous * 1472*42079ecbSEd Tanous * 1473*42079ecbSEd Tanous * @returns Message PropertyModified formatted to JSON */ 1474*42079ecbSEd Tanous nlohmann::json propertyModified(); 1475*42079ecbSEd Tanous 1476*42079ecbSEd Tanous void propertyModified(crow::Response& res); 1477*42079ecbSEd Tanous 1478*42079ecbSEd Tanous } // namespace messages 1479f4c4dcf4SKowalski, Kamil } // namespace redfish 1480