Struct google_api_proto::google::cloud::networkmanagement::v1beta1::FirewallInfo
source · pub struct FirewallInfo {
pub display_name: String,
pub uri: String,
pub direction: String,
pub action: String,
pub priority: i32,
pub network_uri: String,
pub target_tags: Vec<String>,
pub target_service_accounts: Vec<String>,
pub policy: String,
pub firewall_rule_type: i32,
}
Expand description
For display only. Metadata associated with a VPC firewall rule, an implied VPC firewall rule, or a hierarchical firewall policy rule.
Fields§
§display_name: String
The display name of the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
uri: String
The URI of the VPC firewall rule. This field is not applicable to implied firewall rules or hierarchical firewall policy rules.
direction: String
Possible values: INGRESS, EGRESS
action: String
Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP
priority: i32
The priority of the firewall rule.
network_uri: String
The URI of the VPC network that the firewall rule is associated with. This field is not applicable to hierarchical firewall policy rules.
The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
target_service_accounts: Vec<String>
The target service accounts specified by the firewall rule.
policy: String
The hierarchical firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules.
firewall_rule_type: i32
The firewall rule’s type.
Implementations§
source§impl FirewallInfo
impl FirewallInfo
sourcepub fn firewall_rule_type(&self) -> FirewallRuleType
pub fn firewall_rule_type(&self) -> FirewallRuleType
Returns the enum value of firewall_rule_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_firewall_rule_type(&mut self, value: FirewallRuleType)
pub fn set_firewall_rule_type(&mut self, value: FirewallRuleType)
Sets firewall_rule_type
to the provided enum value.
Trait Implementations§
source§impl Clone for FirewallInfo
impl Clone for FirewallInfo
source§fn clone(&self) -> FirewallInfo
fn clone(&self) -> FirewallInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FirewallInfo
impl Debug for FirewallInfo
source§impl Default for FirewallInfo
impl Default for FirewallInfo
source§impl Message for FirewallInfo
impl Message for FirewallInfo
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 FirewallInfo
impl PartialEq for FirewallInfo
source§fn eq(&self, other: &FirewallInfo) -> bool
fn eq(&self, other: &FirewallInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FirewallInfo
Auto Trait Implementations§
impl Freeze for FirewallInfo
impl RefUnwindSafe for FirewallInfo
impl Send for FirewallInfo
impl Sync for FirewallInfo
impl Unpin for FirewallInfo
impl UnwindSafe for FirewallInfo
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