blob: 21ce40a6070b5415d08ee05d1f2ce5409350bda9 [file] [log] [blame]
#pragma once
#include <cstdint>
#include <nlohmann/json.hpp>
namespace settings
{
// clang-format off
enum class OperationApplyTime : std::uint8_t{
Invalid,
Immediate,
OnReset,
AtMaintenanceWindowStart,
InMaintenanceWindowOnReset,
OnStartUpdateRequest,
};
enum class ApplyTime : std::uint8_t{
Invalid,
Immediate,
OnReset,
AtMaintenanceWindowStart,
InMaintenanceWindowOnReset,
};
NLOHMANN_JSON_SERIALIZE_ENUM(OperationApplyTime, {
{OperationApplyTime::Invalid, "Invalid"},
{OperationApplyTime::Immediate, "Immediate"},
{OperationApplyTime::OnReset, "OnReset"},
{OperationApplyTime::AtMaintenanceWindowStart, "AtMaintenanceWindowStart"},
{OperationApplyTime::InMaintenanceWindowOnReset, "InMaintenanceWindowOnReset"},
{OperationApplyTime::OnStartUpdateRequest, "OnStartUpdateRequest"},
});
NLOHMANN_JSON_SERIALIZE_ENUM(ApplyTime, {
{ApplyTime::Invalid, "Invalid"},
{ApplyTime::Immediate, "Immediate"},
{ApplyTime::OnReset, "OnReset"},
{ApplyTime::AtMaintenanceWindowStart, "AtMaintenanceWindowStart"},
{ApplyTime::InMaintenanceWindowOnReset, "InMaintenanceWindowOnReset"},
});
} // namespace settings
// clang-format on