/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * 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 GitRepositorySettings {
    #[serde(rename = "script_path", skip_serializing_if = "Option::is_none")]
    pub script_path: Option<String>,
    #[serde(rename = "git_repo_resource_path")]
    pub git_repo_resource_path: String,
    #[serde(rename = "use_individual_branch", skip_serializing_if = "Option::is_none")]
    pub use_individual_branch: Option<bool>,
    #[serde(rename = "group_by_folder", skip_serializing_if = "Option::is_none")]
    pub group_by_folder: Option<bool>,
    #[serde(rename = "collapsed", skip_serializing_if = "Option::is_none")]
    pub collapsed: Option<bool>,
    #[serde(rename = "settings", skip_serializing_if = "Option::is_none")]
    pub settings: Option<Box<models::GitRepositorySettingsSettings>>,
    #[serde(rename = "exclude_types_override", skip_serializing_if = "Option::is_none")]
    pub exclude_types_override: Option<Vec<models::GitSyncObjectType>>,
}

impl GitRepositorySettings {
    pub fn new(git_repo_resource_path: String) -> GitRepositorySettings {
        GitRepositorySettings {
            script_path: None,
            git_repo_resource_path,
            use_individual_branch: None,
            group_by_folder: None,
            collapsed: None,
            settings: None,
            exclude_types_override: None,
        }
    }
}

