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};

/// WorkspaceEntitlementsSeatsUsed : seats in use per class. Instance mode: the instance-wide counts every workspace shares (as `/users/seats`). Null in managed mode until per-workspace seat counting lands (#1752), and null for a caller who is not a workspace admin.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WorkspaceEntitlementsSeatsUsed {
    #[serde(rename = "developers")]
    pub developers: i32,
    #[serde(rename = "operators")]
    pub operators: i32,
    #[serde(rename = "community")]
    pub community: i32,
}

impl WorkspaceEntitlementsSeatsUsed {
    /// seats in use per class. Instance mode: the instance-wide counts every workspace shares (as `/users/seats`). Null in managed mode until per-workspace seat counting lands (#1752), and null for a caller who is not a workspace admin.
    pub fn new(developers: i32, operators: i32, community: i32) -> WorkspaceEntitlementsSeatsUsed {
        WorkspaceEntitlementsSeatsUsed {
            developers,
            operators,
            community,
        }
    }
}