/*
 * Tapis Workflows API
 *
 * Create and manage pipelines
 *
 * The version of the OpenAPI document: 1.6.0
 * 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 EnumTaskFlavor {
    #[serde(rename = "c1tiny")]
    #[default]
    C1tiny,
    #[serde(rename = "c1sml")]
    C1sml,
    #[serde(rename = "c1med")]
    C1med,
    #[serde(rename = "c1lrg")]
    C1lrg,
    #[serde(rename = "c1xlrg")]
    C1xlrg,
    #[serde(rename = "c1xxlrg")]
    C1xxlrg,
    #[serde(rename = "g1nvdsml")]
    G1nvdsml,
    #[serde(rename = "g1nvdmed")]
    G1nvdmed,
    #[serde(rename = "g1nvdlrg")]
    G1nvdlrg,
}

impl std::fmt::Display for EnumTaskFlavor {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::C1tiny => write!(f, "c1tiny"),
            Self::C1sml => write!(f, "c1sml"),
            Self::C1med => write!(f, "c1med"),
            Self::C1lrg => write!(f, "c1lrg"),
            Self::C1xlrg => write!(f, "c1xlrg"),
            Self::C1xxlrg => write!(f, "c1xxlrg"),
            Self::G1nvdsml => write!(f, "g1nvdsml"),
            Self::G1nvdmed => write!(f, "g1nvdmed"),
            Self::G1nvdlrg => write!(f, "g1nvdlrg"),
        }
    }
}
