/*
 * 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 GetPublicSettings200Response {
    #[serde(rename = "workspace_id")]
    pub workspace_id: 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 = "teams_team_id", skip_serializing_if = "Option::is_none")]
    pub teams_team_id: 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 = "large_file_storage", skip_serializing_if = "Option::is_none")]
    pub large_file_storage: Option<Box<models::LargeFileStorage>>,
    #[serde(rename = "datatable", skip_serializing_if = "Option::is_none")]
    pub datatable: Option<Box<models::DataTableSettings>>,
    #[serde(rename = "deploy_ui", skip_serializing_if = "Option::is_none")]
    pub deploy_ui: Option<Box<models::WorkspaceDeployUiSettings>>,
    #[serde(rename = "mute_critical_alerts", skip_serializing_if = "Option::is_none")]
    pub mute_critical_alerts: Option<bool>,
}

impl GetPublicSettings200Response {
    pub fn new(workspace_id: String) -> GetPublicSettings200Response {
        GetPublicSettings200Response {
            workspace_id,
            slack_name: None,
            slack_team_id: None,
            teams_team_id: None,
            teams_team_name: None,
            teams_team_guid: None,
            large_file_storage: None,
            datatable: None,
            deploy_ui: None,
            mute_critical_alerts: None,
        }
    }
}

