Skip to main content

orvanta_api/models/
saml_config.rs

1/*
2 * Orvanta API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.7.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SamlConfig {
16    #[serde(rename = "configured")]
17    pub configured: bool,
18    #[serde(rename = "enabled")]
19    pub enabled: bool,
20    #[serde(rename = "idp_entity_id", skip_serializing_if = "Option::is_none")]
21    pub idp_entity_id: Option<String>,
22    #[serde(rename = "single_sign_on_service_url", skip_serializing_if = "Option::is_none")]
23    pub single_sign_on_service_url: Option<String>,
24    #[serde(rename = "name_id_format")]
25    pub name_id_format: String,
26    #[serde(rename = "sp_entity_id")]
27    pub sp_entity_id: String,
28    #[serde(rename = "acs_url")]
29    pub acs_url: String,
30}
31
32impl SamlConfig {
33    pub fn new(configured: bool, enabled: bool, name_id_format: String, sp_entity_id: String, acs_url: String) -> SamlConfig {
34        SamlConfig {
35            configured,
36            enabled,
37            idp_entity_id: None,
38            single_sign_on_service_url: None,
39            name_id_format,
40            sp_entity_id,
41            acs_url,
42        }
43    }
44}
45