1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.738.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>,
/// Bring-your-own token endpoint override. Only honored together with cc_client_id/cc_client_secret and mutually exclusive with cc_instance; rejected on the shared-instance path.
#[serde(rename = "cc_token_url", skip_serializing_if = "Option::is_none")]
pub cc_token_url: Option<String>,
}
impl ConnectClientCredentialsRequest {
pub fn new() -> ConnectClientCredentialsRequest {
ConnectClientCredentialsRequest {
scopes: None,
cc_client_id: None,
cc_client_secret: None,
cc_instance: None,
cc_token_url: None,
}
}
}