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

Commit

Permalink
chore: use gapic-generator-python 0.52.0 (#32)
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 d108d68 commit 90b83d6
Showing 1 changed file with 14 additions and 14 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.network_security_v1beta1.types import authorization_policy
Expand Down Expand Up @@ -76,14 +76,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[authorization_policy.ListAuthorizationPoliciesResponse]:
def pages(self) -> Iterator[authorization_policy.ListAuthorizationPoliciesResponse]:
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[authorization_policy.AuthorizationPolicy]:
def __iter__(self) -> Iterator[authorization_policy.AuthorizationPolicy]:
for page in self.pages:
yield from page.authorization_policies

Expand Down Expand Up @@ -142,14 +142,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[authorization_policy.ListAuthorizationPoliciesResponse]:
) -> AsyncIterator[authorization_policy.ListAuthorizationPoliciesResponse]:
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[authorization_policy.AuthorizationPolicy]:
def __aiter__(self) -> AsyncIterator[authorization_policy.AuthorizationPolicy]:
async def async_generator():
async for page in self.pages:
for response in page.authorization_policies:
Expand Down Expand Up @@ -208,14 +208,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[server_tls_policy.ListServerTlsPoliciesResponse]:
def pages(self) -> Iterator[server_tls_policy.ListServerTlsPoliciesResponse]:
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[server_tls_policy.ServerTlsPolicy]:
def __iter__(self) -> Iterator[server_tls_policy.ServerTlsPolicy]:
for page in self.pages:
yield from page.server_tls_policies

Expand Down Expand Up @@ -274,14 +274,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[server_tls_policy.ListServerTlsPoliciesResponse]:
) -> AsyncIterator[server_tls_policy.ListServerTlsPoliciesResponse]:
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[server_tls_policy.ServerTlsPolicy]:
def __aiter__(self) -> AsyncIterator[server_tls_policy.ServerTlsPolicy]:
async def async_generator():
async for page in self.pages:
for response in page.server_tls_policies:
Expand Down Expand Up @@ -340,14 +340,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[client_tls_policy.ListClientTlsPoliciesResponse]:
def pages(self) -> Iterator[client_tls_policy.ListClientTlsPoliciesResponse]:
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[client_tls_policy.ClientTlsPolicy]:
def __iter__(self) -> Iterator[client_tls_policy.ClientTlsPolicy]:
for page in self.pages:
yield from page.client_tls_policies

Expand Down Expand Up @@ -406,14 +406,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[client_tls_policy.ListClientTlsPoliciesResponse]:
) -> AsyncIterator[client_tls_policy.ListClientTlsPoliciesResponse]:
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[client_tls_policy.ClientTlsPolicy]:
def __aiter__(self) -> AsyncIterator[client_tls_policy.ClientTlsPolicy]:
async def async_generator():
async for page in self.pages:
for response in page.client_tls_policies:
Expand Down

0 comments on commit 90b83d6

Please sign in to comment.