# Compute V1 Client - Class SecurityPolicyRulePreconfiguredWafConfigExclusion (2.10.0)

2.10.0 (latest) 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.1 1.21.0 1.20.0 1.19.0 1.18.1 1.17.0 1.16.2 1.14.0 1.13.0 1.12.1 1.11.1 1.10.1 1.9.1 1.8.3 1.7.1 1.6.1 1.5.0 Reference documentation and code samples for the Compute V1 Client class SecurityPolicyRulePreconfiguredWafConfigExclusion.

Generated from protobuf message `google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion`

## Namespace

Google \\ Cloud \\ Compute \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ request_cookies_to_exclude` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>` A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation. |
| `↳ request_headers_to_exclude` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>` A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation. |
| `↳ request_query_params_to_exclude` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>` A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body. |
| `↳ request_uris_to_exclude` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>` A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded. |
| `↳ target_rule_ids` | `string[]` A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set. |
| `↳ target_rule_set` | `string` Target WAF rule set to apply the preconfigured WAF exclusion. |

### getRequestCookiesToExclude

A list of request cookie names whose value will be excluded from
inspection during preconfigured WAF evaluation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>` |   |

### setRequestCookiesToExclude

A list of request cookie names whose value will be excluded from
inspection during preconfigured WAF evaluation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequestHeadersToExclude

A list of request header names whose value will be excluded from
inspection during preconfigured WAF evaluation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>` |   |

### setRequestHeadersToExclude

A list of request header names whose value will be excluded from
inspection during preconfigured WAF evaluation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequestQueryParamsToExclude

A list of request query parameter names whose value will be excluded
from inspection during preconfigured WAF evaluation. Note that the
parameter can be in the query string or in the POST body.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>` |   |

### setRequestQueryParamsToExclude

A list of request query parameter names whose value will be excluded
from inspection during preconfigured WAF evaluation. Note that the
parameter can be in the query string or in the POST body.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequestUrisToExclude

A list of request URIs from the request line to be excluded from
inspection during preconfigured WAF evaluation. When specifying this
field, the query or fragment part should be excluded.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>` |   |

### setRequestUrisToExclude

A list of request URIs from the request line to be excluded from
inspection during preconfigured WAF evaluation. When specifying this
field, the query or fragment part should be excluded.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTargetRuleIds

A list of target rule IDs under the WAF rule set to apply the
preconfigured WAF exclusion. If omitted, it refers to all the rule
IDs under the WAF rule set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setTargetRuleIds

A list of target rule IDs under the WAF rule set to apply the
preconfigured WAF exclusion. If omitted, it refers to all the rule
IDs under the WAF rule set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTargetRuleSet

Target WAF rule set to apply the preconfigured WAF exclusion.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasTargetRuleSet

### clearTargetRuleSet

### setTargetRuleSet

Target WAF rule set to apply the preconfigured WAF exclusion.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |