Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.52.0 (#183)
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 0451eed commit 0a08a72
Showing 1 changed file with 18 additions and 18 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.kms_v1.types import resources
Expand Down Expand Up @@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[service.ListKeyRingsResponse]:
def pages(self) -> Iterator[service.ListKeyRingsResponse]:
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[resources.KeyRing]:
def __iter__(self) -> Iterator[resources.KeyRing]:
for page in self.pages:
yield from page.key_rings

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

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

@property
def pages(self) -> Iterable[service.ListCryptoKeysResponse]:
def pages(self) -> Iterator[service.ListCryptoKeysResponse]:
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[resources.CryptoKey]:
def __iter__(self) -> Iterator[resources.CryptoKey]:
for page in self.pages:
yield from page.crypto_keys

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

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

@property
def pages(self) -> Iterable[service.ListCryptoKeyVersionsResponse]:
def pages(self) -> Iterator[service.ListCryptoKeyVersionsResponse]:
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[resources.CryptoKeyVersion]:
def __iter__(self) -> Iterator[resources.CryptoKeyVersion]:
for page in self.pages:
yield from page.crypto_key_versions

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

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

@property
def pages(self) -> Iterable[service.ListImportJobsResponse]:
def pages(self) -> Iterator[service.ListImportJobsResponse]:
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[resources.ImportJob]:
def __iter__(self) -> Iterator[resources.ImportJob]:
for page in self.pages:
yield from page.import_jobs

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

@property
async def pages(self) -> AsyncIterable[service.ListImportJobsResponse]:
async def pages(self) -> AsyncIterator[service.ListImportJobsResponse]:
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[resources.ImportJob]:
def __aiter__(self) -> AsyncIterator[resources.ImportJob]:
async def async_generator():
async for page in self.pages:
for response in page.import_jobs:
Expand Down

0 comments on commit 0a08a72

Please sign in to comment.