/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.2.1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateSamlConfigRequest {
    #[serde(rename = "admin_group", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub admin_group: Option<Option<String>>,
    #[serde(rename = "attribute_mapping", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub attribute_mapping: Option<Option<serde_json::Value>>,
    #[serde(rename = "certificate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub certificate: Option<Option<String>>,
    #[serde(rename = "entity_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub entity_id: Option<Option<String>>,
    #[serde(rename = "is_enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub is_enabled: Option<Option<bool>>,
    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub name: Option<Option<String>>,
    #[serde(rename = "name_id_format", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub name_id_format: Option<Option<String>>,
    #[serde(rename = "require_signed_assertions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub require_signed_assertions: Option<Option<bool>>,
    #[serde(rename = "sign_requests", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub sign_requests: Option<Option<bool>>,
    #[serde(rename = "slo_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub slo_url: Option<Option<String>>,
    #[serde(rename = "sp_entity_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub sp_entity_id: Option<Option<String>>,
    #[serde(rename = "sso_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub sso_url: Option<Option<String>>,
}

impl UpdateSamlConfigRequest {
    pub fn new() -> UpdateSamlConfigRequest {
        UpdateSamlConfigRequest {
            admin_group: None,
            attribute_mapping: None,
            certificate: None,
            entity_id: None,
            is_enabled: None,
            name: None,
            name_id_format: None,
            require_signed_assertions: None,
            sign_requests: None,
            slo_url: None,
            sp_entity_id: None,
            sso_url: None,
        }
    }
}

