Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

chore: use gapic-generator-python 0.52.0 #29

Merged
merged 2 commits into from
Sep 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

from google.cloud.iap_v1.types import service
Expand Down Expand Up @@ -74,14 +74,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[service.ListIdentityAwareProxyClientsResponse]:
def pages(self) -> Iterator[service.ListIdentityAwareProxyClientsResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = self._method(self._request, metadata=self._metadata)
yield self._response

def __iter__(self) -> Iterable[service.IdentityAwareProxyClient]:
def __iter__(self) -> Iterator[service.IdentityAwareProxyClient]:
for page in self.pages:
yield from page.identity_aware_proxy_clients

Expand Down Expand Up @@ -138,14 +138,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[service.ListIdentityAwareProxyClientsResponse]:
) -> AsyncIterator[service.ListIdentityAwareProxyClientsResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = await self._method(self._request, metadata=self._metadata)
yield self._response

def __aiter__(self) -> AsyncIterable[service.IdentityAwareProxyClient]:
def __aiter__(self) -> AsyncIterator[service.IdentityAwareProxyClient]:
async def async_generator():
async for page in self.pages:
for response in page.identity_aware_proxy_clients:
Expand Down