1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* 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};
/// AntimatterDelegatedAzureKeyInfo : The details required to use an Azure HSM root encryption key that has been delegated to Antimatter's Azure account. This will use Antimatter's service account during set up of the Azure client.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AntimatterDelegatedAzureKeyInfo {
/// The directory ID in containing the managed HSM.
#[serde(rename = "tenantID")]
pub tenant_id: String,
/// The full URL for the key
#[serde(rename = "keyURL")]
pub key_url: String,
#[serde(rename = "providerName", skip_serializing_if = "Option::is_none")]
pub provider_name: Option<ProviderName>,
}
impl AntimatterDelegatedAzureKeyInfo {
/// The details required to use an Azure HSM root encryption key that has been delegated to Antimatter's Azure account. This will use Antimatter's service account during set up of the Azure client.
pub fn new(tenant_id: String, key_url: String) -> AntimatterDelegatedAzureKeyInfo {
AntimatterDelegatedAzureKeyInfo {
tenant_id,
key_url,
provider_name: None,
}
}
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ProviderName {
#[serde(rename = "azure_am")]
AzureAm,
}
impl Default for ProviderName {
fn default() -> ProviderName {
Self::AzureAm
}
}