Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.52.0 (#124)
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 3066f37 commit 7f05918
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 46 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.osconfig_v1.types import patch_deployments
Expand Down Expand Up @@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[patch_jobs.ListPatchJobsResponse]:
def pages(self) -> Iterator[patch_jobs.ListPatchJobsResponse]:
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[patch_jobs.PatchJob]:
def __iter__(self) -> Iterator[patch_jobs.PatchJob]:
for page in self.pages:
yield from page.patch_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[patch_jobs.ListPatchJobsResponse]:
async def pages(self) -> AsyncIterator[patch_jobs.ListPatchJobsResponse]:
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[patch_jobs.PatchJob]:
def __aiter__(self) -> AsyncIterator[patch_jobs.PatchJob]:
async def async_generator():
async for page in self.pages:
for response in page.patch_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[patch_jobs.ListPatchJobInstanceDetailsResponse]:
def pages(self) -> Iterator[patch_jobs.ListPatchJobInstanceDetailsResponse]:
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[patch_jobs.PatchJobInstanceDetails]:
def __iter__(self) -> Iterator[patch_jobs.PatchJobInstanceDetails]:
for page in self.pages:
yield from page.patch_job_instance_details

Expand Down Expand Up @@ -269,14 +269,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[patch_jobs.ListPatchJobInstanceDetailsResponse]:
) -> AsyncIterator[patch_jobs.ListPatchJobInstanceDetailsResponse]:
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[patch_jobs.PatchJobInstanceDetails]:
def __aiter__(self) -> AsyncIterator[patch_jobs.PatchJobInstanceDetails]:
async def async_generator():
async for page in self.pages:
for response in page.patch_job_instance_details:
Expand Down Expand Up @@ -335,14 +335,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[patch_deployments.ListPatchDeploymentsResponse]:
def pages(self) -> Iterator[patch_deployments.ListPatchDeploymentsResponse]:
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[patch_deployments.PatchDeployment]:
def __iter__(self) -> Iterator[patch_deployments.PatchDeployment]:
for page in self.pages:
yield from page.patch_deployments

Expand Down Expand Up @@ -401,14 +401,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[patch_deployments.ListPatchDeploymentsResponse]:
) -> AsyncIterator[patch_deployments.ListPatchDeploymentsResponse]:
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[patch_deployments.PatchDeployment]:
def __aiter__(self) -> AsyncIterator[patch_deployments.PatchDeployment]:
async def async_generator():
async for page in self.pages:
for response in page.patch_deployments:
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.osconfig_v1.types import inventory
Expand Down Expand Up @@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[inventory.ListInventoriesResponse]:
def pages(self) -> Iterator[inventory.ListInventoriesResponse]:
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[inventory.Inventory]:
def __iter__(self) -> Iterator[inventory.Inventory]:
for page in self.pages:
yield from page.inventories

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

@property
def pages(self) -> Iterable[vulnerability.ListVulnerabilityReportsResponse]:
def pages(self) -> Iterator[vulnerability.ListVulnerabilityReportsResponse]:
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[vulnerability.VulnerabilityReport]:
def __iter__(self) -> Iterator[vulnerability.VulnerabilityReport]:
for page in self.pages:
yield from page.vulnerability_reports

Expand Down Expand Up @@ -269,14 +269,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[vulnerability.ListVulnerabilityReportsResponse]:
) -> AsyncIterator[vulnerability.ListVulnerabilityReportsResponse]:
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[vulnerability.VulnerabilityReport]:
def __aiter__(self) -> AsyncIterator[vulnerability.VulnerabilityReport]:
async def async_generator():
async for page in self.pages:
for response in page.vulnerability_reports:
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.osconfig_v1alpha.types import instance_os_policies_compliance
Expand Down Expand Up @@ -77,14 +77,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[os_policy_assignments.ListOSPolicyAssignmentsResponse]:
def pages(self) -> Iterator[os_policy_assignments.ListOSPolicyAssignmentsResponse]:
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[os_policy_assignments.OSPolicyAssignment]:
def __iter__(self) -> Iterator[os_policy_assignments.OSPolicyAssignment]:
for page in self.pages:
yield from page.os_policy_assignments

