/*
 * Tapis Systems API
 *
 * The Tapis Systems API provides for management of Tapis Systems including permissions, credentials and Scheduler Profiles.
 *
 * The version of the OpenAPI document: 26Q1.1
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(
    Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, Default,
)]
pub enum SchedulerTypeEnum {
    #[serde(rename = "SLURM")]
    #[default]
    Slurm,
    #[serde(rename = "CONDOR")]
    Condor,
    #[serde(rename = "PBS")]
    Pbs,
    #[serde(rename = "SGE")]
    Sge,
    #[serde(rename = "UGE")]
    Uge,
    #[serde(rename = "TORQUE")]
    Torque,
}

impl std::fmt::Display for SchedulerTypeEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Slurm => write!(f, "SLURM"),
            Self::Condor => write!(f, "CONDOR"),
            Self::Pbs => write!(f, "PBS"),
            Self::Sge => write!(f, "SGE"),
            Self::Uge => write!(f, "UGE"),
            Self::Torque => write!(f, "TORQUE"),
        }
    }
}
