Skip to main content

windmill_api/models/
test_autoscaling_request_integration.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.848.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// TestAutoscalingRequestIntegration : The integration to run, as in the worker group's autoscaling config
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TestAutoscalingRequestIntegration {
17    #[serde(rename = "type")]
18    pub r#type: Type,
19    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
20    pub path: Option<String>,
21    #[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
22    pub tag: Option<String>,
23}
24
25impl TestAutoscalingRequestIntegration {
26    /// The integration to run, as in the worker group's autoscaling config
27    pub fn new(r#type: Type) -> TestAutoscalingRequestIntegration {
28        TestAutoscalingRequestIntegration {
29            r#type,
30            path: None,
31            tag: None,
32        }
33    }
34}
35/// 
36#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
37pub enum Type {
38    #[serde(rename = "script")]
39    Script,
40    #[serde(rename = "kubernetes")]
41    Kubernetes,
42    #[serde(rename = "dryrun")]
43    Dryrun,
44}
45
46impl Default for Type {
47    fn default() -> Type {
48        Self::Script
49    }
50}
51