Compute V1 Client - Class PacketMirroringFilter (1.16.2)

Reference documentation and code samples for the Compute V1 Client class PacketMirroringFilter.

Generated from protobuf message google.cloud.compute.v1.PacketMirroringFilter

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ I_p_protocols array

Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored.

↳ cidr_ranges array

One or more IPv4 or IPv6 CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0". Note: Support for IPv6 traffic is in preview.

↳ direction string

Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. Check the Direction enum for the list of possible values.

getIPProtocols

Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setIPProtocols

Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getCidrRanges

One or more IPv4 or IPv6 CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0". Note: Support for IPv6 traffic is in preview.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setCidrRanges

One or more IPv4 or IPv6 CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0". Note: Support for IPv6 traffic is in preview.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getDirection

Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.

Check the Direction enum for the list of possible values.

Returns
Type Description
string

hasDirection

clearDirection

setDirection

Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.

Check the Direction enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this