/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetSettings200Response {
    #[serde(rename = "workspace_id", skip_serializing_if = "Option::is_none")]
    pub workspace_id: Option<String>,
    #[serde(rename = "slack_name", skip_serializing_if = "Option::is_none")]
    pub slack_name: Option<String>,
    #[serde(rename = "slack_team_id", skip_serializing_if = "Option::is_none")]
    pub slack_team_id: Option<String>,
    #[serde(rename = "slack_command_script", skip_serializing_if = "Option::is_none")]
    pub slack_command_script: Option<String>,
    #[serde(rename = "slack_oauth_client_id", skip_serializing_if = "Option::is_none")]
    pub slack_oauth_client_id: Option<String>,
    #[serde(rename = "slack_oauth_client_secret", skip_serializing_if = "Option::is_none")]
    pub slack_oauth_client_secret: Option<String>,
    #[serde(rename = "teams_team_id", skip_serializing_if = "Option::is_none")]
    pub teams_team_id: Option<String>,
    #[serde(rename = "teams_command_script", skip_serializing_if = "Option::is_none")]
    pub teams_command_script: Option<String>,
    #[serde(rename = "teams_team_name", skip_serializing_if = "Option::is_none")]
    pub teams_team_name: Option<String>,
    #[serde(rename = "teams_team_guid", skip_serializing_if = "Option::is_none")]
    pub teams_team_guid: Option<String>,
    #[serde(rename = "auto_invite", skip_serializing_if = "Option::is_none")]
    pub auto_invite: Option<Box<models::AutoInviteConfig>>,
    #[serde(rename = "plan", skip_serializing_if = "Option::is_none")]
    pub plan: Option<String>,
    #[serde(rename = "customer_id", skip_serializing_if = "Option::is_none")]
    pub customer_id: Option<String>,
    #[serde(rename = "webhook", skip_serializing_if = "Option::is_none")]
    pub webhook: Option<String>,
    #[serde(rename = "deploy_to", skip_serializing_if = "Option::is_none")]
    pub deploy_to: Option<String>,
    #[serde(rename = "ai_config", skip_serializing_if = "Option::is_none")]
    pub ai_config: Option<Box<models::AiConfig>>,
    #[serde(rename = "error_handler", skip_serializing_if = "Option::is_none")]
    pub error_handler: Option<Box<models::ErrorHandlerConfig>>,
    #[serde(rename = "success_handler", skip_serializing_if = "Option::is_none")]
    pub success_handler: Option<Box<models::SuccessHandlerConfig>>,
    #[serde(rename = "large_file_storage", skip_serializing_if = "Option::is_none")]
    pub large_file_storage: Option<Box<models::LargeFileStorage>>,
    #[serde(rename = "ducklake", skip_serializing_if = "Option::is_none")]
    pub ducklake: Option<Box<models::DucklakeSettings>>,
    #[serde(rename = "datatable", skip_serializing_if = "Option::is_none")]
    pub datatable: Option<Box<models::DataTableSettings>>,
    #[serde(rename = "git_sync", skip_serializing_if = "Option::is_none")]
    pub git_sync: Option<Box<models::WorkspaceGitSyncSettings>>,
    #[serde(rename = "deploy_ui", skip_serializing_if = "Option::is_none")]
    pub deploy_ui: Option<Box<models::WorkspaceDeployUiSettings>>,
    #[serde(rename = "default_app", skip_serializing_if = "Option::is_none")]
    pub default_app: Option<String>,
    #[serde(rename = "default_scripts", skip_serializing_if = "Option::is_none")]
    pub default_scripts: Option<Box<models::WorkspaceDefaultScripts>>,
    #[serde(rename = "mute_critical_alerts", skip_serializing_if = "Option::is_none")]
    pub mute_critical_alerts: Option<bool>,
    #[serde(rename = "color", skip_serializing_if = "Option::is_none")]
    pub color: Option<String>,
    #[serde(rename = "operator_settings", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub operator_settings: Option<Option<Box<models::OperatorSettings>>>,
    /// Rate limit for public app executions per minute per server. NULL or 0 means disabled.
    #[serde(rename = "public_app_execution_limit_per_minute", skip_serializing_if = "Option::is_none")]
    pub public_app_execution_limit_per_minute: Option<i32>,
}

impl GetSettings200Response {
    pub fn new() -> GetSettings200Response {
        GetSettings200Response {
            workspace_id: None,
            slack_name: None,
            slack_team_id: None,
            slack_command_script: None,
            slack_oauth_client_id: None,
            slack_oauth_client_secret: None,
            teams_team_id: None,
            teams_command_script: None,
            teams_team_name: None,
            teams_team_guid: None,
            auto_invite: None,
            plan: None,
            customer_id: None,
            webhook: None,
            deploy_to: None,
            ai_config: None,
            error_handler: None,
            success_handler: None,
            large_file_storage: None,
            ducklake: None,
            datatable: None,
            git_sync: None,
            deploy_ui: None,
            default_app: None,
            default_scripts: None,
            mute_critical_alerts: None,
            color: None,
            operator_settings: None,
            public_app_execution_limit_per_minute: None,
        }
    }
}

