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

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

@property
def pages(self) -> Iterable[apigateway.ListGatewaysResponse]:
def pages(self) -> Iterator[apigateway.ListGatewaysResponse]:
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[apigateway.Gateway]:
def __iter__(self) -> Iterator[apigateway.Gateway]:
for page in self.pages:
yield from page.gateways

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

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

@property
def pages(self) -> Iterable[apigateway.ListApisResponse]:
def pages(self) -> Iterator[apigateway.ListApisResponse]:
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[apigateway.Api]:
def __iter__(self) -> Iterator[apigateway.Api]:
for page in self.pages:
yield from page.apis

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

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

@property
def pages(self) -> Iterable[apigateway.ListApiConfigsResponse]:
def pages(self) -> Iterator[apigateway.ListApiConfigsResponse]:
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[apigateway.ApiConfig]:
def __iter__(self) -> Iterator[apigateway.ApiConfig]:
for page in self.pages:
yield from page.api_configs

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

@property
async def pages(self) -> AsyncIterable[apigateway.ListApiConfigsResponse]:
async def pages(self) -> AsyncIterator[apigateway.ListApiConfigsResponse]:
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[apigateway.ApiConfig]:
def __aiter__(self) -> AsyncIterator[apigateway.ApiConfig]:
async def async_generator():
async for page in self.pages:
for response in page.api_configs:

0 comments on commit fc86cd1

Please sign in to comment.