xref: /openbmc/bmcweb/features/redfish/include/generated/enums/manager_account.hpp (revision 40e9b92ec19acffb46f83a6e55b18974da5d708e)
1*40e9b92eSEd Tanous // SPDX-License-Identifier: Apache-2.0
2*40e9b92eSEd Tanous // SPDX-FileCopyrightText: Copyright OpenBMC Authors
30ec8b83dSEd Tanous #pragma once
40ec8b83dSEd Tanous #include <nlohmann/json.hpp>
50ec8b83dSEd Tanous 
60ec8b83dSEd Tanous namespace manager_account
70ec8b83dSEd Tanous {
80ec8b83dSEd Tanous // clang-format off
90ec8b83dSEd Tanous 
100ec8b83dSEd Tanous enum class AccountTypes{
110ec8b83dSEd Tanous     Invalid,
120ec8b83dSEd Tanous     Redfish,
130ec8b83dSEd Tanous     SNMP,
140ec8b83dSEd Tanous     OEM,
150ec8b83dSEd Tanous     HostConsole,
160ec8b83dSEd Tanous     ManagerConsole,
170ec8b83dSEd Tanous     IPMI,
180ec8b83dSEd Tanous     KVMIP,
190ec8b83dSEd Tanous     VirtualMedia,
200ec8b83dSEd Tanous     WebUI,
210ec8b83dSEd Tanous };
220ec8b83dSEd Tanous 
230ec8b83dSEd Tanous enum class SNMPAuthenticationProtocols{
240ec8b83dSEd Tanous     Invalid,
250ec8b83dSEd Tanous     None,
260ec8b83dSEd Tanous     HMAC_MD5,
270ec8b83dSEd Tanous     HMAC_SHA96,
280ec8b83dSEd Tanous     HMAC128_SHA224,
290ec8b83dSEd Tanous     HMAC192_SHA256,
300ec8b83dSEd Tanous     HMAC256_SHA384,
310ec8b83dSEd Tanous     HMAC384_SHA512,
320ec8b83dSEd Tanous };
330ec8b83dSEd Tanous 
340ec8b83dSEd Tanous enum class SNMPEncryptionProtocols{
350ec8b83dSEd Tanous     Invalid,
360ec8b83dSEd Tanous     None,
370ec8b83dSEd Tanous     CBC_DES,
380ec8b83dSEd Tanous     CFB128_AES128,
392ae81db9SGunnar Mills     CFB128_AES192,
402ae81db9SGunnar Mills     CFB128_AES256,
410ec8b83dSEd Tanous };
420ec8b83dSEd Tanous 
430ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(AccountTypes, {
440ec8b83dSEd Tanous     {AccountTypes::Invalid, "Invalid"},
450ec8b83dSEd Tanous     {AccountTypes::Redfish, "Redfish"},
460ec8b83dSEd Tanous     {AccountTypes::SNMP, "SNMP"},
470ec8b83dSEd Tanous     {AccountTypes::OEM, "OEM"},
480ec8b83dSEd Tanous     {AccountTypes::HostConsole, "HostConsole"},
490ec8b83dSEd Tanous     {AccountTypes::ManagerConsole, "ManagerConsole"},
500ec8b83dSEd Tanous     {AccountTypes::IPMI, "IPMI"},
510ec8b83dSEd Tanous     {AccountTypes::KVMIP, "KVMIP"},
520ec8b83dSEd Tanous     {AccountTypes::VirtualMedia, "VirtualMedia"},
530ec8b83dSEd Tanous     {AccountTypes::WebUI, "WebUI"},
540ec8b83dSEd Tanous });
550ec8b83dSEd Tanous 
560ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(SNMPAuthenticationProtocols, {
570ec8b83dSEd Tanous     {SNMPAuthenticationProtocols::Invalid, "Invalid"},
580ec8b83dSEd Tanous     {SNMPAuthenticationProtocols::None, "None"},
590ec8b83dSEd Tanous     {SNMPAuthenticationProtocols::HMAC_MD5, "HMAC_MD5"},
600ec8b83dSEd Tanous     {SNMPAuthenticationProtocols::HMAC_SHA96, "HMAC_SHA96"},
610ec8b83dSEd Tanous     {SNMPAuthenticationProtocols::HMAC128_SHA224, "HMAC128_SHA224"},
620ec8b83dSEd Tanous     {SNMPAuthenticationProtocols::HMAC192_SHA256, "HMAC192_SHA256"},
630ec8b83dSEd Tanous     {SNMPAuthenticationProtocols::HMAC256_SHA384, "HMAC256_SHA384"},
640ec8b83dSEd Tanous     {SNMPAuthenticationProtocols::HMAC384_SHA512, "HMAC384_SHA512"},
650ec8b83dSEd Tanous });
660ec8b83dSEd Tanous 
670ec8b83dSEd Tanous NLOHMANN_JSON_SERIALIZE_ENUM(SNMPEncryptionProtocols, {
680ec8b83dSEd Tanous     {SNMPEncryptionProtocols::Invalid, "Invalid"},
690ec8b83dSEd Tanous     {SNMPEncryptionProtocols::None, "None"},
700ec8b83dSEd Tanous     {SNMPEncryptionProtocols::CBC_DES, "CBC_DES"},
710ec8b83dSEd Tanous     {SNMPEncryptionProtocols::CFB128_AES128, "CFB128_AES128"},
722ae81db9SGunnar Mills     {SNMPEncryptionProtocols::CFB128_AES192, "CFB128_AES192"},
732ae81db9SGunnar Mills     {SNMPEncryptionProtocols::CFB128_AES256, "CFB128_AES256"},
740ec8b83dSEd Tanous });
750ec8b83dSEd Tanous 
760ec8b83dSEd Tanous }
770ec8b83dSEd Tanous // clang-format on
78