windmill-api 1.730.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.730.0
 * Contact: contact@windmill.dev
 * 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. Omit to use the credentials configured on the provider's instance OAuth entry.
    #[serde(rename = "cc_client_id", skip_serializing_if = "Option::is_none")]
    pub cc_client_id: Option<String>,
    /// OAuth client secret. Omit to use the credentials configured on the provider's instance OAuth entry.
    #[serde(rename = "cc_client_secret", skip_serializing_if = "Option::is_none")]
    pub cc_client_secret: Option<String>,
    /// Instance name for built-in providers whose client-credentials token URL is instance-templated; substituted into the fixed-host registry template server-side. The token URL is never caller-supplied.
    #[serde(rename = "cc_instance", skip_serializing_if = "Option::is_none")]
    pub cc_instance: Option<String>,
}

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