# Policy Simulator V1 API - Class Google::Cloud::OrgPolicy::V2::ListConstraintsResponse (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.4.0 0.3.2 0.2.0 0.1.1 Reference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::OrgPolicy::V2::ListConstraintsResponse.

The response returned from the \[ListConstraints\]
\[google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints\] method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #constraints

    def constraints() -> ::Array<::Google::Cloud::OrgPolicy::V2::Constraint>

**Returns**

- (::Array\<[::Google::Cloud::OrgPolicy::V2::Constraint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint)\>) --- The collection of constraints that are available on the targeted resource.

### #constraints=

    def constraints=(value) -> ::Array<::Google::Cloud::OrgPolicy::V2::Constraint>

**Parameter**

- **value** (::Array\<[::Google::Cloud::OrgPolicy::V2::Constraint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint)\>) --- The collection of constraints that are available on the targeted resource.
**Returns**

- (::Array\<[::Google::Cloud::OrgPolicy::V2::Constraint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint)\>) --- The collection of constraints that are available on the targeted resource.

### #next_page_token

    def next_page_token() -> ::String

**Returns**

- (::String) --- Page token used to retrieve the next page. This is currently not used.

### #next_page_token=

    def next_page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Page token used to retrieve the next page. This is currently not used.
**Returns**

- (::String) --- Page token used to retrieve the next page. This is currently not used.