# Google Cloud Org Policy V2 Client - Class ListConstraint (1.3.3)

1.3.3 (latest) 1.3.2 1.2.2 1.1.3 1.0.0 0.7.0 0.6.5 0.5.3 0.4.2 0.3.7 Reference documentation and code samples for the Google Cloud Org Policy V2 Client class ListConstraint.

A constraint type that allows or disallows a list of string values, which
are configured in the
[`PolicyRule`](https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.PolicySpec.PolicyRule).

Generated from protobuf message `google.cloud.orgpolicy.v2.Constraint.ListConstraint`

## Namespace

Google \\ Cloud \\ OrgPolicy \\ V2 \\ Constraint

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ supports_in` | `bool` Indicates whether values grouped into categories can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `"in:Python"` would match any value in the 'Python' group. |
| `↳ supports_under` | `bool` Indicates whether subtrees of the Resource Manager resource hierarchy can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `"under:folders/123"` would match any resource under the 'folders/123' folder. |

### getSupportsIn

Indicates whether values grouped into categories can be used in
`Policy.allowed_values` and `Policy.denied_values`. For example,
`"in:Python"` would match any value in the 'Python' group.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setSupportsIn

Indicates whether values grouped into categories can be used in
`Policy.allowed_values` and `Policy.denied_values`. For example,
`"in:Python"` would match any value in the 'Python' group.

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

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

### getSupportsUnder

Indicates whether subtrees of the Resource Manager resource hierarchy
can be used in `Policy.allowed_values` and `Policy.denied_values`. For
example, `"under:folders/123"` would match any resource under the
'folders/123' folder.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setSupportsUnder

Indicates whether subtrees of the Resource Manager resource hierarchy
can be used in `Policy.allowed_values` and `Policy.denied_values`. For
example, `"under:folders/123"` would match any resource under the
'folders/123' folder.

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

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