Skip to main content

windmill_api/models/
workspace_integrations.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.638.2
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 WorkspaceIntegrations {
16    #[serde(rename = "service_name")]
17    pub service_name: models::NativeServiceName,
18    #[serde(rename = "oauth_data", skip_serializing_if = "Option::is_none")]
19    pub oauth_data: Option<Box<models::WorkspaceOAuthConfig>>,
20    /// Path to the resource storing the OAuth token
21    #[serde(rename = "resource_path", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
22    pub resource_path: Option<Option<String>>,
23}
24
25impl WorkspaceIntegrations {
26    pub fn new(service_name: models::NativeServiceName) -> WorkspaceIntegrations {
27        WorkspaceIntegrations {
28            service_name,
29            oauth_data: None,
30            resource_path: None,
31        }
32    }
33}
34