blob: dd3c2801b96f98ee8609cef3620573bbdf7dbcfc [file] [log] [blame]
Sunitha Harish74eec262020-06-25 10:00:01 -05001#pragma once
Ed Tanous847deee2024-12-02 15:28:10 -08002/****************************************************************
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 ***************************************************************/
Sunitha Harish74eec262020-06-25 10:00:01 -050012
Ed Tanous847deee2024-12-02 15:28:10 -080013#include "http_response.hpp"
Ed Tanous3ccb3ad2023-01-13 17:40:03 -080014
Ed Tanous847deee2024-12-02 15:28:10 -080015#include <boost/url/url_view_base.hpp>
Ed Tanous65e4f1f2022-02-08 00:23:54 -080016#include <nlohmann/json.hpp>
Ed Tanous65e4f1f2022-02-08 00:23:54 -080017
Ed Tanous847deee2024-12-02 15:28:10 -080018#include <cstdint>
19#include <source_location>
20#include <string>
21#include <string_view>
22
23// IWYU pragma: no_forward_declare crow::Response
24
Sunitha Harish74eec262020-06-25 10:00:01 -050025namespace redfish
26{
Ed Tanous847deee2024-12-02 15:28:10 -080027
Sunitha Harish74eec262020-06-25 10:00:01 -050028namespace messages
29{
Ed Tanous847deee2024-12-02 15:28:10 -080030nlohmann::json resourceCreated();
Sunitha Harish74eec262020-06-25 10:00:01 -050031
Ed Tanous847deee2024-12-02 15:28:10 -080032nlohmann::json resourceRemoved();
Ed Tanous65e4f1f2022-02-08 00:23:54 -080033
Ed Tanous847deee2024-12-02 15:28:10 -080034nlohmann::json resourceErrorsDetected(std::string_view arg1,
35 std::string_view arg2);
Sunitha Harish74eec262020-06-25 10:00:01 -050036
Ed Tanous847deee2024-12-02 15:28:10 -080037nlohmann::json resourceErrorsCorrected(std::string_view arg1,
38 std::string_view arg2);
Sunitha Harish74eec262020-06-25 10:00:01 -050039
Ed Tanous847deee2024-12-02 15:28:10 -080040nlohmann::json resourceErrorThresholdExceeded(std::string_view arg1,
41 std::string_view arg2);
42
43nlohmann::json
44 resourceErrorThresholdCleared(std::string_view arg1, std::string_view arg2);
45
46nlohmann::json resourceWarningThresholdExceeded(std::string_view arg1,
47 std::string_view arg2);
48
49nlohmann::json resourceWarningThresholdCleared(std::string_view arg1,
50 std::string_view arg2);
51
52nlohmann::json resourceStatusChangedOK(std::string_view arg1,
53 std::string_view arg2);
54
55nlohmann::json
56 resourceStatusChangedWarning(std::string_view arg1, std::string_view arg2);
57
58nlohmann::json
59 resourceStatusChangedCritical(std::string_view arg1, std::string_view arg2);
60
61nlohmann::json resourceStateChanged(std::string_view arg1,
62 std::string_view arg2);
63
64nlohmann::json resourcePoweredOn(std::string_view arg1);
65
66nlohmann::json resourcePoweringOn(std::string_view arg1);
67
68nlohmann::json resourcePoweredOff(std::string_view arg1);
69
70nlohmann::json resourcePoweringOff(std::string_view arg1);
71
72nlohmann::json resourcePaused(std::string_view arg1);
73
74nlohmann::json uRIForResourceChanged();
75
76nlohmann::json resourceChanged();
77
78nlohmann::json resourceVersionIncompatible(std::string_view arg1);
79
80nlohmann::json resourceSelfTestFailed(std::string_view arg1);
81
82nlohmann::json resourceSelfTestCompleted();
83
84nlohmann::json testMessage();
85
86nlohmann::json aggregationSourceDiscovered(std::string_view arg1,
87 std::string_view arg2);
88
89nlohmann::json licenseExpired(std::string_view arg1, std::string_view arg2);
90
91nlohmann::json licenseChanged(std::string_view arg1, std::string_view arg2);
92
93nlohmann::json licenseAdded(std::string_view arg1, std::string_view arg2);
Sunitha Harish74eec262020-06-25 10:00:01 -050094
95} // namespace messages
96} // namespace redfish