/*
 * 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, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListSelectedJobGroups200ResponseInner {
    #[serde(rename = "kind")]
    pub kind: Kind,
    #[serde(rename = "script_path")]
    pub script_path: String,
    #[serde(rename = "latest_schema")]
    pub latest_schema: serde_json::Value,
    #[serde(rename = "schemas")]
    pub schemas: Vec<models::ListSelectedJobGroups200ResponseInnerSchemasInner>,
}

impl ListSelectedJobGroups200ResponseInner {
    pub fn new(kind: Kind, script_path: String, latest_schema: serde_json::Value, schemas: Vec<models::ListSelectedJobGroups200ResponseInnerSchemasInner>) -> ListSelectedJobGroups200ResponseInner {
        ListSelectedJobGroups200ResponseInner {
            kind,
            script_path,
            latest_schema,
            schemas,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Kind {
    #[serde(rename = "script")]
    Script,
    #[serde(rename = "flow")]
    Flow,
}

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

