xref: /openbmc/bmcweb/features/redfish/include/resource_messages.hpp (revision 4aad6ed2fbe6cb2c5b652a5f25c2eabecb53746d)
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  ***************************************************************/
12*4aad6ed2SEd Tanous // These generated headers are a superset of what is needed.
13*4aad6ed2SEd Tanous // clang sees them as an error, so ignore
14*4aad6ed2SEd Tanous // NOLINTBEGIN(misc-include-cleaner)
15*4aad6ed2SEd Tanous #include "http_response.hpp"
1674eec26bSSunitha Harish 
17*4aad6ed2SEd Tanous #include <boost/url/url_view_base.hpp>
1865e4f1f7SEd Tanous #include <nlohmann/json.hpp>
1965e4f1f7SEd Tanous 
20*4aad6ed2SEd Tanous #include <cstdint>
21*4aad6ed2SEd Tanous #include <source_location>
22847deee3SEd Tanous #include <string_view>
23*4aad6ed2SEd Tanous // NOLINTEND(misc-include-cleaner)
24847deee3SEd Tanous 
2574eec26bSSunitha Harish namespace redfish
2674eec26bSSunitha Harish {
27847deee3SEd Tanous 
2874eec26bSSunitha Harish namespace messages
2974eec26bSSunitha Harish {
30847deee3SEd Tanous nlohmann::json resourceCreated();
3174eec26bSSunitha Harish 
32847deee3SEd Tanous nlohmann::json resourceRemoved();
3365e4f1f7SEd Tanous 
34847deee3SEd Tanous nlohmann::json resourceErrorsDetected(std::string_view arg1,
35847deee3SEd Tanous                                       std::string_view arg2);
3674eec26bSSunitha Harish 
37847deee3SEd Tanous nlohmann::json resourceErrorsCorrected(std::string_view arg1,
38847deee3SEd Tanous                                        std::string_view arg2);
3974eec26bSSunitha Harish 
40847deee3SEd Tanous nlohmann::json resourceErrorThresholdExceeded(std::string_view arg1,
41847deee3SEd Tanous                                               std::string_view arg2);
42847deee3SEd Tanous 
43847deee3SEd Tanous nlohmann::json
44847deee3SEd Tanous     resourceErrorThresholdCleared(std::string_view arg1, std::string_view arg2);
45847deee3SEd Tanous 
46847deee3SEd Tanous nlohmann::json resourceWarningThresholdExceeded(std::string_view arg1,
47847deee3SEd Tanous                                                 std::string_view arg2);
48847deee3SEd Tanous 
49847deee3SEd Tanous nlohmann::json resourceWarningThresholdCleared(std::string_view arg1,
50847deee3SEd Tanous                                                std::string_view arg2);
51847deee3SEd Tanous 
52847deee3SEd Tanous nlohmann::json resourceStatusChangedOK(std::string_view arg1,
53847deee3SEd Tanous                                        std::string_view arg2);
54847deee3SEd Tanous 
55847deee3SEd Tanous nlohmann::json
56847deee3SEd Tanous     resourceStatusChangedWarning(std::string_view arg1, std::string_view arg2);
57847deee3SEd Tanous 
58847deee3SEd Tanous nlohmann::json
59847deee3SEd Tanous     resourceStatusChangedCritical(std::string_view arg1, std::string_view arg2);
60847deee3SEd Tanous 
61847deee3SEd Tanous nlohmann::json resourceStateChanged(std::string_view arg1,
62847deee3SEd Tanous                                     std::string_view arg2);
63847deee3SEd Tanous 
64847deee3SEd Tanous nlohmann::json resourcePoweredOn(std::string_view arg1);
65847deee3SEd Tanous 
66847deee3SEd Tanous nlohmann::json resourcePoweringOn(std::string_view arg1);
67847deee3SEd Tanous 
68847deee3SEd Tanous nlohmann::json resourcePoweredOff(std::string_view arg1);
69847deee3SEd Tanous 
70847deee3SEd Tanous nlohmann::json resourcePoweringOff(std::string_view arg1);
71847deee3SEd Tanous 
72847deee3SEd Tanous nlohmann::json resourcePaused(std::string_view arg1);
73847deee3SEd Tanous 
74847deee3SEd Tanous nlohmann::json uRIForResourceChanged();
75847deee3SEd Tanous 
76847deee3SEd Tanous nlohmann::json resourceChanged();
77847deee3SEd Tanous 
78847deee3SEd Tanous nlohmann::json resourceVersionIncompatible(std::string_view arg1);
79847deee3SEd Tanous 
80847deee3SEd Tanous nlohmann::json resourceSelfTestFailed(std::string_view arg1);
81847deee3SEd Tanous 
82847deee3SEd Tanous nlohmann::json resourceSelfTestCompleted();
83847deee3SEd Tanous 
84847deee3SEd Tanous nlohmann::json testMessage();
85847deee3SEd Tanous 
86847deee3SEd Tanous nlohmann::json aggregationSourceDiscovered(std::string_view arg1,
87847deee3SEd Tanous                                            std::string_view arg2);
88847deee3SEd Tanous 
89847deee3SEd Tanous nlohmann::json licenseExpired(std::string_view arg1, std::string_view arg2);
90847deee3SEd Tanous 
91847deee3SEd Tanous nlohmann::json licenseChanged(std::string_view arg1, std::string_view arg2);
92847deee3SEd Tanous 
93847deee3SEd Tanous nlohmann::json licenseAdded(std::string_view arg1, std::string_view arg2);
9474eec26bSSunitha Harish 
9574eec26bSSunitha Harish } // namespace messages
9674eec26bSSunitha Harish } // namespace redfish
97