/*
 * 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};

/// SystemTypeEnum : Type of system
/// Type of system
#[derive(
    Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, Default,
)]
pub enum SystemTypeEnum {
    #[serde(rename = "LINUX")]
    #[default]
    Linux,
    #[serde(rename = "S3")]
    S3,
    #[serde(rename = "IRODS")]
    Irods,
    #[serde(rename = "GLOBUS")]
    Globus,
}

impl std::fmt::Display for SystemTypeEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Linux => write!(f, "LINUX"),
            Self::S3 => write!(f, "S3"),
            Self::Irods => write!(f, "IRODS"),
            Self::Globus => write!(f, "GLOBUS"),
        }
    }
}
