/*
 * VRChat API Documentation
 *
 *
 * Contact: me@ruby.js.org
 * Generated by: https://openapi-generator.tech
 */

/// DeploymentGroup : Used to identify which API deployment cluster is currently responding.  `blue` and `green` are used by Production. `grape`and `cherry` are used during Development.  [Blue Green Deployment by Martin Fowler](https://martinfowler.com/bliki/BlueGreenDeployment.html)

/// Used to identify which API deployment cluster is currently responding.  `blue` and `green` are used by Production. `grape`and `cherry` are used during Development.  [Blue Green Deployment by Martin Fowler](https://martinfowler.com/bliki/BlueGreenDeployment.html)
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum DeploymentGroup {
    #[serde(rename = "blue")]
    Blue,
    #[serde(rename = "green")]
    Green,
    #[serde(rename = "grape")]
    Grape,
    #[serde(rename = "cherry")]
    Cherry,

}

impl ToString for DeploymentGroup {
    fn to_string(&self) -> String {
        match self {
            Self::Blue => String::from("blue"),
            Self::Green => String::from("green"),
            Self::Grape => String::from("grape"),
            Self::Cherry => String::from("cherry"),
        }
    }
}

impl Default for DeploymentGroup {
    fn default() -> DeploymentGroup {
        Self::Blue
    }
}




