#[non_exhaustive]pub struct ClientTlsPolicy {
pub name: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub sni: String,
pub client_certificate: Option<CertificateProvider>,
pub server_validation_ca: Vec<ValidationCA>,
/* private fields */
}Expand description
ClientTlsPolicy is a resource that specifies how a client should authenticate connections to backends of a service. This resource itself does not affect configuration unless it is attached to a backend service resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. Name of the ClientTlsPolicy resource. It matches the pattern
projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}
description: StringOptional. Free-text description of the resource.
create_time: Option<Timestamp>Output only. The timestamp when the resource was created.
update_time: Option<Timestamp>Output only. The timestamp when the resource was updated.
labels: HashMap<String, String>Optional. Set of label tags associated with the resource.
sni: StringOptional. Server Name Indication string to present to the server during TLS handshake. E.g: “secure.example.com”.
client_certificate: Option<CertificateProvider>Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.
server_validation_ca: Vec<ValidationCA>Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.
Implementations§
Source§impl ClientTlsPolicy
impl ClientTlsPolicy
pub fn new() -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_client_certificate<T>(self, v: T) -> Selfwhere
T: Into<CertificateProvider>,
pub fn set_client_certificate<T>(self, v: T) -> Selfwhere
T: Into<CertificateProvider>,
Sets the value of client_certificate.
Sourcepub fn set_or_clear_client_certificate<T>(self, v: Option<T>) -> Selfwhere
T: Into<CertificateProvider>,
pub fn set_or_clear_client_certificate<T>(self, v: Option<T>) -> Selfwhere
T: Into<CertificateProvider>,
Sets or clears the value of client_certificate.
Sourcepub fn set_server_validation_ca<T, V>(self, v: T) -> Self
pub fn set_server_validation_ca<T, V>(self, v: T) -> Self
Sets the value of server_validation_ca.
Trait Implementations§
Source§impl Clone for ClientTlsPolicy
impl Clone for ClientTlsPolicy
Source§fn clone(&self) -> ClientTlsPolicy
fn clone(&self) -> ClientTlsPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more