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

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OidcConfigResponse {
    #[serde(rename = "attribute_mapping")]
    pub attribute_mapping: serde_json::Value,
    #[serde(rename = "auto_create_users")]
    pub auto_create_users: bool,
    #[serde(rename = "client_id")]
    pub client_id: String,
    #[serde(rename = "created_at")]
    pub created_at: String,
    #[serde(rename = "has_secret")]
    pub has_secret: bool,
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    #[serde(rename = "is_enabled")]
    pub is_enabled: bool,
    #[serde(rename = "issuer_url")]
    pub issuer_url: String,
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "scopes")]
    pub scopes: Vec<String>,
    #[serde(rename = "updated_at")]
    pub updated_at: String,
}

impl OidcConfigResponse {
    pub fn new(attribute_mapping: serde_json::Value, auto_create_users: bool, client_id: String, created_at: String, has_secret: bool, id: uuid::Uuid, is_enabled: bool, issuer_url: String, name: String, scopes: Vec<String>, updated_at: String) -> OidcConfigResponse {
        OidcConfigResponse {
            attribute_mapping,
            auto_create_users,
            client_id,
            created_at,
            has_secret,
            id,
            is_enabled,
            issuer_url,
            name,
            scopes,
            updated_at,
        }
    }
}

