summaryrefslogtreecommitdiff
path: root/redfish-core/include/generated/enums/event_service.hpp
blob: 6b8c4ab89eef80538c23211711e28640d3230d15 (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
42
43
44
45
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include <nlohmann/json.hpp>

namespace event_service
{
// clang-format off

enum class SMTPConnectionProtocol{
    Invalid,
    None,
    AutoDetect,
    StartTLS,
    TLS_SSL,
};

enum class SMTPAuthenticationMethods{
    Invalid,
    None,
    AutoDetect,
    Plain,
    Login,
    CRAM_MD5,
};

NLOHMANN_JSON_SERIALIZE_ENUM(SMTPConnectionProtocol, {
    {SMTPConnectionProtocol::Invalid, "Invalid"},
    {SMTPConnectionProtocol::None, "None"},
    {SMTPConnectionProtocol::AutoDetect, "AutoDetect"},
    {SMTPConnectionProtocol::StartTLS, "StartTLS"},
    {SMTPConnectionProtocol::TLS_SSL, "TLS_SSL"},
});

NLOHMANN_JSON_SERIALIZE_ENUM(SMTPAuthenticationMethods, {
    {SMTPAuthenticationMethods::Invalid, "Invalid"},
    {SMTPAuthenticationMethods::None, "None"},
    {SMTPAuthenticationMethods::AutoDetect, "AutoDetect"},
    {SMTPAuthenticationMethods::Plain, "Plain"},
    {SMTPAuthenticationMethods::Login, "Login"},
    {SMTPAuthenticationMethods::CRAM_MD5, "CRAM_MD5"},
});

// clang-format on
} // namespace event_service