/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.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 ConnectClientCredentialsRequest {
    #[serde(rename = "scopes", skip_serializing_if = "Option::is_none")]
    pub scopes: Option<Vec<String>>,
    /// OAuth client ID for resource-level authentication
    #[serde(rename = "cc_client_id")]
    pub cc_client_id: String,
    /// OAuth client secret for resource-level authentication
    #[serde(rename = "cc_client_secret")]
    pub cc_client_secret: String,
    /// OAuth token URL override for resource-level authentication
    #[serde(rename = "cc_token_url", skip_serializing_if = "Option::is_none")]
    pub cc_token_url: Option<String>,
}

impl ConnectClientCredentialsRequest {
    pub fn new(cc_client_id: String, cc_client_secret: String) -> ConnectClientCredentialsRequest {
        ConnectClientCredentialsRequest {
            scopes: None,
            cc_client_id,
            cc_client_secret,
            cc_token_url: None,
        }
    }
}

