Skip to content
Permalink
Browse files
chore: use gapic-generator-python 0.52.0 (#126)
- [ ] 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 84f5db2 commit f86ec89f3c4537556188064606be005ee7feb056
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
@@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

from google.cloud.security.privateca_v1.types import resources
@@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

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

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

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

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

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

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

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

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

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

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

@@ -525,14 +525,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[service.ListCertificateRevocationListsResponse]:
) -> AsyncIterator[service.ListCertificateRevocationListsResponse]:
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.CertificateRevocationList]:
def __aiter__(self) -> AsyncIterator[resources.CertificateRevocationList]:
async def async_generator():
async for page in self.pages:
for response in page.certificate_revocation_lists:
@@ -591,14 +591,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

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

@@ -653,14 +653,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

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

from google.cloud.security.privateca_v1beta1.types import resources
@@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

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

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

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

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

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

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

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

@@ -397,14 +397,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[service.ListCertificateRevocationListsResponse]:
) -> AsyncIterator[service.ListCertificateRevocationListsResponse]:
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.CertificateRevocationList]:
def __aiter__(self) -> AsyncIterator[resources.CertificateRevocationList]:
async def async_generator():
async for page in self.pages:
for response in page.certificate_revocation_lists:
@@ -463,14 +463,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

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

@@ -525,14 +525,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[service.ListReusableConfigsResponse]:
async def pages(self) -> AsyncIterator[service.ListReusableConfigsResponse]:
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.ReusableConfig]:
def __aiter__(self) -> AsyncIterator[resources.ReusableConfig]:
async def async_generator():
async for page in self.pages:
for response in page.reusable_configs:

0 comments on commit f86ec89

Please sign in to comment.