Expand Down Expand Up @@ -143,14 +143,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[os_policy_assignments.ListOSPolicyAssignmentsResponse]:
) -> AsyncIterator[os_policy_assignments.ListOSPolicyAssignmentsResponse]:
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[os_policy_assignments.OSPolicyAssignment]:
def __aiter__(self) -> AsyncIterator[os_policy_assignments.OSPolicyAssignment]:
async def async_generator():
async for page in self.pages:
for response in page.os_policy_assignments:
Expand Down Expand Up @@ -215,14 +215,14 @@ def __getattr__(self, name: str) -> Any:
@property
def pages(
self,
) -> Iterable[os_policy_assignments.ListOSPolicyAssignmentRevisionsResponse]:
) -> Iterator[os_policy_assignments.ListOSPolicyAssignmentRevisionsResponse]:
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[os_policy_assignments.OSPolicyAssignment]:
def __iter__(self) -> Iterator[os_policy_assignments.OSPolicyAssignment]:
for page in self.pages:
yield from page.os_policy_assignments

Expand Down Expand Up @@ -284,14 +284,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[os_policy_assignments.ListOSPolicyAssignmentRevisionsResponse]:
) -> AsyncIterator[os_policy_assignments.ListOSPolicyAssignmentRevisionsResponse]:
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[os_policy_assignments.OSPolicyAssignment]:
def __aiter__(self) -> AsyncIterator[os_policy_assignments.OSPolicyAssignment]:
async def async_generator():
async for page in self.pages:
for response in page.os_policy_assignments:
Expand Down Expand Up @@ -357,7 +357,7 @@ def __getattr__(self, name: str) -> Any:
@property
def pages(
self,
) -> Iterable[
) -> Iterator[
instance_os_policies_compliance.ListInstanceOSPoliciesCompliancesResponse
]:
yield self._response
Expand All @@ -368,7 +368,7 @@ def pages(

def __iter__(
self,
) -> Iterable[instance_os_policies_compliance.InstanceOSPoliciesCompliance]:
) -> Iterator[instance_os_policies_compliance.InstanceOSPoliciesCompliance]:
for page in self.pages:
yield from page.instance_os_policies_compliances

Expand Down Expand Up @@ -432,7 +432,7 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[
) -> AsyncIterator[
instance_os_policies_compliance.ListInstanceOSPoliciesCompliancesResponse
]:
yield self._response
Expand All @@ -443,7 +443,7 @@ async def pages(

def __aiter__(
self,
) -> AsyncIterable[instance_os_policies_compliance.InstanceOSPoliciesCompliance]:
) -> AsyncIterator[instance_os_policies_compliance.InstanceOSPoliciesCompliance]:
async def async_generator():
async for page in self.pages:
for response in page.instance_os_policies_compliances:
Expand Down Expand Up @@ -502,14 +502,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[inventory.ListInventoriesResponse]:
def pages(self) -> Iterator[inventory.ListInventoriesResponse]:
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[inventory.Inventory]:
def __iter__(self) -> Iterator[inventory.Inventory]:
for page in self.pages:
yield from page.inventories

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

@property
async def pages(self) -> AsyncIterable[inventory.ListInventoriesResponse]:
async def pages(self) -> AsyncIterator[inventory.ListInventoriesResponse]:
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[inventory.Inventory]:
def __aiter__(self) -> AsyncIterator[inventory.Inventory]:
async def async_generator():
async for page in self.pages:
for response in page.inventories:
Expand Down Expand Up @@ -630,14 +630,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[vulnerability.ListVulnerabilityReportsResponse]:
def pages(self) -> Iterator[vulnerability.ListVulnerabilityReportsResponse]:
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[vulnerability.VulnerabilityReport]:
def __iter__(self) -> Iterator[vulnerability.VulnerabilityReport]:
for page in self.pages:
yield from page.vulnerability_reports

Expand Down Expand Up @@ -696,14 +696,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[vulnerability.ListVulnerabilityReportsResponse]:
) -> AsyncIterator[vulnerability.ListVulnerabilityReportsResponse]:
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[vulnerability.VulnerabilityReport]:
def __aiter__(self) -> AsyncIterator[vulnerability.VulnerabilityReport]:
async def async_generator():
async for page in self.pages:
for response in page.vulnerability_reports:
Expand Down

0 comments on commit 7f05918

Please sign in to comment.