Google Cloud Network Connectivity V1 Client - Class Filter (1.1.1)

Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class Filter.

Filter matches L4 traffic.

Generated from protobuf message google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter

Namespace

Google \ Cloud \ NetworkConnectivity \ V1 \ PolicyBasedRoute

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ ip_protocol string

Optional. The IP protocol that this policy based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.

↳ src_range string

Optional. The source IP range of outgoing packets that this policy based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.

↳ dest_range string

Optional. The destination IP range of outgoing packets that this policy based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.

↳ protocol_version int

Required. Internet protocol versions this policy based route applies to. For this version, only IPV4 is supported.

getIpProtocol

Optional. The IP protocol that this policy based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.

Returns
TypeDescription
string

setIpProtocol

Optional. The IP protocol that this policy based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSrcRange

Optional. The source IP range of outgoing packets that this policy based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.

Returns
TypeDescription
string

setSrcRange

Optional. The source IP range of outgoing packets that this policy based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDestRange

Optional. The destination IP range of outgoing packets that this policy based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.

Returns
TypeDescription
string

setDestRange

Optional. The destination IP range of outgoing packets that this policy based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProtocolVersion

Required. Internet protocol versions this policy based route applies to. For this version, only IPV4 is supported.

Returns
TypeDescription
int

setProtocolVersion

Required. Internet protocol versions this policy based route applies to. For this version, only IPV4 is supported.

Parameter
NameDescription
var int
Returns
TypeDescription
$this