Class ListAgentPoolsAsyncPager (1.3.1)

ListAgentPoolsAsyncPager(
    method: Callable[
        [...],
        Awaitable[
            google.cloud.storage_transfer_v1.types.transfer.ListAgentPoolsResponse
        ],
    ],
    request: google.cloud.storage_transfer_v1.types.transfer.ListAgentPoolsRequest,
    response: google.cloud.storage_transfer_v1.types.transfer.ListAgentPoolsResponse,
    *,
    metadata: Sequence[Tuple[str, str]] = ()
)

A pager for iterating through list_agent_pools requests.

This class thinly wraps an initial ListAgentPoolsResponse object, and provides an __aiter__ method to iterate through its agent_pools field.

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

All the usual ListAgentPoolsResponse attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.

Methods

ListAgentPoolsAsyncPager

ListAgentPoolsAsyncPager(
    method: Callable[
        [...],
        Awaitable[
            google.cloud.storage_transfer_v1.types.transfer.ListAgentPoolsResponse
        ],
    ],
    request: google.cloud.storage_transfer_v1.types.transfer.ListAgentPoolsRequest,
    response: google.cloud.storage_transfer_v1.types.transfer.ListAgentPoolsResponse,
    *,
    metadata: Sequence[Tuple[str, str]] = ()
)

Instantiates the pager.

Parameters
NameDescription
method Callable

The method that was originally called, and which instantiated this pager.

request google.cloud.storage_transfer_v1.types.ListAgentPoolsRequest

The initial request object.

response google.cloud.storage_transfer_v1.types.ListAgentPoolsResponse

The initial response object.

metadata Sequence[Tuple[str, str]]

Strings which should be sent along with the request as metadata.