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

Commit

Permalink
chore: use gapic-generator-python 0.52.0 (#177)
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: https://github.com/googleapis/googleapis-gen/commit/290e883545e3ac9ff2bd00cd0dacb28f1b8ca945
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjkwZTg4MzU0NWUzYWM5ZmYyYmQwMGNkMGRhY2IyOGYxYjhjYTk0NSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 30, 2021
1 parent 3304c5c commit f56eed5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions google/cloud/devtools/cloudbuild_v1/services/cloud_build/pagers.py
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.devtools.cloudbuild_v1.types import cloudbuild
Expand Down Expand Up @@ -74,14 +74,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[cloudbuild.ListBuildsResponse]:
def pages(self) -> Iterator[cloudbuild.ListBuildsResponse]:
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[cloudbuild.Build]:
def __iter__(self) -> Iterator[cloudbuild.Build]:
for page in self.pages:
yield from page.builds

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

@property
def pages(self) -> Iterable[cloudbuild.ListBuildTriggersResponse]:
def pages(self) -> Iterator[cloudbuild.ListBuildTriggersResponse]:
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[cloudbuild.BuildTrigger]:
def __iter__(self) -> Iterator[cloudbuild.BuildTrigger]:
for page in self.pages:
yield from page.triggers

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[cloudbuild.ListBuildTriggersResponse]:
async def pages(self) -> AsyncIterator[cloudbuild.ListBuildTriggersResponse]:
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[cloudbuild.BuildTrigger]:
def __aiter__(self) -> AsyncIterator[cloudbuild.BuildTrigger]:
async def async_generator():
async for page in self.pages:
for response in page.triggers:
Expand Down Expand Up @@ -330,14 +330,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[cloudbuild.ListWorkerPoolsResponse]:
def pages(self) -> Iterator[cloudbuild.ListWorkerPoolsResponse]:
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[cloudbuild.WorkerPool]:
def __iter__(self) -> Iterator[cloudbuild.WorkerPool]:
for page in self.pages:
yield from page.worker_pools

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

@property
async def pages(self) -> AsyncIterable[cloudbuild.ListWorkerPoolsResponse]:
async def pages(self) -> AsyncIterator[cloudbuild.ListWorkerPoolsResponse]:
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[cloudbuild.WorkerPool]:
def __aiter__(self) -> AsyncIterator[cloudbuild.WorkerPool]:
async def async_generator():
async for page in self.pages:
for response in page.worker_pools:
Expand Down

0 comments on commit f56eed5

Please sign in to comment.