summaryrefslogtreecommitdiff
path: root/redfish-core/include/generated/enums/outbound_connection.hpp
blob: 47417078439ee733b055c12625cd87aa7b68eec7 (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
38
39
40
41
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include <nlohmann/json.hpp>

namespace outbound_connection
{
// clang-format off

enum class OutboundConnectionRetryPolicyType{
    Invalid,
    None,
    RetryForever,
    RetryCount,
};

enum class AuthenticationType{
    Invalid,
    MTLS,
    JWT,
    None,
    OEM,
};

NLOHMANN_JSON_SERIALIZE_ENUM(OutboundConnectionRetryPolicyType, {
    {OutboundConnectionRetryPolicyType::Invalid, "Invalid"},
    {OutboundConnectionRetryPolicyType::None, "None"},
    {OutboundConnectionRetryPolicyType::RetryForever, "RetryForever"},
    {OutboundConnectionRetryPolicyType::RetryCount, "RetryCount"},
});

NLOHMANN_JSON_SERIALIZE_ENUM(AuthenticationType, {
    {AuthenticationType::Invalid, "Invalid"},
    {AuthenticationType::MTLS, "MTLS"},
    {AuthenticationType::JWT, "JWT"},
    {AuthenticationType::None, "None"},
    {AuthenticationType::OEM, "OEM"},
});

// clang-format on
} // namespace outbound_connection