Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.52.0 (#31)
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 9e70645 commit 55e64e7
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.datastream_v1alpha1.types import datastream
Expand Down Expand Up @@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[datastream.ListConnectionProfilesResponse]:
def pages(self) -> Iterator[datastream.ListConnectionProfilesResponse]:
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[datastream_resources.ConnectionProfile]:
def __iter__(self) -> Iterator[datastream_resources.ConnectionProfile]:
for page in self.pages:
yield from page.connection_profiles

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[datastream.ListConnectionProfilesResponse]:
async def pages(self) -> AsyncIterator[datastream.ListConnectionProfilesResponse]:
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[datastream_resources.ConnectionProfile]:
def __aiter__(self) -> AsyncIterator[datastream_resources.ConnectionProfile]:
async def async_generator():
async for page in self.pages:
for response in page.connection_profiles:
Expand Down Expand Up @@ -203,14 +203,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[datastream.ListStreamsResponse]:
def pages(self) -> Iterator[datastream.ListStreamsResponse]:
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[datastream_resources.Stream]:
def __iter__(self) -> Iterator[datastream_resources.Stream]:
for page in self.pages:
yield from page.streams

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[datastream.ListStreamsResponse]:
async def pages(self) -> AsyncIterator[datastream.ListStreamsResponse]:
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[datastream_resources.Stream]:
def __aiter__(self) -> AsyncIterator[datastream_resources.Stream]:
async def async_generator():
async for page in self.pages:
for response in page.streams:
Expand Down Expand Up @@ -331,14 +331,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[datastream.FetchStaticIpsResponse]:
def pages(self) -> Iterator[datastream.FetchStaticIpsResponse]:
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[str]:
def __iter__(self) -> Iterator[str]:
for page in self.pages:
yield from page.static_ips

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

@property
def pages(self) -> Iterable[datastream.ListPrivateConnectionsResponse]:
def pages(self) -> Iterator[datastream.ListPrivateConnectionsResponse]:
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[datastream_resources.PrivateConnection]:
def __iter__(self) -> Iterator[datastream_resources.PrivateConnection]:
for page in self.pages:
yield from page.private_connections

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[datastream.ListPrivateConnectionsResponse]:
async def pages(self) -> AsyncIterator[datastream.ListPrivateConnectionsResponse]:
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[datastream_resources.PrivateConnection]:
def __aiter__(self) -> AsyncIterator[datastream_resources.PrivateConnection]:
async def async_generator():
async for page in self.pages:
for response in page.private_connections:
Expand Down Expand Up @@ -587,14 +587,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[datastream.ListRoutesResponse]:
def pages(self) -> Iterator[datastream.ListRoutesResponse]:
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[datastream_resources.Route]:
def __iter__(self) -> Iterator[datastream_resources.Route]:
for page in self.pages:
yield from page.routes

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

@property
async def pages(self) -> AsyncIterable[datastream.ListRoutesResponse]:
async def pages(self) -> AsyncIterator[datastream.ListRoutesResponse]:
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[datastream_resources.Route]:
def __aiter__(self) -> AsyncIterator[datastream_resources.Route]:
async def async_generator():
async for page in self.pages:
for response in page.routes:
Expand Down

0 comments on commit 55e64e7

Please sign in to comment.