orvanta-api 6.5.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 6.5.0
 * 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>,
    /// `\"entitled\"` or `\"requires_upgrade\"`. `max_repos`/ `user_count`/`max_users` (a Teams-stub-era per-workspace member-count limit) were removed in the 2026-09-28 instance-caps follow-up (#1717) — capability gating is now purely `enabled`/`reason`, and nothing populated them with a real value even before this.
    #[serde(rename = "reason", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub reason: Option<Option<String>>,
}

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