1*e9cc1bc9SEd Tanous #pragma once 2*e9cc1bc9SEd Tanous #include <nlohmann/json.hpp> 3*e9cc1bc9SEd Tanous 4*e9cc1bc9SEd Tanous namespace outbound_connection 5*e9cc1bc9SEd Tanous { 6*e9cc1bc9SEd Tanous // clang-format off 7*e9cc1bc9SEd Tanous 8*e9cc1bc9SEd Tanous enum class OutboundConnectionRetryPolicyType{ 9*e9cc1bc9SEd Tanous Invalid, 10*e9cc1bc9SEd Tanous None, 11*e9cc1bc9SEd Tanous RetryForever, 12*e9cc1bc9SEd Tanous RetryCount, 13*e9cc1bc9SEd Tanous }; 14*e9cc1bc9SEd Tanous 15*e9cc1bc9SEd Tanous enum class AuthenticationType{ 16*e9cc1bc9SEd Tanous Invalid, 17*e9cc1bc9SEd Tanous MTLS, 18*e9cc1bc9SEd Tanous JWT, 19*e9cc1bc9SEd Tanous None, 20*e9cc1bc9SEd Tanous OEM, 21*e9cc1bc9SEd Tanous }; 22*e9cc1bc9SEd Tanous 23*e9cc1bc9SEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(OutboundConnectionRetryPolicyType, { 24*e9cc1bc9SEd Tanous {OutboundConnectionRetryPolicyType::Invalid, "Invalid"}, 25*e9cc1bc9SEd Tanous {OutboundConnectionRetryPolicyType::None, "None"}, 26*e9cc1bc9SEd Tanous {OutboundConnectionRetryPolicyType::RetryForever, "RetryForever"}, 27*e9cc1bc9SEd Tanous {OutboundConnectionRetryPolicyType::RetryCount, "RetryCount"}, 28*e9cc1bc9SEd Tanous }); 29*e9cc1bc9SEd Tanous 30*e9cc1bc9SEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(AuthenticationType, { 31*e9cc1bc9SEd Tanous {AuthenticationType::Invalid, "Invalid"}, 32*e9cc1bc9SEd Tanous {AuthenticationType::MTLS, "MTLS"}, 33*e9cc1bc9SEd Tanous {AuthenticationType::JWT, "JWT"}, 34*e9cc1bc9SEd Tanous {AuthenticationType::None, "None"}, 35*e9cc1bc9SEd Tanous {AuthenticationType::OEM, "OEM"}, 36*e9cc1bc9SEd Tanous }); 37*e9cc1bc9SEd Tanous 38*e9cc1bc9SEd Tanous } 39*e9cc1bc9SEd Tanous // clang-format on 40