windmill_api/models/get_dev_workspace_isolation_200_response.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.841.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetDevWorkspaceIsolation200Response {
16 /// whether new jobs of dev workspaces and forks are queued on suffixed tags
17 #[serde(rename = "enabled")]
18 pub enabled: bool,
19 /// the suffix of those tags, which worker groups serving dev workspaces listen with
20 #[serde(rename = "suffix")]
21 pub suffix: String,
22 /// whether forks of a workspace that is not a dev workspace, nor under one, run on their parent's workers instead
23 #[serde(rename = "skip_non_dev_forks")]
24 pub skip_non_dev_forks: bool,
25}
26
27impl GetDevWorkspaceIsolation200Response {
28 pub fn new(enabled: bool, suffix: String, skip_non_dev_forks: bool) -> GetDevWorkspaceIsolation200Response {
29 GetDevWorkspaceIsolation200Response {
30 enabled,
31 suffix,
32 skip_non_dev_forks,
33 }
34 }
35}
36