xref: /openbmc/bmcweb/features/redfish/include/resource_messages.hpp (revision d78572018fc2022091ff8b8eb5a7fef2172ba3d6)
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 
13 #include <nlohmann/json.hpp>
14 
15 #include <string_view>
16 
17 // IWYU pragma: no_forward_declare crow::Response
18 
19 namespace redfish
20 {
21 
22 namespace messages
23 {
24 nlohmann::json resourceCreated();
25 
26 nlohmann::json resourceRemoved();
27 
28 nlohmann::json resourceErrorsDetected(std::string_view arg1,
29                                       std::string_view arg2);
30 
31 nlohmann::json resourceErrorsCorrected(std::string_view arg1,
32                                        std::string_view arg2);
33 
34 nlohmann::json resourceErrorThresholdExceeded(std::string_view arg1,
35                                               std::string_view arg2);
36 
37 nlohmann::json
38     resourceErrorThresholdCleared(std::string_view arg1, std::string_view arg2);
39 
40 nlohmann::json resourceWarningThresholdExceeded(std::string_view arg1,
41                                                 std::string_view arg2);
42 
43 nlohmann::json resourceWarningThresholdCleared(std::string_view arg1,
44                                                std::string_view arg2);
45 
46 nlohmann::json resourceStatusChangedOK(std::string_view arg1,
47                                        std::string_view arg2);
48 
49 nlohmann::json
50     resourceStatusChangedWarning(std::string_view arg1, std::string_view arg2);
51 
52 nlohmann::json
53     resourceStatusChangedCritical(std::string_view arg1, std::string_view arg2);
54 
55 nlohmann::json resourceStateChanged(std::string_view arg1,
56                                     std::string_view arg2);
57 
58 nlohmann::json resourcePoweredOn(std::string_view arg1);
59 
60 nlohmann::json resourcePoweringOn(std::string_view arg1);
61 
62 nlohmann::json resourcePoweredOff(std::string_view arg1);
63 
64 nlohmann::json resourcePoweringOff(std::string_view arg1);
65 
66 nlohmann::json resourcePaused(std::string_view arg1);
67 
68 nlohmann::json uRIForResourceChanged();
69 
70 nlohmann::json resourceChanged();
71 
72 nlohmann::json resourceVersionIncompatible(std::string_view arg1);
73 
74 nlohmann::json resourceSelfTestFailed(std::string_view arg1);
75 
76 nlohmann::json resourceSelfTestCompleted();
77 
78 nlohmann::json testMessage();
79 
80 nlohmann::json aggregationSourceDiscovered(std::string_view arg1,
81                                            std::string_view arg2);
82 
83 nlohmann::json licenseExpired(std::string_view arg1, std::string_view arg2);
84 
85 nlohmann::json licenseChanged(std::string_view arg1, std::string_view arg2);
86 
87 nlohmann::json licenseAdded(std::string_view arg1, std::string_view arg2);
88 
89 } // namespace messages
90 } // namespace redfish
91