windmill-api 1.778.0

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.778.0
 * 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 MintPreviewSdkTokenRequest {
    /// App being edited; may not be deployed yet.
    #[serde(rename = "path")]
    pub path: String,
    /// Scopes from the policy being edited. Capped by the curated allowlist and by the caller's own scopes, and minted as the caller, so it grants nothing they could not mint themselves. 
    #[serde(rename = "scopes")]
    pub scopes: Vec<String>,
}

impl MintPreviewSdkTokenRequest {
    pub fn new(path: String, scopes: Vec<String>) -> MintPreviewSdkTokenRequest {
        MintPreviewSdkTokenRequest {
            path,
            scopes,
        }
    }
}