/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum GitSyncObjectType {
    #[serde(rename = "script")]
    Script,
    #[serde(rename = "flow")]
    Flow,
    #[serde(rename = "app")]
    App,
    #[serde(rename = "folder")]
    Folder,
    #[serde(rename = "resource")]
    Resource,
    #[serde(rename = "variable")]
    Variable,
    #[serde(rename = "secret")]
    Secret,
    #[serde(rename = "resourcetype")]
    Resourcetype,
    #[serde(rename = "schedule")]
    Schedule,
    #[serde(rename = "user")]
    User,
    #[serde(rename = "group")]
    Group,
    #[serde(rename = "trigger")]
    Trigger,
    #[serde(rename = "settings")]
    Settings,
    #[serde(rename = "key")]
    Key,
    #[serde(rename = "workspacedependencies")]
    Workspacedependencies,

}

impl std::fmt::Display for GitSyncObjectType {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Script => write!(f, "script"),
            Self::Flow => write!(f, "flow"),
            Self::App => write!(f, "app"),
            Self::Folder => write!(f, "folder"),
            Self::Resource => write!(f, "resource"),
            Self::Variable => write!(f, "variable"),
            Self::Secret => write!(f, "secret"),
            Self::Resourcetype => write!(f, "resourcetype"),
            Self::Schedule => write!(f, "schedule"),
            Self::User => write!(f, "user"),
            Self::Group => write!(f, "group"),
            Self::Trigger => write!(f, "trigger"),
            Self::Settings => write!(f, "settings"),
            Self::Key => write!(f, "key"),
            Self::Workspacedependencies => write!(f, "workspacedependencies"),
        }
    }
}

impl Default for GitSyncObjectType {
    fn default() -> GitSyncObjectType {
        Self::Script
    }
}

