windmill-api 1.848.2

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.848.2
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

/// TestAutoscalingRequestIntegration : The integration to run, as in the worker group's autoscaling config
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TestAutoscalingRequestIntegration {
    #[serde(rename = "type")]
    pub r#type: Type,
    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
    pub tag: Option<String>,
}

impl TestAutoscalingRequestIntegration {
    /// The integration to run, as in the worker group's autoscaling config
    pub fn new(r#type: Type) -> TestAutoscalingRequestIntegration {
        TestAutoscalingRequestIntegration {
            r#type,
            path: None,
            tag: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "script")]
    Script,
    #[serde(rename = "kubernetes")]
    Kubernetes,
    #[serde(rename = "dryrun")]
    Dryrun,
}

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