windmill-api 1.683.2

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.683.2
 * 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 WorkspaceIntegrations {
    #[serde(rename = "service_name")]
    pub service_name: models::NativeServiceName,
    #[serde(rename = "oauth_data", skip_serializing_if = "Option::is_none")]
    pub oauth_data: Option<Box<models::WorkspaceOAuthConfig>>,
    /// Path to the resource storing the OAuth token
    #[serde(rename = "resource_path", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub resource_path: Option<Option<String>>,
}

impl WorkspaceIntegrations {
    pub fn new(service_name: models::NativeServiceName) -> WorkspaceIntegrations {
        WorkspaceIntegrations {
            service_name,
            oauth_data: None,
            resource_path: None,
        }
    }
}