orvanta-api 6.5.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 6.5.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateMcpOAuthStartRequest {
    /// URL of the MCP server to connect to
    #[serde(rename = "mcp_server_url")]
    pub mcp_server_url: String,
    /// Workspace the resulting connection will belong to
    #[serde(rename = "workspace_id")]
    pub workspace_id: String,
    /// Comma/whitespace-separated list of OAuth scopes to request
    #[serde(rename = "scopes", skip_serializing_if = "Option::is_none")]
    pub scopes: Option<String>,
}

impl CreateMcpOAuthStartRequest {
    pub fn new(mcp_server_url: String, workspace_id: String) -> CreateMcpOAuthStartRequest {
        CreateMcpOAuthStartRequest {
            mcp_server_url,
            workspace_id,
            scopes: None,
        }
    }
}