Module pagers (1.2.2)

API documentation for networkconnectivity_v1.services.hub_service.pagers module.

Classes

ListHubsAsyncPager

ListHubsAsyncPager(
    method: Callable[
        [...], Awaitable[google.cloud.networkconnectivity_v1.types.hub.ListHubsResponse]
    ],
    request: google.cloud.networkconnectivity_v1.types.hub.ListHubsRequest,
    response: google.cloud.networkconnectivity_v1.types.hub.ListHubsResponse,
    *,
    metadata: Sequence[Tuple[str, str]] = ()
)

A pager for iterating through list_hubs requests.

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

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

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

ListHubsPager

ListHubsPager(
    method: Callable[
        [...], google.cloud.networkconnectivity_v1.types.hub.ListHubsResponse
    ],
    request: google.cloud.networkconnectivity_v1.types.hub.ListHubsRequest,
    response: google.cloud.networkconnectivity_v1.types.hub.ListHubsResponse,
    *,
    metadata: Sequence[Tuple[str, str]] = ()
)

A pager for iterating through list_hubs requests.

This class thinly wraps an initial ListHubsResponse object, and provides an __iter__ method to iterate through its hubs field.

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

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

ListSpokesAsyncPager

ListSpokesAsyncPager(
    method: Callable[
        [...],
        Awaitable[google.cloud.networkconnectivity_v1.types.hub.ListSpokesResponse],
    ],
    request: google.cloud.networkconnectivity_v1.types.hub.ListSpokesRequest,
    response: google.cloud.networkconnectivity_v1.types.hub.ListSpokesResponse,
    *,
    metadata: Sequence[Tuple[str, str]] = ()
)

A pager for iterating through list_spokes requests.

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

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

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

ListSpokesPager

ListSpokesPager(
    method: Callable[
        [...], google.cloud.networkconnectivity_v1.types.hub.ListSpokesResponse
    ],
    request: google.cloud.networkconnectivity_v1.types.hub.ListSpokesRequest,
    response: google.cloud.networkconnectivity_v1.types.hub.ListSpokesResponse,
    *,
    metadata: Sequence[Tuple[str, str]] = ()
)

A pager for iterating through list_spokes requests.

This class thinly wraps an initial ListSpokesResponse object, and provides an __iter__ method to iterate through its spokes field.

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

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