/*
 * This is an auto-generated file.
 * Any manual changes may be overwritten without notice!
 */

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

/// ConsulGatewayTLSSDSConfig is used to configure the gateway's TLS listener to
/// load certificates from an external Secret Discovery Service (SDS)
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct ConsulGatewayTLSSDSConfig {
    /// CertResource specifies an SDS resource name
    #[serde(rename = "cert_resource", skip_serializing_if = "Option::is_none")]
    pub cert_resource: Option<String>,

    /// ClusterName specifies the name of the SDS cluster where Consul should
    /// retrieve certificates.
    #[serde(rename = "cluster_name", skip_serializing_if = "Option::is_none")]
    pub cluster_name: Option<String>,
}
