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

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

Source-Link: googleapis/googleapis@410c184

Source-Link: https://github.com/googleapis/googleapis-gen/commit/290e883545e3ac9ff2bd00cd0dacb28f1b8ca945
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjkwZTg4MzU0NWUzYWM5ZmYyYmQwMGNkMGRhY2IyOGYxYjhjYTk0NSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Sep 30, 2021
1 parent d39fd0d commit b278e83f4a087ac21fd02eefc5f79e8c02abcfb5
Showing with 10 additions and 10 deletions.
  1. +10 −10 google/cloud/data_fusion_v1/services/data_fusion/pagers.py
@@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

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

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

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

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

@property
def pages(self) -> Iterable[datafusion.ListInstancesResponse]:
def pages(self) -> Iterator[datafusion.ListInstancesResponse]:
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[datafusion.Instance]:
def __iter__(self) -> Iterator[datafusion.Instance]:
for page in self.pages:
yield from page.instances

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

@property
async def pages(self) -> AsyncIterable[datafusion.ListInstancesResponse]:
async def pages(self) -> AsyncIterator[datafusion.ListInstancesResponse]:
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[datafusion.Instance]:
def __aiter__(self) -> AsyncIterator[datafusion.Instance]:
async def async_generator():
async for page in self.pages:
for response in page.instances:

0 comments on commit b278e83

Please sign in to comment.