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

Commit 3bc4439

Browse files
chore: use gapic-generator-python 0.52.0 (#58)
- [ ] 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
1 parent 2d777cb commit 3bc4439

File tree

1 file changed

+14
-14
lines changed
  • google/cloud/contact_center_insights_v1/services/contact_center_insights

1 file changed

+14
-14
lines changed

google/cloud/contact_center_insights_v1/services/contact_center_insights/pagers.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
#
1616
from typing import (
1717
Any,
18-
AsyncIterable,
18+
AsyncIterator,
1919
Awaitable,
2020
Callable,
21-
Iterable,
2221
Sequence,
2322
Tuple,
2423
Optional,
24+
Iterator,
2525
)
2626

2727
from google.cloud.contact_center_insights_v1.types import contact_center_insights
@@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
7575
return getattr(self._response, name)
7676

7777
@property
78-
def pages(self) -> Iterable[contact_center_insights.ListConversationsResponse]:
78+
def pages(self) -> Iterator[contact_center_insights.ListConversationsResponse]:
7979
yield self._response
8080
while self._response.next_page_token:
8181
self._request.page_token = self._response.next_page_token
8282
self._response = self._method(self._request, metadata=self._metadata)
8383
yield self._response
8484

85-
def __iter__(self) -> Iterable[resources.Conversation]:
85+
def __iter__(self) -> Iterator[resources.Conversation]:
8686
for page in self.pages:
8787
yield from page.conversations
8888

@@ -141,14 +141,14 @@ def __getattr__(self, name: str) -> Any:
141141
@property
142142
async def pages(
143143
self,
144-
) -> AsyncIterable[contact_center_insights.ListConversationsResponse]:
144+
) -> AsyncIterator[contact_center_insights.ListConversationsResponse]:
145145
yield self._response
146146
while self._response.next_page_token:
147147
self._request.page_token = self._response.next_page_token
148148
self._response = await self._method(self._request, metadata=self._metadata)
149149
yield self._response
150150

151-
def __aiter__(self) -> AsyncIterable[resources.Conversation]:
151+
def __aiter__(self) -> AsyncIterator[resources.Conversation]:
152152
async def async_generator():
153153
async for page in self.pages:
154154
for response in page.conversations:
@@ -207,14 +207,14 @@ def __getattr__(self, name: str) -> Any:
207207
return getattr(self._response, name)
208208

209209
@property
210-
def pages(self) -> Iterable[contact_center_insights.ListAnalysesResponse]:
210+
def pages(self) -> Iterator[contact_center_insights.ListAnalysesResponse]:
211211
yield self._response
212212
while self._response.next_page_token:
213213
self._request.page_token = self._response.next_page_token
214214
self._response = self._method(self._request, metadata=self._metadata)
215215
yield self._response
216216

217-
def __iter__(self) -> Iterable[resources.Analysis]:
217+
def __iter__(self) -> Iterator[resources.Analysis]:
218218
for page in self.pages:
219219
yield from page.analyses
220220

@@ -271,14 +271,14 @@ def __getattr__(self, name: str) -> Any:
271271
@property
272272
async def pages(
273273
self,
274-
) -> AsyncIterable[contact_center_insights.ListAnalysesResponse]:
274+
) -> AsyncIterator[contact_center_insights.ListAnalysesResponse]:
275275
yield self._response
276276
while self._response.next_page_token:
277277
self._request.page_token = self._response.next_page_token
278278
self._response = await self._method(self._request, metadata=self._metadata)
279279
yield self._response
280280

281-
def __aiter__(self) -> AsyncIterable[resources.Analysis]:
281+
def __aiter__(self) -> AsyncIterator[resources.Analysis]:
282282
async def async_generator():
283283
async for page in self.pages:
284284
for response in page.analyses:
@@ -337,14 +337,14 @@ def __getattr__(self, name: str) -> Any:
337337
return getattr(self._response, name)
338338

339339
@property
340-
def pages(self) -> Iterable[contact_center_insights.ListPhraseMatchersResponse]:
340+
def pages(self) -> Iterator[contact_center_insights.ListPhraseMatchersResponse]:
341341
yield self._response
342342
while self._response.next_page_token:
343343
self._request.page_token = self._response.next_page_token
344344
self._response = self._method(self._request, metadata=self._metadata)
345345
yield self._response
346346

347-
def __iter__(self) -> Iterable[resources.PhraseMatcher]:
347+
def __iter__(self) -> Iterator[resources.PhraseMatcher]:
348348
for page in self.pages:
349349
yield from page.phrase_matchers
350350

@@ -403,14 +403,14 @@ def __getattr__(self, name: str) -> Any:
403403
@property
404404
async def pages(
405405
self,
406-
) -> AsyncIterable[contact_center_insights.ListPhraseMatchersResponse]:
406+
) -> AsyncIterator[contact_center_insights.ListPhraseMatchersResponse]:
407407
yield self._response
408408
while self._response.next_page_token:
409409
self._request.page_token = self._response.next_page_token
410410
self._response = await self._method(self._request, metadata=self._metadata)
411411
yield self._response
412412

413-
def __aiter__(self) -> AsyncIterable[resources.PhraseMatcher]:
413+
def __aiter__(self) -> AsyncIterator[resources.PhraseMatcher]:
414414
async def async_generator():
415415
async for page in self.pages:
416416
for response in page.phrase_matchers:

0 commit comments

Comments
 (0)