Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.52.0 (#168)
Browse files Browse the repository at this point in the history
- [ ] 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[bot] authored Sep 30, 2021
1 parent 3d40434 commit 4ab5f48
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
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.tasks_v2.types import cloudtasks
Expand Down Expand Up @@ -76,14 +76,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[cloudtasks.ListQueuesResponse]:
def pages(self) -> Iterator[cloudtasks.ListQueuesResponse]:
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[queue.Queue]:
def __iter__(self) -> Iterator[queue.Queue]:
for page in self.pages:
yield from page.queues

Expand Down Expand Up @@ -138,14 +138,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[cloudtasks.ListQueuesResponse]:
async def pages(self) -> AsyncIterator[cloudtasks.ListQueuesResponse]:
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[queue.Queue]:
def __aiter__(self) -> AsyncIterator[queue.Queue]:
async def async_generator():
async for page in self.pages:
for response in page.queues:
Expand Down Expand Up @@ -204,14 +204,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[cloudtasks.ListTasksResponse]:
def pages(self) -> Iterator[cloudtasks.ListTasksResponse]:
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[task.Task]:
def __iter__(self) -> Iterator[task.Task]:
for page in self.pages:
yield from page.tasks

Expand Down Expand Up @@ -266,14 +266,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[cloudtasks.ListTasksResponse]:
async def pages(self) -> AsyncIterator[cloudtasks.ListTasksResponse]:
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[task.Task]:
def __aiter__(self) -> AsyncIterator[task.Task]:
async def async_generator():
async for page in self.pages:
for response in page.tasks:
Expand Down
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.tasks_v2beta2.types import cloudtasks
Expand Down Expand Up @@ -76,14 +76,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[cloudtasks.ListQueuesResponse]:
def pages(self) -> Iterator[cloudtasks.ListQueuesResponse]:
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[queue.Queue]:
def __iter__(self) -> Iterator[queue.Queue]:
for page in self.pages:
yield from page.queues

Expand Down Expand Up @@ -138,14 +138,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[cloudtasks.ListQueuesResponse]:
async def pages(self) -> AsyncIterator[cloudtasks.ListQueuesResponse]:
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[queue.Queue]:
def __aiter__(self) -> AsyncIterator[queue.Queue]:
async def async_generator():
async for page in self.pages:
for response in page.queues:
Expand Down Expand Up @@ -204,14 +204,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[cloudtasks.ListTasksResponse]:
def pages(self) -> Iterator[cloudtasks.ListTasksResponse]:
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[task.Task]:
def __iter__(self) -> Iterator[task.Task]:
for page in self.pages:
yield from page.tasks

Expand Down Expand Up @@ -266,14 +266,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[cloudtasks.ListTasksResponse]:
async def pages(self) -> AsyncIterator[cloudtasks.ListTasksResponse]:
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[task.Task]:
def __aiter__(self) -> AsyncIterator[task.Task]:
async def async_generator():
async for page in self.pages:
for response in page.tasks:
Expand Down
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.tasks_v2beta3.types import cloudtasks
Expand Down Expand Up @@ -76,14 +76,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[cloudtasks.ListQueuesResponse]:
def pages(self) -> Iterator[cloudtasks.ListQueuesResponse]:
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[queue.Queue]:
def __iter__(self) -> Iterator[queue.Queue]:
for page in self.pages:
yield from page.queues

Expand Down Expand Up @@ -138,14 +138,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[cloudtasks.ListQueuesResponse]:
async def pages(self) -> AsyncIterator[cloudtasks.ListQueuesResponse]:
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[queue.Queue]:
def __aiter__(self) -> AsyncIterator[queue.Queue]:
async def async_generator():
async for page in self.pages:
for response in page.queues:
Expand Down Expand Up @@ -204,14 +204,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[cloudtasks.ListTasksResponse]:
def pages(self) -> Iterator[cloudtasks.ListTasksResponse]:
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[task.Task]:
def __iter__(self) -> Iterator[task.Task]:
for page in self.pages:
yield from page.tasks

Expand Down Expand Up @@ -266,14 +266,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[cloudtasks.ListTasksResponse]:
async def pages(self) -> AsyncIterator[cloudtasks.ListTasksResponse]:
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[task.Task]:
def __aiter__(self) -> AsyncIterator[task.Task]:
async def async_generator():
async for page in self.pages:
for response in page.tasks:
Expand Down

0 comments on commit 4ab5f48

Please sign in to comment.