#[non_exhaustive]pub struct PacketMirroring {Show 13 fields
pub collector_ilb: Option<PacketMirroringForwardingRuleInfo>,
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub enable: Option<Enable>,
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>,
/* private fields */
}packet-mirrorings only.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, seeUsing Packet Mirroring.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.collector_ilb: Option<PacketMirroringForwardingRuleInfo>The Forwarding Rule resource of typeloadBalancingScheme=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. [Output Only] Creation timestamp inRFC3339 text format.
description: Option<String>An optional description of this resource. Provide this property when you create the resource.
enable: Option<Enable>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.
filter: Option<PacketMirroringFilter>Filter for mirrored traffic. If unspecified, all IPv4 traffic is mirrored.
id: Option<u64>Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>Output only. [Output Only] Type of the resource. Alwayscompute#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 withRFC1035.
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. [Output Only] Server-defined URL for the resource.
Implementations§
Source§impl PacketMirroring
impl PacketMirroring
pub fn new() -> Self
Sourcepub fn set_collector_ilb<T>(self, v: T) -> Selfwhere
T: Into<PacketMirroringForwardingRuleInfo>,
pub fn set_collector_ilb<T>(self, v: T) -> Selfwhere
T: Into<PacketMirroringForwardingRuleInfo>,
Sets the value of collector_ilb.
§Example
use google_cloud_compute_v1::model::PacketMirroringForwardingRuleInfo;
let x = PacketMirroring::new().set_collector_ilb(PacketMirroringForwardingRuleInfo::default()/* use setters */);Sourcepub fn set_or_clear_collector_ilb<T>(self, v: Option<T>) -> Selfwhere
T: Into<PacketMirroringForwardingRuleInfo>,
pub fn set_or_clear_collector_ilb<T>(self, v: Option<T>) -> Selfwhere
T: Into<PacketMirroringForwardingRuleInfo>,
Sets or clears the value of collector_ilb.
§Example
use google_cloud_compute_v1::model::PacketMirroringForwardingRuleInfo;
let x = PacketMirroring::new().set_or_clear_collector_ilb(Some(PacketMirroringForwardingRuleInfo::default()/* use setters */));
let x = PacketMirroring::new().set_or_clear_collector_ilb(None::<PacketMirroringForwardingRuleInfo>);Sourcepub fn set_creation_timestamp<T>(self, v: T) -> Self
pub fn set_creation_timestamp<T>(self, v: T) -> Self
Sets the value of creation_timestamp.
§Example
let x = PacketMirroring::new().set_creation_timestamp("example");Sourcepub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of creation_timestamp.
§Example
let x = PacketMirroring::new().set_or_clear_creation_timestamp(Some("example"));
let x = PacketMirroring::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of description.
§Example
let x = PacketMirroring::new().set_or_clear_description(Some("example"));
let x = PacketMirroring::new().set_or_clear_description(None::<String>);Sourcepub fn set_enable<T>(self, v: T) -> Self
pub fn set_enable<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_enable<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enable<T>(self, v: Option<T>) -> Self
Sourcepub fn set_filter<T>(self, v: T) -> Selfwhere
T: Into<PacketMirroringFilter>,
pub fn set_filter<T>(self, v: T) -> Selfwhere
T: Into<PacketMirroringFilter>,
Sourcepub fn set_or_clear_filter<T>(self, v: Option<T>) -> Selfwhere
T: Into<PacketMirroringFilter>,
pub fn set_or_clear_filter<T>(self, v: Option<T>) -> Selfwhere
T: Into<PacketMirroringFilter>,
Sourcepub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
Sourcepub fn set_mirrored_resources<T>(self, v: T) -> Selfwhere
T: Into<PacketMirroringMirroredResourceInfo>,
pub fn set_mirrored_resources<T>(self, v: T) -> Selfwhere
T: Into<PacketMirroringMirroredResourceInfo>,
Sets the value of mirrored_resources.
§Example
use google_cloud_compute_v1::model::PacketMirroringMirroredResourceInfo;
let x = PacketMirroring::new().set_mirrored_resources(PacketMirroringMirroredResourceInfo::default()/* use setters */);Sourcepub fn set_or_clear_mirrored_resources<T>(self, v: Option<T>) -> Selfwhere
T: Into<PacketMirroringMirroredResourceInfo>,
pub fn set_or_clear_mirrored_resources<T>(self, v: Option<T>) -> Selfwhere
T: Into<PacketMirroringMirroredResourceInfo>,
Sets or clears the value of mirrored_resources.
§Example
use google_cloud_compute_v1::model::PacketMirroringMirroredResourceInfo;
let x = PacketMirroring::new().set_or_clear_mirrored_resources(Some(PacketMirroringMirroredResourceInfo::default()/* use setters */));
let x = PacketMirroring::new().set_or_clear_mirrored_resources(None::<PacketMirroringMirroredResourceInfo>);Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_network<T>(self, v: T) -> Selfwhere
T: Into<PacketMirroringNetworkInfo>,
pub fn set_network<T>(self, v: T) -> Selfwhere
T: Into<PacketMirroringNetworkInfo>,
Sourcepub fn set_or_clear_network<T>(self, v: Option<T>) -> Selfwhere
T: Into<PacketMirroringNetworkInfo>,
pub fn set_or_clear_network<T>(self, v: Option<T>) -> Selfwhere
T: Into<PacketMirroringNetworkInfo>,
Sets or clears the value of network.
§Example
use google_cloud_compute_v1::model::PacketMirroringNetworkInfo;
let x = PacketMirroring::new().set_or_clear_network(Some(PacketMirroringNetworkInfo::default()/* use setters */));
let x = PacketMirroring::new().set_or_clear_network(None::<PacketMirroringNetworkInfo>);Sourcepub fn set_priority<T>(self, v: T) -> Self
pub fn set_priority<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_priority<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_priority<T>(self, v: Option<T>) -> Self
Sourcepub fn set_region<T>(self, v: T) -> Self
pub fn set_region<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_region<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_region<T>(self, v: Option<T>) -> Self
Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
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 more