blob: cabdc0ffe70abb5699db4693b79a66f503516776 [file] [log] [blame]
#pragma once
#include <cstdint>
#include <nlohmann/json.hpp>
namespace host_interface
{
// clang-format off
enum class HostInterfaceType : std::uint8_t{
Invalid,
NetworkHostInterface,
};
enum class AuthenticationMode : std::uint8_t{
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"},
});
} // namespace host_interface
// clang-format on