xref: /openbmc/bmcweb/features/redfish/include/generated/enums/physical_context.hpp (revision 28cfceb2980baa76d7f0599dd4a331ceaec52e1f)
10ec8b83dSEd Tanous #pragma once
20ec8b83dSEd Tanous #include <nlohmann/json.hpp>
30ec8b83dSEd Tanous 
40ec8b83dSEd Tanous namespace physical_context
50ec8b83dSEd Tanous {
60ec8b83dSEd Tanous // clang-format off
70ec8b83dSEd Tanous 
80ec8b83dSEd Tanous enum class PhysicalContext{
90ec8b83dSEd Tanous     Invalid,
100ec8b83dSEd Tanous     Room,
110ec8b83dSEd Tanous     Intake,
120ec8b83dSEd Tanous     Exhaust,
130ec8b83dSEd Tanous     LiquidInlet,
140ec8b83dSEd Tanous     LiquidOutlet,
150ec8b83dSEd Tanous     Front,
160ec8b83dSEd Tanous     Back,
170ec8b83dSEd Tanous     Upper,
180ec8b83dSEd Tanous     Lower,
190ec8b83dSEd Tanous     CPU,
200ec8b83dSEd Tanous     CPUSubsystem,
210ec8b83dSEd Tanous     GPU,
220ec8b83dSEd Tanous     GPUSubsystem,
230ec8b83dSEd Tanous     FPGA,
240ec8b83dSEd Tanous     Accelerator,
250ec8b83dSEd Tanous     ASIC,
260ec8b83dSEd Tanous     Backplane,
270ec8b83dSEd Tanous     SystemBoard,
280ec8b83dSEd Tanous     PowerSupply,
290ec8b83dSEd Tanous     PowerSubsystem,
300ec8b83dSEd Tanous     VoltageRegulator,
310ec8b83dSEd Tanous     Rectifier,
320ec8b83dSEd Tanous     StorageDevice,
330ec8b83dSEd Tanous     NetworkingDevice,
340ec8b83dSEd Tanous     ComputeBay,
350ec8b83dSEd Tanous     StorageBay,
360ec8b83dSEd Tanous     NetworkBay,
370ec8b83dSEd Tanous     ExpansionBay,
380ec8b83dSEd Tanous     PowerSupplyBay,
390ec8b83dSEd Tanous     Memory,
400ec8b83dSEd Tanous     MemorySubsystem,
410ec8b83dSEd Tanous     Chassis,
420ec8b83dSEd Tanous     Fan,
430ec8b83dSEd Tanous     CoolingSubsystem,
440ec8b83dSEd Tanous     Motor,
450ec8b83dSEd Tanous     Transformer,
460ec8b83dSEd Tanous     ACUtilityInput,
470ec8b83dSEd Tanous     ACStaticBypassInput,
480ec8b83dSEd Tanous     ACMaintenanceBypassInput,
490ec8b83dSEd Tanous     DCBus,
500ec8b83dSEd Tanous     ACOutput,
510ec8b83dSEd Tanous     ACInput,
520ec8b83dSEd Tanous     TrustedModule,
530ec8b83dSEd Tanous     Board,
540ec8b83dSEd Tanous     Transceiver,
550ec8b83dSEd Tanous     Battery,
560ec8b83dSEd Tanous     Pump,
57*28cfceb2SGunnar Mills     Filter,
58*28cfceb2SGunnar Mills     Reservoir,
59*28cfceb2SGunnar Mills     Switch,
60*28cfceb2SGunnar Mills     Manager,
610ec8b83dSEd Tanous };
620ec8b83dSEd Tanous 
630ec8b83dSEd Tanous enum class PhysicalSubContext{
640ec8b83dSEd Tanous     Invalid,
650ec8b83dSEd Tanous     Input,
660ec8b83dSEd Tanous     Output,
670ec8b83dSEd Tanous };
680ec8b83dSEd Tanous 
690ec8b83dSEd Tanous enum class LogicalContext{
700ec8b83dSEd Tanous     Invalid,
710ec8b83dSEd Tanous     Capacity,
720ec8b83dSEd Tanous     Environment,
730ec8b83dSEd Tanous     Network,
740ec8b83dSEd Tanous     Performance,
750ec8b83dSEd Tanous     Security,
760ec8b83dSEd Tanous     Storage,
770ec8b83dSEd Tanous };
780ec8b83dSEd Tanous 
790ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(PhysicalContext, {
800ec8b83dSEd Tanous     {PhysicalContext::Invalid, "Invalid"},
810ec8b83dSEd Tanous     {PhysicalContext::Room, "Room"},
820ec8b83dSEd Tanous     {PhysicalContext::Intake, "Intake"},
830ec8b83dSEd Tanous     {PhysicalContext::Exhaust, "Exhaust"},
840ec8b83dSEd Tanous     {PhysicalContext::LiquidInlet, "LiquidInlet"},
850ec8b83dSEd Tanous     {PhysicalContext::LiquidOutlet, "LiquidOutlet"},
860ec8b83dSEd Tanous     {PhysicalContext::Front, "Front"},
870ec8b83dSEd Tanous     {PhysicalContext::Back, "Back"},
880ec8b83dSEd Tanous     {PhysicalContext::Upper, "Upper"},
890ec8b83dSEd Tanous     {PhysicalContext::Lower, "Lower"},
900ec8b83dSEd Tanous     {PhysicalContext::CPU, "CPU"},
910ec8b83dSEd Tanous     {PhysicalContext::CPUSubsystem, "CPUSubsystem"},
920ec8b83dSEd Tanous     {PhysicalContext::GPU, "GPU"},
930ec8b83dSEd Tanous     {PhysicalContext::GPUSubsystem, "GPUSubsystem"},
940ec8b83dSEd Tanous     {PhysicalContext::FPGA, "FPGA"},
950ec8b83dSEd Tanous     {PhysicalContext::Accelerator, "Accelerator"},
960ec8b83dSEd Tanous     {PhysicalContext::ASIC, "ASIC"},
970ec8b83dSEd Tanous     {PhysicalContext::Backplane, "Backplane"},
980ec8b83dSEd Tanous     {PhysicalContext::SystemBoard, "SystemBoard"},
990ec8b83dSEd Tanous     {PhysicalContext::PowerSupply, "PowerSupply"},
1000ec8b83dSEd Tanous     {PhysicalContext::PowerSubsystem, "PowerSubsystem"},
1010ec8b83dSEd Tanous     {PhysicalContext::VoltageRegulator, "VoltageRegulator"},
1020ec8b83dSEd Tanous     {PhysicalContext::Rectifier, "Rectifier"},
1030ec8b83dSEd Tanous     {PhysicalContext::StorageDevice, "StorageDevice"},
1040ec8b83dSEd Tanous     {PhysicalContext::NetworkingDevice, "NetworkingDevice"},
1050ec8b83dSEd Tanous     {PhysicalContext::ComputeBay, "ComputeBay"},
1060ec8b83dSEd Tanous     {PhysicalContext::StorageBay, "StorageBay"},
1070ec8b83dSEd Tanous     {PhysicalContext::NetworkBay, "NetworkBay"},
1080ec8b83dSEd Tanous     {PhysicalContext::ExpansionBay, "ExpansionBay"},
1090ec8b83dSEd Tanous     {PhysicalContext::PowerSupplyBay, "PowerSupplyBay"},
1100ec8b83dSEd Tanous     {PhysicalContext::Memory, "Memory"},
1110ec8b83dSEd Tanous     {PhysicalContext::MemorySubsystem, "MemorySubsystem"},
1120ec8b83dSEd Tanous     {PhysicalContext::Chassis, "Chassis"},
1130ec8b83dSEd Tanous     {PhysicalContext::Fan, "Fan"},
1140ec8b83dSEd Tanous     {PhysicalContext::CoolingSubsystem, "CoolingSubsystem"},
1150ec8b83dSEd Tanous     {PhysicalContext::Motor, "Motor"},
1160ec8b83dSEd Tanous     {PhysicalContext::Transformer, "Transformer"},
1170ec8b83dSEd Tanous     {PhysicalContext::ACUtilityInput, "ACUtilityInput"},
1180ec8b83dSEd Tanous     {PhysicalContext::ACStaticBypassInput, "ACStaticBypassInput"},
1190ec8b83dSEd Tanous     {PhysicalContext::ACMaintenanceBypassInput, "ACMaintenanceBypassInput"},
1200ec8b83dSEd Tanous     {PhysicalContext::DCBus, "DCBus"},
1210ec8b83dSEd Tanous     {PhysicalContext::ACOutput, "ACOutput"},
1220ec8b83dSEd Tanous     {PhysicalContext::ACInput, "ACInput"},
1230ec8b83dSEd Tanous     {PhysicalContext::TrustedModule, "TrustedModule"},
1240ec8b83dSEd Tanous     {PhysicalContext::Board, "Board"},
1250ec8b83dSEd Tanous     {PhysicalContext::Transceiver, "Transceiver"},
1260ec8b83dSEd Tanous     {PhysicalContext::Battery, "Battery"},
1270ec8b83dSEd Tanous     {PhysicalContext::Pump, "Pump"},
128*28cfceb2SGunnar Mills     {PhysicalContext::Filter, "Filter"},
129*28cfceb2SGunnar Mills     {PhysicalContext::Reservoir, "Reservoir"},
130*28cfceb2SGunnar Mills     {PhysicalContext::Switch, "Switch"},
131*28cfceb2SGunnar Mills     {PhysicalContext::Manager, "Manager"},
1320ec8b83dSEd Tanous });
1330ec8b83dSEd Tanous 
1340ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(PhysicalSubContext, {
1350ec8b83dSEd Tanous     {PhysicalSubContext::Invalid, "Invalid"},
1360ec8b83dSEd Tanous     {PhysicalSubContext::Input, "Input"},
1370ec8b83dSEd Tanous     {PhysicalSubContext::Output, "Output"},
1380ec8b83dSEd Tanous });
1390ec8b83dSEd Tanous 
1400ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(LogicalContext, {
1410ec8b83dSEd Tanous     {LogicalContext::Invalid, "Invalid"},
1420ec8b83dSEd Tanous     {LogicalContext::Capacity, "Capacity"},
1430ec8b83dSEd Tanous     {LogicalContext::Environment, "Environment"},
1440ec8b83dSEd Tanous     {LogicalContext::Network, "Network"},
1450ec8b83dSEd Tanous     {LogicalContext::Performance, "Performance"},
1460ec8b83dSEd Tanous     {LogicalContext::Security, "Security"},
1470ec8b83dSEd Tanous     {LogicalContext::Storage, "Storage"},
1480ec8b83dSEd Tanous });
1490ec8b83dSEd Tanous 
1500ec8b83dSEd Tanous }
1510ec8b83dSEd Tanous // clang-format on
152