# Policy Simulator V1 API - Class Google::Cloud::OrgPolicy::V2::ListPoliciesResponse (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::ListPoliciesResponse.

The response returned from the \[ListPolicies\]
\[google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies\] method. It will be empty
if no policies are set on the resource.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #next_page_token

    def next_page_token() -> ::String

**Returns**

- (::String) --- Page token used to retrieve the next page. This is currently not used, but the server may at any point start supplying a valid token.

### #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, but the server may at any point start supplying a valid token.
**Returns**

- (::String) --- Page token used to retrieve the next page. This is currently not used, but the server may at any point start supplying a valid token.

### #policies

    def policies() -> ::Array<::Google::Cloud::OrgPolicy::V2::Policy>

**Returns**

- (::Array\<[::Google::Cloud::OrgPolicy::V2::Policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Policy)\>) --- All policies that exist on the resource. It will be empty if no policies are set.

### #policies=

    def policies=(value) -> ::Array<::Google::Cloud::OrgPolicy::V2::Policy>

**Parameter**

- **value** (::Array\<[::Google::Cloud::OrgPolicy::V2::Policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Policy)\>) --- All policies that exist on the resource. It will be empty if no policies are set.
**Returns**

- (::Array\<[::Google::Cloud::OrgPolicy::V2::Policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Policy)\>) --- All policies that exist on the resource. It will be empty if no policies are set.