xref: /openbmc/bmcweb/features/redfish/include/generated/enums/power_supply.hpp (revision 40e9b92ec19acffb46f83a6e55b18974da5d708e)
1*40e9b92eSEd Tanous // SPDX-License-Identifier: Apache-2.0
2*40e9b92eSEd Tanous // SPDX-FileCopyrightText: Copyright OpenBMC Authors
30ec8b83dSEd Tanous #pragma once
40ec8b83dSEd Tanous #include <nlohmann/json.hpp>
50ec8b83dSEd Tanous 
60ec8b83dSEd Tanous namespace power_supply
70ec8b83dSEd Tanous {
80ec8b83dSEd Tanous // clang-format off
90ec8b83dSEd Tanous 
100ec8b83dSEd Tanous enum class PowerSupplyType{
110ec8b83dSEd Tanous     Invalid,
120ec8b83dSEd Tanous     AC,
130ec8b83dSEd Tanous     DC,
140ec8b83dSEd Tanous     ACorDC,
150ec8b83dSEd Tanous     DCRegulator,
160ec8b83dSEd Tanous };
170ec8b83dSEd Tanous 
180ec8b83dSEd Tanous enum class LineStatus{
190ec8b83dSEd Tanous     Invalid,
200ec8b83dSEd Tanous     Normal,
210ec8b83dSEd Tanous     LossOfInput,
220ec8b83dSEd Tanous     OutOfRange,
230ec8b83dSEd Tanous };
240ec8b83dSEd Tanous 
250ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(PowerSupplyType, {
260ec8b83dSEd Tanous     {PowerSupplyType::Invalid, "Invalid"},
270ec8b83dSEd Tanous     {PowerSupplyType::AC, "AC"},
280ec8b83dSEd Tanous     {PowerSupplyType::DC, "DC"},
290ec8b83dSEd Tanous     {PowerSupplyType::ACorDC, "ACorDC"},
300ec8b83dSEd Tanous     {PowerSupplyType::DCRegulator, "DCRegulator"},
310ec8b83dSEd Tanous });
320ec8b83dSEd Tanous 
330ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(LineStatus, {
340ec8b83dSEd Tanous     {LineStatus::Invalid, "Invalid"},
350ec8b83dSEd Tanous     {LineStatus::Normal, "Normal"},
360ec8b83dSEd Tanous     {LineStatus::LossOfInput, "LossOfInput"},
370ec8b83dSEd Tanous     {LineStatus::OutOfRange, "OutOfRange"},
380ec8b83dSEd Tanous });
390ec8b83dSEd Tanous 
400ec8b83dSEd Tanous }
410ec8b83dSEd Tanous // clang-format on
42