/*
* 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 TlsConfig {
/// ACMEEmail is the ACME account email. It binds an account for the lifetime of an edge process, so it applies only when the edge (re)starts.
#[serde(rename = "acmeEmail", skip_serializing_if = "Option::is_none")]
pub acme_email: Option<String>,
/// ExtraHosts get certificates without owning a route — at most 256. They feed the ACME HostPolicy and hot-apply on the next reload.
#[serde(rename = "extraHosts", skip_serializing_if = "Option::is_none")]
pub extra_hosts: Option<Vec<String>>,
/// Staging issues from Let's Encrypt's staging directory (untrusted certs, high rate limits). Like ACMEEmail it applies only when the edge (re)starts.
#[serde(rename = "staging", skip_serializing_if = "Option::is_none")]
pub staging: Option<bool>,
}
impl TlsConfig {
pub fn new() -> TlsConfig {
TlsConfig {
acme_email: None,
extra_hosts: None,
staging: None,
}
}
}