/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum EncryptionAlgorithmEnum {
    #[serde(rename = "AES-128-CBC")]
    Aes128Cbc,
    #[serde(rename = "AES-128-GCM")]
    Aes128Gcm,
    #[serde(rename = "AES-192-CBC")]
    Aes192Cbc,
    #[serde(rename = "AES-192-GCM")]
    Aes192Gcm,
    #[serde(rename = "AES-256-CBC")]
    Aes256Cbc,
    #[serde(rename = "AES-256-GCM")]
    Aes256Gcm,
    #[serde(rename = "DES")]
    Des,
    #[serde(rename = "3DES")]
    Variant3Des,
}

impl ToString for EncryptionAlgorithmEnum {
    fn to_string(&self) -> String {
        match self {
            Self::Aes128Cbc => String::from("AES-128-CBC"),
            Self::Aes128Gcm => String::from("AES-128-GCM"),
            Self::Aes192Cbc => String::from("AES-192-CBC"),
            Self::Aes192Gcm => String::from("AES-192-GCM"),
            Self::Aes256Cbc => String::from("AES-256-CBC"),
            Self::Aes256Gcm => String::from("AES-256-GCM"),
            Self::Des => String::from("DES"),
            Self::Variant3Des => String::from("3DES"),
        }
    }
}

impl Default for EncryptionAlgorithmEnum {
    fn default() -> EncryptionAlgorithmEnum {
        Self::Aes128Cbc
    }
}
