xref: /openbmc/bmcweb/features/redfish/include/resource_messages.hpp (revision 10cf50dca112b27176dc5734126983ad37ba2c04)
174eec26bSSunitha Harish #pragma once
2847deee3SEd Tanous /****************************************************************
3847deee3SEd Tanous  *                 READ THIS WARNING FIRST
4847deee3SEd Tanous  * This is an auto-generated header which contains definitions
5847deee3SEd Tanous  * for Redfish DMTF defined messages.
6847deee3SEd Tanous  * DO NOT modify this registry outside of running the
7847deee3SEd Tanous  * parse_registries.py script.  The definitions contained within
8847deee3SEd Tanous  * this file are owned by DMTF.  Any modifications to these files
9847deee3SEd Tanous  * should be first pushed to the relevant registry in the DMTF
10847deee3SEd Tanous  * github organization.
11847deee3SEd Tanous  ***************************************************************/
124aad6ed2SEd Tanous // These generated headers are a superset of what is needed.
134aad6ed2SEd Tanous // clang sees them as an error, so ignore
144aad6ed2SEd Tanous // NOLINTBEGIN(misc-include-cleaner)
154aad6ed2SEd Tanous #include "http_response.hpp"
1674eec26bSSunitha Harish 
174aad6ed2SEd Tanous #include <boost/url/url_view_base.hpp>
1865e4f1f7SEd Tanous #include <nlohmann/json.hpp>
1965e4f1f7SEd Tanous 
204aad6ed2SEd Tanous #include <cstdint>
214aad6ed2SEd Tanous #include <source_location>
22847deee3SEd Tanous #include <string_view>
234aad6ed2SEd Tanous // NOLINTEND(misc-include-cleaner)
24847deee3SEd Tanous 
2574eec26bSSunitha Harish namespace redfish
2674eec26bSSunitha Harish {
27847deee3SEd Tanous 
2874eec26bSSunitha Harish namespace messages
2974eec26bSSunitha Harish {
30*10cf50dcSEd Tanous nlohmann::json::object_t resourceCreated();
3174eec26bSSunitha Harish 
32*10cf50dcSEd Tanous nlohmann::json::object_t resourceRemoved();
3365e4f1f7SEd Tanous 
34*10cf50dcSEd Tanous nlohmann::json::object_t resourceErrorsDetected(std::string_view arg1,
35847deee3SEd Tanous                                                 std::string_view arg2);
3674eec26bSSunitha Harish 
37*10cf50dcSEd Tanous nlohmann::json::object_t resourceErrorsCorrected(std::string_view arg1,
38847deee3SEd Tanous                                                  std::string_view arg2);
3974eec26bSSunitha Harish 
40*10cf50dcSEd Tanous nlohmann::json::object_t resourceErrorThresholdExceeded(std::string_view arg1,
41847deee3SEd Tanous                                                         std::string_view arg2);
42847deee3SEd Tanous 
43*10cf50dcSEd Tanous nlohmann::json::object_t resourceErrorThresholdCleared(std::string_view arg1,
44504af5a0SPatrick Williams                                                        std::string_view arg2);
45847deee3SEd Tanous 
46*10cf50dcSEd Tanous nlohmann::json::object_t resourceWarningThresholdExceeded(
47*10cf50dcSEd Tanous     std::string_view arg1, std::string_view arg2);
48*10cf50dcSEd Tanous 
49*10cf50dcSEd Tanous nlohmann::json::object_t resourceWarningThresholdCleared(std::string_view arg1,
50847deee3SEd Tanous                                                          std::string_view arg2);
51847deee3SEd Tanous 
52*10cf50dcSEd Tanous nlohmann::json::object_t resourceStatusChangedOK(std::string_view arg1,
53847deee3SEd Tanous                                                  std::string_view arg2);
54847deee3SEd Tanous 
55*10cf50dcSEd Tanous nlohmann::json::object_t resourceStatusChangedWarning(std::string_view arg1,
56847deee3SEd Tanous                                                       std::string_view arg2);
57847deee3SEd Tanous 
58*10cf50dcSEd Tanous nlohmann::json::object_t resourceStatusChangedCritical(std::string_view arg1,
59504af5a0SPatrick Williams                                                        std::string_view arg2);
60847deee3SEd Tanous 
61*10cf50dcSEd Tanous nlohmann::json::object_t resourceStateChanged(std::string_view arg1,
62504af5a0SPatrick Williams                                               std::string_view arg2);
63847deee3SEd Tanous 
64*10cf50dcSEd Tanous nlohmann::json::object_t resourcePoweredOn(std::string_view arg1);
65*10cf50dcSEd Tanous 
66*10cf50dcSEd Tanous nlohmann::json::object_t resourcePoweringOn(std::string_view arg1);
67*10cf50dcSEd Tanous 
68*10cf50dcSEd Tanous nlohmann::json::object_t resourcePoweredOff(std::string_view arg1);
69*10cf50dcSEd Tanous 
70*10cf50dcSEd Tanous nlohmann::json::object_t resourcePoweringOff(std::string_view arg1);
71*10cf50dcSEd Tanous 
72*10cf50dcSEd Tanous nlohmann::json::object_t resourcePaused(std::string_view arg1);
73*10cf50dcSEd Tanous 
74*10cf50dcSEd Tanous nlohmann::json::object_t uRIForResourceChanged();
75*10cf50dcSEd Tanous 
76*10cf50dcSEd Tanous nlohmann::json::object_t resourceChanged();
77*10cf50dcSEd Tanous 
78*10cf50dcSEd Tanous nlohmann::json::object_t resourceVersionIncompatible(std::string_view arg1);
79*10cf50dcSEd Tanous 
80*10cf50dcSEd Tanous nlohmann::json::object_t resourceSelfTestFailed(std::string_view arg1);
81*10cf50dcSEd Tanous 
82*10cf50dcSEd Tanous nlohmann::json::object_t resourceSelfTestCompleted();
83*10cf50dcSEd Tanous 
84*10cf50dcSEd Tanous nlohmann::json::object_t testMessage();
85*10cf50dcSEd Tanous 
86*10cf50dcSEd Tanous nlohmann::json::object_t aggregationSourceDiscovered(std::string_view arg1,
87847deee3SEd Tanous                                                      std::string_view arg2);
88847deee3SEd Tanous 
89*10cf50dcSEd Tanous nlohmann::json::object_t licenseExpired(std::string_view arg1,
90847deee3SEd Tanous                                         std::string_view arg2);
91847deee3SEd Tanous 
92*10cf50dcSEd Tanous nlohmann::json::object_t licenseChanged(std::string_view arg1,
93*10cf50dcSEd Tanous                                         std::string_view arg2);
94847deee3SEd Tanous 
95*10cf50dcSEd Tanous nlohmann::json::object_t licenseAdded(std::string_view arg1,
96*10cf50dcSEd Tanous                                       std::string_view arg2);
9774eec26bSSunitha Harish 
9874eec26bSSunitha Harish } // namespace messages
9974eec26bSSunitha Harish } // namespace redfish
100