/*
 * 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 GetGitSyncEnabled200Response {
    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    #[serde(rename = "reason", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub reason: Option<Option<String>>,
    #[serde(rename = "max_repos", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub max_repos: Option<Option<i32>>,
    #[serde(rename = "user_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub user_count: Option<Option<i32>>,
    #[serde(rename = "max_users", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub max_users: Option<Option<i32>>,
}

impl GetGitSyncEnabled200Response {
    pub fn new() -> GetGitSyncEnabled200Response {
        GetGitSyncEnabled200Response {
            enabled: None,
            reason: None,
            max_repos: None,
            user_count: None,
            max_users: None,
        }
    }
}

