Struct google_api_proto::google::cloud::networkservices::v1beta1::EndpointPolicy
source · pub struct EndpointPolicy {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub type: i32,
pub authorization_policy: String,
pub endpoint_matcher: Option<EndpointMatcher>,
pub traffic_port_selector: Option<TrafficPortSelector>,
pub description: String,
pub server_tls_policy: String,
pub client_tls_policy: String,
}
Expand description
EndpointPolicy is a resource that helps apply desired configuration on the endpoints that match specific criteria. For example, this resource can be used to apply “authentication config” an all endpoints that serve on port 8080.
Fields§
§name: String
Required. Name of the EndpointPolicy resource. It matches pattern
projects/{project}/locations/global/endpointPolicies/{endpoint_policy}
.
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>
Optional. Set of label tags associated with the EndpointPolicy resource.
type: i32
Required. The type of endpoint policy. This is primarily used to validate the configuration.
Optional. This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints. Refer to Authorization. If this field is not specified, authorization is disabled(no authz checks) for this endpoint.
endpoint_matcher: Option<EndpointMatcher>
Required. A matcher that selects endpoints to which the policies should be applied.
traffic_port_selector: Option<TrafficPortSelector>
Optional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports.
description: String
Optional. A free-text description of the resource. Max length 1024 characters.
server_tls_policy: String
Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends. If this field is not set, authentication is disabled(open) for this endpoint.
client_tls_policy: String
Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints. More specifically, it is applied to the outgoing traffic from the proxy to the endpoint. This is typically used for sidecar model where the proxy identifies itself as endpoint to the control plane, with the connection between sidecar and endpoint requiring authentication. If this field is not set, authentication is disabled(open). Applicable only when EndpointPolicyType is SIDECAR_PROXY.
Implementations§
source§impl EndpointPolicy
impl EndpointPolicy
sourcepub fn type(&self) -> EndpointPolicyType
pub fn type(&self) -> EndpointPolicyType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: EndpointPolicyType)
pub fn set_type(&mut self, value: EndpointPolicyType)
Sets type
to the provided enum value.
Trait Implementations§
source§impl Clone for EndpointPolicy
impl Clone for EndpointPolicy
source§fn clone(&self) -> EndpointPolicy
fn clone(&self) -> EndpointPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EndpointPolicy
impl Debug for EndpointPolicy
source§impl Default for EndpointPolicy
impl Default for EndpointPolicy
source§impl Message for EndpointPolicy
impl Message for EndpointPolicy
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 EndpointPolicy
impl PartialEq for EndpointPolicy
source§fn eq(&self, other: &EndpointPolicy) -> bool
fn eq(&self, other: &EndpointPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EndpointPolicy
Auto Trait Implementations§
impl Freeze for EndpointPolicy
impl RefUnwindSafe for EndpointPolicy
impl Send for EndpointPolicy
impl Sync for EndpointPolicy
impl Unpin for EndpointPolicy
impl UnwindSafe for EndpointPolicy
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