| #pragma once |
| #include <cstdint> |
| #include <nlohmann/json.hpp> |
| |
| namespace connection_method |
| { |
| // clang-format off |
| |
| enum class ConnectionMethodType : std::uint8_t{ |
| Invalid, |
| Redfish, |
| SNMP, |
| IPMI15, |
| IPMI20, |
| NETCONF, |
| OEM, |
| }; |
| |
| enum class TunnelingProtocolType : std::uint8_t{ |
| Invalid, |
| SSH, |
| OEM, |
| }; |
| |
| NLOHMANN_JSON_SERIALIZE_ENUM(ConnectionMethodType, { |
| {ConnectionMethodType::Invalid, "Invalid"}, |
| {ConnectionMethodType::Redfish, "Redfish"}, |
| {ConnectionMethodType::SNMP, "SNMP"}, |
| {ConnectionMethodType::IPMI15, "IPMI15"}, |
| {ConnectionMethodType::IPMI20, "IPMI20"}, |
| {ConnectionMethodType::NETCONF, "NETCONF"}, |
| {ConnectionMethodType::OEM, "OEM"}, |
| }); |
| |
| NLOHMANN_JSON_SERIALIZE_ENUM(TunnelingProtocolType, { |
| {TunnelingProtocolType::Invalid, "Invalid"}, |
| {TunnelingProtocolType::SSH, "SSH"}, |
| {TunnelingProtocolType::OEM, "OEM"}, |
| }); |
| |
| } // namespace connection_method |
| // clang-format on |