summaryrefslogtreecommitdiff
path: root/redfish-core/include/resource_messages.hpp
blob: 98290ee805ca8f45fa1d7ac3793d8f5f9ef998b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#pragma once
/****************************************************************
 *                 READ THIS WARNING FIRST
 * This is an auto-generated header which contains definitions
 * for Redfish DMTF defined messages.
 * DO NOT modify this registry outside of running the
 * parse_registries.py script.  The definitions contained within
 * this file are owned by DMTF.  Any modifications to these files
 * should be first pushed to the relevant registry in the DMTF
 * github organization.
 ***************************************************************/
// These generated headers are a superset of what is needed.
// clang sees them as an error, so ignore
// NOLINTBEGIN(misc-include-cleaner)
#include "http_response.hpp"

#include <boost/url/url_view_base.hpp>
#include <nlohmann/json.hpp>

#include <cstdint>
#include <source_location>
#include <string_view>
// NOLINTEND(misc-include-cleaner)

namespace redfish
{

namespace messages
{
nlohmann::json::object_t resourceCreated();

nlohmann::json::object_t resourceRemoved();

nlohmann::json::object_t resourceErrorsDetected(std::string_view arg1,
                                                std::string_view arg2);

nlohmann::json::object_t resourceErrorsCorrected(std::string_view arg1,
                                                 std::string_view arg2);

nlohmann::json::object_t resourceErrorThresholdExceeded(std::string_view arg1,
                                                        std::string_view arg2);

nlohmann::json::object_t resourceErrorThresholdCleared(std::string_view arg1,
                                                       std::string_view arg2);

nlohmann::json::object_t resourceWarningThresholdExceeded(
    std::string_view arg1, std::string_view arg2);

nlohmann::json::object_t resourceWarningThresholdCleared(std::string_view arg1,
                                                         std::string_view arg2);

nlohmann::json::object_t resourceStatusChangedOK(std::string_view arg1,
                                                 std::string_view arg2);

nlohmann::json::object_t resourceStatusChangedWarning(std::string_view arg1,
                                                      std::string_view arg2);

nlohmann::json::object_t resourceStatusChangedCritical(std::string_view arg1,
                                                       std::string_view arg2);

nlohmann::json::object_t resourceStateChanged(std::string_view arg1,
                                              std::string_view arg2);

nlohmann::json::object_t resourcePoweredOn(std::string_view arg1);

nlohmann::json::object_t resourcePoweringOn(std::string_view arg1);

nlohmann::json::object_t resourcePoweredOff(std::string_view arg1);

nlohmann::json::object_t resourcePoweringOff(std::string_view arg1);

nlohmann::json::object_t resourcePaused(std::string_view arg1);

nlohmann::json::object_t uRIForResourceChanged();

nlohmann::json::object_t resourceChanged();

nlohmann::json::object_t resourceVersionIncompatible(std::string_view arg1);

nlohmann::json::object_t resourceSelfTestFailed(std::string_view arg1);

nlohmann::json::object_t resourceSelfTestCompleted();

nlohmann::json::object_t testMessage();

nlohmann::json::object_t aggregationSourceDiscovered(std::string_view arg1,
                                                     std::string_view arg2);

nlohmann::json::object_t licenseExpired(std::string_view arg1,
                                        std::string_view arg2);

nlohmann::json::object_t licenseChanged(std::string_view arg1,
                                        std::string_view arg2);

nlohmann::json::object_t licenseAdded(std::string_view arg1,
                                      std::string_view arg2);

} // namespace messages
} // namespace redfish