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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RootEncryptionKeyTestResponse {
    /// A UUID or reference used for identifying root encryption keys. May also be \"default\" or \"active\" to refer to the default or active key. Note that it is not permitted to use the default key in a different domain. 
    #[serde(rename = "id")]
    pub id: String,
    /// The root encryption key's provider source.
    #[serde(rename = "source")]
    pub source: String,
    /// The cloud provider's resource path/alias
    #[serde(rename = "resourcePath")]
    pub resource_path: String,
    /// The user defined description for the root encryption key.
    #[serde(rename = "description")]
    pub description: String,
    #[serde(rename = "status")]
    pub status: Status,
    #[serde(rename = "statusMessage")]
    pub status_message: String,
    #[serde(rename = "latencyMS")]
    pub latency_ms: f64,
}

impl RootEncryptionKeyTestResponse {
    pub fn new(id: String, source: String, resource_path: String, description: String, status: Status, status_message: String, latency_ms: f64) -> RootEncryptionKeyTestResponse {
        RootEncryptionKeyTestResponse {
            id,
            source,
            resource_path,
            description,
            status,
            status_message,
            latency_ms,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Status {
    #[serde(rename = "HEALTHY")]
    Healthy,
    #[serde(rename = "UNREACHABLE")]
    Unreachable,
    #[serde(rename = "MISCONFIGURED")]
    Misconfigured,
}

impl Default for Status {
    fn default() -> Status {
        Self::Healthy
    }
}