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

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

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
pub enum Job {
    #[serde(rename="Job_oneOf")]
    JobOneOf(Box<models::JobOneOf>),
    #[serde(rename="Job_oneOf_1")]
    JobOneOf1(Box<models::JobOneOf1>),
}

impl Default for Job {
    fn default() -> Self {
        Self::JobOneOf(Default::default())
    }
}

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum JobKind {
    #[serde(rename = "script")]
    Script,
    #[serde(rename = "preview")]
    Preview,
    #[serde(rename = "dependencies")]
    Dependencies,
    #[serde(rename = "flowdependencies")]
    Flowdependencies,
    #[serde(rename = "appdependencies")]
    Appdependencies,
    #[serde(rename = "flow")]
    Flow,
    #[serde(rename = "flowpreview")]
    Flowpreview,
    #[serde(rename = "script_hub")]
    ScriptHub,
    #[serde(rename = "identity")]
    Identity,
    #[serde(rename = "deploymentcallback")]
    Deploymentcallback,
    #[serde(rename = "singlestepflow")]
    Singlestepflow,
    #[serde(rename = "flowscript")]
    Flowscript,
    #[serde(rename = "flownode")]
    Flownode,
    #[serde(rename = "appscript")]
    Appscript,
    #[serde(rename = "aiagent")]
    Aiagent,
    #[serde(rename = "unassigned_script")]
    UnassignedScript,
    #[serde(rename = "unassigned_flow")]
    UnassignedFlow,
    #[serde(rename = "unassigned_singlestepflow")]
    UnassignedSinglestepflow,
}

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

