windmill-api 1.807.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.807.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

/// GitlabProject : a GitLab project a token can sync, as the resource form needs it
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GitlabProject {
    /// nested group path plus project name, which is also GitLab's project id
    #[serde(rename = "path_with_namespace")]
    pub path_with_namespace: String,
    #[serde(rename = "http_url_to_repo")]
    pub http_url_to_repo: String,
    #[serde(rename = "default_branch", skip_serializing_if = "Option::is_none")]
    pub default_branch: Option<String>,
}

impl GitlabProject {
    /// a GitLab project a token can sync, as the resource form needs it
    pub fn new(path_with_namespace: String, http_url_to_repo: String) -> GitlabProject {
        GitlabProject {
            path_with_namespace,
            http_url_to_repo,
            default_branch: None,
        }
    }
}