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
53
54
55
56
57
58
59
60
/*
* 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 IngressStatus {
/// ACMECacheDir is where autocert persists accounts and certificates.
#[serde(rename = "acmeCacheDir", skip_serializing_if = "Option::is_none")]
pub acme_cache_dir: Option<String>,
/// ACMEStaging is true when certificates are issued from Let's Encrypt staging.
#[serde(rename = "acmeStaging", skip_serializing_if = "Option::is_none")]
pub acme_staging: Option<bool>,
/// EdgeEnabled is true when the edge listeners are actually bound.
#[serde(rename = "edgeEnabled", skip_serializing_if = "Option::is_none")]
pub edge_enabled: Option<bool>,
/// HTTPAddr is the address the ACME HTTP-01 + HTTP router listens on.
#[serde(rename = "httpAddr", skip_serializing_if = "Option::is_none")]
pub http_addr: Option<String>,
/// HTTPSAddr is the address the SNI TLS terminator listens on.
#[serde(rename = "httpsAddr", skip_serializing_if = "Option::is_none")]
pub https_addr: Option<String>,
/// LiveHosts is how many hosts the compiled table routes.
#[serde(rename = "liveHosts", skip_serializing_if = "Option::is_none")]
pub live_hosts: Option<i32>,
/// Proxy names the reverse-proxy implementation behind every route.
#[serde(rename = "proxy", skip_serializing_if = "Option::is_none")]
pub proxy: Option<String>,
/// Role is \"edge\" when CLOUD_INGRESS_EDGE_ENABLED is set, else \"app\".
#[serde(rename = "role", skip_serializing_if = "Option::is_none")]
pub role: Option<String>,
/// TLSHosts is how many hosts the ACME HostPolicy will issue a certificate for. NOT a subset of LiveHosts: an extraHost owns no route, and a TLS route naming a missing service is skipped while its host still wants a cert.
#[serde(rename = "tlsHosts", skip_serializing_if = "Option::is_none")]
pub tls_hosts: Option<i32>,
}
impl IngressStatus {
pub fn new() -> IngressStatus {
IngressStatus {
acme_cache_dir: None,
acme_staging: None,
edge_enabled: None,
http_addr: None,
https_addr: None,
live_hosts: None,
proxy: None,
role: None,
tls_hosts: None,
}
}
}