antimatter_api 2.0.13

Interact with the Antimatter Cloud API
Documentation
/*
 * Antimatter Public API
 *
 * Interact with the Antimatter Cloud API
 *
 * The version of the OpenAPI document: 2.0.13
 * Contact: support@antimatter.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// DomainIdentityTenantIdPrincipalParams : Additional details for a tenant ID principal
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DomainIdentityTenantIdPrincipalParams {
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<Type>,
    #[serde(rename = "tenantID")]
    pub tenant_id: String,
    /// An optional comment for the tenant ID principal
    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
}

impl DomainIdentityTenantIdPrincipalParams {
    /// Additional details for a tenant ID principal
    pub fn new(tenant_id: String) -> DomainIdentityTenantIdPrincipalParams {
        DomainIdentityTenantIdPrincipalParams {
            r#type: None,
            tenant_id,
            comment: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "TenantID")]
    TenantId,
}

impl Default for Type {
    fn default() -> Type {
        Self::TenantId
    }
}