# Organization Policy V2 API - Class Google::Cloud::OrgPolicy::V2::ListPoliciesResponse (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::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-org_policy-v2/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-org_policy-v2/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-org_policy-v2/latest/Google-Cloud-OrgPolicy-V2-Policy)\>) --- All policies that exist on the resource. It will be empty if no policies are set.