# Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::FirewallPolicyRuleMatcher (v3.7.0)

3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.22.0 2.21.1 2.20.0 2.19.1 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.2 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.10.0 1.9.0 1.8.0 1.7.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.5.0 Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::FirewallPolicyRuleMatcher.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #dest_address_groups

    def dest_address_groups() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10.

### #dest_address_groups=

    def dest_address_groups=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10.
**Returns**

- (::Array\<::String\>) --- Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10.

### #dest_fqdns

    def dest_fqdns() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum number of destination fqdn allowed is 100.

### #dest_fqdns=

    def dest_fqdns=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum number of destination fqdn allowed is 100.
**Returns**

- (::Array\<::String\>) --- Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum number of destination fqdn allowed is 100.

### #dest_ip_ranges

    def dest_ip_ranges() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.

### #dest_ip_ranges=

    def dest_ip_ranges=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.
**Returns**

- (::Array\<::String\>) --- CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.

### #dest_network_context

    def dest_network_context() -> ::String

**Returns**

- (::String) --- Network context of the traffic destination. Allowed values are:

       - UNSPECIFIED
       - INTERNET
       - NON_INTERNET

  Check the DestNetworkContext enum for the list of possible values.

### #dest_network_context=

    def dest_network_context=(value) -> ::String

**Parameter**

- **value** (::String) --- Network context of the traffic destination. Allowed values are:


       - UNSPECIFIED
       - INTERNET
       - NON_INTERNET

  Check the DestNetworkContext enum for the list of possible values.
**Returns**

- (::String) --- Network context of the traffic destination. Allowed values are:

       - UNSPECIFIED
       - INTERNET
       - NON_INTERNET

  Check the DestNetworkContext enum for the list of possible values.

### #dest_network_type

    def dest_network_type() -> ::String

**Returns**

- (::String) --- Network type of the traffic destination. Allowed values are:

       - UNSPECIFIED
       - INTERNET
       - NON_INTERNET

  Check the DestNetworkType enum for the list of possible values.

### #dest_network_type=

    def dest_network_type=(value) -> ::String

**Parameter**

- **value** (::String) --- Network type of the traffic destination. Allowed values are:


       - UNSPECIFIED
       - INTERNET
       - NON_INTERNET

  Check the DestNetworkType enum for the list of possible values.
**Returns**

- (::String) --- Network type of the traffic destination. Allowed values are:

       - UNSPECIFIED
       - INTERNET
       - NON_INTERNET

  Check the DestNetworkType enum for the list of possible values.

### #dest_region_codes

    def dest_region_codes() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Region codes whose IP addresses will be used to match for destination of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of dest region codes allowed is 5000.

### #dest_region_codes=

    def dest_region_codes=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Region codes whose IP addresses will be used to match for destination of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of dest region codes allowed is 5000.
**Returns**

- (::Array\<::String\>) --- Region codes whose IP addresses will be used to match for destination of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of dest region codes allowed is 5000.

### #dest_threat_intelligences

    def dest_threat_intelligences() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic destination.

### #dest_threat_intelligences=

    def dest_threat_intelligences=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic destination.
**Returns**

- (::Array\<::String\>) --- Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic destination.

### #layer4_configs

    def layer4_configs() -> ::Array<::Google::Cloud::Compute::V1::FirewallPolicyRuleMatcherLayer4Config>

**Returns**

- (::Array\<[::Google::Cloud::Compute::V1::FirewallPolicyRuleMatcherLayer4Config](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-FirewallPolicyRuleMatcherLayer4Config)\>) --- Pairs of IP protocols and ports that the rule should match.

### #layer4_configs=

    def layer4_configs=(value) -> ::Array<::Google::Cloud::Compute::V1::FirewallPolicyRuleMatcherLayer4Config>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Compute::V1::FirewallPolicyRuleMatcherLayer4Config](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-FirewallPolicyRuleMatcherLayer4Config)\>) --- Pairs of IP protocols and ports that the rule should match.
**Returns**

- (::Array\<[::Google::Cloud::Compute::V1::FirewallPolicyRuleMatcherLayer4Config](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-FirewallPolicyRuleMatcherLayer4Config)\>) --- Pairs of IP protocols and ports that the rule should match.

