Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.52.0 (#169)
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 c3c2a17 commit 762250a
Showing 1 changed file with 22 additions and 22 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.bigquery_reservation_v1.types import reservation
Expand Down Expand Up @@ -74,14 +74,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[reservation.ListReservationsResponse]:
def pages(self) -> Iterator[reservation.ListReservationsResponse]:
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[reservation.Reservation]:
def __iter__(self) -> Iterator[reservation.Reservation]:
for page in self.pages:
yield from page.reservations

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

@property
def pages(self) -> Iterable[reservation.ListCapacityCommitmentsResponse]:
def pages(self) -> Iterator[reservation.ListCapacityCommitmentsResponse]:
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[reservation.CapacityCommitment]:
def __iter__(self) -> Iterator[reservation.CapacityCommitment]:
for page in self.pages:
yield from page.capacity_commitments

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

@property
def pages(self) -> Iterable[reservation.ListAssignmentsResponse]:
def pages(self) -> Iterator[reservation.ListAssignmentsResponse]:
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[reservation.Assignment]:
def __iter__(self) -> Iterator[reservation.Assignment]:
for page in self.pages:
yield from page.assignments

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[reservation.ListAssignmentsResponse]:
async def pages(self) -> AsyncIterator[reservation.ListAssignmentsResponse]:
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[reservation.Assignment]:
def __aiter__(self) -> AsyncIterator[reservation.Assignment]:
async def async_generator():
async for page in self.pages:
for response in page.assignments:
Expand Down Expand Up @@ -458,14 +458,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[reservation.SearchAssignmentsResponse]:
def pages(self) -> Iterator[reservation.SearchAssignmentsResponse]:
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[reservation.Assignment]:
def __iter__(self) -> Iterator[reservation.Assignment]:
for page in self.pages:
yield from page.assignments

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

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

@property
def pages(self) -> Iterable[reservation.SearchAllAssignmentsResponse]:
def pages(self) -> Iterator[reservation.SearchAllAssignmentsResponse]:
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[reservation.Assignment]:
def __iter__(self) -> Iterator[reservation.Assignment]:
for page in self.pages:
yield from page.assignments

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

@property
async def pages(self) -> AsyncIterable[reservation.SearchAllAssignmentsResponse]:
async def pages(self) -> AsyncIterator[reservation.SearchAllAssignmentsResponse]:
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[reservation.Assignment]:
def __aiter__(self) -> AsyncIterator[reservation.Assignment]:
async def async_generator():
async for page in self.pages:
for response in page.assignments:
Expand Down

0 comments on commit 762250a

Please sign in to comment.