1 #pragma once 2 #include <nlohmann/json.hpp> 3 4 namespace connection_method 5 { 6 // clang-format off 7 8 enum class ConnectionMethodType{ 9 Invalid, 10 Redfish, 11 SNMP, 12 IPMI15, 13 IPMI20, 14 NETCONF, 15 OEM, 16 }; 17 18 NLOHMANN_JSON_SERIALIZE_ENUM(ConnectionMethodType, { 19 {ConnectionMethodType::Invalid, "Invalid"}, 20 {ConnectionMethodType::Redfish, "Redfish"}, 21 {ConnectionMethodType::SNMP, "SNMP"}, 22 {ConnectionMethodType::IPMI15, "IPMI15"}, 23 {ConnectionMethodType::IPMI20, "IPMI20"}, 24 {ConnectionMethodType::NETCONF, "NETCONF"}, 25 {ConnectionMethodType::OEM, "OEM"}, 26 }); 27 28 } 29 // clang-format on 30