Google Cloud Network Services V1 Client - Class RouteMatch (0.1.0)

Reference documentation and code samples for the Google Cloud Network Services V1 Client class RouteMatch.

RouteMatch defines the predicate used to match requests to a given action.

Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.

Generated from protobuf message google.cloud.networkservices.v1.TcpRoute.RouteMatch

Namespace

Google \ Cloud \ NetworkServices \ V1 \ TcpRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ address string

Required. Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported. Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.

↳ port string

Required. Specifies the destination port to match against.

getAddress

Required. Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported.

Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.

Returns
Type Description
string

setAddress

Required. Must be specified in the CIDR range format. A CIDR range consists of an IP Address and a prefix length to construct the subnet mask. By default, the prefix length is 32 (i.e. matches a single IP address). Only IPV4 addresses are supported.

Examples: "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - matches against any IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'.

Parameter
Name Description
var string
Returns
Type Description
$this

getPort

Required. Specifies the destination port to match against.

Returns
Type Description
string

setPort

Required. Specifies the destination port to match against.

Parameter
Name Description
var string
Returns
Type Description
$this