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

/// AzureServiceAccountKeyInfo : The Azure service account information and details required to access the Azure HSM for cryptographic operations. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AzureServiceAccountKeyInfo {
    /// The Azure service account directory ID.
    #[serde(rename = "tenantID")]
    pub tenant_id: String,
    /// The name of the key in Azure HSM.
    #[serde(rename = "keyURL")]
    pub key_url: String,
    /// The access key ID's secret access key.
    #[serde(rename = "clientID")]
    pub client_id: String,
    /// The access key ID's secret access key.
    #[serde(rename = "clientSecret")]
    pub client_secret: String,
    #[serde(rename = "providerName", skip_serializing_if = "Option::is_none")]
    pub provider_name: Option<ProviderName>,
}

impl AzureServiceAccountKeyInfo {
    /// The Azure service account information and details required to access the Azure HSM for cryptographic operations. 
    pub fn new(tenant_id: String, key_url: String, client_id: String, client_secret: String) -> AzureServiceAccountKeyInfo {
        AzureServiceAccountKeyInfo {
            tenant_id,
            key_url,
            client_id,
            client_secret,
            provider_name: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ProviderName {
    #[serde(rename = "azure_sa")]
    AzureSa,
}

impl Default for ProviderName {
    fn default() -> ProviderName {
        Self::AzureSa
    }
}