Struct google_api_proto::google::cloud::networksecurity::v1beta1::AuthorizationPolicy
source · pub struct AuthorizationPolicy {
pub name: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub action: i32,
pub rules: Vec<Rule>,
}
Expand description
AuthorizationPolicy is a resource that specifies how a server should authorize incoming connections. This resource in itself does not change the configuration unless it’s attached to a target https proxy or endpoint config selector resource.
Fields§
§name: String
Required. Name of the AuthorizationPolicy resource. It matches pattern
projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>
.
description: String
Optional. 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>
Optional. Set of label tags associated with the AuthorizationPolicy resource.
action: i32
Required. The action to take when a rule match is found. Possible values are “ALLOW” or “DENY”.
rules: Vec<Rule>
Optional. List of rules to match. Note that at least one of the rules must
match in order for the action specified in the ‘action’ field to be taken.
A rule is a match if there is a matching source and destination. If left
blank, the action specified in the action
field will be applied on every
request.
Implementations§
Trait Implementations§
source§impl Clone for AuthorizationPolicy
impl Clone for AuthorizationPolicy
source§fn clone(&self) -> AuthorizationPolicy
fn clone(&self) -> AuthorizationPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AuthorizationPolicy
impl Debug for AuthorizationPolicy
source§impl Default for AuthorizationPolicy
impl Default for AuthorizationPolicy
source§impl Message for AuthorizationPolicy
impl Message for AuthorizationPolicy
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 AuthorizationPolicy
impl PartialEq for AuthorizationPolicy
source§fn eq(&self, other: &AuthorizationPolicy) -> bool
fn eq(&self, other: &AuthorizationPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AuthorizationPolicy
Auto Trait Implementations§
impl Freeze for AuthorizationPolicy
impl RefUnwindSafe for AuthorizationPolicy
impl Send for AuthorizationPolicy
impl Sync for AuthorizationPolicy
impl Unpin for AuthorizationPolicy
impl UnwindSafe for AuthorizationPolicy
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