Struct google_api_proto::google::cloud::compute::v1::SslHealthCheck
source · pub struct SslHealthCheck {
pub port: Option<i32>,
pub port_name: Option<String>,
pub port_specification: Option<String>,
pub proxy_header: Option<String>,
pub request: Option<String>,
pub response: Option<String>,
}
Expand description
Fields§
§port: Option<i32>
The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535.
port_name: Option<String>
Not supported.
port_specification: Option<String>
Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service’s named port in the instance group’s list of named ports. Check the PortSpecification enum for the list of possible values.
proxy_header: Option<String>
Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. Check the ProxyHeader enum for the list of possible values.
request: Option<String>
Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection and SSL handshake.
response: Option<String>
Creates a content-based SSL health check. In addition to establishing a TCP connection and the TLS handshake, you can configure the health check to pass only when the backend sends this exact response ASCII string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp
Implementations§
source§impl SslHealthCheck
impl SslHealthCheck
sourcepub fn request(&self) -> &str
pub fn request(&self) -> &str
Returns the value of request
, or the default value if request
is unset.
sourcepub fn port_name(&self) -> &str
pub fn port_name(&self) -> &str
Returns the value of port_name
, or the default value if port_name
is unset.
sourcepub fn port_specification(&self) -> &str
pub fn port_specification(&self) -> &str
Returns the value of port_specification
, or the default value if port_specification
is unset.
sourcepub fn proxy_header(&self) -> &str
pub fn proxy_header(&self) -> &str
Returns the value of proxy_header
, or the default value if proxy_header
is unset.
Trait Implementations§
source§impl Clone for SslHealthCheck
impl Clone for SslHealthCheck
source§fn clone(&self) -> SslHealthCheck
fn clone(&self) -> SslHealthCheck
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SslHealthCheck
impl Debug for SslHealthCheck
source§impl Default for SslHealthCheck
impl Default for SslHealthCheck
source§impl Message for SslHealthCheck
impl Message for SslHealthCheck
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 SslHealthCheck
impl PartialEq for SslHealthCheck
source§fn eq(&self, other: &SslHealthCheck) -> bool
fn eq(&self, other: &SslHealthCheck) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SslHealthCheck
Auto Trait Implementations§
impl Freeze for SslHealthCheck
impl RefUnwindSafe for SslHealthCheck
impl Send for SslHealthCheck
impl Sync for SslHealthCheck
impl Unpin for SslHealthCheck
impl UnwindSafe for SslHealthCheck
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