use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ClusterData {
#[serde(rename = "authenticationParameters", skip_serializing_if = "Option::is_none")]
pub authentication_parameters: Option<String>,
#[serde(rename = "authenticationPlugin", skip_serializing_if = "Option::is_none")]
pub authentication_plugin: Option<String>,
#[serde(rename = "brokerClientCertificateFilePath", skip_serializing_if = "Option::is_none")]
pub broker_client_certificate_file_path: Option<String>,
#[serde(rename = "brokerClientKeyFilePath", skip_serializing_if = "Option::is_none")]
pub broker_client_key_file_path: Option<String>,
#[serde(rename = "brokerClientTlsEnabled", skip_serializing_if = "Option::is_none")]
pub broker_client_tls_enabled: Option<bool>,
#[serde(rename = "brokerClientTlsEnabledWithKeyStore", skip_serializing_if = "Option::is_none")]
pub broker_client_tls_enabled_with_key_store: Option<bool>,
#[serde(rename = "brokerClientTlsKeyStore", skip_serializing_if = "Option::is_none")]
pub broker_client_tls_key_store: Option<String>,
#[serde(rename = "brokerClientTlsKeyStorePassword", skip_serializing_if = "Option::is_none")]
pub broker_client_tls_key_store_password: Option<String>,
#[serde(rename = "brokerClientTlsKeyStoreType", skip_serializing_if = "Option::is_none")]
pub broker_client_tls_key_store_type: Option<String>,
#[serde(rename = "brokerClientTlsTrustStore", skip_serializing_if = "Option::is_none")]
pub broker_client_tls_trust_store: Option<String>,
#[serde(rename = "brokerClientTlsTrustStorePassword", skip_serializing_if = "Option::is_none")]
pub broker_client_tls_trust_store_password: Option<String>,
#[serde(rename = "brokerClientTlsTrustStoreType", skip_serializing_if = "Option::is_none")]
pub broker_client_tls_trust_store_type: Option<String>,
#[serde(rename = "brokerClientTrustCertsFilePath", skip_serializing_if = "Option::is_none")]
pub broker_client_trust_certs_file_path: Option<String>,
#[serde(rename = "brokerServiceUrl", skip_serializing_if = "Option::is_none")]
pub broker_service_url: Option<String>,
#[serde(rename = "brokerServiceUrlTls", skip_serializing_if = "Option::is_none")]
pub broker_service_url_tls: Option<String>,
#[serde(rename = "listenerName", skip_serializing_if = "Option::is_none")]
pub listener_name: Option<String>,
#[serde(rename = "peerClusterNames", skip_serializing_if = "Option::is_none")]
pub peer_cluster_names: Option<Vec<String>>,
#[serde(rename = "proxyProtocol", skip_serializing_if = "Option::is_none")]
pub proxy_protocol: Option<ProxyProtocol>,
#[serde(rename = "proxyServiceUrl", skip_serializing_if = "Option::is_none")]
pub proxy_service_url: Option<String>,
#[serde(rename = "serviceUrl", skip_serializing_if = "Option::is_none")]
pub service_url: Option<String>,
#[serde(rename = "serviceUrlTls", skip_serializing_if = "Option::is_none")]
pub service_url_tls: Option<String>,
#[serde(rename = "tlsAllowInsecureConnection", skip_serializing_if = "Option::is_none")]
pub tls_allow_insecure_connection: Option<bool>,
}
impl ClusterData {
pub fn new() -> ClusterData {
ClusterData {
authentication_parameters: None,
authentication_plugin: None,
broker_client_certificate_file_path: None,
broker_client_key_file_path: None,
broker_client_tls_enabled: None,
broker_client_tls_enabled_with_key_store: None,
broker_client_tls_key_store: None,
broker_client_tls_key_store_password: None,
broker_client_tls_key_store_type: None,
broker_client_tls_trust_store: None,
broker_client_tls_trust_store_password: None,
broker_client_tls_trust_store_type: None,
broker_client_trust_certs_file_path: None,
broker_service_url: None,
broker_service_url_tls: None,
listener_name: None,
peer_cluster_names: None,
proxy_protocol: None,
proxy_service_url: None,
service_url: None,
service_url_tls: None,
tls_allow_insecure_connection: None,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ProxyProtocol {
#[serde(rename = "SNI")]
Sni,
}
impl Default for ProxyProtocol {
fn default() -> ProxyProtocol {
Self::Sni
}
}