Compute V1 Client - Class PacketMirroringFilter (1.5.0)

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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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 traffic is mirrored.

↳ cidr_ranges array

IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.

↳ 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 traffic is mirrored.

Generated from protobuf field repeated string I_p_protocols = 98544854;

Returns
TypeDescription
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 traffic is mirrored.

Generated from protobuf field repeated string I_p_protocols = 98544854;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getCidrRanges

IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.

Generated from protobuf field repeated string cidr_ranges = 487901697;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCidrRanges

IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored.

Generated from protobuf field repeated string cidr_ranges = 487901697;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$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.

Generated from protobuf field optional string direction = 111150975;

Returns
TypeDescription
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.

Generated from protobuf field optional string direction = 111150975;

Parameter
NameDescription
var string
Returns
TypeDescription
$this