summaryrefslogtreecommitdiff
path: root/redfish-core/include/generated/enums/manifest.hpp
blob: 9ac10e9fcfc182a1e2fc9bf2c29f4e7b3c6d5a55 (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
#pragma once
#include <nlohmann/json.hpp>

namespace manifest
{
// clang-format off

enum class Expand{
    Invalid,
    None,
    All,
    Relevant,
};

enum class StanzaType{
    Invalid,
    ComposeSystem,
    DecomposeSystem,
    ComposeResource,
    DecomposeResource,
    OEM,
    RegisterResourceBlock,
};

NLOHMANN_JSON_SERIALIZE_ENUM(Expand, {
    {Expand::Invalid, "Invalid"},
    {Expand::None, "None"},
    {Expand::All, "All"},
    {Expand::Relevant, "Relevant"},
});

NLOHMANN_JSON_SERIALIZE_ENUM(StanzaType, {
    {StanzaType::Invalid, "Invalid"},
    {StanzaType::ComposeSystem, "ComposeSystem"},
    {StanzaType::DecomposeSystem, "DecomposeSystem"},
    {StanzaType::ComposeResource, "ComposeResource"},
    {StanzaType::DecomposeResource, "DecomposeResource"},
    {StanzaType::OEM, "OEM"},
    {StanzaType::RegisterResourceBlock, "RegisterResourceBlock"},
});

}
// clang-format on