/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AuthenticationMethod {
    #[serde(rename = "none")]
    None,
    #[serde(rename = "orvanta")]
    Orvanta,
    #[serde(rename = "api_key")]
    ApiKey,
    #[serde(rename = "basic_http")]
    BasicHttp,
    #[serde(rename = "custom_script")]
    CustomScript,
    #[serde(rename = "signature")]
    Signature,

}

impl std::fmt::Display for AuthenticationMethod {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::None => write!(f, "none"),
            Self::Orvanta => write!(f, "orvanta"),
            Self::ApiKey => write!(f, "api_key"),
            Self::BasicHttp => write!(f, "basic_http"),
            Self::CustomScript => write!(f, "custom_script"),
            Self::Signature => write!(f, "signature"),
        }
    }
}

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

