Struct google_api_proto::google::cloud::compute::v1::PacketMirroring
source · pub struct PacketMirroring {Show 13 fields
pub collector_ilb: Option<PacketMirroringForwardingRuleInfo>,
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub enable: Option<String>,
pub filter: Option<PacketMirroringFilter>,
pub id: Option<u64>,
pub kind: Option<String>,
pub mirrored_resources: Option<PacketMirroringMirroredResourceInfo>,
pub name: Option<String>,
pub network: Option<PacketMirroringNetworkInfo>,
pub priority: Option<u32>,
pub region: Option<String>,
pub self_link: Option<String>,
}
Expand description
Represents a Packet Mirroring resource. Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) network and forwards it to a collector destination, such as an instance group of an internal TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet Mirroring, see Using Packet Mirroring.
Fields§
§collector_ilb: Option<PacketMirroringForwardingRuleInfo>
The Forwarding Rule resource of type loadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true.
creation_timestamp: Option<String>
[Output Only] Creation timestamp in RFC3339 text format.
description: Option<String>
An optional description of this resource. Provide this property when you create the resource.
enable: Option<String>
Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE. Check the Enable enum for the list of possible values.
filter: Option<PacketMirroringFilter>
Filter for mirrored traffic. If unspecified, all IPv4 traffic is mirrored.
id: Option<u64>
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>
[Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
mirrored_resources: Option<PacketMirroringMirroredResourceInfo>
PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored.
name: Option<String>
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](\[-a-z0-9\]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
network: Option<PacketMirroringNetworkInfo>
Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network.
priority: Option<u32>
The priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535.
region: Option<String>
[Output Only] URI of the region where the packetMirroring resides.
self_link: Option<String>
[Output Only] Server-defined URL for the resource.
Implementations§
source§impl PacketMirroring
impl PacketMirroring
sourcepub fn creation_timestamp(&self) -> &str
pub fn creation_timestamp(&self) -> &str
Returns the value of creation_timestamp
, or the default value if creation_timestamp
is unset.
sourcepub fn region(&self) -> &str
pub fn region(&self) -> &str
Returns the value of region
, or the default value if region
is unset.
sourcepub fn enable(&self) -> &str
pub fn enable(&self) -> &str
Returns the value of enable
, or the default value if enable
is unset.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
Trait Implementations§
source§impl Clone for PacketMirroring
impl Clone for PacketMirroring
source§fn clone(&self) -> PacketMirroring
fn clone(&self) -> PacketMirroring
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PacketMirroring
impl Debug for PacketMirroring
source§impl Default for PacketMirroring
impl Default for PacketMirroring
source§impl Message for PacketMirroring
impl Message for PacketMirroring
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 PacketMirroring
impl PartialEq for PacketMirroring
source§fn eq(&self, other: &PacketMirroring) -> bool
fn eq(&self, other: &PacketMirroring) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PacketMirroring
Auto Trait Implementations§
impl Freeze for PacketMirroring
impl RefUnwindSafe for PacketMirroring
impl Send for PacketMirroring
impl Sync for PacketMirroring
impl Unpin for PacketMirroring
impl UnwindSafe for PacketMirroring
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