summaryrefslogtreecommitdiff
path: root/redfish-core/include
diff options
context:
space:
mode:
authorRamesh Iyyar <rameshi1@in.ibm.com>2022-03-29 15:36:19 +0300
committerRamesh Iyyar <rameshi1@in.ibm.com>2022-03-30 17:38:10 +0300
commit24861a286eb148fcec22afecffb73b596752700f (patch)
tree997f4cd175081ddabaafd7395bd19c3e610e80e8 /redfish-core/include
parent2a6af81c81101a5ade887d7119a48fa6818255fb (diff)
downloadbmcweb-24861a286eb148fcec22afecffb73b596752700f.tar.xz
registry: Add PropertyValueExternalConflict registry
- Added the PropertyValueExternalConflict message registry that might used to send when the request is failed due to some other resource state or configuration. Signed-off-by: Ramesh Iyyar <rameshi1@in.ibm.com> Change-Id: Ibdb8c21e285079dbaea54b99f207f45892b24ea9
Diffstat (limited to 'redfish-core/include')
-rw-r--r--redfish-core/include/error_messages.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/redfish-core/include/error_messages.hpp b/redfish-core/include/error_messages.hpp
index 9b35e6dac6..ed00447ef6 100644
--- a/redfish-core/include/error_messages.hpp
+++ b/redfish-core/include/error_messages.hpp
@@ -425,6 +425,22 @@ void propertyValueResourceConflict(crow::Response& res, std::string_view arg1,
const boost::urls::url_view& arg3);
/**
+ * @brief Formats PropertyValueExternalConflict message into JSON
+ * Message body: "The property '%1' with the requested value of '%2' could not
+ * be written because the value is not available due to a configuration
+ * conflict."
+ *
+ * @param[in] arg1 Parameter of message that will replace %1 in its body.
+ * @param[in] arg2 Parameter of message that will replace %2 in its body.
+ *
+ * @returns Message PropertyValueExternalConflict formatted to JSON */
+nlohmann::json propertyValueExternalConflict(std::string_view arg1,
+ std::string_view arg2);
+
+void propertyValueExternalConflict(crow::Response& res, std::string_view arg1,
+ std::string_view arg2);
+
+/**
* @brief Formats PropertyValueIncorrect message into JSON
* Message body: "The property '<arg1>' with the requested value of '<arg2>'
* could not be written because the value does not meet the constraints of the