xref: /openbmc/bmcweb/features/redfish/include/resource_messages.hpp (revision 847deee3c8bf291c9f0988d9dc1662861651951e)
174eec26bSSunitha Harish #pragma once
2*847deee3SEd Tanous /****************************************************************
3*847deee3SEd Tanous  *                 READ THIS WARNING FIRST
4*847deee3SEd Tanous  * This is an auto-generated header which contains definitions
5*847deee3SEd Tanous  * for Redfish DMTF defined messages.
6*847deee3SEd Tanous  * DO NOT modify this registry outside of running the
7*847deee3SEd Tanous  * parse_registries.py script.  The definitions contained within
8*847deee3SEd Tanous  * this file are owned by DMTF.  Any modifications to these files
9*847deee3SEd Tanous  * should be first pushed to the relevant registry in the DMTF
10*847deee3SEd Tanous  * github organization.
11*847deee3SEd Tanous  ***************************************************************/
1274eec26bSSunitha Harish 
13*847deee3SEd Tanous #include "http_response.hpp"
143ccb3adbSEd Tanous 
15*847deee3SEd Tanous #include <boost/url/url_view_base.hpp>
1665e4f1f7SEd Tanous #include <nlohmann/json.hpp>
1765e4f1f7SEd Tanous 
18*847deee3SEd Tanous #include <cstdint>
19*847deee3SEd Tanous #include <source_location>
20*847deee3SEd Tanous #include <string>
21*847deee3SEd Tanous #include <string_view>
22*847deee3SEd Tanous 
23*847deee3SEd Tanous // IWYU pragma: no_forward_declare crow::Response
24*847deee3SEd Tanous 
2574eec26bSSunitha Harish namespace redfish
2674eec26bSSunitha Harish {
27*847deee3SEd Tanous 
2874eec26bSSunitha Harish namespace messages
2974eec26bSSunitha Harish {
30*847deee3SEd Tanous nlohmann::json resourceCreated();
3174eec26bSSunitha Harish 
32*847deee3SEd Tanous nlohmann::json resourceRemoved();
3365e4f1f7SEd Tanous 
34*847deee3SEd Tanous nlohmann::json resourceErrorsDetected(std::string_view arg1,
35*847deee3SEd Tanous                                       std::string_view arg2);
3674eec26bSSunitha Harish 
37*847deee3SEd Tanous nlohmann::json resourceErrorsCorrected(std::string_view arg1,
38*847deee3SEd Tanous                                        std::string_view arg2);
3974eec26bSSunitha Harish 
40*847deee3SEd Tanous nlohmann::json resourceErrorThresholdExceeded(std::string_view arg1,
41*847deee3SEd Tanous                                               std::string_view arg2);
42*847deee3SEd Tanous 
43*847deee3SEd Tanous nlohmann::json
44*847deee3SEd Tanous     resourceErrorThresholdCleared(std::string_view arg1, std::string_view arg2);
45*847deee3SEd Tanous 
46*847deee3SEd Tanous nlohmann::json resourceWarningThresholdExceeded(std::string_view arg1,
47*847deee3SEd Tanous                                                 std::string_view arg2);
48*847deee3SEd Tanous 
49*847deee3SEd Tanous nlohmann::json resourceWarningThresholdCleared(std::string_view arg1,
50*847deee3SEd Tanous                                                std::string_view arg2);
51*847deee3SEd Tanous 
52*847deee3SEd Tanous nlohmann::json resourceStatusChangedOK(std::string_view arg1,
53*847deee3SEd Tanous                                        std::string_view arg2);
54*847deee3SEd Tanous 
55*847deee3SEd Tanous nlohmann::json
56*847deee3SEd Tanous     resourceStatusChangedWarning(std::string_view arg1, std::string_view arg2);
57*847deee3SEd Tanous 
58*847deee3SEd Tanous nlohmann::json
59*847deee3SEd Tanous     resourceStatusChangedCritical(std::string_view arg1, std::string_view arg2);
60*847deee3SEd Tanous 
61*847deee3SEd Tanous nlohmann::json resourceStateChanged(std::string_view arg1,
62*847deee3SEd Tanous                                     std::string_view arg2);
63*847deee3SEd Tanous 
64*847deee3SEd Tanous nlohmann::json resourcePoweredOn(std::string_view arg1);
65*847deee3SEd Tanous 
66*847deee3SEd Tanous nlohmann::json resourcePoweringOn(std::string_view arg1);
67*847deee3SEd Tanous 
68*847deee3SEd Tanous nlohmann::json resourcePoweredOff(std::string_view arg1);
69*847deee3SEd Tanous 
70*847deee3SEd Tanous nlohmann::json resourcePoweringOff(std::string_view arg1);
71*847deee3SEd Tanous 
72*847deee3SEd Tanous nlohmann::json resourcePaused(std::string_view arg1);
73*847deee3SEd Tanous 
74*847deee3SEd Tanous nlohmann::json uRIForResourceChanged();
75*847deee3SEd Tanous 
76*847deee3SEd Tanous nlohmann::json resourceChanged();
77*847deee3SEd Tanous 
78*847deee3SEd Tanous nlohmann::json resourceVersionIncompatible(std::string_view arg1);
79*847deee3SEd Tanous 
80*847deee3SEd Tanous nlohmann::json resourceSelfTestFailed(std::string_view arg1);
81*847deee3SEd Tanous 
82*847deee3SEd Tanous nlohmann::json resourceSelfTestCompleted();
83*847deee3SEd Tanous 
84*847deee3SEd Tanous nlohmann::json testMessage();
85*847deee3SEd Tanous 
86*847deee3SEd Tanous nlohmann::json aggregationSourceDiscovered(std::string_view arg1,
87*847deee3SEd Tanous                                            std::string_view arg2);
88*847deee3SEd Tanous 
89*847deee3SEd Tanous nlohmann::json licenseExpired(std::string_view arg1, std::string_view arg2);
90*847deee3SEd Tanous 
91*847deee3SEd Tanous nlohmann::json licenseChanged(std::string_view arg1, std::string_view arg2);
92*847deee3SEd Tanous 
93*847deee3SEd Tanous nlohmann::json licenseAdded(std::string_view arg1, std::string_view arg2);
9474eec26bSSunitha Harish 
9574eec26bSSunitha Harish } // namespace messages
9674eec26bSSunitha Harish } // namespace redfish
97