Skip to content
Permalink
Browse files
chore: use gapic-generator-python 0.52.0 (#118)
- [ ] Regenerate this pull request now.

fix: improper types in pagers generation
PiperOrigin-RevId: 399773015

Source-Link: googleapis/googleapis@410c184

Source-Link: googleapis/googleapis-gen@290e883
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjkwZTg4MzU0NWUzYWM5ZmYyYmQwMGNkMGRhY2IyOGYxYjhjYTk0NSJ9
  • Loading branch information
gcf-owl-bot committed Sep 30, 2021
1 parent e6e6f3f commit 1b0841dec49d193c777601ff16ee0706395349b3
@@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

from google.cloud.servicedirectory_v1.types import endpoint
@@ -77,14 +77,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[registration_service.ListNamespacesResponse]:
def pages(self) -> Iterator[registration_service.ListNamespacesResponse]:
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[namespace.Namespace]:
def __iter__(self) -> Iterator[namespace.Namespace]:
for page in self.pages:
yield from page.namespaces

@@ -139,14 +139,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[registration_service.ListNamespacesResponse]:
async def pages(self) -> AsyncIterator[registration_service.ListNamespacesResponse]:
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[namespace.Namespace]:
def __aiter__(self) -> AsyncIterator[namespace.Namespace]:
async def async_generator():
async for page in self.pages:
for response in page.namespaces:
@@ -205,14 +205,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[registration_service.ListServicesResponse]:
def pages(self) -> Iterator[registration_service.ListServicesResponse]:
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.Service]:
def __iter__(self) -> Iterator[service.Service]:
for page in self.pages:
yield from page.services

@@ -267,14 +267,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[registration_service.ListServicesResponse]:
async def pages(self) -> AsyncIterator[registration_service.ListServicesResponse]:
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.Service]:
def __aiter__(self) -> AsyncIterator[service.Service]:
async def async_generator():
async for page in self.pages:
for response in page.services:
@@ -333,14 +333,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[registration_service.ListEndpointsResponse]:
def pages(self) -> Iterator[registration_service.ListEndpointsResponse]:
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[endpoint.Endpoint]:
def __iter__(self) -> Iterator[endpoint.Endpoint]:
for page in self.pages:
yield from page.endpoints

@@ -395,14 +395,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[registration_service.ListEndpointsResponse]:
async def pages(self) -> AsyncIterator[registration_service.ListEndpointsResponse]:
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[endpoint.Endpoint]:
def __aiter__(self) -> AsyncIterator[endpoint.Endpoint]:
async def async_generator():
async for page in self.pages:
for response in page.endpoints:
@@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

from google.cloud.servicedirectory_v1beta1.types import endpoint
@@ -77,14 +77,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[registration_service.ListNamespacesResponse]:
def pages(self) -> Iterator[registration_service.ListNamespacesResponse]:
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[namespace.Namespace]:
def __iter__(self) -> Iterator[namespace.Namespace]:
for page in self.pages:
yield from page.namespaces

@@ -139,14 +139,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[registration_service.ListNamespacesResponse]:
async def pages(self) -> AsyncIterator[registration_service.ListNamespacesResponse]:
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[namespace.Namespace]:
def __aiter__(self) -> AsyncIterator[namespace.Namespace]:
async def async_generator():
async for page in self.pages:
for response in page.namespaces:
@@ -205,14 +205,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[registration_service.ListServicesResponse]:
def pages(self) -> Iterator[registration_service.ListServicesResponse]:
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.Service]:
def __iter__(self) -> Iterator[service.Service]:
for page in self.pages:
yield from page.services

@@ -267,14 +267,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[registration_service.ListServicesResponse]:
async def pages(self) -> AsyncIterator[registration_service.ListServicesResponse]:
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.Service]:
def __aiter__(self) -> AsyncIterator[service.Service]:
async def async_generator():
async for page in self.pages:
for response in page.services:
@@ -333,14 +333,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[registration_service.ListEndpointsResponse]:
def pages(self) -> Iterator[registration_service.ListEndpointsResponse]:
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[endpoint.Endpoint]:
def __iter__(self) -> Iterator[endpoint.Endpoint]:
for page in self.pages:
yield from page.endpoints

@@ -395,14 +395,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[registration_service.ListEndpointsResponse]:
async def pages(self) -> AsyncIterator[registration_service.ListEndpointsResponse]:
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[endpoint.Endpoint]:
def __aiter__(self) -> AsyncIterator[endpoint.Endpoint]:
async def async_generator():
async for page in self.pages:
for response in page.endpoints:

0 comments on commit 1b0841d

Please sign in to comment.