/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * 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 ListOAuthLogins200Response {
    #[serde(rename = "oauth")]
    pub oauth: Vec<models::ListOAuthLogins200ResponseOauthInner>,
    #[serde(rename = "saml", skip_serializing_if = "Option::is_none")]
    pub saml: Option<String>,
    /// provider type to auto-redirect to on login (oauth key or \"saml\")
    #[serde(rename = "auto_login", skip_serializing_if = "Option::is_none")]
    pub auto_login: Option<String>,
}

impl ListOAuthLogins200Response {
    pub fn new(oauth: Vec<models::ListOAuthLogins200ResponseOauthInner>) -> ListOAuthLogins200Response {
        ListOAuthLogins200Response {
            oauth,
            saml: None,
            auto_login: None,
        }
    }
}

