antimatter_api/models/
key_infos_key_information.rs

1/*
2 * Antimatter Public API
3 *
4 * Interact with the Antimatter Cloud API
5 *
6 * The version of the OpenAPI document: 2.0.13
7 * Contact: support@antimatter.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14use serde_with::serde_as;
15
16#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
17#[serde(tag = "providerName")]
18pub enum KeyInfosKeyInformation {
19    #[serde(rename="gcp_sa")]
20    GcpSa(Box<models::GcpServiceAccountKeyInfo>),
21    #[serde(rename="gcp_am")]
22    GcpAm(Box<models::AntimatterDelegatedGcpKeyInfo>),
23    #[serde(rename="aws_sa")]
24    AwsSa(Box<models::AwsServiceAccountKeyInfo>),
25    #[serde(rename="aws_am")]
26    AwsAm(Box<models::AntimatterDelegatedAwsKeyInfo>),
27    #[serde(rename="azure_sa")]
28    AzureSa(Box<models::AzureServiceAccountKeyInfo>),
29    #[serde(rename="azure_am")]
30    AzureAm(Box<models::AntimatterDelegatedAzureKeyInfo>),
31    #[serde(rename="byok")]
32    Byok(Box<models::ByokKeyInfo>),
33}
34
35impl Default for KeyInfosKeyInformation {
36    fn default() -> Self {
37        Self::GcpSa(Default::default())
38    }
39}
40
41