1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Generated by redfish-codegen. Do not modify.
// Author: Ethan D. Twardy <ethan.twardy@gmail.com>
//
// Copyright 2023, Ethan Twardy. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the \"License\");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an \"AS IS\" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum SNMPAuthenticationProtocols {
    /// This value shall indicate authentication is not required.
    None,
    /// This value shall indicate authentication using SNMP community strings and the value of TrapCommunity.
    CommunityString,
    /// This value shall indicate authentication conforms to the RFC3414-defined HMAC-MD5-96 authentication protocol.
    #[serde(rename = "HMAC_MD5")]
    HMACMD5,
    /// This value shall indicate authentication conforms to the RFC3414-defined HMAC-SHA-96 authentication protocol.
    #[serde(rename = "HMAC_SHA96")]
    HMACSHA96,
    /// This value shall indicate authentication for SNMPv3 access conforms to the RFC7860-defined usmHMAC128SHA224AuthProtocol.
    #[serde(rename = "HMAC128_SHA224")]
    HMAC128SHA224,
    /// This value shall indicate authentication for SNMPv3 access conforms to the RFC7860-defined usmHMAC192SHA256AuthProtocol.
    #[serde(rename = "HMAC192_SHA256")]
    HMAC192SHA256,
    /// This value shall indicate authentication for SNMPv3 access conforms to the RFC7860-defined usmHMAC256SHA384AuthProtocol.
    #[serde(rename = "HMAC256_SHA384")]
    HMAC256SHA384,
    /// This value shall indicate authentication for SNMPv3 access conforms to the RFC7860-defined usmHMAC384SHA512AuthProtocol.
    #[serde(rename = "HMAC384_SHA512")]
    HMAC384SHA512,
}

impl Default for SNMPAuthenticationProtocols {
     fn default() -> SNMPAuthenticationProtocols {
        SNMPAuthenticationProtocols::None
     }
}