Skip to main content

orvanta_api/models/
get_git_sync_enabled_200_response.rs

1/*
2 * Orvanta API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 6.5.0
7 * Contact: contact@orvanta.cloud
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 GetGitSyncEnabled200Response {
16    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
17    pub enabled: Option<bool>,
18    /// `\"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.
19    #[serde(rename = "reason", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
20    pub reason: Option<Option<String>>,
21}
22
23impl GetGitSyncEnabled200Response {
24    pub fn new() -> GetGitSyncEnabled200Response {
25        GetGitSyncEnabled200Response {
26            enabled: None,
27            reason: None,
28        }
29    }
30}
31