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

Commit

Permalink
chore: use gapic-generator-python 0.52.0 (#164)
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] committed Sep 30, 2021
1 parent c0945eb commit 31f3a51
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 60 deletions.
12 changes: 6 additions & 6 deletions google/cloud/talent_v4/services/company_service/pagers.py
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.talent_v4.types import company
Expand Down Expand Up @@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[company_service.ListCompaniesResponse]:
def pages(self) -> Iterator[company_service.ListCompaniesResponse]:
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[company.Company]:
def __iter__(self) -> Iterator[company.Company]:
for page in self.pages:
yield from page.companies

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[company_service.ListCompaniesResponse]:
async def pages(self) -> AsyncIterator[company_service.ListCompaniesResponse]:
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[company.Company]:
def __aiter__(self) -> AsyncIterator[company.Company]:
async def async_generator():
async for page in self.pages:
for response in page.companies:
Expand Down
12 changes: 6 additions & 6 deletions google/cloud/talent_v4/services/job_service/pagers.py
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.talent_v4.types import job
Expand Down Expand Up @@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[job_service.ListJobsResponse]:
def pages(self) -> Iterator[job_service.ListJobsResponse]:
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[job.Job]:
def __iter__(self) -> Iterator[job.Job]:
for page in self.pages:
yield from page.jobs

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[job_service.ListJobsResponse]:
async def pages(self) -> AsyncIterator[job_service.ListJobsResponse]:
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[job.Job]:
def __aiter__(self) -> AsyncIterator[job.Job]:
async def async_generator():
async for page in self.pages:
for response in page.jobs:
Expand Down
12 changes: 6 additions & 6 deletions google/cloud/talent_v4/services/tenant_service/pagers.py
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.talent_v4.types import tenant
Expand Down Expand Up @@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[tenant_service.ListTenantsResponse]:
def pages(self) -> Iterator[tenant_service.ListTenantsResponse]:
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[tenant.Tenant]:
def __iter__(self) -> Iterator[tenant.Tenant]:
for page in self.pages:
yield from page.tenants

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[tenant_service.ListTenantsResponse]:
async def pages(self) -> AsyncIterator[tenant_service.ListTenantsResponse]:
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[tenant.Tenant]:
def __aiter__(self) -> AsyncIterator[tenant.Tenant]:
async def async_generator():
async for page in self.pages:
for response in page.tenants:
Expand Down
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.talent_v4beta1.types import application
Expand Down Expand Up @@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[application_service.ListApplicationsResponse]:
def pages(self) -> Iterator[application_service.ListApplicationsResponse]:
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[application.Application]:
def __iter__(self) -> Iterator[application.Application]:
for page in self.pages:
yield from page.applications

Expand Down Expand Up @@ -139,14 +139,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[application_service.ListApplicationsResponse]:
) -> AsyncIterator[application_service.ListApplicationsResponse]:
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[application.Application]:
def __aiter__(self) -> AsyncIterator[application.Application]:
async def async_generator():
async for page in self.pages:
for response in page.applications:
Expand Down
12 changes: 6 additions & 6 deletions google/cloud/talent_v4beta1/services/company_service/pagers.py
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.talent_v4beta1.types import company
Expand Down Expand Up @@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[company_service.ListCompaniesResponse]:
def pages(self) -> Iterator[company_service.ListCompaniesResponse]:
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[company.Company]:
def __iter__(self) -> Iterator[company.Company]:
for page in self.pages:
yield from page.companies

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[company_service.ListCompaniesResponse]:
async def pages(self) -> AsyncIterator[company_service.ListCompaniesResponse]:
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[company.Company]:
def __aiter__(self) -> AsyncIterator[company.Company]:
async def async_generator():
async for page in self.pages:
for response in page.companies:
Expand Down
28 changes: 14 additions & 14 deletions google/cloud/talent_v4beta1/services/job_service/pagers.py
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.talent_v4beta1.types import job
Expand Down Expand Up @@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[job_service.ListJobsResponse]:
def pages(self) -> Iterator[job_service.ListJobsResponse]:
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[job.Job]:
def __iter__(self) -> Iterator[job.Job]:
for page in self.pages:
yield from page.jobs

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

@property
def pages(self) -> Iterable[job_service.SearchJobsResponse]:
def pages(self) -> Iterator[job_service.SearchJobsResponse]:
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[job_service.SearchJobsResponse.MatchingJob]:
def __iter__(self) -> Iterator[job_service.SearchJobsResponse.MatchingJob]:
for page in self.pages:
yield from page.matching_jobs

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

@property
def pages(self) -> Iterable[job_service.SearchJobsResponse]:
def pages(self) -> Iterator[job_service.SearchJobsResponse]:
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[job_service.SearchJobsResponse.MatchingJob]:
def __iter__(self) -> Iterator[job_service.SearchJobsResponse.MatchingJob]:
for page in self.pages:
yield from page.matching_jobs

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[job_service.SearchJobsResponse]:
async def pages(self) -> AsyncIterator[job_service.SearchJobsResponse]:
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[job_service.SearchJobsResponse.MatchingJob]:
def __aiter__(self) -> AsyncIterator[job_service.SearchJobsResponse.MatchingJob]:
async def async_generator():
async for page in self.pages:
for response in page.matching_jobs:
Expand Down
Loading

0 comments on commit 31f3a51

Please sign in to comment.