windmill-api 1.780.0

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.780.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateAppRawSourceRequest {
    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<String>,
    #[serde(rename = "value")]
    pub value: Box<models::UpdateAppRawSourceRequestValue>,
    #[serde(rename = "policy", skip_serializing_if = "Option::is_none")]
    pub policy: Option<Box<models::Policy>>,
    #[serde(rename = "deployment_message", skip_serializing_if = "Option::is_none")]
    pub deployment_message: Option<String>,
    #[serde(rename = "custom_path", skip_serializing_if = "Option::is_none")]
    pub custom_path: Option<String>,
    /// When true and the caller is a member of the 'wm_deployers' group, preserves the original on_behalf_of value in the policy instead of overwriting it.
    #[serde(rename = "preserve_on_behalf_of", skip_serializing_if = "Option::is_none")]
    pub preserve_on_behalf_of: Option<bool>,
    #[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
    pub labels: Option<Vec<String>>,
    /// When true (set by the CLI / git sync), deploying this app does not delete an existing user draft at the same path.
    #[serde(rename = "skip_draft_deletion", skip_serializing_if = "Option::is_none")]
    pub skip_draft_deletion: Option<bool>,
    /// When true, this deploy may switch the app between low-code and raw. Without it, deploying a value to an app of the other kind is refused so an app is never converted by accident.
    #[serde(rename = "allow_kind_change", skip_serializing_if = "Option::is_none")]
    pub allow_kind_change: Option<bool>,
}

impl UpdateAppRawSourceRequest {
    pub fn new(value: models::UpdateAppRawSourceRequestValue) -> UpdateAppRawSourceRequest {
        UpdateAppRawSourceRequest {
            path: None,
            summary: None,
            value: Box::new(value),
            policy: None,
            deployment_message: None,
            custom_path: None,
            preserve_on_behalf_of: None,
            labels: None,
            skip_draft_deletion: None,
            allow_kind_change: None,
        }
    }
}