summaryrefslogtreecommitdiff
path: root/redfish-core/include/generated/enums/license.hpp
blob: 81a9afd5282c86891688a51319c84f26d2d4d4af (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
46
47
48
49
50
51
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include <nlohmann/json.hpp>

namespace license
{
// clang-format off

enum class LicenseType{
    Invalid,
    Production,
    Prototype,
    Trial,
};

enum class AuthorizationScope{
    Invalid,
    Device,
    Capacity,
    Service,
};

enum class LicenseOrigin{
    Invalid,
    BuiltIn,
    Installed,
};

NLOHMANN_JSON_SERIALIZE_ENUM(LicenseType, {
    {LicenseType::Invalid, "Invalid"},
    {LicenseType::Production, "Production"},
    {LicenseType::Prototype, "Prototype"},
    {LicenseType::Trial, "Trial"},
});

NLOHMANN_JSON_SERIALIZE_ENUM(AuthorizationScope, {
    {AuthorizationScope::Invalid, "Invalid"},
    {AuthorizationScope::Device, "Device"},
    {AuthorizationScope::Capacity, "Capacity"},
    {AuthorizationScope::Service, "Service"},
});

NLOHMANN_JSON_SERIALIZE_ENUM(LicenseOrigin, {
    {LicenseOrigin::Invalid, "Invalid"},
    {LicenseOrigin::BuiltIn, "BuiltIn"},
    {LicenseOrigin::Installed, "Installed"},
});

// clang-format on
} // namespace license