Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
chore: use gapic-generator-python 0.52.0 (#36)
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] committed Sep 30, 2021
1 parent 59fb40d commit ce0077b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
20 changes: 10 additions & 10 deletions google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/pagers.py
Expand Up @@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

from google.cloud.dataflow_v1beta3.types import jobs
Expand Down Expand Up @@ -74,14 +74,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[jobs.ListJobsResponse]:
def pages(self) -> Iterator[jobs.ListJobsResponse]:
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[jobs.Job]:
def __iter__(self) -> Iterator[jobs.Job]:
for page in self.pages:
yield from page.jobs

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

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

@property
def pages(self) -> Iterable[jobs.ListJobsResponse]:
def pages(self) -> Iterator[jobs.ListJobsResponse]:
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[jobs.Job]:
def __iter__(self) -> Iterator[jobs.Job]:
for page in self.pages:
yield from page.jobs

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

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

from google.cloud.dataflow_v1beta3.types import messages
Expand Down Expand Up @@ -74,14 +74,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[messages.ListJobMessagesResponse]:
def pages(self) -> Iterator[messages.ListJobMessagesResponse]:
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[messages.JobMessage]:
def __iter__(self) -> Iterator[messages.JobMessage]:
for page in self.pages:
yield from page.job_messages

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

@property
async def pages(self) -> AsyncIterable[messages.ListJobMessagesResponse]:
async def pages(self) -> AsyncIterator[messages.ListJobMessagesResponse]:
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[messages.JobMessage]:
def __aiter__(self) -> AsyncIterator[messages.JobMessage]:
async def async_generator():
async for page in self.pages:
for response in page.job_messages:
Expand Down
20 changes: 10 additions & 10 deletions google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/pagers.py
Expand Up @@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

from google.cloud.dataflow_v1beta3.types import metrics
Expand Down Expand Up @@ -74,14 +74,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[metrics.JobExecutionDetails]:
def pages(self) -> Iterator[metrics.JobExecutionDetails]:
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[metrics.StageSummary]:
def __iter__(self) -> Iterator[metrics.StageSummary]:
for page in self.pages:
yield from page.stages

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

@property
async def pages(self) -> AsyncIterable[metrics.JobExecutionDetails]:
async def pages(self) -> AsyncIterator[metrics.JobExecutionDetails]:
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[metrics.StageSummary]:
def __aiter__(self) -> AsyncIterator[metrics.StageSummary]:
async def async_generator():
async for page in self.pages:
for response in page.stages:
Expand Down Expand Up @@ -202,14 +202,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[metrics.StageExecutionDetails]:
def pages(self) -> Iterator[metrics.StageExecutionDetails]:
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[metrics.WorkerDetails]:
def __iter__(self) -> Iterator[metrics.WorkerDetails]:
for page in self.pages:
yield from page.workers

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

@property
async def pages(self) -> AsyncIterable[metrics.StageExecutionDetails]:
async def pages(self) -> AsyncIterator[metrics.StageExecutionDetails]:
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[metrics.WorkerDetails]:
def __aiter__(self) -> AsyncIterator[metrics.WorkerDetails]:
async def async_generator():
async for page in self.pages:
for response in page.workers:
Expand Down

0 comments on commit ce0077b

Please sign in to comment.