# Organization Policy V2 API - Class Google::Cloud::OrgPolicy::V2::Constraint::ListConstraint (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.6 Reference documentation and code samples for the Organization Policy V2 API class Google::Cloud::OrgPolicy::V2::Constraint::ListConstraint.

A constraint type that allows or disallows a list of string values, which
are configured in the
[`PolicyRule`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-org_policy-v2/latest/Google-Cloud-OrgPolicy-V2-PolicySpec-PolicyRule "Google::Cloud::OrgPolicy::V2::PolicySpec::PolicyRule (class)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #supports_in

    def supports_in() -> ::Boolean

**Returns**

- (::Boolean) --- 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_in=

    def supports_in=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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**

- (::Boolean) --- 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

    def supports_under() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #supports_under=

    def supports_under=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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**

- (::Boolean) --- 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.