Skip to content
Permalink
Browse files
chore: use gapic-generator-python 0.52.0 (#46)
- [ ] 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 f7bc594 commit 98d65c5d61a55d6cd550a7e079eb3c41156076c7
Showing with 14 additions and 14 deletions.
  1. +14 −14 google/cloud/privatecatalog_v1beta1/services/private_catalog/pagers.py
@@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

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

@property
def pages(self) -> Iterable[private_catalog.SearchCatalogsResponse]:
def pages(self) -> Iterator[private_catalog.SearchCatalogsResponse]:
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[private_catalog.Catalog]:
def __iter__(self) -> Iterator[private_catalog.Catalog]:
for page in self.pages:
yield from page.catalogs

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

@property
async def pages(self) -> AsyncIterable[private_catalog.SearchCatalogsResponse]:
async def pages(self) -> AsyncIterator[private_catalog.SearchCatalogsResponse]:
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[private_catalog.Catalog]:
def __aiter__(self) -> AsyncIterator[private_catalog.Catalog]:
async def async_generator():
async for page in self.pages:
for response in page.catalogs:
@@ -202,14 +202,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[private_catalog.SearchProductsResponse]:
def pages(self) -> Iterator[private_catalog.SearchProductsResponse]:
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[private_catalog.Product]:
def __iter__(self) -> Iterator[private_catalog.Product]:
for page in self.pages:
yield from page.products

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

@property
async def pages(self) -> AsyncIterable[private_catalog.SearchProductsResponse]:
async def pages(self) -> AsyncIterator[private_catalog.SearchProductsResponse]:
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[private_catalog.Product]:
def __aiter__(self) -> AsyncIterator[private_catalog.Product]:
async def async_generator():
async for page in self.pages:
for response in page.products:
@@ -330,14 +330,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[private_catalog.SearchVersionsResponse]:
def pages(self) -> Iterator[private_catalog.SearchVersionsResponse]:
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[private_catalog.Version]:
def __iter__(self) -> Iterator[private_catalog.Version]:
for page in self.pages:
yield from page.versions

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

@property
async def pages(self) -> AsyncIterable[private_catalog.SearchVersionsResponse]:
async def pages(self) -> AsyncIterator[private_catalog.SearchVersionsResponse]:
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[private_catalog.Version]:
def __aiter__(self) -> AsyncIterator[private_catalog.Version]:
async def async_generator():
async for page in self.pages:
for response in page.versions:

0 comments on commit 98d65c5

Please sign in to comment.