/*
 * 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 EtlEnumManifestGenerationPolicy {
    #[serde(rename = "manual")]
    #[default]
    Manual,
    #[serde(rename = "auto_one_per_file")]
    AutoOnePerFile,
    #[serde(rename = "auto_one_for_all")]
    AutoOneForAll,
}

impl std::fmt::Display for EtlEnumManifestGenerationPolicy {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Manual => write!(f, "manual"),
            Self::AutoOnePerFile => write!(f, "auto_one_per_file"),
            Self::AutoOneForAll => write!(f, "auto_one_for_all"),
        }
    }
}
