Struct google_compute1::api::PacketMirroring[][src]

pub struct PacketMirroring {
    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<String>,
    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>,
}

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. (== resource_for {$api_version}.packetMirrorings ==)

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

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.

filter: Option<PacketMirroringFilter>

Filter for mirrored traffic. If unspecified, all traffic is mirrored.

id: Option<String>

[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.

Trait Implementations

impl Clone for PacketMirroring[src]

impl Debug for PacketMirroring[src]

impl Default for PacketMirroring[src]

impl<'de> Deserialize<'de> for PacketMirroring[src]

impl RequestValue for PacketMirroring[src]

impl Resource for PacketMirroring[src]

impl ResponseResult for PacketMirroring[src]

impl Serialize for PacketMirroring[src]

Auto Trait Implementations

impl RefUnwindSafe for PacketMirroring[src]

impl Send for PacketMirroring[src]

impl Sync for PacketMirroring[src]

impl Unpin for PacketMirroring[src]

impl UnwindSafe for PacketMirroring[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.