summaryrefslogtreecommitdiff
path: root/redfish-core/include/generated/enums/host_interface.hpp
blob: 5ae92c55d33e10bed6e565d35e04ea51f9ff3d47 (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
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include <nlohmann/json.hpp>

namespace host_interface
{
// clang-format off

enum class HostInterfaceType{
    Invalid,
    NetworkHostInterface,
};

enum class AuthenticationMode{
    Invalid,
    AuthNone,
    BasicAuth,
    RedfishSessionAuth,
    OemAuth,
};

NLOHMANN_JSON_SERIALIZE_ENUM(HostInterfaceType, {
    {HostInterfaceType::Invalid, "Invalid"},
    {HostInterfaceType::NetworkHostInterface, "NetworkHostInterface"},
});

NLOHMANN_JSON_SERIALIZE_ENUM(AuthenticationMode, {
    {AuthenticationMode::Invalid, "Invalid"},
    {AuthenticationMode::AuthNone, "AuthNone"},
    {AuthenticationMode::BasicAuth, "BasicAuth"},
    {AuthenticationMode::RedfishSessionAuth, "RedfishSessionAuth"},
    {AuthenticationMode::OemAuth, "OemAuth"},
});

// clang-format on
} // namespace host_interface