hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IngressTls {
    /// ACMEDirectory is the ACME endpoint in use: the staging URL, or \"letsencrypt-production\".
    #[serde(rename = "acmeDirectory", skip_serializing_if = "Option::is_none")]
    pub acme_directory: Option<String>,
    /// ACMEEmail is the account email the PROCESS was started with (CLOUD_INGRESS_ACME_EMAIL), not the stored config's.
    #[serde(rename = "acmeEmail", skip_serializing_if = "Option::is_none")]
    pub acme_email: Option<String>,
    /// Config is the caller org's stored ACME intent.
    #[serde(rename = "config", skip_serializing_if = "Option::is_none")]
    pub config: Option<Box<models::TlsConfig>>,
    /// EdgeEnabled is true when the edge listeners are actually bound.
    #[serde(rename = "edgeEnabled", skip_serializing_if = "Option::is_none")]
    pub edge_enabled: Option<bool>,
    /// ManagedHosts is every host the ACME HostPolicy will issue a certificate for — the union across ALL orgs of TLS-marked routes and configured extraHosts, because one process holds one certificate cache.
    #[serde(rename = "managedHosts", skip_serializing_if = "Option::is_none")]
    pub managed_hosts: Option<Vec<String>>,
    /// Note states which fields hot-apply and which need an edge restart.
    #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
    pub note: Option<String>,
    /// Role is \"edge\" when this instance binds the listeners, else \"app\".
    #[serde(rename = "role", skip_serializing_if = "Option::is_none")]
    pub role: Option<String>,
}

impl IngressTls {
    pub fn new() -> IngressTls {
        IngressTls {
            acme_directory: None,
            acme_email: None,
            config: None,
            edge_enabled: None,
            managed_hosts: None,
            note: None,
            role: None,
        }
    }
}