Skip to content
Permalink
Browse files
chore: use gapic-generator-python 0.52.0 (#124)
- [ ] 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 committed Sep 30, 2021
1 parent cc6cca0 commit e6d62422e555f33cd5107eb59073c8d88d292681
@@ -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
@@ -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

@@ -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:
@@ -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

@@ -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:
@@ -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

@@ -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:
@@ -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
@@ -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

@@ -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:
@@ -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

@@ -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:
@@ -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
@@ -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

@@ -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:
@@ -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

@@ -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:
@@ -357,7 +357,7 @@ def __getattr__(self, name: str) -> Any:
@property
def pages(
self,
) -> Iterable[
) -> Iterator[
instance_os_policies_compliance.ListInstanceOSPoliciesCompliancesResponse
]:
yield self._response
@@ -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

@@ -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
@@ -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:
@@ -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

@@ -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:
@@ -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

@@ -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:

0 comments on commit e6d6242

Please sign in to comment.