/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.834.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 ApplyWorkspaceSettingsDocumentRequest {
/// The settings to apply, in the layout of the document. A secret given as `__SENSITIVE_AND_UNCHANGED__` keeps its stored value; one prefixed with `$encrypted:` is decrypted with the workspace key.
#[serde(rename = "document")]
pub document: std::collections::HashMap<String, serde_json::Value>,
/// Clear the settings `wmill sync push` clears when settings.yaml omits them. Otherwise a setting the document omits is left as it is.
#[serde(rename = "replace", skip_serializing_if = "Option::is_none")]
pub replace: Option<bool>,
/// Only compute the changes, without applying them.
#[serde(rename = "dry_run", skip_serializing_if = "Option::is_none")]
pub dry_run: Option<bool>,
}
impl ApplyWorkspaceSettingsDocumentRequest {
pub fn new(document: std::collections::HashMap<String, serde_json::Value>) -> ApplyWorkspaceSettingsDocumentRequest {
ApplyWorkspaceSettingsDocumentRequest {
document,
replace: None,
dry_run: None,
}
}
}