1f4c4dcf4SKowalski, Kamil /* 2f4c4dcf4SKowalski, Kamil // Copyright (c) 2018 Intel Corporation 3f4c4dcf4SKowalski, Kamil // 4f4c4dcf4SKowalski, Kamil // Licensed under the Apache License, Version 2.0 (the "License"); 5f4c4dcf4SKowalski, Kamil // you may not use this file except in compliance with the License. 6f4c4dcf4SKowalski, Kamil // You may obtain a copy of the License at 7f4c4dcf4SKowalski, Kamil // 8f4c4dcf4SKowalski, Kamil // http://www.apache.org/licenses/LICENSE-2.0 9f4c4dcf4SKowalski, Kamil // 10f4c4dcf4SKowalski, Kamil // Unless required by applicable law or agreed to in writing, software 11f4c4dcf4SKowalski, Kamil // distributed under the License is distributed on an "AS IS" BASIS, 12f4c4dcf4SKowalski, Kamil // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13f4c4dcf4SKowalski, Kamil // See the License for the specific language governing permissions and 14f4c4dcf4SKowalski, Kamil // limitations under the License. 15f4c4dcf4SKowalski, Kamil */ 16f4c4dcf4SKowalski, Kamil #pragma once 1704e438cbSEd Tanous #include "http_response.hpp" 18f12894f8SJason M. Bills 19*02fea7a7SEd Tanous #include <boost/url/url_view.hpp> 201214b7e7SGunnar Mills #include <nlohmann/json.hpp> 21df5415fcSEd Tanous #include <source_location.hpp> 221214b7e7SGunnar Mills 239ea15c35SEd Tanous #include <string> 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 /** 35f4c4dcf4SKowalski, Kamil * @brief Formats ResourceInUse message into JSON 36f4c4dcf4SKowalski, Kamil * Message body: "The change to the requested resource failed because the 37f4c4dcf4SKowalski, Kamil * resource is in use or in transition." 38f4c4dcf4SKowalski, Kamil * 39f4c4dcf4SKowalski, Kamil * 40f4c4dcf4SKowalski, Kamil * @returns Message ResourceInUse formatted to JSON */ 4165176d39SEd Tanous nlohmann::json resourceInUse(); 42b5c07418SJames Feist 43f12894f8SJason M. Bills void resourceInUse(crow::Response& res); 44f4c4dcf4SKowalski, Kamil 45f4c4dcf4SKowalski, Kamil /** 46f4c4dcf4SKowalski, Kamil * @brief Formats MalformedJSON message into JSON 47f4c4dcf4SKowalski, Kamil * Message body: "The request body submitted was malformed JSON and could not be 48f4c4dcf4SKowalski, Kamil * parsed by the receiving service." 49f4c4dcf4SKowalski, Kamil * 50f4c4dcf4SKowalski, Kamil * 51f4c4dcf4SKowalski, Kamil * @returns Message MalformedJSON formatted to JSON */ 5265176d39SEd Tanous nlohmann::json malformedJSON(); 53b5c07418SJames Feist 54f12894f8SJason M. Bills void malformedJSON(crow::Response& res); 55f4c4dcf4SKowalski, Kamil 56f4c4dcf4SKowalski, Kamil /** 57f4c4dcf4SKowalski, Kamil * @brief Formats ResourceMissingAtURI message into JSON 5866ac2b8cSJason M. Bills * Message body: "The resource at the URI <arg1> was not found." 59f4c4dcf4SKowalski, Kamil * 60f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 61f4c4dcf4SKowalski, Kamil * 62f4c4dcf4SKowalski, Kamil * @returns Message ResourceMissingAtURI formatted to JSON */ 63ace85d60SEd Tanous nlohmann::json resourceMissingAtURI(const boost::urls::url_view& arg1); 64b5c07418SJames Feist 65ace85d60SEd Tanous void resourceMissingAtURI(crow::Response& res, 66ace85d60SEd Tanous const boost::urls::url_view& arg1); 67f4c4dcf4SKowalski, Kamil 68f4c4dcf4SKowalski, Kamil /** 69f4c4dcf4SKowalski, Kamil * @brief Formats ActionParameterValueFormatError message into JSON 7066ac2b8cSJason M. Bills * Message body: "The value <arg1> for the parameter <arg2> in the action <arg3> 71f4c4dcf4SKowalski, Kamil * is of a different format than the parameter can accept." 72f4c4dcf4SKowalski, Kamil * 73f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 74f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 75f4c4dcf4SKowalski, Kamil * @param[in] arg3 Parameter of message that will replace %3 in its body. 76f4c4dcf4SKowalski, Kamil * 77f4c4dcf4SKowalski, Kamil * @returns Message ActionParameterValueFormatError formatted to JSON */ 781668ce6dSEd Tanous nlohmann::json actionParameterValueFormatError(std::string_view arg1, 791668ce6dSEd Tanous std::string_view arg2, 801668ce6dSEd Tanous std::string_view arg3); 81b5c07418SJames Feist 821668ce6dSEd Tanous void actionParameterValueFormatError(crow::Response& res, std::string_view arg1, 831668ce6dSEd Tanous std::string_view arg2, 841668ce6dSEd Tanous std::string_view arg3); 85f4c4dcf4SKowalski, Kamil 86f4c4dcf4SKowalski, Kamil /** 87f4c4dcf4SKowalski, Kamil * @brief Formats InternalError message into JSON 88f4c4dcf4SKowalski, Kamil * Message body: "The request failed due to an internal service error. The 89f4c4dcf4SKowalski, Kamil * service is still operational." 90f4c4dcf4SKowalski, Kamil * 91f4c4dcf4SKowalski, Kamil * 92f4c4dcf4SKowalski, Kamil * @returns Message InternalError formatted to JSON */ 9365176d39SEd Tanous nlohmann::json internalError(); 94b5c07418SJames Feist 959eb808c1SEd Tanous void internalError(crow::Response& res, bmcweb::source_location location = 96df5415fcSEd Tanous bmcweb::source_location::current()); 97f12894f8SJason M. Bills 98f12894f8SJason M. Bills /** 99f4c4dcf4SKowalski, Kamil * @brief Formats UnrecognizedRequestBody message into JSON 100f4c4dcf4SKowalski, Kamil * Message body: "The service detected a malformed request body that it was 101f4c4dcf4SKowalski, Kamil * unable to interpret." 102f4c4dcf4SKowalski, Kamil * 103f4c4dcf4SKowalski, Kamil * 104f4c4dcf4SKowalski, Kamil * @returns Message UnrecognizedRequestBody formatted to JSON */ 10565176d39SEd Tanous nlohmann::json unrecognizedRequestBody(); 106b5c07418SJames Feist 107f12894f8SJason M. Bills void unrecognizedRequestBody(crow::Response& res); 108f4c4dcf4SKowalski, Kamil 109f4c4dcf4SKowalski, Kamil /** 110f4c4dcf4SKowalski, Kamil * @brief Formats ResourceAtUriUnauthorized message into JSON 11166ac2b8cSJason M. Bills * Message body: "While accessing the resource at <arg1>, the service received 11266ac2b8cSJason M. Bills * an authorization error <arg2>." 113f4c4dcf4SKowalski, Kamil * 114f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 115f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 116f4c4dcf4SKowalski, Kamil * 117f4c4dcf4SKowalski, Kamil * @returns Message ResourceAtUriUnauthorized formatted to JSON */ 118ace85d60SEd Tanous nlohmann::json resourceAtUriUnauthorized(const boost::urls::url_view& arg1, 1191668ce6dSEd Tanous std::string_view arg2); 120b5c07418SJames Feist 121ace85d60SEd Tanous void resourceAtUriUnauthorized(crow::Response& res, 122ace85d60SEd Tanous const boost::urls::url_view& arg1, 1231668ce6dSEd Tanous std::string_view arg2); 124f4c4dcf4SKowalski, Kamil 125f4c4dcf4SKowalski, Kamil /** 126f4c4dcf4SKowalski, Kamil * @brief Formats ActionParameterUnknown message into JSON 12766ac2b8cSJason M. Bills * Message body: "The action <arg1> was submitted with the invalid parameter 12866ac2b8cSJason M. Bills * <arg2>." 129f4c4dcf4SKowalski, Kamil * 130f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 131f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 132f4c4dcf4SKowalski, Kamil * 133f4c4dcf4SKowalski, Kamil * @returns Message ActionParameterUnknown formatted to JSON */ 1341668ce6dSEd Tanous nlohmann::json actionParameterUnknown(std::string_view arg1, 1351668ce6dSEd Tanous std::string_view arg2); 136b5c07418SJames Feist 1371668ce6dSEd Tanous void actionParameterUnknown(crow::Response& res, std::string_view arg1, 1381668ce6dSEd Tanous std::string_view arg2); 139f4c4dcf4SKowalski, Kamil 140f4c4dcf4SKowalski, Kamil /** 141f4c4dcf4SKowalski, Kamil * @brief Formats ResourceCannotBeDeleted message into JSON 142f4c4dcf4SKowalski, Kamil * Message body: "The delete request failed because the resource requested 143f4c4dcf4SKowalski, Kamil * cannot be deleted." 144f4c4dcf4SKowalski, Kamil * 145f4c4dcf4SKowalski, Kamil * 146f4c4dcf4SKowalski, Kamil * @returns Message ResourceCannotBeDeleted formatted to JSON */ 14765176d39SEd Tanous nlohmann::json resourceCannotBeDeleted(); 148b5c07418SJames Feist 149f12894f8SJason M. Bills void resourceCannotBeDeleted(crow::Response& res); 150f4c4dcf4SKowalski, Kamil 151f4c4dcf4SKowalski, Kamil /** 152f4c4dcf4SKowalski, Kamil * @brief Formats PropertyDuplicate message into JSON 15366ac2b8cSJason M. Bills * Message body: "The property <arg1> was duplicated in the request." 154f4c4dcf4SKowalski, Kamil * 155f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 156f4c4dcf4SKowalski, Kamil * 157f4c4dcf4SKowalski, Kamil * @returns Message PropertyDuplicate formatted to JSON */ 1581668ce6dSEd Tanous nlohmann::json propertyDuplicate(std::string_view arg1); 159b5c07418SJames Feist 1601668ce6dSEd Tanous void propertyDuplicate(crow::Response& res, std::string_view arg1); 161f4c4dcf4SKowalski, Kamil 162f4c4dcf4SKowalski, Kamil /** 163f4c4dcf4SKowalski, Kamil * @brief Formats ServiceTemporarilyUnavailable message into JSON 16466ac2b8cSJason M. Bills * Message body: "The service is temporarily unavailable. Retry in <arg1> 165f4c4dcf4SKowalski, Kamil * seconds." 166f4c4dcf4SKowalski, Kamil * 167f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 168f4c4dcf4SKowalski, Kamil * 169f4c4dcf4SKowalski, Kamil * @returns Message ServiceTemporarilyUnavailable formatted to JSON */ 1701668ce6dSEd Tanous nlohmann::json serviceTemporarilyUnavailable(std::string_view arg1); 171b5c07418SJames Feist 1721668ce6dSEd Tanous void serviceTemporarilyUnavailable(crow::Response& res, std::string_view arg1); 173f4c4dcf4SKowalski, Kamil 174f4c4dcf4SKowalski, Kamil /** 175f4c4dcf4SKowalski, Kamil * @brief Formats ResourceAlreadyExists message into JSON 17666ac2b8cSJason M. Bills * Message body: "The requested resource of type <arg1> with the property <arg2> 17766ac2b8cSJason M. Bills * with the value <arg3> already exists." 178f4c4dcf4SKowalski, Kamil * 179f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 180f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 181f4c4dcf4SKowalski, Kamil * @param[in] arg3 Parameter of message that will replace %3 in its body. 182f4c4dcf4SKowalski, Kamil * 183f4c4dcf4SKowalski, Kamil * @returns Message ResourceAlreadyExists formatted to JSON */ 1841668ce6dSEd Tanous nlohmann::json resourceAlreadyExists(std::string_view arg1, 1851668ce6dSEd Tanous std::string_view arg2, 1861668ce6dSEd Tanous std::string_view arg3); 187b5c07418SJames Feist 1881668ce6dSEd Tanous void resourceAlreadyExists(crow::Response& res, std::string_view arg1, 1891668ce6dSEd Tanous std::string_view arg2, std::string_view arg3); 190f4c4dcf4SKowalski, Kamil 191f4c4dcf4SKowalski, Kamil /** 192f4c4dcf4SKowalski, Kamil * @brief Formats AccountForSessionNoLongerExists message into JSON 193f4c4dcf4SKowalski, Kamil * Message body: "The account for the current session has been removed, thus the 194f4c4dcf4SKowalski, Kamil * current session has been removed as well." 195f4c4dcf4SKowalski, Kamil * 196f4c4dcf4SKowalski, Kamil * 197f4c4dcf4SKowalski, Kamil * @returns Message AccountForSessionNoLongerExists formatted to JSON */ 19865176d39SEd Tanous nlohmann::json accountForSessionNoLongerExists(); 199b5c07418SJames Feist 200f12894f8SJason M. Bills void accountForSessionNoLongerExists(crow::Response& res); 201f4c4dcf4SKowalski, Kamil 202f4c4dcf4SKowalski, Kamil /** 203f4c4dcf4SKowalski, Kamil * @brief Formats CreateFailedMissingReqProperties message into JSON 204f4c4dcf4SKowalski, Kamil * Message body: "The create operation failed because the required property 20566ac2b8cSJason M. Bills * <arg1> was missing from the request." 206f4c4dcf4SKowalski, Kamil * 207f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 208f4c4dcf4SKowalski, Kamil * 209f4c4dcf4SKowalski, Kamil * @returns Message CreateFailedMissingReqProperties formatted to JSON */ 2101668ce6dSEd Tanous nlohmann::json createFailedMissingReqProperties(std::string_view arg1); 211b5c07418SJames Feist 212f12894f8SJason M. Bills void createFailedMissingReqProperties(crow::Response& res, 2131668ce6dSEd Tanous std::string_view arg1); 214f4c4dcf4SKowalski, Kamil 215f4c4dcf4SKowalski, Kamil /** 216f4c4dcf4SKowalski, Kamil * @brief Formats PropertyValueFormatError message into JSON 21766ac2b8cSJason M. Bills * Message body: "The value <arg1> for the property <arg2> is of a different 218f4c4dcf4SKowalski, Kamil * format than the property can accept." 219f4c4dcf4SKowalski, Kamil * 220f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 221f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 222f4c4dcf4SKowalski, Kamil * 223f4c4dcf4SKowalski, Kamil * @returns Message PropertyValueFormatError formatted to JSON */ 2241668ce6dSEd Tanous nlohmann::json propertyValueFormatError(std::string_view arg1, 2251668ce6dSEd Tanous std::string_view arg2); 226b5c07418SJames Feist 2271668ce6dSEd Tanous void propertyValueFormatError(crow::Response& res, std::string_view arg1, 2281668ce6dSEd Tanous std::string_view arg2); 229f4c4dcf4SKowalski, Kamil 230f4c4dcf4SKowalski, Kamil /** 231f4c4dcf4SKowalski, Kamil * @brief Formats PropertyValueNotInList message into JSON 23266ac2b8cSJason M. Bills * Message body: "The value <arg1> for the property <arg2> is not in the list of 233f4c4dcf4SKowalski, Kamil * acceptable values." 234f4c4dcf4SKowalski, Kamil * 235f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 236f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 237f4c4dcf4SKowalski, Kamil * 238f4c4dcf4SKowalski, Kamil * @returns Message PropertyValueNotInList formatted to JSON */ 2391668ce6dSEd Tanous nlohmann::json propertyValueNotInList(std::string_view arg1, 2401668ce6dSEd Tanous std::string_view arg2); 241b5c07418SJames Feist 2421668ce6dSEd Tanous void propertyValueNotInList(crow::Response& res, std::string_view arg1, 2431668ce6dSEd Tanous std::string_view arg2); 244f4c4dcf4SKowalski, Kamil 245f4c4dcf4SKowalski, Kamil /** 246227a2b0aSJiaqing Zhao * @brief Formats PropertyValueOutOfRange message into JSON 247227a2b0aSJiaqing Zhao * Message body: "The value '%1' for the property %2 is not in the supported 248227a2b0aSJiaqing Zhao * range of acceptable values." 249227a2b0aSJiaqing Zhao * 250227a2b0aSJiaqing Zhao * @param[in] arg1 Parameter of message that will replace %1 in its body. 251227a2b0aSJiaqing Zhao * @param[in] arg2 Parameter of message that will replace %2 in its body. 252227a2b0aSJiaqing Zhao * 253227a2b0aSJiaqing Zhao * @returns Message PropertyValueExternalConflict formatted to JSON */ 254227a2b0aSJiaqing Zhao nlohmann::json propertyValueOutOfRange(std::string_view arg1, 255227a2b0aSJiaqing Zhao std::string_view arg2); 256227a2b0aSJiaqing Zhao 257227a2b0aSJiaqing Zhao void propertyValueOutOfRange(crow::Response& res, std::string_view arg1, 258227a2b0aSJiaqing Zhao std::string_view arg2); 259227a2b0aSJiaqing Zhao 260227a2b0aSJiaqing Zhao /** 261f4c4dcf4SKowalski, Kamil * @brief Formats ResourceAtUriInUnknownFormat message into JSON 26266ac2b8cSJason M. Bills * Message body: "The resource at <arg1> is in a format not recognized by the 263f4c4dcf4SKowalski, Kamil * service." 264f4c4dcf4SKowalski, Kamil * 265f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 266f4c4dcf4SKowalski, Kamil * 267f4c4dcf4SKowalski, Kamil * @returns Message ResourceAtUriInUnknownFormat formatted to JSON */ 268ace85d60SEd Tanous nlohmann::json resourceAtUriInUnknownFormat(const boost::urls::url_view& arg1); 269b5c07418SJames Feist 270ace85d60SEd Tanous void resourceAtUriInUnknownFormat(crow::Response& res, 271ace85d60SEd Tanous const boost::urls::url_view& arg1); 272f4c4dcf4SKowalski, Kamil 273f4c4dcf4SKowalski, Kamil /** 27481856681SAsmitha Karunanithi * @brief Formats ServiceDisabled message into JSON 27581856681SAsmitha Karunanithi * Message body: "The operation failed because the service at <arg1> is disabled 27681856681SAsmitha Karunanithi * and " cannot accept requests." 27781856681SAsmitha Karunanithi * 27881856681SAsmitha Karunanithi * @param[in] arg1 Parameter of message that will replace %1 in its body. 27981856681SAsmitha Karunanithi * 28081856681SAsmitha Karunanithi * @returns Message ServiceDisabled formatted to JSON */ 2811668ce6dSEd Tanous nlohmann::json serviceDisabled(std::string_view arg1); 28281856681SAsmitha Karunanithi 2831668ce6dSEd Tanous void serviceDisabled(crow::Response& res, std::string_view arg1); 28481856681SAsmitha Karunanithi 28581856681SAsmitha Karunanithi /** 286f4c4dcf4SKowalski, Kamil * @brief Formats ServiceInUnknownState message into JSON 287f4c4dcf4SKowalski, Kamil * Message body: "The operation failed because the service is in an unknown 288f4c4dcf4SKowalski, Kamil * state and can no longer take incoming requests." 289f4c4dcf4SKowalski, Kamil * 290f4c4dcf4SKowalski, Kamil * 291f4c4dcf4SKowalski, Kamil * @returns Message ServiceInUnknownState formatted to JSON */ 29265176d39SEd Tanous nlohmann::json serviceInUnknownState(); 293b5c07418SJames Feist 294f12894f8SJason M. Bills void serviceInUnknownState(crow::Response& res); 295f4c4dcf4SKowalski, Kamil 296f4c4dcf4SKowalski, Kamil /** 297f4c4dcf4SKowalski, Kamil * @brief Formats EventSubscriptionLimitExceeded message into JSON 298f4c4dcf4SKowalski, Kamil * Message body: "The event subscription failed due to the number of 299f4c4dcf4SKowalski, Kamil * simultaneous subscriptions exceeding the limit of the implementation." 300f4c4dcf4SKowalski, Kamil * 301f4c4dcf4SKowalski, Kamil * 302f4c4dcf4SKowalski, Kamil * @returns Message EventSubscriptionLimitExceeded formatted to JSON */ 30365176d39SEd Tanous nlohmann::json eventSubscriptionLimitExceeded(); 304b5c07418SJames Feist 305f12894f8SJason M. Bills void eventSubscriptionLimitExceeded(crow::Response& res); 306f4c4dcf4SKowalski, Kamil 307f4c4dcf4SKowalski, Kamil /** 308f4c4dcf4SKowalski, Kamil * @brief Formats ActionParameterMissing message into JSON 30966ac2b8cSJason M. Bills * Message body: "The action <arg1> requires the parameter <arg2> to be present 310f4c4dcf4SKowalski, Kamil * in the request body." 311f4c4dcf4SKowalski, Kamil * 312f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 313f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 314f4c4dcf4SKowalski, Kamil * 315f4c4dcf4SKowalski, Kamil * @returns Message ActionParameterMissing formatted to JSON */ 3161668ce6dSEd Tanous nlohmann::json actionParameterMissing(std::string_view arg1, 3171668ce6dSEd Tanous std::string_view arg2); 318b5c07418SJames Feist 3191668ce6dSEd Tanous void actionParameterMissing(crow::Response& res, std::string_view arg1, 3201668ce6dSEd Tanous std::string_view arg2); 321f4c4dcf4SKowalski, Kamil 322f4c4dcf4SKowalski, Kamil /** 323f4c4dcf4SKowalski, Kamil * @brief Formats StringValueTooLong message into JSON 32466ac2b8cSJason M. Bills * Message body: "The string <arg1> exceeds the length limit <arg2>." 325f4c4dcf4SKowalski, Kamil * 326f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 327f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 328f4c4dcf4SKowalski, Kamil * 329f4c4dcf4SKowalski, Kamil * @returns Message StringValueTooLong formatted to JSON */ 3301668ce6dSEd Tanous nlohmann::json stringValueTooLong(std::string_view arg1, int arg2); 331b5c07418SJames Feist 3321668ce6dSEd Tanous void stringValueTooLong(crow::Response& res, std::string_view arg1, int arg2); 333f4c4dcf4SKowalski, Kamil 334f4c4dcf4SKowalski, Kamil /** 335cc9139ecSJason M. Bills * @brief Formats SessionTerminated message into JSON 336cc9139ecSJason M. Bills * Message body: "The session was successfully terminated." 337cc9139ecSJason M. Bills * 338cc9139ecSJason M. Bills * 339cc9139ecSJason M. Bills * @returns Message SessionTerminated formatted to JSON */ 34065176d39SEd Tanous nlohmann::json sessionTerminated(); 341b5c07418SJames Feist 342cc9139ecSJason M. Bills void sessionTerminated(crow::Response& res); 343cc9139ecSJason M. Bills 344cc9139ecSJason M. Bills /** 345684bb4b8SJason M. Bills * @brief Formats SubscriptionTerminated message into JSON 346684bb4b8SJason M. Bills * Message body: "The event subscription has been terminated." 347684bb4b8SJason M. Bills * 348684bb4b8SJason M. Bills * 349684bb4b8SJason M. Bills * @returns Message SubscriptionTerminated formatted to JSON */ 35065176d39SEd Tanous nlohmann::json subscriptionTerminated(); 351684bb4b8SJason M. Bills 352684bb4b8SJason M. Bills void subscriptionTerminated(crow::Response& res); 353684bb4b8SJason M. Bills 354684bb4b8SJason M. Bills /** 355cc9139ecSJason M. Bills * @brief Formats ResourceTypeIncompatible message into JSON 356cc9139ecSJason M. Bills * Message body: "The @odata.type of the request body <arg1> is incompatible 357cc9139ecSJason M. Bills * with the @odata.type of the resource which is <arg2>." 358cc9139ecSJason M. Bills * 359cc9139ecSJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 360cc9139ecSJason M. Bills * @param[in] arg2 Parameter of message that will replace %2 in its body. 361cc9139ecSJason M. Bills * 362cc9139ecSJason M. Bills * @returns Message ResourceTypeIncompatible formatted to JSON */ 3631668ce6dSEd Tanous nlohmann::json resourceTypeIncompatible(std::string_view arg1, 3641668ce6dSEd Tanous std::string_view arg2); 365b5c07418SJames Feist 3661668ce6dSEd Tanous void resourceTypeIncompatible(crow::Response& res, std::string_view arg1, 3671668ce6dSEd Tanous std::string_view arg2); 368cc9139ecSJason M. Bills 369cc9139ecSJason M. Bills /** 370684bb4b8SJason M. Bills * @brief Formats ResetRequired message into JSON 371684bb4b8SJason M. Bills * Message body: "In order to complete the operation, a component reset is 372684bb4b8SJason M. Bills * required with the Reset action URI '<arg1>' and ResetType '<arg2>'." 373684bb4b8SJason M. Bills * 374684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 375684bb4b8SJason M. Bills * @param[in] arg2 Parameter of message that will replace %2 in its body. 376684bb4b8SJason M. Bills * 377684bb4b8SJason M. Bills * @returns Message ResetRequired formatted to JSON */ 378ace85d60SEd Tanous nlohmann::json resetRequired(const boost::urls::url_view& arg1, 3791668ce6dSEd Tanous std::string_view arg2); 380684bb4b8SJason M. Bills 381ace85d60SEd Tanous void resetRequired(crow::Response& res, const boost::urls::url_view& arg1, 3821668ce6dSEd Tanous std::string_view arg2); 383684bb4b8SJason M. Bills 384684bb4b8SJason M. Bills /** 385684bb4b8SJason M. Bills * @brief Formats ChassisPowerStateOnRequired message into JSON 386684bb4b8SJason M. Bills * Message body: "The Chassis with Id '<arg1>' requires to be powered on to 387684bb4b8SJason M. Bills * perform this request." 388684bb4b8SJason M. Bills * 389684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 390684bb4b8SJason M. Bills * 391684bb4b8SJason M. Bills * @returns Message ChassisPowerStateOnRequired formatted to JSON */ 3921668ce6dSEd Tanous nlohmann::json chassisPowerStateOnRequired(std::string_view arg1); 393684bb4b8SJason M. Bills 3941668ce6dSEd Tanous void chassisPowerStateOnRequired(crow::Response& res, std::string_view arg1); 395684bb4b8SJason M. Bills 396684bb4b8SJason M. Bills /** 397684bb4b8SJason M. Bills * @brief Formats ChassisPowerStateOffRequired message into JSON 398684bb4b8SJason M. Bills * Message body: "The Chassis with Id '<arg1>' requires to be powered off to 399684bb4b8SJason M. Bills * perform this request." 400684bb4b8SJason M. Bills * 401684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 402684bb4b8SJason M. Bills * 403684bb4b8SJason M. Bills * @returns Message ChassisPowerStateOffRequired formatted to JSON */ 4041668ce6dSEd Tanous nlohmann::json chassisPowerStateOffRequired(std::string_view arg1); 405684bb4b8SJason M. Bills 4061668ce6dSEd Tanous void chassisPowerStateOffRequired(crow::Response& res, std::string_view arg1); 407684bb4b8SJason M. Bills 408684bb4b8SJason M. Bills /** 409684bb4b8SJason M. Bills * @brief Formats PropertyValueConflict message into JSON 410684bb4b8SJason M. Bills * Message body: "The property '<arg1>' could not be written because its value 411684bb4b8SJason M. Bills * would conflict with the value of the '<arg2>' property." 412684bb4b8SJason M. Bills * 413684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 414684bb4b8SJason M. Bills * @param[in] arg2 Parameter of message that will replace %2 in its body. 415684bb4b8SJason M. Bills * 416684bb4b8SJason M. Bills * @returns Message PropertyValueConflict formatted to JSON */ 4171668ce6dSEd Tanous nlohmann::json propertyValueConflict(std::string_view arg1, 4181668ce6dSEd Tanous std::string_view arg2); 419684bb4b8SJason M. Bills 4201668ce6dSEd Tanous void propertyValueConflict(crow::Response& res, std::string_view arg1, 4211668ce6dSEd Tanous std::string_view arg2); 422684bb4b8SJason M. Bills 423684bb4b8SJason M. Bills /** 4242a6af81cSRamesh Iyyar * @brief Formats PropertyValueResourceConflict message into JSON 4252a6af81cSRamesh Iyyar * Message body: "The property '%1' with the requested value of '%2' could 4262a6af81cSRamesh Iyyar * not be written because the value conflicts with the state or configuration 4272a6af81cSRamesh Iyyar * of the resource at '%3'." 4282a6af81cSRamesh Iyyar * 4292a6af81cSRamesh Iyyar * @param[in] arg1 Parameter of message that will replace %1 in its body. 4302a6af81cSRamesh Iyyar * @param[in] arg2 Parameter of message that will replace %2 in its body. 4312a6af81cSRamesh Iyyar * @param[in] arg3 Parameter of message that will replace %3 in its body. 4322a6af81cSRamesh Iyyar * 4332a6af81cSRamesh Iyyar * @returns Message PropertyValueResourceConflict to JSON */ 4342a6af81cSRamesh Iyyar nlohmann::json propertyValueResourceConflict(std::string_view arg1, 4352a6af81cSRamesh Iyyar std::string_view arg2, 4362a6af81cSRamesh Iyyar const boost::urls::url_view& arg3); 4372a6af81cSRamesh Iyyar 4382a6af81cSRamesh Iyyar void propertyValueResourceConflict(crow::Response& res, std::string_view arg1, 4392a6af81cSRamesh Iyyar std::string_view arg2, 4402a6af81cSRamesh Iyyar const boost::urls::url_view& arg3); 4412a6af81cSRamesh Iyyar 4422a6af81cSRamesh Iyyar /** 44324861a28SRamesh Iyyar * @brief Formats PropertyValueExternalConflict message into JSON 44424861a28SRamesh Iyyar * Message body: "The property '%1' with the requested value of '%2' could not 44524861a28SRamesh Iyyar * be written because the value is not available due to a configuration 44624861a28SRamesh Iyyar * conflict." 44724861a28SRamesh Iyyar * 44824861a28SRamesh Iyyar * @param[in] arg1 Parameter of message that will replace %1 in its body. 44924861a28SRamesh Iyyar * @param[in] arg2 Parameter of message that will replace %2 in its body. 45024861a28SRamesh Iyyar * 45124861a28SRamesh Iyyar * @returns Message PropertyValueExternalConflict formatted to JSON */ 45224861a28SRamesh Iyyar nlohmann::json propertyValueExternalConflict(std::string_view arg1, 45324861a28SRamesh Iyyar std::string_view arg2); 45424861a28SRamesh Iyyar 45524861a28SRamesh Iyyar void propertyValueExternalConflict(crow::Response& res, std::string_view arg1, 45624861a28SRamesh Iyyar std::string_view arg2); 45724861a28SRamesh Iyyar 45824861a28SRamesh Iyyar /** 459684bb4b8SJason M. Bills * @brief Formats PropertyValueIncorrect message into JSON 460684bb4b8SJason M. Bills * Message body: "The property '<arg1>' with the requested value of '<arg2>' 461684bb4b8SJason M. Bills * could not be written because the value does not meet the constraints of the 462684bb4b8SJason M. Bills * implementation." 463684bb4b8SJason M. Bills * 464684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 465684bb4b8SJason M. Bills * @param[in] arg2 Parameter of message that will replace %2 in its body. 466684bb4b8SJason M. Bills * 467684bb4b8SJason M. Bills * @returns Message PropertyValueIncorrect formatted to JSON */ 4681668ce6dSEd Tanous nlohmann::json propertyValueIncorrect(std::string_view arg1, 4691668ce6dSEd Tanous std::string_view arg2); 470684bb4b8SJason M. Bills 4711668ce6dSEd Tanous void propertyValueIncorrect(crow::Response& res, std::string_view arg1, 4721668ce6dSEd Tanous std::string_view arg2); 473684bb4b8SJason M. Bills 474684bb4b8SJason M. Bills /** 475684bb4b8SJason M. Bills * @brief Formats ResourceCreationConflict message into JSON 476684bb4b8SJason M. Bills * Message body: "The resource could not be created. The service has a resource 477684bb4b8SJason M. Bills * at URI '<arg1>' that conflicts with the creation request." 478684bb4b8SJason M. Bills * 479684bb4b8SJason M. Bills * @param[in] arg1 Parameter of message that will replace %1 in its body. 480684bb4b8SJason M. Bills * 481684bb4b8SJason M. Bills * @returns Message ResourceCreationConflict formatted to JSON */ 482f7725d79SEd Tanous nlohmann::json resourceCreationConflict(const boost::urls::url_view& arg1); 483684bb4b8SJason M. Bills 484f7725d79SEd Tanous void resourceCreationConflict(crow::Response& res, 485f7725d79SEd Tanous const boost::urls::url_view& arg1); 486684bb4b8SJason M. Bills 487684bb4b8SJason M. Bills /** 488684bb4b8SJason M. Bills * @brief Formats MaximumErrorsExceeded message into JSON 489684bb4b8SJason M. Bills * Message body: "Too many errors have occurred to report them all." 490684bb4b8SJason M. Bills * 491684bb4b8SJason M. Bills * 492684bb4b8SJason M. Bills * @returns Message MaximumErrorsExceeded formatted to JSON */ 49365176d39SEd Tanous nlohmann::json maximumErrorsExceeded(); 494684bb4b8SJason M. Bills 495684bb4b8SJason M. Bills void maximumErrorsExceeded(crow::Response& res); 496684bb4b8SJason M. Bills 497684bb4b8SJason M. Bills /** 498684bb4b8SJason M. Bills * @brief Formats PreconditionFailed message into JSON 499684bb4b8SJason M. Bills * Message body: "The ETag supplied did not match the ETag required to change 500684bb4b8SJason M. Bills * this resource." 501684bb4b8SJason M. Bills * 502684bb4b8SJason M. Bills * 503684bb4b8SJason M. Bills * @returns Message PreconditionFailed formatted to JSON */ 50465176d39SEd Tanous nlohmann::json preconditionFailed(); 505684bb4b8SJason M. Bills 506684bb4b8SJason M. Bills void preconditionFailed(crow::Response& res); 507684bb4b8SJason M. Bills 508684bb4b8SJason M. Bills /** 509684bb4b8SJason M. Bills * @brief Formats PreconditionRequired message into JSON 510684bb4b8SJason M. Bills * Message body: "A precondition header or annotation is required to change this 511684bb4b8SJason M. Bills * resource." 512684bb4b8SJason M. Bills * 513684bb4b8SJason M. Bills * 514684bb4b8SJason M. Bills * @returns Message PreconditionRequired formatted to JSON */ 51565176d39SEd Tanous nlohmann::json preconditionRequired(); 516684bb4b8SJason M. Bills 517684bb4b8SJason M. Bills void preconditionRequired(crow::Response& res); 518684bb4b8SJason M. Bills 519684bb4b8SJason M. Bills /** 520684bb4b8SJason M. Bills * @brief Formats OperationFailed message into JSON 521684bb4b8SJason M. Bills * Message body: "An error occurred internal to the service as part of the 522684bb4b8SJason M. Bills * overall request. Partial results may have been returned." 523684bb4b8SJason M. Bills * 524684bb4b8SJason M. Bills * 525684bb4b8SJason M. Bills * @returns Message OperationFailed formatted to JSON */ 52665176d39SEd Tanous nlohmann::json operationFailed(); 527684bb4b8SJason M. Bills 528684bb4b8SJason M. Bills void operationFailed(crow::Response& res); 529684bb4b8SJason M. Bills 530684bb4b8SJason M. Bills /** 531684bb4b8SJason M. Bills * @brief Formats OperationTimeout message into JSON 532684bb4b8SJason M. Bills * Message body: "A timeout internal to the service occured as part of the 533684bb4b8SJason M. Bills * request. Partial results may have been returned." 534684bb4b8SJason M. Bills * 535684bb4b8SJason M. Bills * 536684bb4b8SJason M. Bills * @returns Message OperationTimeout formatted to JSON */ 53765176d39SEd Tanous nlohmann::json operationTimeout(); 538684bb4b8SJason M. Bills 539684bb4b8SJason M. Bills void operationTimeout(crow::Response& res); 540684bb4b8SJason M. Bills 541684bb4b8SJason M. Bills /** 542f4c4dcf4SKowalski, Kamil * @brief Formats PropertyValueTypeError message into JSON 54366ac2b8cSJason M. Bills * Message body: "The value <arg1> for the property <arg2> is of a different 544f4c4dcf4SKowalski, Kamil * type than the property can accept." 545f4c4dcf4SKowalski, Kamil * 546f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 547f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 548f4c4dcf4SKowalski, Kamil * 549f4c4dcf4SKowalski, Kamil * @returns Message PropertyValueTypeError formatted to JSON */ 5501668ce6dSEd Tanous nlohmann::json propertyValueTypeError(std::string_view arg1, 5511668ce6dSEd Tanous std::string_view arg2); 552b5c07418SJames Feist 5531668ce6dSEd Tanous void propertyValueTypeError(crow::Response& res, std::string_view arg1, 5541668ce6dSEd Tanous std::string_view arg2); 555f4c4dcf4SKowalski, Kamil 556f4c4dcf4SKowalski, Kamil /** 557f4c4dcf4SKowalski, Kamil * @brief Formats ResourceNotFound message into JSON 55866ac2b8cSJason M. Bills * Message body: "The requested resource of type <arg1> named <arg2> was not 559f4c4dcf4SKowalski, Kamil * found." 560f4c4dcf4SKowalski, Kamil * 561f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 562f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 563f4c4dcf4SKowalski, Kamil * 564f4c4dcf4SKowalski, Kamil * @returns Message ResourceNotFound formatted to JSON */ 5651668ce6dSEd Tanous nlohmann::json resourceNotFound(std::string_view arg1, std::string_view arg2); 566b5c07418SJames Feist 5671668ce6dSEd Tanous void resourceNotFound(crow::Response& res, std::string_view arg1, 5681668ce6dSEd Tanous std::string_view arg2); 569f4c4dcf4SKowalski, Kamil 570f4c4dcf4SKowalski, Kamil /** 571f4c4dcf4SKowalski, Kamil * @brief Formats CouldNotEstablishConnection message into JSON 57255c7b7a2SEd Tanous * Message body: "The service failed to establish a Connection with the URI 57366ac2b8cSJason M. Bills * <arg1>." 574f4c4dcf4SKowalski, Kamil * 575f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 576f4c4dcf4SKowalski, Kamil * 577f4c4dcf4SKowalski, Kamil * @returns Message CouldNotEstablishConnection formatted to JSON */ 578ace85d60SEd Tanous nlohmann::json couldNotEstablishConnection(const boost::urls::url_view& arg1); 579b5c07418SJames Feist 580ace85d60SEd Tanous void couldNotEstablishConnection(crow::Response& res, 581ace85d60SEd Tanous const boost::urls::url_view& arg1); 582f4c4dcf4SKowalski, Kamil 583f4c4dcf4SKowalski, Kamil /** 584f4c4dcf4SKowalski, Kamil * @brief Formats PropertyNotWritable message into JSON 58566ac2b8cSJason M. Bills * Message body: "The property <arg1> is a read only property and cannot be 586f4c4dcf4SKowalski, Kamil * assigned a value." 587f4c4dcf4SKowalski, Kamil * 588f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 589f4c4dcf4SKowalski, Kamil * 590f4c4dcf4SKowalski, Kamil * @returns Message PropertyNotWritable formatted to JSON */ 5911668ce6dSEd Tanous nlohmann::json propertyNotWritable(std::string_view arg1); 592b5c07418SJames Feist 5931668ce6dSEd Tanous void propertyNotWritable(crow::Response& res, std::string_view arg1); 594f12894f8SJason M. Bills 595f12894f8SJason M. Bills /** 596f4c4dcf4SKowalski, Kamil * @brief Formats QueryParameterValueTypeError message into JSON 59766ac2b8cSJason M. Bills * Message body: "The value <arg1> for the query parameter <arg2> is of a 598f4c4dcf4SKowalski, Kamil * different type than the parameter can accept." 599f4c4dcf4SKowalski, Kamil * 600f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 601f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 602f4c4dcf4SKowalski, Kamil * 603f4c4dcf4SKowalski, Kamil * @returns Message QueryParameterValueTypeError formatted to JSON */ 6041668ce6dSEd Tanous nlohmann::json queryParameterValueTypeError(std::string_view arg1, 6051668ce6dSEd Tanous std::string_view arg2); 606b5c07418SJames Feist 6071668ce6dSEd Tanous void queryParameterValueTypeError(crow::Response& res, std::string_view arg1, 6081668ce6dSEd Tanous std::string_view arg2); 609f4c4dcf4SKowalski, Kamil 610f4c4dcf4SKowalski, Kamil /** 611f4c4dcf4SKowalski, Kamil * @brief Formats ServiceShuttingDown message into JSON 612f4c4dcf4SKowalski, Kamil * Message body: "The operation failed because the service is shutting down and 613f4c4dcf4SKowalski, Kamil * can no longer take incoming requests." 614f4c4dcf4SKowalski, Kamil * 615f4c4dcf4SKowalski, Kamil * 616f4c4dcf4SKowalski, Kamil * @returns Message ServiceShuttingDown formatted to JSON */ 61765176d39SEd Tanous nlohmann::json serviceShuttingDown(); 618b5c07418SJames Feist 619f12894f8SJason M. Bills void serviceShuttingDown(crow::Response& res); 620f4c4dcf4SKowalski, Kamil 621f4c4dcf4SKowalski, Kamil /** 622f4c4dcf4SKowalski, Kamil * @brief Formats ActionParameterDuplicate message into JSON 62366ac2b8cSJason M. Bills * Message body: "The action <arg1> was submitted with more than one value for 62466ac2b8cSJason M. Bills * the parameter <arg2>." 625f4c4dcf4SKowalski, Kamil * 626f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 627f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 628f4c4dcf4SKowalski, Kamil * 629f4c4dcf4SKowalski, Kamil * @returns Message ActionParameterDuplicate formatted to JSON */ 6301668ce6dSEd Tanous nlohmann::json actionParameterDuplicate(std::string_view arg1, 6311668ce6dSEd Tanous std::string_view arg2); 632b5c07418SJames Feist 6331668ce6dSEd Tanous void actionParameterDuplicate(crow::Response& res, std::string_view arg1, 6341668ce6dSEd Tanous std::string_view arg2); 635f4c4dcf4SKowalski, Kamil 636f4c4dcf4SKowalski, Kamil /** 637f4c4dcf4SKowalski, Kamil * @brief Formats ActionParameterNotSupported message into JSON 63866ac2b8cSJason M. Bills * Message body: "The parameter <arg1> for the action <arg2> is not supported on 639f4c4dcf4SKowalski, Kamil * the target resource." 640f4c4dcf4SKowalski, Kamil * 641f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 642f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 643f4c4dcf4SKowalski, Kamil * 644f4c4dcf4SKowalski, Kamil * @returns Message ActionParameterNotSupported formatted to JSON */ 6451668ce6dSEd Tanous nlohmann::json actionParameterNotSupported(std::string_view arg1, 6461668ce6dSEd Tanous std::string_view arg2); 647b5c07418SJames Feist 6481668ce6dSEd Tanous void actionParameterNotSupported(crow::Response& res, std::string_view arg1, 6491668ce6dSEd Tanous std::string_view arg2); 650f4c4dcf4SKowalski, Kamil 651f4c4dcf4SKowalski, Kamil /** 652f4c4dcf4SKowalski, Kamil * @brief Formats SourceDoesNotSupportProtocol message into JSON 65366ac2b8cSJason M. Bills * Message body: "The other end of the Connection at <arg1> does not support the 65466ac2b8cSJason M. Bills * specified protocol <arg2>." 655f4c4dcf4SKowalski, Kamil * 656f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 657f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 658f4c4dcf4SKowalski, Kamil * 659f4c4dcf4SKowalski, Kamil * @returns Message SourceDoesNotSupportProtocol formatted to JSON */ 660ace85d60SEd Tanous nlohmann::json sourceDoesNotSupportProtocol(const boost::urls::url_view& arg1, 6611668ce6dSEd Tanous std::string_view arg2); 662b5c07418SJames Feist 663ace85d60SEd Tanous void sourceDoesNotSupportProtocol(crow::Response& res, 664ace85d60SEd Tanous const boost::urls::url_view& arg1, 6651668ce6dSEd Tanous std::string_view arg2); 666f4c4dcf4SKowalski, Kamil 667f4c4dcf4SKowalski, Kamil /** 668f4c4dcf4SKowalski, Kamil * @brief Formats AccountRemoved message into JSON 669f4c4dcf4SKowalski, Kamil * Message body: "The account was successfully removed." 670f4c4dcf4SKowalski, Kamil * 671f4c4dcf4SKowalski, Kamil * 672f4c4dcf4SKowalski, Kamil * @returns Message AccountRemoved formatted to JSON */ 67365176d39SEd Tanous nlohmann::json accountRemoved(); 674b5c07418SJames Feist 675f12894f8SJason M. Bills void accountRemoved(crow::Response& res); 676f4c4dcf4SKowalski, Kamil 677f4c4dcf4SKowalski, Kamil /** 678f4c4dcf4SKowalski, Kamil * @brief Formats AccessDenied message into JSON 67966ac2b8cSJason M. Bills * Message body: "While attempting to establish a Connection to <arg1>, the 680f4c4dcf4SKowalski, Kamil * service denied access." 681f4c4dcf4SKowalski, Kamil * 682f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 683f4c4dcf4SKowalski, Kamil * 684f4c4dcf4SKowalski, Kamil * @returns Message AccessDenied formatted to JSON */ 685f7725d79SEd Tanous nlohmann::json accessDenied(const boost::urls::url_view& arg1); 686b5c07418SJames Feist 687f7725d79SEd Tanous void accessDenied(crow::Response& res, const boost::urls::url_view& arg1); 688f4c4dcf4SKowalski, Kamil 689f4c4dcf4SKowalski, Kamil /** 690f4c4dcf4SKowalski, Kamil * @brief Formats QueryNotSupported message into JSON 691f4c4dcf4SKowalski, Kamil * Message body: "Querying is not supported by the implementation." 692f4c4dcf4SKowalski, Kamil * 693f4c4dcf4SKowalski, Kamil * 694f4c4dcf4SKowalski, Kamil * @returns Message QueryNotSupported formatted to JSON */ 69565176d39SEd Tanous nlohmann::json queryNotSupported(); 696b5c07418SJames Feist 697f12894f8SJason M. Bills void queryNotSupported(crow::Response& res); 698f4c4dcf4SKowalski, Kamil 699f4c4dcf4SKowalski, Kamil /** 700f4c4dcf4SKowalski, Kamil * @brief Formats CreateLimitReachedForResource message into JSON 701f4c4dcf4SKowalski, Kamil * Message body: "The create operation failed because the resource has reached 702f4c4dcf4SKowalski, Kamil * the limit of possible resources." 703f4c4dcf4SKowalski, Kamil * 704f4c4dcf4SKowalski, Kamil * 705f4c4dcf4SKowalski, Kamil * @returns Message CreateLimitReachedForResource formatted to JSON */ 70665176d39SEd Tanous nlohmann::json createLimitReachedForResource(); 707b5c07418SJames Feist 708f12894f8SJason M. Bills void createLimitReachedForResource(crow::Response& res); 709f4c4dcf4SKowalski, Kamil 710f4c4dcf4SKowalski, Kamil /** 711f4c4dcf4SKowalski, Kamil * @brief Formats GeneralError message into JSON 712f4c4dcf4SKowalski, Kamil * Message body: "A general error has occurred. See ExtendedInfo for more 713f4c4dcf4SKowalski, Kamil * information." 714f4c4dcf4SKowalski, Kamil * 715f4c4dcf4SKowalski, Kamil * 716f4c4dcf4SKowalski, Kamil * @returns Message GeneralError formatted to JSON */ 71765176d39SEd Tanous nlohmann::json generalError(); 718b5c07418SJames Feist 719f12894f8SJason M. Bills void generalError(crow::Response& res); 720f4c4dcf4SKowalski, Kamil 721f4c4dcf4SKowalski, Kamil /** 722f4c4dcf4SKowalski, Kamil * @brief Formats Success message into JSON 723f4c4dcf4SKowalski, Kamil * Message body: "Successfully Completed Request" 724f4c4dcf4SKowalski, Kamil * 725f4c4dcf4SKowalski, Kamil * 726f4c4dcf4SKowalski, Kamil * @returns Message Success formatted to JSON */ 72765176d39SEd Tanous nlohmann::json success(); 728b5c07418SJames Feist 729f12894f8SJason M. Bills void success(crow::Response& res); 730f12894f8SJason M. Bills 731f12894f8SJason M. Bills /** 732f4c4dcf4SKowalski, Kamil * @brief Formats Created message into JSON 733f4c4dcf4SKowalski, Kamil * Message body: "The resource has been created successfully" 734f4c4dcf4SKowalski, Kamil * 735f4c4dcf4SKowalski, Kamil * 736f4c4dcf4SKowalski, Kamil * @returns Message Created formatted to JSON */ 73765176d39SEd Tanous nlohmann::json created(); 738b5c07418SJames Feist 739f12894f8SJason M. Bills void created(crow::Response& res); 740f4c4dcf4SKowalski, Kamil 741f4c4dcf4SKowalski, Kamil /** 742cc9139ecSJason M. Bills * @brief Formats NoOperation message into JSON 743cc9139ecSJason M. Bills * Message body: "The request body submitted contain no data to act upon and 744cc9139ecSJason M. Bills * no changes to the resource took place." 745cc9139ecSJason M. Bills * 746cc9139ecSJason M. Bills * 747cc9139ecSJason M. Bills * @returns Message NoOperation formatted to JSON */ 74865176d39SEd Tanous nlohmann::json noOperation(); 749b5c07418SJames Feist 750cc9139ecSJason M. Bills void noOperation(crow::Response& res); 751cc9139ecSJason M. Bills 752cc9139ecSJason M. Bills /** 753f4c4dcf4SKowalski, Kamil * @brief Formats PropertyUnknown message into JSON 75466ac2b8cSJason M. Bills * Message body: "The property <arg1> is not in the list of valid properties for 755f4c4dcf4SKowalski, Kamil * the resource." 756f4c4dcf4SKowalski, Kamil * 757f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 758f4c4dcf4SKowalski, Kamil * 759f4c4dcf4SKowalski, Kamil * @returns Message PropertyUnknown formatted to JSON */ 7601668ce6dSEd Tanous nlohmann::json propertyUnknown(std::string_view arg1); 761b5c07418SJames Feist 7621668ce6dSEd Tanous void propertyUnknown(crow::Response& res, std::string_view arg1); 763f12894f8SJason M. Bills 764f12894f8SJason M. Bills /** 765f4c4dcf4SKowalski, Kamil * @brief Formats NoValidSession message into JSON 766f4c4dcf4SKowalski, Kamil * Message body: "There is no valid session established with the 767f4c4dcf4SKowalski, Kamil * implementation." 768f4c4dcf4SKowalski, Kamil * 769f4c4dcf4SKowalski, Kamil * 770f4c4dcf4SKowalski, Kamil * @returns Message NoValidSession formatted to JSON */ 77165176d39SEd Tanous nlohmann::json noValidSession(); 772b5c07418SJames Feist 773f12894f8SJason M. Bills void noValidSession(crow::Response& res); 774f4c4dcf4SKowalski, Kamil 775f4c4dcf4SKowalski, Kamil /** 776f4c4dcf4SKowalski, Kamil * @brief Formats InvalidObject message into JSON 77766ac2b8cSJason M. Bills * Message body: "The object at <arg1> is invalid." 778f4c4dcf4SKowalski, Kamil * 779f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 780f4c4dcf4SKowalski, Kamil * 781f4c4dcf4SKowalski, Kamil * @returns Message InvalidObject formatted to JSON */ 782ace85d60SEd Tanous nlohmann::json invalidObject(const boost::urls::url_view& arg1); 783b5c07418SJames Feist 784ace85d60SEd Tanous void invalidObject(crow::Response& res, const boost::urls::url_view& arg1); 785f4c4dcf4SKowalski, Kamil 786f4c4dcf4SKowalski, Kamil /** 787f4c4dcf4SKowalski, Kamil * @brief Formats ResourceInStandby message into JSON 788f4c4dcf4SKowalski, Kamil * Message body: "The request could not be performed because the resource is in 789f4c4dcf4SKowalski, Kamil * standby." 790f4c4dcf4SKowalski, Kamil * 791f4c4dcf4SKowalski, Kamil * 792f4c4dcf4SKowalski, Kamil * @returns Message ResourceInStandby formatted to JSON */ 79365176d39SEd Tanous nlohmann::json resourceInStandby(); 794b5c07418SJames Feist 795f12894f8SJason M. Bills void resourceInStandby(crow::Response& res); 796f4c4dcf4SKowalski, Kamil 797f4c4dcf4SKowalski, Kamil /** 798f4c4dcf4SKowalski, Kamil * @brief Formats ActionParameterValueTypeError message into JSON 79966ac2b8cSJason M. Bills * Message body: "The value <arg1> for the parameter <arg2> in the action <arg3> 800f4c4dcf4SKowalski, Kamil * is of a different type than the parameter can accept." 801f4c4dcf4SKowalski, Kamil * 802f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 803f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 804f4c4dcf4SKowalski, Kamil * @param[in] arg3 Parameter of message that will replace %3 in its body. 805f4c4dcf4SKowalski, Kamil * 806f4c4dcf4SKowalski, Kamil * @returns Message ActionParameterValueTypeError formatted to JSON */ 8071668ce6dSEd Tanous nlohmann::json actionParameterValueTypeError(std::string_view arg1, 8081668ce6dSEd Tanous std::string_view arg2, 8091668ce6dSEd Tanous std::string_view arg3); 810b5c07418SJames Feist 8111668ce6dSEd Tanous void actionParameterValueTypeError(crow::Response& res, std::string_view arg1, 8121668ce6dSEd Tanous std::string_view arg2, 8131668ce6dSEd Tanous std::string_view arg3); 814f4c4dcf4SKowalski, Kamil 815f4c4dcf4SKowalski, Kamil /** 816f4c4dcf4SKowalski, Kamil * @brief Formats SessionLimitExceeded message into JSON 817f4c4dcf4SKowalski, Kamil * Message body: "The session establishment failed due to the number of 818f4c4dcf4SKowalski, Kamil * simultaneous sessions exceeding the limit of the implementation." 819f4c4dcf4SKowalski, Kamil * 820f4c4dcf4SKowalski, Kamil * 821f4c4dcf4SKowalski, Kamil * @returns Message SessionLimitExceeded formatted to JSON */ 82265176d39SEd Tanous nlohmann::json sessionLimitExceeded(); 823b5c07418SJames Feist 824f12894f8SJason M. Bills void sessionLimitExceeded(crow::Response& res); 825f4c4dcf4SKowalski, Kamil 826f4c4dcf4SKowalski, Kamil /** 827f4c4dcf4SKowalski, Kamil * @brief Formats ActionNotSupported message into JSON 82866ac2b8cSJason M. Bills * Message body: "The action <arg1> is not supported by the resource." 829f4c4dcf4SKowalski, Kamil * 830f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 831f4c4dcf4SKowalski, Kamil * 832f4c4dcf4SKowalski, Kamil * @returns Message ActionNotSupported formatted to JSON */ 8331668ce6dSEd Tanous nlohmann::json actionNotSupported(std::string_view arg1); 834b5c07418SJames Feist 8351668ce6dSEd Tanous void actionNotSupported(crow::Response& res, std::string_view arg1); 836f4c4dcf4SKowalski, Kamil 837f4c4dcf4SKowalski, Kamil /** 838f4c4dcf4SKowalski, Kamil * @brief Formats InvalidIndex message into JSON 83966ac2b8cSJason M. Bills * Message body: "The index <arg1> is not a valid offset into the array." 840f4c4dcf4SKowalski, Kamil * 841f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 842f4c4dcf4SKowalski, Kamil * 843f4c4dcf4SKowalski, Kamil * @returns Message InvalidIndex formatted to JSON */ 8445187e09bSJosh Lehan nlohmann::json invalidIndex(int64_t arg1); 845b5c07418SJames Feist 8465187e09bSJosh Lehan void invalidIndex(crow::Response& res, int64_t arg1); 847f4c4dcf4SKowalski, Kamil 848f4c4dcf4SKowalski, Kamil /** 849f4c4dcf4SKowalski, Kamil * @brief Formats EmptyJSON message into JSON 850f4c4dcf4SKowalski, Kamil * Message body: "The request body submitted contained an empty JSON object and 851f4c4dcf4SKowalski, Kamil * the service is unable to process it." 852f4c4dcf4SKowalski, Kamil * 853f4c4dcf4SKowalski, Kamil * 854f4c4dcf4SKowalski, Kamil * @returns Message EmptyJSON formatted to JSON */ 85565176d39SEd Tanous nlohmann::json emptyJSON(); 856b5c07418SJames Feist 857f12894f8SJason M. Bills void emptyJSON(crow::Response& res); 858f4c4dcf4SKowalski, Kamil 859f4c4dcf4SKowalski, Kamil /** 860f4c4dcf4SKowalski, Kamil * @brief Formats QueryNotSupportedOnResource message into JSON 861f4c4dcf4SKowalski, Kamil * Message body: "Querying is not supported on the requested resource." 862f4c4dcf4SKowalski, Kamil * 863f4c4dcf4SKowalski, Kamil * 864f4c4dcf4SKowalski, Kamil * @returns Message QueryNotSupportedOnResource formatted to JSON */ 86565176d39SEd Tanous nlohmann::json queryNotSupportedOnResource(); 866b5c07418SJames Feist 867f12894f8SJason M. Bills void queryNotSupportedOnResource(crow::Response& res); 868f4c4dcf4SKowalski, Kamil 869f4c4dcf4SKowalski, Kamil /** 870684bb4b8SJason M. Bills * @brief Formats QueryNotSupportedOnOperation message into JSON 871684bb4b8SJason M. Bills * Message body: "Querying is not supported with the requested operation." 872684bb4b8SJason M. Bills * 873684bb4b8SJason M. Bills * 874684bb4b8SJason M. Bills * @returns Message QueryNotSupportedOnOperation formatted to JSON */ 87565176d39SEd Tanous nlohmann::json queryNotSupportedOnOperation(); 876684bb4b8SJason M. Bills 877684bb4b8SJason M. Bills void queryNotSupportedOnOperation(crow::Response& res); 878684bb4b8SJason M. Bills 879684bb4b8SJason M. Bills /** 880684bb4b8SJason M. Bills * @brief Formats QueryCombinationInvalid message into JSON 881684bb4b8SJason M. Bills * Message body: "Two or more query parameters in the request cannot be used 882684bb4b8SJason M. Bills * together." 883684bb4b8SJason M. Bills * 884684bb4b8SJason M. Bills * 885684bb4b8SJason M. Bills * @returns Message QueryCombinationInvalid formatted to JSON */ 88665176d39SEd Tanous nlohmann::json queryCombinationInvalid(); 887684bb4b8SJason M. Bills 888684bb4b8SJason M. Bills void queryCombinationInvalid(crow::Response& res); 889684bb4b8SJason M. Bills 890684bb4b8SJason M. Bills /** 891f4c4dcf4SKowalski, Kamil * @brief Formats InsufficientPrivilege message into JSON 892f4c4dcf4SKowalski, Kamil * Message body: "There are insufficient privileges for the account or 893f4c4dcf4SKowalski, Kamil * credentials associated with the current session to perform the requested 894f4c4dcf4SKowalski, Kamil * operation." 895f4c4dcf4SKowalski, Kamil * 896f4c4dcf4SKowalski, Kamil * 897f4c4dcf4SKowalski, Kamil * @returns Message InsufficientPrivilege formatted to JSON */ 89865176d39SEd Tanous nlohmann::json insufficientPrivilege(); 899b5c07418SJames Feist 900f12894f8SJason M. Bills void insufficientPrivilege(crow::Response& res); 901f4c4dcf4SKowalski, Kamil 902f4c4dcf4SKowalski, Kamil /** 903f4c4dcf4SKowalski, Kamil * @brief Formats PropertyValueModified message into JSON 90466ac2b8cSJason M. Bills * Message body: "The property <arg1> was assigned the value <arg2> due to 905f4c4dcf4SKowalski, Kamil * modification by the service." 906f4c4dcf4SKowalski, Kamil * 907f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 908f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 909f4c4dcf4SKowalski, Kamil * 910f4c4dcf4SKowalski, Kamil * @returns Message PropertyValueModified formatted to JSON */ 9111668ce6dSEd Tanous nlohmann::json propertyValueModified(std::string_view arg1, 9121668ce6dSEd Tanous std::string_view arg2); 913b5c07418SJames Feist 9141668ce6dSEd Tanous void propertyValueModified(crow::Response& res, std::string_view arg1, 9151668ce6dSEd Tanous std::string_view arg2); 916f4c4dcf4SKowalski, Kamil 917f4c4dcf4SKowalski, Kamil /** 918f4c4dcf4SKowalski, Kamil * @brief Formats AccountNotModified message into JSON 919f4c4dcf4SKowalski, Kamil * Message body: "The account modification request failed." 920f4c4dcf4SKowalski, Kamil * 921f4c4dcf4SKowalski, Kamil * 922f4c4dcf4SKowalski, Kamil * @returns Message AccountNotModified formatted to JSON */ 92365176d39SEd Tanous nlohmann::json accountNotModified(); 924b5c07418SJames Feist 925f12894f8SJason M. Bills void accountNotModified(crow::Response& res); 926f4c4dcf4SKowalski, Kamil 927f4c4dcf4SKowalski, Kamil /** 928f4c4dcf4SKowalski, Kamil * @brief Formats QueryParameterValueFormatError message into JSON 92966ac2b8cSJason M. Bills * Message body: "The value <arg1> for the parameter <arg2> is of a different 930f4c4dcf4SKowalski, Kamil * format than the parameter can accept." 931f4c4dcf4SKowalski, Kamil * 932f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 933f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 934f4c4dcf4SKowalski, Kamil * 935f4c4dcf4SKowalski, Kamil * @returns Message QueryParameterValueFormatError formatted to JSON */ 936b5c07418SJames Feist 9371668ce6dSEd Tanous nlohmann::json queryParameterValueFormatError(std::string_view arg1, 9381668ce6dSEd Tanous std::string_view arg2); 939b5c07418SJames Feist 9401668ce6dSEd Tanous void queryParameterValueFormatError(crow::Response& res, std::string_view arg1, 9411668ce6dSEd Tanous std::string_view arg2); 942f4c4dcf4SKowalski, Kamil 943f4c4dcf4SKowalski, Kamil /** 944f4c4dcf4SKowalski, Kamil * @brief Formats PropertyMissing message into JSON 94566ac2b8cSJason M. Bills * Message body: "The property <arg1> is a required property and must be 946f4c4dcf4SKowalski, Kamil * included in the request." 947f4c4dcf4SKowalski, Kamil * 948f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 949f4c4dcf4SKowalski, Kamil * 950f4c4dcf4SKowalski, Kamil * @returns Message PropertyMissing formatted to JSON */ 9511668ce6dSEd Tanous nlohmann::json propertyMissing(std::string_view arg1); 952b5c07418SJames Feist 9531668ce6dSEd Tanous void propertyMissing(crow::Response& res, std::string_view arg1); 954f12894f8SJason M. Bills 955f12894f8SJason M. Bills /** 956f4c4dcf4SKowalski, Kamil * @brief Formats ResourceExhaustion message into JSON 95766ac2b8cSJason M. Bills * Message body: "The resource <arg1> was unable to satisfy the request due to 958f4c4dcf4SKowalski, Kamil * unavailability of resources." 959f4c4dcf4SKowalski, Kamil * 960f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 961f4c4dcf4SKowalski, Kamil * 962f4c4dcf4SKowalski, Kamil * @returns Message ResourceExhaustion formatted to JSON */ 9631668ce6dSEd Tanous nlohmann::json resourceExhaustion(std::string_view arg1); 964b5c07418SJames Feist 9651668ce6dSEd Tanous void resourceExhaustion(crow::Response& res, std::string_view arg1); 966f4c4dcf4SKowalski, Kamil 967f4c4dcf4SKowalski, Kamil /** 968f4c4dcf4SKowalski, Kamil * @brief Formats AccountModified message into JSON 969f4c4dcf4SKowalski, Kamil * Message body: "The account was successfully modified." 970f4c4dcf4SKowalski, Kamil * 971f4c4dcf4SKowalski, Kamil * 972f4c4dcf4SKowalski, Kamil * @returns Message AccountModified formatted to JSON */ 97365176d39SEd Tanous nlohmann::json accountModified(); 974b5c07418SJames Feist 975a08b46ccSJason M. Bills void accountModified(crow::Response& res); 976f4c4dcf4SKowalski, Kamil 977f4c4dcf4SKowalski, Kamil /** 978f4c4dcf4SKowalski, Kamil * @brief Formats QueryParameterOutOfRange message into JSON 97966ac2b8cSJason M. Bills * Message body: "The value <arg1> for the query parameter <arg2> is out of 98066ac2b8cSJason M. Bills * range <arg3>." 981f4c4dcf4SKowalski, Kamil * 982f4c4dcf4SKowalski, Kamil * @param[in] arg1 Parameter of message that will replace %1 in its body. 983f4c4dcf4SKowalski, Kamil * @param[in] arg2 Parameter of message that will replace %2 in its body. 984f4c4dcf4SKowalski, Kamil * @param[in] arg3 Parameter of message that will replace %3 in its body. 985f4c4dcf4SKowalski, Kamil * 986f4c4dcf4SKowalski, Kamil * @returns Message QueryParameterOutOfRange formatted to JSON */ 9871668ce6dSEd Tanous nlohmann::json queryParameterOutOfRange(std::string_view arg1, 9881668ce6dSEd Tanous std::string_view arg2, 9891668ce6dSEd Tanous std::string_view arg3); 990b5c07418SJames Feist 9911668ce6dSEd Tanous void queryParameterOutOfRange(crow::Response& res, std::string_view arg1, 9921668ce6dSEd Tanous std::string_view arg2, std::string_view arg3); 993f4c4dcf4SKowalski, Kamil 9943bf4e632SJoseph Reynolds /** 9953bf4e632SJoseph Reynolds * @brief Formats PasswordChangeRequired message into JSON 9963bf4e632SJoseph Reynolds * Message body: The password provided for this account must be changed 9973bf4e632SJoseph Reynolds * before access is granted. PATCH the 'Password' property for this 9983bf4e632SJoseph Reynolds * account located at the target URI '%1' to complete this process. 9993bf4e632SJoseph Reynolds * 10003bf4e632SJoseph Reynolds * @param[in] arg1 Parameter of message that will replace %1 in its body. 10013bf4e632SJoseph Reynolds * 10023bf4e632SJoseph Reynolds * @returns Message PasswordChangeRequired formatted to JSON */ 1003ace85d60SEd Tanous 1004ace85d60SEd Tanous nlohmann::json passwordChangeRequired(const boost::urls::url_view& arg1); 1005ace85d60SEd Tanous 1006ace85d60SEd Tanous void passwordChangeRequired(crow::Response& res, 1007ace85d60SEd Tanous const boost::urls::url_view& arg1); 10083bf4e632SJoseph Reynolds 10094cde5d90SJames Feist /** 10104cde5d90SJames Feist * @brief Formats InvalidUpload message into JSON 10114cde5d90SJames Feist * Message body: Invalid file uploaded to %1: %2.* 10124cde5d90SJames Feist * @param[in] arg1 Parameter of message that will replace %1 in its body. 10134cde5d90SJames Feist * @param[in] arg2 Parameter of message that will replace %2 in its body. 10144cde5d90SJames Feist * 10154cde5d90SJames Feist * @returns Message InvalidUpload formatted to JSON */ 10161668ce6dSEd Tanous nlohmann::json invalidUpload(std::string_view arg1, std::string_view arg2); 10174cde5d90SJames Feist 10181668ce6dSEd Tanous void invalidUpload(crow::Response& res, std::string_view arg1, 10191668ce6dSEd Tanous std::string_view arg2); 10204cde5d90SJames Feist 1021f4c4dcf4SKowalski, Kamil } // namespace messages 1022f4c4dcf4SKowalski, Kamil 1023f4c4dcf4SKowalski, Kamil } // namespace redfish 1024