Skip to main content

windmill_api/models/
workspace_o_auth_config.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.616.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 WorkspaceOAuthConfig {
16    /// The OAuth client ID for the workspace
17    #[serde(rename = "client_id")]
18    pub client_id: String,
19    /// The OAuth client secret for the workspace
20    #[serde(rename = "client_secret")]
21    pub client_secret: String,
22    /// The base URL of the workspace
23    #[serde(rename = "base_url")]
24    pub base_url: String,
25    /// The OAuth redirect URI
26    #[serde(rename = "redirect_uri")]
27    pub redirect_uri: String,
28}
29
30impl WorkspaceOAuthConfig {
31    pub fn new(client_id: String, client_secret: String, base_url: String, redirect_uri: String) -> WorkspaceOAuthConfig {
32        WorkspaceOAuthConfig {
33            client_id,
34            client_secret,
35            base_url,
36            redirect_uri,
37        }
38    }
39}
40