xref: /openbmc/bmcweb/features/redfish/include/generated/enums/memory_region.hpp (revision 40e9b92ec19acffb46f83a6e55b18974da5d708e)
1*40e9b92eSEd Tanous // SPDX-License-Identifier: Apache-2.0
2*40e9b92eSEd Tanous // SPDX-FileCopyrightText: Copyright OpenBMC Authors
3e9cc1bc9SEd Tanous #pragma once
4e9cc1bc9SEd Tanous #include <nlohmann/json.hpp>
5e9cc1bc9SEd Tanous 
6e9cc1bc9SEd Tanous namespace memory_region
7e9cc1bc9SEd Tanous {
8e9cc1bc9SEd Tanous // clang-format off
9e9cc1bc9SEd Tanous 
10e9cc1bc9SEd Tanous enum class RegionType{
11e9cc1bc9SEd Tanous     Invalid,
12e9cc1bc9SEd Tanous     Static,
13e9cc1bc9SEd Tanous     Dynamic,
14e9cc1bc9SEd Tanous };
15e9cc1bc9SEd Tanous 
16e9cc1bc9SEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(RegionType, {
17e9cc1bc9SEd Tanous     {RegionType::Invalid, "Invalid"},
18e9cc1bc9SEd Tanous     {RegionType::Static, "Static"},
19e9cc1bc9SEd Tanous     {RegionType::Dynamic, "Dynamic"},
20e9cc1bc9SEd Tanous });
21e9cc1bc9SEd Tanous 
22e9cc1bc9SEd Tanous }
23e9cc1bc9SEd Tanous // clang-format on
24