xref: /openbmc/bmcweb/redfish-core/include/resource_messages.hpp (revision 10cf50dca112b27176dc5734126983ad37ba2c04)
1 #pragma once
2 /****************************************************************
3  *                 READ THIS WARNING FIRST
4  * This is an auto-generated header which contains definitions
5  * for Redfish DMTF defined messages.
6  * DO NOT modify this registry outside of running the
7  * parse_registries.py script.  The definitions contained within
8  * this file are owned by DMTF.  Any modifications to these files
9  * should be first pushed to the relevant registry in the DMTF
10  * github organization.
11  ***************************************************************/
12 // These generated headers are a superset of what is needed.
13 // clang sees them as an error, so ignore
14 // NOLINTBEGIN(misc-include-cleaner)
15 #include "http_response.hpp"
16 
17 #include <boost/url/url_view_base.hpp>
18 #include <nlohmann/json.hpp>
19 
20 #include <cstdint>
21 #include <source_location>
22 #include <string_view>
23 // NOLINTEND(misc-include-cleaner)
24 
25 namespace redfish
26 {
27 
28 namespace messages
29 {
30 nlohmann::json::object_t resourceCreated();
31 
32 nlohmann::json::object_t resourceRemoved();
33 
34 nlohmann::json::object_t resourceErrorsDetected(std::string_view arg1,
35                                                 std::string_view arg2);
36 
37 nlohmann::json::object_t resourceErrorsCorrected(std::string_view arg1,
38                                                  std::string_view arg2);
39 
40 nlohmann::json::object_t resourceErrorThresholdExceeded(std::string_view arg1,
41                                                         std::string_view arg2);
42 
43 nlohmann::json::object_t resourceErrorThresholdCleared(std::string_view arg1,
44                                                        std::string_view arg2);
45 
46 nlohmann::json::object_t resourceWarningThresholdExceeded(
47     std::string_view arg1, std::string_view arg2);
48 
49 nlohmann::json::object_t resourceWarningThresholdCleared(std::string_view arg1,
50                                                          std::string_view arg2);
51 
52 nlohmann::json::object_t resourceStatusChangedOK(std::string_view arg1,
53                                                  std::string_view arg2);
54 
55 nlohmann::json::object_t resourceStatusChangedWarning(std::string_view arg1,
56                                                       std::string_view arg2);
57 
58 nlohmann::json::object_t resourceStatusChangedCritical(std::string_view arg1,
59                                                        std::string_view arg2);
60 
61 nlohmann::json::object_t resourceStateChanged(std::string_view arg1,
62                                               std::string_view arg2);
63 
64 nlohmann::json::object_t resourcePoweredOn(std::string_view arg1);
65 
66 nlohmann::json::object_t resourcePoweringOn(std::string_view arg1);
67 
68 nlohmann::json::object_t resourcePoweredOff(std::string_view arg1);
69 
70 nlohmann::json::object_t resourcePoweringOff(std::string_view arg1);
71 
72 nlohmann::json::object_t resourcePaused(std::string_view arg1);
73 
74 nlohmann::json::object_t uRIForResourceChanged();
75 
76 nlohmann::json::object_t resourceChanged();
77 
78 nlohmann::json::object_t resourceVersionIncompatible(std::string_view arg1);
79 
80 nlohmann::json::object_t resourceSelfTestFailed(std::string_view arg1);
81 
82 nlohmann::json::object_t resourceSelfTestCompleted();
83 
84 nlohmann::json::object_t testMessage();
85 
86 nlohmann::json::object_t aggregationSourceDiscovered(std::string_view arg1,
87                                                      std::string_view arg2);
88 
89 nlohmann::json::object_t licenseExpired(std::string_view arg1,
90                                         std::string_view arg2);
91 
92 nlohmann::json::object_t licenseChanged(std::string_view arg1,
93                                         std::string_view arg2);
94 
95 nlohmann::json::object_t licenseAdded(std::string_view arg1,
96                                       std::string_view arg2);
97 
98 } // namespace messages
99 } // namespace redfish
100