### #src_address_groups

    def src_address_groups() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Address groups which should be matched against the traffic source. Maximum number of source address groups is 10.

### #src_address_groups=

    def src_address_groups=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Address groups which should be matched against the traffic source. Maximum number of source address groups is 10.
**Returns**

- (::Array\<::String\>) --- Address groups which should be matched against the traffic source. Maximum number of source address groups is 10.

### #src_fqdns

    def src_fqdns() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum number of source fqdn allowed is 100.

### #src_fqdns=

    def src_fqdns=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum number of source fqdn allowed is 100.
**Returns**

- (::Array\<::String\>) --- Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum number of source fqdn allowed is 100.

### #src_ip_ranges

    def src_ip_ranges() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.

### #src_ip_ranges=

    def src_ip_ranges=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
**Returns**

- (::Array\<::String\>) --- CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.

### #src_network_context

    def src_network_context() -> ::String

**Returns**

- (::String) --- Network context of the traffic source. Allowed values are:

       - UNSPECIFIED
       - INTERNET
       - INTRA_VPC
       - NON_INTERNET
       - VPC_NETWORKS

  Check the SrcNetworkContext enum for the list of possible values.

### #src_network_context=

    def src_network_context=(value) -> ::String

**Parameter**

- **value** (::String) --- Network context of the traffic source. Allowed values are:


       - UNSPECIFIED
       - INTERNET
       - INTRA_VPC
       - NON_INTERNET
       - VPC_NETWORKS

  Check the SrcNetworkContext enum for the list of possible values.
**Returns**

- (::String) --- Network context of the traffic source. Allowed values are:

       - UNSPECIFIED
       - INTERNET
       - INTRA_VPC
       - NON_INTERNET
       - VPC_NETWORKS

  Check the SrcNetworkContext enum for the list of possible values.

### #src_network_type

    def src_network_type() -> ::String

**Returns**

- (::String) --- Network type of the traffic source. Allowed values are:

       - UNSPECIFIED
       - INTERNET
       - INTRA_VPC
       - NON_INTERNET
       - VPC_NETWORKS

  Check the SrcNetworkType enum for the list of possible values.

### #src_network_type=

    def src_network_type=(value) -> ::String

**Parameter**

- **value** (::String) --- Network type of the traffic source. Allowed values are:


       - UNSPECIFIED
       - INTERNET
       - INTRA_VPC
       - NON_INTERNET
       - VPC_NETWORKS

  Check the SrcNetworkType enum for the list of possible values.
**Returns**

- (::String) --- Network type of the traffic source. Allowed values are:

       - UNSPECIFIED
       - INTERNET
       - INTRA_VPC
       - NON_INTERNET
       - VPC_NETWORKS

  Check the SrcNetworkType enum for the list of possible values.

### #src_networks

    def src_networks() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Networks of the traffic source. It can be either a full or partial url.

### #src_networks=

    def src_networks=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Networks of the traffic source. It can be either a full or partial url.
**Returns**

- (::Array\<::String\>) --- Networks of the traffic source. It can be either a full or partial url.

### #src_region_codes

    def src_region_codes() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Region codes whose IP addresses will be used to match for source of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of source region codes allowed is 5000.

### #src_region_codes=

    def src_region_codes=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Region codes whose IP addresses will be used to match for source of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of source region codes allowed is 5000.
**Returns**

- (::Array\<::String\>) --- Region codes whose IP addresses will be used to match for source of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of source region codes allowed is 5000.

### #src_secure_tags

    def src_secure_tags() -> ::Array<::Google::Cloud::Compute::V1::FirewallPolicyRuleSecureTag>

**Returns**

- (::Array\<[::Google::Cloud::Compute::V1::FirewallPolicyRuleSecureTag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/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.

### #src_secure_tags=

    def src_secure_tags=(value) -> ::Array<::Google::Cloud::Compute::V1::FirewallPolicyRuleSecureTag>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Compute::V1::FirewallPolicyRuleSecureTag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/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.
**Returns**

- (::Array\<[::Google::Cloud::Compute::V1::FirewallPolicyRuleSecureTag](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/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.

### #src_threat_intelligences

    def src_threat_intelligences() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic source.

### #src_threat_intelligences=

    def src_threat_intelligences=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic source.
**Returns**

- (::Array\<::String\>) --- Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic source.