# Module pagers (1.18.0)

1.18.0 (latest) 1.17.0 1.16.1 1.15.0 1.14.0 1.13.0 1.12.0 1.11.1 1.10.0 1.9.0 1.8.3 1.7.1 1.6.0 1.5.0 1.4.1 1.3.3 1.2.1 1.1.0 1.0.2 0.3.0 0.2.0 0.1.2 API documentation for `orgpolicy_v2.services.org_policy.pagers` module.

## Classes

### [ListConstraintsAsyncPager](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.services.org_policy.pagers.ListConstraintsAsyncPager)

    ListConstraintsAsyncPager(
        method: typing.Callable[
            [...],
            typing.Awaitable[
                google.cloud.orgpolicy_v2.types.orgpolicy.ListConstraintsResponse
            ],
        ],
        request: google.cloud.orgpolicy_v2.types.orgpolicy.ListConstraintsRequest,
        response: google.cloud.orgpolicy_v2.types.orgpolicy.ListConstraintsResponse,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary_async.AsyncRetry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    )

A pager for iterating through `list_constraints` requests.

This class thinly wraps an initial
[ListConstraintsResponse](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.types.ListConstraintsResponse) object, and
provides an `__aiter__` method to iterate through its
`constraints` field.

If there are more pages, the `__aiter__` method will make additional
`ListConstraints` requests and continue to iterate
through the `constraints` field on the
corresponding responses.

All the usual [ListConstraintsResponse](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.types.ListConstraintsResponse)
attributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.

### [ListConstraintsPager](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.services.org_policy.pagers.ListConstraintsPager)

    ListConstraintsPager(
        method: typing.Callable[
            [...], google.cloud.orgpolicy_v2.types.orgpolicy.ListConstraintsResponse
        ],
        request: google.cloud.orgpolicy_v2.types.orgpolicy.ListConstraintsRequest,
        response: google.cloud.orgpolicy_v2.types.orgpolicy.ListConstraintsResponse,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    )

A pager for iterating through `list_constraints` requests.

This class thinly wraps an initial
[ListConstraintsResponse](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.types.ListConstraintsResponse) object, and
provides an `__iter__` method to iterate through its
`constraints` field.

If there are more pages, the `__iter__` method will make additional
`ListConstraints` requests and continue to iterate
through the `constraints` field on the
corresponding responses.

All the usual [ListConstraintsResponse](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.types.ListConstraintsResponse)
attributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.

### [ListCustomConstraintsAsyncPager](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.services.org_policy.pagers.ListCustomConstraintsAsyncPager)

    ListCustomConstraintsAsyncPager(
        method: typing.Callable[
            [...],
            typing.Awaitable[
                google.cloud.orgpolicy_v2.types.orgpolicy.ListCustomConstraintsResponse
            ],
        ],
        request: google.cloud.orgpolicy_v2.types.orgpolicy.ListCustomConstraintsRequest,
        response: google.cloud.orgpolicy_v2.types.orgpolicy.ListCustomConstraintsResponse,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary_async.AsyncRetry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    )

A pager for iterating through `list_custom_constraints` requests.

This class thinly wraps an initial
[ListCustomConstraintsResponse](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.types.ListCustomConstraintsResponse) object, and
provides an `__aiter__` method to iterate through its
`custom_constraints` field.

If there are more pages, the `__aiter__` method will make additional
`ListCustomConstraints` requests and continue to iterate
through the `custom_constraints` field on the
corresponding responses.

All the usual [ListCustomConstraintsResponse](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.types.ListCustomConstraintsResponse)
attributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.

### [ListCustomConstraintsPager](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.services.org_policy.pagers.ListCustomConstraintsPager)

    ListCustomConstraintsPager(
        method: typing.Callable[
            [...], google.cloud.orgpolicy_v2.types.orgpolicy.ListCustomConstraintsResponse
        ],
        request: google.cloud.orgpolicy_v2.types.orgpolicy.ListCustomConstraintsRequest,
        response: google.cloud.orgpolicy_v2.types.orgpolicy.ListCustomConstraintsResponse,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    )

A pager for iterating through `list_custom_constraints` requests.

This class thinly wraps an initial
[ListCustomConstraintsResponse](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.types.ListCustomConstraintsResponse) object, and
provides an `__iter__` method to iterate through its
`custom_constraints` field.

If there are more pages, the `__iter__` method will make additional
`ListCustomConstraints` requests and continue to iterate
through the `custom_constraints` field on the
corresponding responses.

All the usual [ListCustomConstraintsResponse](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.types.ListCustomConstraintsResponse)
attributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.

### [ListPoliciesAsyncPager](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.services.org_policy.pagers.ListPoliciesAsyncPager)

    ListPoliciesAsyncPager(
        method: typing.Callable[
            [...],
            typing.Awaitable[
                google.cloud.orgpolicy_v2.types.orgpolicy.ListPoliciesResponse
            ],
        ],
        request: google.cloud.orgpolicy_v2.types.orgpolicy.ListPoliciesRequest,
        response: google.cloud.orgpolicy_v2.types.orgpolicy.ListPoliciesResponse,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary_async.AsyncRetry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    )

A pager for iterating through `list_policies` requests.

This class thinly wraps an initial
[ListPoliciesResponse](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.types.ListPoliciesResponse) object, and
provides an `__aiter__` method to iterate through its
`policies` field.

If there are more pages, the `__aiter__` method will make additional
`ListPolicies` requests and continue to iterate
through the `policies` field on the
corresponding responses.

All the usual [ListPoliciesResponse](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.types.ListPoliciesResponse)
attributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.

### [ListPoliciesPager](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.services.org_policy.pagers.ListPoliciesPager)

    ListPoliciesPager(
        method: typing.Callable[
            [...], google.cloud.orgpolicy_v2.types.orgpolicy.ListPoliciesResponse
        ],
        request: google.cloud.orgpolicy_v2.types.orgpolicy.ListPoliciesRequest,
        response: google.cloud.orgpolicy_v2.types.orgpolicy.ListPoliciesResponse,
        *,
        retry: typing.Optional[
            typing.Union[
                google.api_core.retry.retry_unary.Retry,
                google.api_core.gapic_v1.method._MethodDefault,
            ]
        ] = _MethodDefault._DEFAULT_VALUE,
        timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
        metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
    )

A pager for iterating through `list_policies` requests.

This class thinly wraps an initial
[ListPoliciesResponse](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.types.ListPoliciesResponse) object, and
provides an `__iter__` method to iterate through its
`policies` field.

If there are more pages, the `__iter__` method will make additional
`ListPolicies` requests and continue to iterate
through the `policies` field on the
corresponding responses.

All the usual [ListPoliciesResponse](https://docs.cloud.google.com/python/docs/reference/orgpolicy/latest/google.cloud.orgpolicy_v2.types.ListPoliciesResponse)
attributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.