Compute V1 Client - Class FirewallPolicyRuleMatcher (1.5.0)

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

Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ dest_ip_ranges array

CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.

↳ layer4_configs array<Google\Cloud\Compute\V1\FirewallPolicyRuleMatcherLayer4Config>

Pairs of IP protocols and ports that the rule should match.

↳ src_ip_ranges array

CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.

↳ src_secure_tags array<Google\Cloud\Compute\V1\FirewallPolicyRuleSecureTag>

List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256.

getDestIpRanges

CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.

Generated from protobuf field repeated string dest_ip_ranges = 337357713;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDestIpRanges

CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.

Generated from protobuf field repeated string dest_ip_ranges = 337357713;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getLayer4Configs

Pairs of IP protocols and ports that the rule should match.

Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLayer4Configs

Pairs of IP protocols and ports that the rule should match.

Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261;

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\FirewallPolicyRuleMatcherLayer4Config>
Returns
TypeDescription
$this

getSrcIpRanges

CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.

Generated from protobuf field repeated string src_ip_ranges = 432128083;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSrcIpRanges

CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.

Generated from protobuf field repeated string src_ip_ranges = 432128083;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getSrcSecureTags

List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256.

Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag src_secure_tags = 508791302;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSrcSecureTags

List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256.

Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag src_secure_tags = 508791302;

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\FirewallPolicyRuleSecureTag>
Returns
TypeDescription
$this