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
50
51
52
/*
* 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,
}
}
}