/*
 * Artifact Keeper API
 *
 * REST API for Artifact Keeper, an open-source universal artifact registry. Covers user management, repositories, artifacts, search, security scanning, SBOM, dependency tracking, SSO, analytics, monitoring, telemetry, lifecycle policies, plugins, edge nodes, migration, and administration. Format-specific protocol endpoints (npm, PyPI, Maven, Docker/OCI, etc.) are not included; those follow their respective upstream specifications.
 *
 * The version of the OpenAPI document: 1.0.0-a2
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SsoProviderInfo {
    /// SSO provider configuration UUID
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    /// Display name of the SSO provider
    #[serde(rename = "name")]
    pub name: String,
    /// Provider type (oidc, ldap, saml)
    #[serde(rename = "provider_type")]
    pub provider_type: String,
    /// URL to initiate the SSO login flow
    #[serde(rename = "login_url")]
    pub login_url: String,
}

impl SsoProviderInfo {
    pub fn new(id: uuid::Uuid, name: String, provider_type: String, login_url: String) -> SsoProviderInfo {
        SsoProviderInfo {
            id,
            name,
            provider_type,
            login_url,
        }
    }
}

