windmill-api 1.817.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.817.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 ListGitlabProjectsRequest {
    /// The GitLab instance, e.g. https://gitlab.com
    #[serde(rename = "base_url")]
    pub base_url: String,
    /// A project access token with the api scope, or a group token that reaches the project
    #[serde(rename = "token")]
    pub token: String,
    /// Narrow the list to projects matching this text
    #[serde(rename = "search", skip_serializing_if = "Option::is_none")]
    pub search: Option<String>,
}

impl ListGitlabProjectsRequest {
    pub fn new(base_url: String, token: String) -> ListGitlabProjectsRequest {
        ListGitlabProjectsRequest {
            base_url,
            token,
            search: None,
        }
    }
}