Skip to content
Permalink
Browse files
chore: use gapic-generator-python 0.52.0 (#169)
- [ ] 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 f36ede3 commit ae65c70bd91602ccb851167d27b4161ebd6c3bb3
Showing with 22 additions and 22 deletions.
  1. +22 −22 google/cloud/bigquery_reservation_v1/services/reservation_service/pagers.py
@@ -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
@@ -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

@@ -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:
@@ -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

@@ -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:
@@ -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

@@ -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:
@@ -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

@@ -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:
@@ -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

@@ -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:

0 comments on commit ae65c70

Please sign in to comment.