Skip to main content

windmill_api/models/
list_gitlab_projects_request.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.817.0
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 ListGitlabProjectsRequest {
16    /// The GitLab instance, e.g. https://gitlab.com
17    #[serde(rename = "base_url")]
18    pub base_url: String,
19    /// A project access token with the api scope, or a group token that reaches the project
20    #[serde(rename = "token")]
21    pub token: String,
22    /// Narrow the list to projects matching this text
23    #[serde(rename = "search", skip_serializing_if = "Option::is_none")]
24    pub search: Option<String>,
25}
26
27impl ListGitlabProjectsRequest {
28    pub fn new(base_url: String, token: String) -> ListGitlabProjectsRequest {
29        ListGitlabProjectsRequest {
30            base_url,
31            token,
32            search: None,
33        }
34    }
35}
36