/*
 * 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 HealthCheckTypeEnum {
    #[serde(rename = "ping")]
    Ping,
    #[serde(rename = "tcp")]
    Tcp,
    #[serde(rename = "dns")]
    Dns,
    #[serde(rename = "http")]
    Http,
    #[serde(rename = "https")]
    Https,
    #[serde(rename = "custom")]
    Custom,
}

impl ToString for HealthCheckTypeEnum {
    fn to_string(&self) -> String {
        match self {
            Self::Ping => String::from("ping"),
            Self::Tcp => String::from("tcp"),
            Self::Dns => String::from("dns"),
            Self::Http => String::from("http"),
            Self::Https => String::from("https"),
            Self::Custom => String::from("custom"),
        }
    }
}

impl Default for HealthCheckTypeEnum {
    fn default() -> HealthCheckTypeEnum {
        Self::Ping
    }
}
