summaryrefslogtreecommitdiff
path: root/redfish-core/include/generated/enums/manifest.hpp
blob: 7916a5196357618465d94e3fc99ba56735fd7a02 (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
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#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
} // namespace manifest