Struct google_api_proto::google::cloud::networksecurity::v1beta1::ServerTlsPolicy
source · pub struct ServerTlsPolicy {
pub name: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub allow_open: bool,
pub server_certificate: Option<CertificateProvider>,
pub mtls_policy: Option<MtlsPolicy>,
}
Expand description
ServerTlsPolicy is a resource that specifies how a server should authenticate incoming requests. This resource itself does not affect configuration unless it is attached to a target https proxy or endpoint config selector resource.
Fields§
§name: String
Required. Name of the ServerTlsPolicy resource. It matches the pattern
projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}
description: String
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: BTreeMap<String, String>
Set of label tags associated with the resource.
allow_open: bool
Determines if server allows plaintext connections. If set to true, server
allows plain text connections. By default, it is set to false. This setting
is not exclusive of other encryption modes. For example, if allow_open
and mtls_policy
are set, server allows both plain text and mTLS
connections. See documentation of other encryption modes to confirm
compatibility.
Consider using it if you wish to upgrade in place your deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.
server_certificate: Option<CertificateProvider>
Defines a mechanism to provision server identity (public and private keys).
Cannot be combined with allow_open
as a permissive mode that allows both
plain text and TLS is not supported.
mtls_policy: Option<MtlsPolicy>
Defines a mechanism to provision peer validation certificates for peer to
peer authentication (Mutual TLS - mTLS). If not specified, client
certificate will not be requested. The connection is treated as TLS and not
mTLS. If allow_open
and mtls_policy
are set, server allows both plain
text and mTLS connections.
Trait Implementations§
source§impl Clone for ServerTlsPolicy
impl Clone for ServerTlsPolicy
source§fn clone(&self) -> ServerTlsPolicy
fn clone(&self) -> ServerTlsPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServerTlsPolicy
impl Debug for ServerTlsPolicy
source§impl Default for ServerTlsPolicy
impl Default for ServerTlsPolicy
source§impl Message for ServerTlsPolicy
impl Message for ServerTlsPolicy
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ServerTlsPolicy
impl PartialEq for ServerTlsPolicy
source§fn eq(&self, other: &ServerTlsPolicy) -> bool
fn eq(&self, other: &ServerTlsPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ServerTlsPolicy
Auto Trait Implementations§
impl Freeze for ServerTlsPolicy
impl RefUnwindSafe for ServerTlsPolicy
impl Send for ServerTlsPolicy
impl Sync for ServerTlsPolicy
impl Unpin for ServerTlsPolicy
impl UnwindSafe for ServerTlsPolicy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request