blob: f62b596b0e0d7a56f9aa0bdd29f889e5628b2769 [file] [log] [blame]
#pragma once
#include <cstdint>
#include <nlohmann/json.hpp>
namespace update_service
{
// clang-format off
enum class TransferProtocolType : std::uint8_t{
Invalid,
CIFS,
FTP,
SFTP,
HTTP,
HTTPS,
NSF,
SCP,
TFTP,
OEM,
NFS,
};
enum class ApplyTime : std::uint8_t{
Invalid,
Immediate,
OnReset,
AtMaintenanceWindowStart,
InMaintenanceWindowOnReset,
OnStartUpdateRequest,
};
NLOHMANN_JSON_SERIALIZE_ENUM(TransferProtocolType, {
{TransferProtocolType::Invalid, "Invalid"},
{TransferProtocolType::CIFS, "CIFS"},
{TransferProtocolType::FTP, "FTP"},
{TransferProtocolType::SFTP, "SFTP"},
{TransferProtocolType::HTTP, "HTTP"},
{TransferProtocolType::HTTPS, "HTTPS"},
{TransferProtocolType::NSF, "NSF"},
{TransferProtocolType::SCP, "SCP"},
{TransferProtocolType::TFTP, "TFTP"},
{TransferProtocolType::OEM, "OEM"},
{TransferProtocolType::NFS, "NFS"},
});
NLOHMANN_JSON_SERIALIZE_ENUM(ApplyTime, {
{ApplyTime::Invalid, "Invalid"},
{ApplyTime::Immediate, "Immediate"},
{ApplyTime::OnReset, "OnReset"},
{ApplyTime::AtMaintenanceWindowStart, "AtMaintenanceWindowStart"},
{ApplyTime::InMaintenanceWindowOnReset, "InMaintenanceWindowOnReset"},
{ApplyTime::OnStartUpdateRequest, "OnStartUpdateRequest"},
});
} // namespace update_service
// clang-format on