1*40e9b92eSEd Tanous // SPDX-License-Identifier: Apache-2.0 2*40e9b92eSEd Tanous // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3853c0dc5SEd Tanous #pragma once 4853c0dc5SEd Tanous #include <nlohmann/json.hpp> 5853c0dc5SEd Tanous 6853c0dc5SEd Tanous namespace composition_service 7853c0dc5SEd Tanous { 8853c0dc5SEd Tanous // clang-format off 9853c0dc5SEd Tanous 10853c0dc5SEd Tanous enum class ComposeRequestType{ 11853c0dc5SEd Tanous Invalid, 12853c0dc5SEd Tanous Preview, 13853c0dc5SEd Tanous PreviewReserve, 14853c0dc5SEd Tanous Apply, 15853c0dc5SEd Tanous }; 16853c0dc5SEd Tanous 17853c0dc5SEd Tanous enum class ComposeRequestFormat{ 18853c0dc5SEd Tanous Invalid, 19853c0dc5SEd Tanous Manifest, 20853c0dc5SEd Tanous }; 21853c0dc5SEd Tanous 22853c0dc5SEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(ComposeRequestType, { 23853c0dc5SEd Tanous {ComposeRequestType::Invalid, "Invalid"}, 24853c0dc5SEd Tanous {ComposeRequestType::Preview, "Preview"}, 25853c0dc5SEd Tanous {ComposeRequestType::PreviewReserve, "PreviewReserve"}, 26853c0dc5SEd Tanous {ComposeRequestType::Apply, "Apply"}, 27853c0dc5SEd Tanous }); 28853c0dc5SEd Tanous 29853c0dc5SEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(ComposeRequestFormat, { 30853c0dc5SEd Tanous {ComposeRequestFormat::Invalid, "Invalid"}, 31853c0dc5SEd Tanous {ComposeRequestFormat::Manifest, "Manifest"}, 32853c0dc5SEd Tanous }); 33853c0dc5SEd Tanous 34853c0dc5SEd Tanous } 35853c0dc5SEd Tanous // clang-format on 36