Skip to main content

windmill_api/models/
get_o_auth_connect_200_response.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.747.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetOAuthConnect200Response {
16    #[serde(rename = "extra_params", skip_serializing_if = "Option::is_none")]
17    pub extra_params: Option<serde_json::Value>,
18    #[serde(rename = "scopes", skip_serializing_if = "Option::is_none")]
19    pub scopes: Option<Vec<String>>,
20    #[serde(rename = "grant_types", skip_serializing_if = "Option::is_none")]
21    pub grant_types: Option<Vec<String>>,
22    /// The instance OAuth entry carries shared client-credentials, so the connect dialog can skip the bring-your-own form and run the exchange server-side
23    #[serde(rename = "client_credentials_configured", skip_serializing_if = "Option::is_none")]
24    pub client_credentials_configured: Option<bool>,
25}
26
27impl GetOAuthConnect200Response {
28    pub fn new() -> GetOAuthConnect200Response {
29        GetOAuthConnect200Response {
30            extra_params: None,
31            scopes: None,
32            grant_types: None,
33            client_credentials_configured: None,
34        }
35    }
36}
37