xref: /openbmc/bmcweb/features/redfish/include/generated/enums/update_service.hpp (revision 0ec8b83db7e8629c721c0e632de702bf1018f58f)
1*0ec8b83dSEd Tanous #pragma once
2*0ec8b83dSEd Tanous #include <nlohmann/json.hpp>
3*0ec8b83dSEd Tanous 
4*0ec8b83dSEd Tanous namespace update_service
5*0ec8b83dSEd Tanous {
6*0ec8b83dSEd Tanous // clang-format off
7*0ec8b83dSEd Tanous 
8*0ec8b83dSEd Tanous enum class TransferProtocolType{
9*0ec8b83dSEd Tanous     Invalid,
10*0ec8b83dSEd Tanous     CIFS,
11*0ec8b83dSEd Tanous     FTP,
12*0ec8b83dSEd Tanous     SFTP,
13*0ec8b83dSEd Tanous     HTTP,
14*0ec8b83dSEd Tanous     HTTPS,
15*0ec8b83dSEd Tanous     NSF,
16*0ec8b83dSEd Tanous     SCP,
17*0ec8b83dSEd Tanous     TFTP,
18*0ec8b83dSEd Tanous     OEM,
19*0ec8b83dSEd Tanous     NFS,
20*0ec8b83dSEd Tanous };
21*0ec8b83dSEd Tanous 
22*0ec8b83dSEd Tanous enum class ApplyTime{
23*0ec8b83dSEd Tanous     Invalid,
24*0ec8b83dSEd Tanous     Immediate,
25*0ec8b83dSEd Tanous     OnReset,
26*0ec8b83dSEd Tanous     AtMaintenanceWindowStart,
27*0ec8b83dSEd Tanous     InMaintenanceWindowOnReset,
28*0ec8b83dSEd Tanous     OnStartUpdateRequest,
29*0ec8b83dSEd Tanous };
30*0ec8b83dSEd Tanous 
31*0ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(TransferProtocolType, {
32*0ec8b83dSEd Tanous     {TransferProtocolType::Invalid, "Invalid"},
33*0ec8b83dSEd Tanous     {TransferProtocolType::CIFS, "CIFS"},
34*0ec8b83dSEd Tanous     {TransferProtocolType::FTP, "FTP"},
35*0ec8b83dSEd Tanous     {TransferProtocolType::SFTP, "SFTP"},
36*0ec8b83dSEd Tanous     {TransferProtocolType::HTTP, "HTTP"},
37*0ec8b83dSEd Tanous     {TransferProtocolType::HTTPS, "HTTPS"},
38*0ec8b83dSEd Tanous     {TransferProtocolType::NSF, "NSF"},
39*0ec8b83dSEd Tanous     {TransferProtocolType::SCP, "SCP"},
40*0ec8b83dSEd Tanous     {TransferProtocolType::TFTP, "TFTP"},
41*0ec8b83dSEd Tanous     {TransferProtocolType::OEM, "OEM"},
42*0ec8b83dSEd Tanous     {TransferProtocolType::NFS, "NFS"},
43*0ec8b83dSEd Tanous });
44*0ec8b83dSEd Tanous 
45*0ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(ApplyTime, {
46*0ec8b83dSEd Tanous     {ApplyTime::Invalid, "Invalid"},
47*0ec8b83dSEd Tanous     {ApplyTime::Immediate, "Immediate"},
48*0ec8b83dSEd Tanous     {ApplyTime::OnReset, "OnReset"},
49*0ec8b83dSEd Tanous     {ApplyTime::AtMaintenanceWindowStart, "AtMaintenanceWindowStart"},
50*0ec8b83dSEd Tanous     {ApplyTime::InMaintenanceWindowOnReset, "InMaintenanceWindowOnReset"},
51*0ec8b83dSEd Tanous     {ApplyTime::OnStartUpdateRequest, "OnStartUpdateRequest"},
52*0ec8b83dSEd Tanous });
53*0ec8b83dSEd Tanous 
54*0ec8b83dSEd Tanous }
55*0ec8b83dSEd Tanous // clang-format on
56