# Google Cloud Network Security V1 Client - Class To (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.0 1.0.4 0.6.5 0.5.2 0.4.1 0.3.7 Reference documentation and code samples for the Google Cloud Network Security V1 Client class To.

Describes properties of one or more targets of a request.

Generated from protobuf message `google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1 \\ AuthzPolicy \\ AuthzRule

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ operations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.AuthzRule.To.RequestOperation>` Optional. Describes properties of one or more targets of a request. At least one of operations or notOperations must be specified. Limited to 1 operation. A match occurs when ANY operation (in operations or notOperations) matches. Within an operation, the match follows AND semantics across fields and OR semantics within a field, i.e. a match occurs when ANY path matches AND ANY header matches and ANY method matches. |
| `↳ not_operations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.AuthzRule.To.RequestOperation>` Optional. Describes the negated properties of the targets of a request. Matches requests for operations that do not match the criteria specified in this field. At least one of operations or notOperations must be specified. |

### getOperations

Optional. Describes properties of one or more targets of a request. At
least one of operations or notOperations must be specified. Limited to
1 operation. A match occurs when ANY operation (in operations or
notOperations) matches. Within an operation, the match follows AND
semantics across fields and OR semantics within a field, i.e. a match
occurs when ANY path matches AND ANY header matches and ANY method
matches.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.AuthzRule.To.RequestOperation>` |   |

### setOperations

Optional. Describes properties of one or more targets of a request. At
least one of operations or notOperations must be specified. Limited to
1 operation. A match occurs when ANY operation (in operations or
notOperations) matches. Within an operation, the match follows AND
semantics across fields and OR semantics within a field, i.e. a match
occurs when ANY path matches AND ANY header matches and ANY method
matches.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.AuthzRule.To.RequestOperation>` |

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

### getNotOperations

Optional. Describes the negated properties of the targets of a request.

Matches requests for operations that do not match the criteria
specified in this field. At least one of operations or notOperations
must be specified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.AuthzRule.To.RequestOperation>` |   |

### setNotOperations

Optional. Describes the negated properties of the targets of a request.

Matches requests for operations that do not match the criteria
specified in this field. At least one of operations or notOperations
must be specified.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.AuthzRule.To.RequestOperation>` |

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