orvanta-api 1.7.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.7.0
 * 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 SamlConfig {
    #[serde(rename = "configured")]
    pub configured: bool,
    #[serde(rename = "enabled")]
    pub enabled: bool,
    #[serde(rename = "idp_entity_id", skip_serializing_if = "Option::is_none")]
    pub idp_entity_id: Option<String>,
    #[serde(rename = "single_sign_on_service_url", skip_serializing_if = "Option::is_none")]
    pub single_sign_on_service_url: Option<String>,
    #[serde(rename = "name_id_format")]
    pub name_id_format: String,
    #[serde(rename = "sp_entity_id")]
    pub sp_entity_id: String,
    #[serde(rename = "acs_url")]
    pub acs_url: String,
}

impl SamlConfig {
    pub fn new(configured: bool, enabled: bool, name_id_format: String, sp_entity_id: String, acs_url: String) -> SamlConfig {
        SamlConfig {
            configured,
            enabled,
            idp_entity_id: None,
            single_sign_on_service_url: None,
            name_id_format,
            sp_entity_id,
            acs_url,
        }
    }
}