google-analytics-admin 0.23.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. google/analytics/admin/__init__.py +615 -0
  2. google/analytics/admin/gapic_version.py +16 -0
  3. google/analytics/admin/py.typed +2 -0
  4. google/analytics/admin_v1alpha/__init__.py +613 -0
  5. google/analytics/admin_v1alpha/gapic_metadata.json +2278 -0
  6. google/analytics/admin_v1alpha/gapic_version.py +16 -0
  7. google/analytics/admin_v1alpha/py.typed +2 -0
  8. google/analytics/admin_v1alpha/services/__init__.py +15 -0
  9. google/analytics/admin_v1alpha/services/analytics_admin_service/__init__.py +22 -0
  10. google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py +14122 -0
  11. google/analytics/admin_v1alpha/services/analytics_admin_service/client.py +14680 -0
  12. google/analytics/admin_v1alpha/services/analytics_admin_service/pagers.py +4337 -0
  13. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/__init__.py +41 -0
  14. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/base.py +2494 -0
  15. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc.py +4797 -0
  16. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc_asyncio.py +5671 -0
  17. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest.py +31875 -0
  18. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest_base.py +7944 -0
  19. google/analytics/admin_v1alpha/types/__init__.py +602 -0
  20. google/analytics/admin_v1alpha/types/access_report.py +705 -0
  21. google/analytics/admin_v1alpha/types/analytics_admin.py +4997 -0
  22. google/analytics/admin_v1alpha/types/audience.py +781 -0
  23. google/analytics/admin_v1alpha/types/channel_group.py +309 -0
  24. google/analytics/admin_v1alpha/types/event_create_and_edit.py +298 -0
  25. google/analytics/admin_v1alpha/types/expanded_data_set.py +282 -0
  26. google/analytics/admin_v1alpha/types/resources.py +3289 -0
  27. google/analytics/admin_v1alpha/types/subproperty_event_filter.py +292 -0
  28. google/analytics/admin_v1beta/__init__.py +255 -0
  29. google/analytics/admin_v1beta/gapic_metadata.json +838 -0
  30. google/analytics/admin_v1beta/gapic_version.py +16 -0
  31. google/analytics/admin_v1beta/py.typed +2 -0
  32. google/analytics/admin_v1beta/services/__init__.py +15 -0
  33. google/analytics/admin_v1beta/services/analytics_admin_service/__init__.py +22 -0
  34. google/analytics/admin_v1beta/services/analytics_admin_service/async_client.py +6707 -0
  35. google/analytics/admin_v1beta/services/analytics_admin_service/client.py +7164 -0
  36. google/analytics/admin_v1beta/services/analytics_admin_service/pagers.py +1927 -0
  37. google/analytics/admin_v1beta/services/analytics_admin_service/transports/__init__.py +41 -0
  38. google/analytics/admin_v1beta/services/analytics_admin_service/transports/base.py +965 -0
  39. google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc.py +1917 -0
  40. google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc_asyncio.py +2251 -0
  41. google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest.py +11423 -0
  42. google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest_base.py +2857 -0
  43. google/analytics/admin_v1beta/types/__init__.py +244 -0
  44. google/analytics/admin_v1beta/types/access_report.py +705 -0
  45. google/analytics/admin_v1beta/types/analytics_admin.py +2006 -0
  46. google/analytics/admin_v1beta/types/resources.py +1677 -0
  47. google_analytics_admin-0.23.6.dist-info/LICENSE +202 -0
  48. google_analytics_admin-0.23.6.dist-info/METADATA +228 -0
  49. google_analytics_admin-0.23.6.dist-info/RECORD +51 -0
  50. google_analytics_admin-0.23.6.dist-info/WHEEL +5 -0
  51. google_analytics_admin-0.23.6.dist-info/top_level.txt +1 -0
@@ -0,0 +1,4337 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2024 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from typing import (
17
+ Any,
18
+ AsyncIterator,
19
+ Awaitable,
20
+ Callable,
21
+ Iterator,
22
+ Optional,
23
+ Sequence,
24
+ Tuple,
25
+ Union,
26
+ )
27
+
28
+ from google.api_core import gapic_v1
29
+ from google.api_core import retry as retries
30
+ from google.api_core import retry_async as retries_async
31
+
32
+ try:
33
+ OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
34
+ OptionalAsyncRetry = Union[
35
+ retries_async.AsyncRetry, gapic_v1.method._MethodDefault, None
36
+ ]
37
+ except AttributeError: # pragma: NO COVER
38
+ OptionalRetry = Union[retries.Retry, object, None] # type: ignore
39
+ OptionalAsyncRetry = Union[retries_async.AsyncRetry, object, None] # type: ignore
40
+
41
+ from google.analytics.admin_v1alpha.types import (
42
+ analytics_admin,
43
+ audience,
44
+ channel_group,
45
+ event_create_and_edit,
46
+ expanded_data_set,
47
+ resources,
48
+ subproperty_event_filter,
49
+ )
50
+
51
+
52
+ class ListAccountsPager:
53
+ """A pager for iterating through ``list_accounts`` requests.
54
+
55
+ This class thinly wraps an initial
56
+ :class:`google.analytics.admin_v1alpha.types.ListAccountsResponse` object, and
57
+ provides an ``__iter__`` method to iterate through its
58
+ ``accounts`` field.
59
+
60
+ If there are more pages, the ``__iter__`` method will make additional
61
+ ``ListAccounts`` requests and continue to iterate
62
+ through the ``accounts`` field on the
63
+ corresponding responses.
64
+
65
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListAccountsResponse`
66
+ attributes are available on the pager. If multiple requests are made, only
67
+ the most recent response is retained, and thus used for attribute lookup.
68
+ """
69
+
70
+ def __init__(
71
+ self,
72
+ method: Callable[..., analytics_admin.ListAccountsResponse],
73
+ request: analytics_admin.ListAccountsRequest,
74
+ response: analytics_admin.ListAccountsResponse,
75
+ *,
76
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
77
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
78
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
79
+ ):
80
+ """Instantiate the pager.
81
+
82
+ Args:
83
+ method (Callable): The method that was originally called, and
84
+ which instantiated this pager.
85
+ request (google.analytics.admin_v1alpha.types.ListAccountsRequest):
86
+ The initial request object.
87
+ response (google.analytics.admin_v1alpha.types.ListAccountsResponse):
88
+ The initial response object.
89
+ retry (google.api_core.retry.Retry): Designation of what errors,
90
+ if any, should be retried.
91
+ timeout (float): The timeout for this request.
92
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
93
+ sent along with the request as metadata. Normally, each value must be of type `str`,
94
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
95
+ be of type `bytes`.
96
+ """
97
+ self._method = method
98
+ self._request = analytics_admin.ListAccountsRequest(request)
99
+ self._response = response
100
+ self._retry = retry
101
+ self._timeout = timeout
102
+ self._metadata = metadata
103
+
104
+ def __getattr__(self, name: str) -> Any:
105
+ return getattr(self._response, name)
106
+
107
+ @property
108
+ def pages(self) -> Iterator[analytics_admin.ListAccountsResponse]:
109
+ yield self._response
110
+ while self._response.next_page_token:
111
+ self._request.page_token = self._response.next_page_token
112
+ self._response = self._method(
113
+ self._request,
114
+ retry=self._retry,
115
+ timeout=self._timeout,
116
+ metadata=self._metadata,
117
+ )
118
+ yield self._response
119
+
120
+ def __iter__(self) -> Iterator[resources.Account]:
121
+ for page in self.pages:
122
+ yield from page.accounts
123
+
124
+ def __repr__(self) -> str:
125
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
126
+
127
+
128
+ class ListAccountsAsyncPager:
129
+ """A pager for iterating through ``list_accounts`` requests.
130
+
131
+ This class thinly wraps an initial
132
+ :class:`google.analytics.admin_v1alpha.types.ListAccountsResponse` object, and
133
+ provides an ``__aiter__`` method to iterate through its
134
+ ``accounts`` field.
135
+
136
+ If there are more pages, the ``__aiter__`` method will make additional
137
+ ``ListAccounts`` requests and continue to iterate
138
+ through the ``accounts`` field on the
139
+ corresponding responses.
140
+
141
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListAccountsResponse`
142
+ attributes are available on the pager. If multiple requests are made, only
143
+ the most recent response is retained, and thus used for attribute lookup.
144
+ """
145
+
146
+ def __init__(
147
+ self,
148
+ method: Callable[..., Awaitable[analytics_admin.ListAccountsResponse]],
149
+ request: analytics_admin.ListAccountsRequest,
150
+ response: analytics_admin.ListAccountsResponse,
151
+ *,
152
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
153
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
154
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
155
+ ):
156
+ """Instantiates the pager.
157
+
158
+ Args:
159
+ method (Callable): The method that was originally called, and
160
+ which instantiated this pager.
161
+ request (google.analytics.admin_v1alpha.types.ListAccountsRequest):
162
+ The initial request object.
163
+ response (google.analytics.admin_v1alpha.types.ListAccountsResponse):
164
+ The initial response object.
165
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
166
+ if any, should be retried.
167
+ timeout (float): The timeout for this request.
168
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
169
+ sent along with the request as metadata. Normally, each value must be of type `str`,
170
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
171
+ be of type `bytes`.
172
+ """
173
+ self._method = method
174
+ self._request = analytics_admin.ListAccountsRequest(request)
175
+ self._response = response
176
+ self._retry = retry
177
+ self._timeout = timeout
178
+ self._metadata = metadata
179
+
180
+ def __getattr__(self, name: str) -> Any:
181
+ return getattr(self._response, name)
182
+
183
+ @property
184
+ async def pages(self) -> AsyncIterator[analytics_admin.ListAccountsResponse]:
185
+ yield self._response
186
+ while self._response.next_page_token:
187
+ self._request.page_token = self._response.next_page_token
188
+ self._response = await self._method(
189
+ self._request,
190
+ retry=self._retry,
191
+ timeout=self._timeout,
192
+ metadata=self._metadata,
193
+ )
194
+ yield self._response
195
+
196
+ def __aiter__(self) -> AsyncIterator[resources.Account]:
197
+ async def async_generator():
198
+ async for page in self.pages:
199
+ for response in page.accounts:
200
+ yield response
201
+
202
+ return async_generator()
203
+
204
+ def __repr__(self) -> str:
205
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
206
+
207
+
208
+ class ListAccountSummariesPager:
209
+ """A pager for iterating through ``list_account_summaries`` requests.
210
+
211
+ This class thinly wraps an initial
212
+ :class:`google.analytics.admin_v1alpha.types.ListAccountSummariesResponse` object, and
213
+ provides an ``__iter__`` method to iterate through its
214
+ ``account_summaries`` field.
215
+
216
+ If there are more pages, the ``__iter__`` method will make additional
217
+ ``ListAccountSummaries`` requests and continue to iterate
218
+ through the ``account_summaries`` field on the
219
+ corresponding responses.
220
+
221
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListAccountSummariesResponse`
222
+ attributes are available on the pager. If multiple requests are made, only
223
+ the most recent response is retained, and thus used for attribute lookup.
224
+ """
225
+
226
+ def __init__(
227
+ self,
228
+ method: Callable[..., analytics_admin.ListAccountSummariesResponse],
229
+ request: analytics_admin.ListAccountSummariesRequest,
230
+ response: analytics_admin.ListAccountSummariesResponse,
231
+ *,
232
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
233
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
234
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
235
+ ):
236
+ """Instantiate the pager.
237
+
238
+ Args:
239
+ method (Callable): The method that was originally called, and
240
+ which instantiated this pager.
241
+ request (google.analytics.admin_v1alpha.types.ListAccountSummariesRequest):
242
+ The initial request object.
243
+ response (google.analytics.admin_v1alpha.types.ListAccountSummariesResponse):
244
+ The initial response object.
245
+ retry (google.api_core.retry.Retry): Designation of what errors,
246
+ if any, should be retried.
247
+ timeout (float): The timeout for this request.
248
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
249
+ sent along with the request as metadata. Normally, each value must be of type `str`,
250
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
251
+ be of type `bytes`.
252
+ """
253
+ self._method = method
254
+ self._request = analytics_admin.ListAccountSummariesRequest(request)
255
+ self._response = response
256
+ self._retry = retry
257
+ self._timeout = timeout
258
+ self._metadata = metadata
259
+
260
+ def __getattr__(self, name: str) -> Any:
261
+ return getattr(self._response, name)
262
+
263
+ @property
264
+ def pages(self) -> Iterator[analytics_admin.ListAccountSummariesResponse]:
265
+ yield self._response
266
+ while self._response.next_page_token:
267
+ self._request.page_token = self._response.next_page_token
268
+ self._response = self._method(
269
+ self._request,
270
+ retry=self._retry,
271
+ timeout=self._timeout,
272
+ metadata=self._metadata,
273
+ )
274
+ yield self._response
275
+
276
+ def __iter__(self) -> Iterator[resources.AccountSummary]:
277
+ for page in self.pages:
278
+ yield from page.account_summaries
279
+
280
+ def __repr__(self) -> str:
281
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
282
+
283
+
284
+ class ListAccountSummariesAsyncPager:
285
+ """A pager for iterating through ``list_account_summaries`` requests.
286
+
287
+ This class thinly wraps an initial
288
+ :class:`google.analytics.admin_v1alpha.types.ListAccountSummariesResponse` object, and
289
+ provides an ``__aiter__`` method to iterate through its
290
+ ``account_summaries`` field.
291
+
292
+ If there are more pages, the ``__aiter__`` method will make additional
293
+ ``ListAccountSummaries`` requests and continue to iterate
294
+ through the ``account_summaries`` field on the
295
+ corresponding responses.
296
+
297
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListAccountSummariesResponse`
298
+ attributes are available on the pager. If multiple requests are made, only
299
+ the most recent response is retained, and thus used for attribute lookup.
300
+ """
301
+
302
+ def __init__(
303
+ self,
304
+ method: Callable[..., Awaitable[analytics_admin.ListAccountSummariesResponse]],
305
+ request: analytics_admin.ListAccountSummariesRequest,
306
+ response: analytics_admin.ListAccountSummariesResponse,
307
+ *,
308
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
309
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
310
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
311
+ ):
312
+ """Instantiates the pager.
313
+
314
+ Args:
315
+ method (Callable): The method that was originally called, and
316
+ which instantiated this pager.
317
+ request (google.analytics.admin_v1alpha.types.ListAccountSummariesRequest):
318
+ The initial request object.
319
+ response (google.analytics.admin_v1alpha.types.ListAccountSummariesResponse):
320
+ The initial response object.
321
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
322
+ if any, should be retried.
323
+ timeout (float): The timeout for this request.
324
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
325
+ sent along with the request as metadata. Normally, each value must be of type `str`,
326
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
327
+ be of type `bytes`.
328
+ """
329
+ self._method = method
330
+ self._request = analytics_admin.ListAccountSummariesRequest(request)
331
+ self._response = response
332
+ self._retry = retry
333
+ self._timeout = timeout
334
+ self._metadata = metadata
335
+
336
+ def __getattr__(self, name: str) -> Any:
337
+ return getattr(self._response, name)
338
+
339
+ @property
340
+ async def pages(
341
+ self,
342
+ ) -> AsyncIterator[analytics_admin.ListAccountSummariesResponse]:
343
+ yield self._response
344
+ while self._response.next_page_token:
345
+ self._request.page_token = self._response.next_page_token
346
+ self._response = await self._method(
347
+ self._request,
348
+ retry=self._retry,
349
+ timeout=self._timeout,
350
+ metadata=self._metadata,
351
+ )
352
+ yield self._response
353
+
354
+ def __aiter__(self) -> AsyncIterator[resources.AccountSummary]:
355
+ async def async_generator():
356
+ async for page in self.pages:
357
+ for response in page.account_summaries:
358
+ yield response
359
+
360
+ return async_generator()
361
+
362
+ def __repr__(self) -> str:
363
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
364
+
365
+
366
+ class ListPropertiesPager:
367
+ """A pager for iterating through ``list_properties`` requests.
368
+
369
+ This class thinly wraps an initial
370
+ :class:`google.analytics.admin_v1alpha.types.ListPropertiesResponse` object, and
371
+ provides an ``__iter__`` method to iterate through its
372
+ ``properties`` field.
373
+
374
+ If there are more pages, the ``__iter__`` method will make additional
375
+ ``ListProperties`` requests and continue to iterate
376
+ through the ``properties`` field on the
377
+ corresponding responses.
378
+
379
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListPropertiesResponse`
380
+ attributes are available on the pager. If multiple requests are made, only
381
+ the most recent response is retained, and thus used for attribute lookup.
382
+ """
383
+
384
+ def __init__(
385
+ self,
386
+ method: Callable[..., analytics_admin.ListPropertiesResponse],
387
+ request: analytics_admin.ListPropertiesRequest,
388
+ response: analytics_admin.ListPropertiesResponse,
389
+ *,
390
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
391
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
392
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
393
+ ):
394
+ """Instantiate the pager.
395
+
396
+ Args:
397
+ method (Callable): The method that was originally called, and
398
+ which instantiated this pager.
399
+ request (google.analytics.admin_v1alpha.types.ListPropertiesRequest):
400
+ The initial request object.
401
+ response (google.analytics.admin_v1alpha.types.ListPropertiesResponse):
402
+ The initial response object.
403
+ retry (google.api_core.retry.Retry): Designation of what errors,
404
+ if any, should be retried.
405
+ timeout (float): The timeout for this request.
406
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
407
+ sent along with the request as metadata. Normally, each value must be of type `str`,
408
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
409
+ be of type `bytes`.
410
+ """
411
+ self._method = method
412
+ self._request = analytics_admin.ListPropertiesRequest(request)
413
+ self._response = response
414
+ self._retry = retry
415
+ self._timeout = timeout
416
+ self._metadata = metadata
417
+
418
+ def __getattr__(self, name: str) -> Any:
419
+ return getattr(self._response, name)
420
+
421
+ @property
422
+ def pages(self) -> Iterator[analytics_admin.ListPropertiesResponse]:
423
+ yield self._response
424
+ while self._response.next_page_token:
425
+ self._request.page_token = self._response.next_page_token
426
+ self._response = self._method(
427
+ self._request,
428
+ retry=self._retry,
429
+ timeout=self._timeout,
430
+ metadata=self._metadata,
431
+ )
432
+ yield self._response
433
+
434
+ def __iter__(self) -> Iterator[resources.Property]:
435
+ for page in self.pages:
436
+ yield from page.properties
437
+
438
+ def __repr__(self) -> str:
439
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
440
+
441
+
442
+ class ListPropertiesAsyncPager:
443
+ """A pager for iterating through ``list_properties`` requests.
444
+
445
+ This class thinly wraps an initial
446
+ :class:`google.analytics.admin_v1alpha.types.ListPropertiesResponse` object, and
447
+ provides an ``__aiter__`` method to iterate through its
448
+ ``properties`` field.
449
+
450
+ If there are more pages, the ``__aiter__`` method will make additional
451
+ ``ListProperties`` requests and continue to iterate
452
+ through the ``properties`` field on the
453
+ corresponding responses.
454
+
455
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListPropertiesResponse`
456
+ attributes are available on the pager. If multiple requests are made, only
457
+ the most recent response is retained, and thus used for attribute lookup.
458
+ """
459
+
460
+ def __init__(
461
+ self,
462
+ method: Callable[..., Awaitable[analytics_admin.ListPropertiesResponse]],
463
+ request: analytics_admin.ListPropertiesRequest,
464
+ response: analytics_admin.ListPropertiesResponse,
465
+ *,
466
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
467
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
468
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
469
+ ):
470
+ """Instantiates the pager.
471
+
472
+ Args:
473
+ method (Callable): The method that was originally called, and
474
+ which instantiated this pager.
475
+ request (google.analytics.admin_v1alpha.types.ListPropertiesRequest):
476
+ The initial request object.
477
+ response (google.analytics.admin_v1alpha.types.ListPropertiesResponse):
478
+ The initial response object.
479
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
480
+ if any, should be retried.
481
+ timeout (float): The timeout for this request.
482
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
483
+ sent along with the request as metadata. Normally, each value must be of type `str`,
484
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
485
+ be of type `bytes`.
486
+ """
487
+ self._method = method
488
+ self._request = analytics_admin.ListPropertiesRequest(request)
489
+ self._response = response
490
+ self._retry = retry
491
+ self._timeout = timeout
492
+ self._metadata = metadata
493
+
494
+ def __getattr__(self, name: str) -> Any:
495
+ return getattr(self._response, name)
496
+
497
+ @property
498
+ async def pages(self) -> AsyncIterator[analytics_admin.ListPropertiesResponse]:
499
+ yield self._response
500
+ while self._response.next_page_token:
501
+ self._request.page_token = self._response.next_page_token
502
+ self._response = await self._method(
503
+ self._request,
504
+ retry=self._retry,
505
+ timeout=self._timeout,
506
+ metadata=self._metadata,
507
+ )
508
+ yield self._response
509
+
510
+ def __aiter__(self) -> AsyncIterator[resources.Property]:
511
+ async def async_generator():
512
+ async for page in self.pages:
513
+ for response in page.properties:
514
+ yield response
515
+
516
+ return async_generator()
517
+
518
+ def __repr__(self) -> str:
519
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
520
+
521
+
522
+ class ListFirebaseLinksPager:
523
+ """A pager for iterating through ``list_firebase_links`` requests.
524
+
525
+ This class thinly wraps an initial
526
+ :class:`google.analytics.admin_v1alpha.types.ListFirebaseLinksResponse` object, and
527
+ provides an ``__iter__`` method to iterate through its
528
+ ``firebase_links`` field.
529
+
530
+ If there are more pages, the ``__iter__`` method will make additional
531
+ ``ListFirebaseLinks`` requests and continue to iterate
532
+ through the ``firebase_links`` field on the
533
+ corresponding responses.
534
+
535
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListFirebaseLinksResponse`
536
+ attributes are available on the pager. If multiple requests are made, only
537
+ the most recent response is retained, and thus used for attribute lookup.
538
+ """
539
+
540
+ def __init__(
541
+ self,
542
+ method: Callable[..., analytics_admin.ListFirebaseLinksResponse],
543
+ request: analytics_admin.ListFirebaseLinksRequest,
544
+ response: analytics_admin.ListFirebaseLinksResponse,
545
+ *,
546
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
547
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
548
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
549
+ ):
550
+ """Instantiate the pager.
551
+
552
+ Args:
553
+ method (Callable): The method that was originally called, and
554
+ which instantiated this pager.
555
+ request (google.analytics.admin_v1alpha.types.ListFirebaseLinksRequest):
556
+ The initial request object.
557
+ response (google.analytics.admin_v1alpha.types.ListFirebaseLinksResponse):
558
+ The initial response object.
559
+ retry (google.api_core.retry.Retry): Designation of what errors,
560
+ if any, should be retried.
561
+ timeout (float): The timeout for this request.
562
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
563
+ sent along with the request as metadata. Normally, each value must be of type `str`,
564
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
565
+ be of type `bytes`.
566
+ """
567
+ self._method = method
568
+ self._request = analytics_admin.ListFirebaseLinksRequest(request)
569
+ self._response = response
570
+ self._retry = retry
571
+ self._timeout = timeout
572
+ self._metadata = metadata
573
+
574
+ def __getattr__(self, name: str) -> Any:
575
+ return getattr(self._response, name)
576
+
577
+ @property
578
+ def pages(self) -> Iterator[analytics_admin.ListFirebaseLinksResponse]:
579
+ yield self._response
580
+ while self._response.next_page_token:
581
+ self._request.page_token = self._response.next_page_token
582
+ self._response = self._method(
583
+ self._request,
584
+ retry=self._retry,
585
+ timeout=self._timeout,
586
+ metadata=self._metadata,
587
+ )
588
+ yield self._response
589
+
590
+ def __iter__(self) -> Iterator[resources.FirebaseLink]:
591
+ for page in self.pages:
592
+ yield from page.firebase_links
593
+
594
+ def __repr__(self) -> str:
595
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
596
+
597
+
598
+ class ListFirebaseLinksAsyncPager:
599
+ """A pager for iterating through ``list_firebase_links`` requests.
600
+
601
+ This class thinly wraps an initial
602
+ :class:`google.analytics.admin_v1alpha.types.ListFirebaseLinksResponse` object, and
603
+ provides an ``__aiter__`` method to iterate through its
604
+ ``firebase_links`` field.
605
+
606
+ If there are more pages, the ``__aiter__`` method will make additional
607
+ ``ListFirebaseLinks`` requests and continue to iterate
608
+ through the ``firebase_links`` field on the
609
+ corresponding responses.
610
+
611
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListFirebaseLinksResponse`
612
+ attributes are available on the pager. If multiple requests are made, only
613
+ the most recent response is retained, and thus used for attribute lookup.
614
+ """
615
+
616
+ def __init__(
617
+ self,
618
+ method: Callable[..., Awaitable[analytics_admin.ListFirebaseLinksResponse]],
619
+ request: analytics_admin.ListFirebaseLinksRequest,
620
+ response: analytics_admin.ListFirebaseLinksResponse,
621
+ *,
622
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
623
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
624
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
625
+ ):
626
+ """Instantiates the pager.
627
+
628
+ Args:
629
+ method (Callable): The method that was originally called, and
630
+ which instantiated this pager.
631
+ request (google.analytics.admin_v1alpha.types.ListFirebaseLinksRequest):
632
+ The initial request object.
633
+ response (google.analytics.admin_v1alpha.types.ListFirebaseLinksResponse):
634
+ The initial response object.
635
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
636
+ if any, should be retried.
637
+ timeout (float): The timeout for this request.
638
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
639
+ sent along with the request as metadata. Normally, each value must be of type `str`,
640
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
641
+ be of type `bytes`.
642
+ """
643
+ self._method = method
644
+ self._request = analytics_admin.ListFirebaseLinksRequest(request)
645
+ self._response = response
646
+ self._retry = retry
647
+ self._timeout = timeout
648
+ self._metadata = metadata
649
+
650
+ def __getattr__(self, name: str) -> Any:
651
+ return getattr(self._response, name)
652
+
653
+ @property
654
+ async def pages(self) -> AsyncIterator[analytics_admin.ListFirebaseLinksResponse]:
655
+ yield self._response
656
+ while self._response.next_page_token:
657
+ self._request.page_token = self._response.next_page_token
658
+ self._response = await self._method(
659
+ self._request,
660
+ retry=self._retry,
661
+ timeout=self._timeout,
662
+ metadata=self._metadata,
663
+ )
664
+ yield self._response
665
+
666
+ def __aiter__(self) -> AsyncIterator[resources.FirebaseLink]:
667
+ async def async_generator():
668
+ async for page in self.pages:
669
+ for response in page.firebase_links:
670
+ yield response
671
+
672
+ return async_generator()
673
+
674
+ def __repr__(self) -> str:
675
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
676
+
677
+
678
+ class ListGoogleAdsLinksPager:
679
+ """A pager for iterating through ``list_google_ads_links`` requests.
680
+
681
+ This class thinly wraps an initial
682
+ :class:`google.analytics.admin_v1alpha.types.ListGoogleAdsLinksResponse` object, and
683
+ provides an ``__iter__`` method to iterate through its
684
+ ``google_ads_links`` field.
685
+
686
+ If there are more pages, the ``__iter__`` method will make additional
687
+ ``ListGoogleAdsLinks`` requests and continue to iterate
688
+ through the ``google_ads_links`` field on the
689
+ corresponding responses.
690
+
691
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListGoogleAdsLinksResponse`
692
+ attributes are available on the pager. If multiple requests are made, only
693
+ the most recent response is retained, and thus used for attribute lookup.
694
+ """
695
+
696
+ def __init__(
697
+ self,
698
+ method: Callable[..., analytics_admin.ListGoogleAdsLinksResponse],
699
+ request: analytics_admin.ListGoogleAdsLinksRequest,
700
+ response: analytics_admin.ListGoogleAdsLinksResponse,
701
+ *,
702
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
703
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
704
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
705
+ ):
706
+ """Instantiate the pager.
707
+
708
+ Args:
709
+ method (Callable): The method that was originally called, and
710
+ which instantiated this pager.
711
+ request (google.analytics.admin_v1alpha.types.ListGoogleAdsLinksRequest):
712
+ The initial request object.
713
+ response (google.analytics.admin_v1alpha.types.ListGoogleAdsLinksResponse):
714
+ The initial response object.
715
+ retry (google.api_core.retry.Retry): Designation of what errors,
716
+ if any, should be retried.
717
+ timeout (float): The timeout for this request.
718
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
719
+ sent along with the request as metadata. Normally, each value must be of type `str`,
720
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
721
+ be of type `bytes`.
722
+ """
723
+ self._method = method
724
+ self._request = analytics_admin.ListGoogleAdsLinksRequest(request)
725
+ self._response = response
726
+ self._retry = retry
727
+ self._timeout = timeout
728
+ self._metadata = metadata
729
+
730
+ def __getattr__(self, name: str) -> Any:
731
+ return getattr(self._response, name)
732
+
733
+ @property
734
+ def pages(self) -> Iterator[analytics_admin.ListGoogleAdsLinksResponse]:
735
+ yield self._response
736
+ while self._response.next_page_token:
737
+ self._request.page_token = self._response.next_page_token
738
+ self._response = self._method(
739
+ self._request,
740
+ retry=self._retry,
741
+ timeout=self._timeout,
742
+ metadata=self._metadata,
743
+ )
744
+ yield self._response
745
+
746
+ def __iter__(self) -> Iterator[resources.GoogleAdsLink]:
747
+ for page in self.pages:
748
+ yield from page.google_ads_links
749
+
750
+ def __repr__(self) -> str:
751
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
752
+
753
+
754
+ class ListGoogleAdsLinksAsyncPager:
755
+ """A pager for iterating through ``list_google_ads_links`` requests.
756
+
757
+ This class thinly wraps an initial
758
+ :class:`google.analytics.admin_v1alpha.types.ListGoogleAdsLinksResponse` object, and
759
+ provides an ``__aiter__`` method to iterate through its
760
+ ``google_ads_links`` field.
761
+
762
+ If there are more pages, the ``__aiter__`` method will make additional
763
+ ``ListGoogleAdsLinks`` requests and continue to iterate
764
+ through the ``google_ads_links`` field on the
765
+ corresponding responses.
766
+
767
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListGoogleAdsLinksResponse`
768
+ attributes are available on the pager. If multiple requests are made, only
769
+ the most recent response is retained, and thus used for attribute lookup.
770
+ """
771
+
772
+ def __init__(
773
+ self,
774
+ method: Callable[..., Awaitable[analytics_admin.ListGoogleAdsLinksResponse]],
775
+ request: analytics_admin.ListGoogleAdsLinksRequest,
776
+ response: analytics_admin.ListGoogleAdsLinksResponse,
777
+ *,
778
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
779
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
780
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
781
+ ):
782
+ """Instantiates the pager.
783
+
784
+ Args:
785
+ method (Callable): The method that was originally called, and
786
+ which instantiated this pager.
787
+ request (google.analytics.admin_v1alpha.types.ListGoogleAdsLinksRequest):
788
+ The initial request object.
789
+ response (google.analytics.admin_v1alpha.types.ListGoogleAdsLinksResponse):
790
+ The initial response object.
791
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
792
+ if any, should be retried.
793
+ timeout (float): The timeout for this request.
794
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
795
+ sent along with the request as metadata. Normally, each value must be of type `str`,
796
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
797
+ be of type `bytes`.
798
+ """
799
+ self._method = method
800
+ self._request = analytics_admin.ListGoogleAdsLinksRequest(request)
801
+ self._response = response
802
+ self._retry = retry
803
+ self._timeout = timeout
804
+ self._metadata = metadata
805
+
806
+ def __getattr__(self, name: str) -> Any:
807
+ return getattr(self._response, name)
808
+
809
+ @property
810
+ async def pages(self) -> AsyncIterator[analytics_admin.ListGoogleAdsLinksResponse]:
811
+ yield self._response
812
+ while self._response.next_page_token:
813
+ self._request.page_token = self._response.next_page_token
814
+ self._response = await self._method(
815
+ self._request,
816
+ retry=self._retry,
817
+ timeout=self._timeout,
818
+ metadata=self._metadata,
819
+ )
820
+ yield self._response
821
+
822
+ def __aiter__(self) -> AsyncIterator[resources.GoogleAdsLink]:
823
+ async def async_generator():
824
+ async for page in self.pages:
825
+ for response in page.google_ads_links:
826
+ yield response
827
+
828
+ return async_generator()
829
+
830
+ def __repr__(self) -> str:
831
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
832
+
833
+
834
+ class ListMeasurementProtocolSecretsPager:
835
+ """A pager for iterating through ``list_measurement_protocol_secrets`` requests.
836
+
837
+ This class thinly wraps an initial
838
+ :class:`google.analytics.admin_v1alpha.types.ListMeasurementProtocolSecretsResponse` object, and
839
+ provides an ``__iter__`` method to iterate through its
840
+ ``measurement_protocol_secrets`` field.
841
+
842
+ If there are more pages, the ``__iter__`` method will make additional
843
+ ``ListMeasurementProtocolSecrets`` requests and continue to iterate
844
+ through the ``measurement_protocol_secrets`` field on the
845
+ corresponding responses.
846
+
847
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListMeasurementProtocolSecretsResponse`
848
+ attributes are available on the pager. If multiple requests are made, only
849
+ the most recent response is retained, and thus used for attribute lookup.
850
+ """
851
+
852
+ def __init__(
853
+ self,
854
+ method: Callable[..., analytics_admin.ListMeasurementProtocolSecretsResponse],
855
+ request: analytics_admin.ListMeasurementProtocolSecretsRequest,
856
+ response: analytics_admin.ListMeasurementProtocolSecretsResponse,
857
+ *,
858
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
859
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
860
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
861
+ ):
862
+ """Instantiate the pager.
863
+
864
+ Args:
865
+ method (Callable): The method that was originally called, and
866
+ which instantiated this pager.
867
+ request (google.analytics.admin_v1alpha.types.ListMeasurementProtocolSecretsRequest):
868
+ The initial request object.
869
+ response (google.analytics.admin_v1alpha.types.ListMeasurementProtocolSecretsResponse):
870
+ The initial response object.
871
+ retry (google.api_core.retry.Retry): Designation of what errors,
872
+ if any, should be retried.
873
+ timeout (float): The timeout for this request.
874
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
875
+ sent along with the request as metadata. Normally, each value must be of type `str`,
876
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
877
+ be of type `bytes`.
878
+ """
879
+ self._method = method
880
+ self._request = analytics_admin.ListMeasurementProtocolSecretsRequest(request)
881
+ self._response = response
882
+ self._retry = retry
883
+ self._timeout = timeout
884
+ self._metadata = metadata
885
+
886
+ def __getattr__(self, name: str) -> Any:
887
+ return getattr(self._response, name)
888
+
889
+ @property
890
+ def pages(self) -> Iterator[analytics_admin.ListMeasurementProtocolSecretsResponse]:
891
+ yield self._response
892
+ while self._response.next_page_token:
893
+ self._request.page_token = self._response.next_page_token
894
+ self._response = self._method(
895
+ self._request,
896
+ retry=self._retry,
897
+ timeout=self._timeout,
898
+ metadata=self._metadata,
899
+ )
900
+ yield self._response
901
+
902
+ def __iter__(self) -> Iterator[resources.MeasurementProtocolSecret]:
903
+ for page in self.pages:
904
+ yield from page.measurement_protocol_secrets
905
+
906
+ def __repr__(self) -> str:
907
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
908
+
909
+
910
+ class ListMeasurementProtocolSecretsAsyncPager:
911
+ """A pager for iterating through ``list_measurement_protocol_secrets`` requests.
912
+
913
+ This class thinly wraps an initial
914
+ :class:`google.analytics.admin_v1alpha.types.ListMeasurementProtocolSecretsResponse` object, and
915
+ provides an ``__aiter__`` method to iterate through its
916
+ ``measurement_protocol_secrets`` field.
917
+
918
+ If there are more pages, the ``__aiter__`` method will make additional
919
+ ``ListMeasurementProtocolSecrets`` requests and continue to iterate
920
+ through the ``measurement_protocol_secrets`` field on the
921
+ corresponding responses.
922
+
923
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListMeasurementProtocolSecretsResponse`
924
+ attributes are available on the pager. If multiple requests are made, only
925
+ the most recent response is retained, and thus used for attribute lookup.
926
+ """
927
+
928
+ def __init__(
929
+ self,
930
+ method: Callable[
931
+ ..., Awaitable[analytics_admin.ListMeasurementProtocolSecretsResponse]
932
+ ],
933
+ request: analytics_admin.ListMeasurementProtocolSecretsRequest,
934
+ response: analytics_admin.ListMeasurementProtocolSecretsResponse,
935
+ *,
936
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
937
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
938
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
939
+ ):
940
+ """Instantiates the pager.
941
+
942
+ Args:
943
+ method (Callable): The method that was originally called, and
944
+ which instantiated this pager.
945
+ request (google.analytics.admin_v1alpha.types.ListMeasurementProtocolSecretsRequest):
946
+ The initial request object.
947
+ response (google.analytics.admin_v1alpha.types.ListMeasurementProtocolSecretsResponse):
948
+ The initial response object.
949
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
950
+ if any, should be retried.
951
+ timeout (float): The timeout for this request.
952
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
953
+ sent along with the request as metadata. Normally, each value must be of type `str`,
954
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
955
+ be of type `bytes`.
956
+ """
957
+ self._method = method
958
+ self._request = analytics_admin.ListMeasurementProtocolSecretsRequest(request)
959
+ self._response = response
960
+ self._retry = retry
961
+ self._timeout = timeout
962
+ self._metadata = metadata
963
+
964
+ def __getattr__(self, name: str) -> Any:
965
+ return getattr(self._response, name)
966
+
967
+ @property
968
+ async def pages(
969
+ self,
970
+ ) -> AsyncIterator[analytics_admin.ListMeasurementProtocolSecretsResponse]:
971
+ yield self._response
972
+ while self._response.next_page_token:
973
+ self._request.page_token = self._response.next_page_token
974
+ self._response = await self._method(
975
+ self._request,
976
+ retry=self._retry,
977
+ timeout=self._timeout,
978
+ metadata=self._metadata,
979
+ )
980
+ yield self._response
981
+
982
+ def __aiter__(self) -> AsyncIterator[resources.MeasurementProtocolSecret]:
983
+ async def async_generator():
984
+ async for page in self.pages:
985
+ for response in page.measurement_protocol_secrets:
986
+ yield response
987
+
988
+ return async_generator()
989
+
990
+ def __repr__(self) -> str:
991
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
992
+
993
+
994
+ class ListSKAdNetworkConversionValueSchemasPager:
995
+ """A pager for iterating through ``list_sk_ad_network_conversion_value_schemas`` requests.
996
+
997
+ This class thinly wraps an initial
998
+ :class:`google.analytics.admin_v1alpha.types.ListSKAdNetworkConversionValueSchemasResponse` object, and
999
+ provides an ``__iter__`` method to iterate through its
1000
+ ``skadnetwork_conversion_value_schemas`` field.
1001
+
1002
+ If there are more pages, the ``__iter__`` method will make additional
1003
+ ``ListSKAdNetworkConversionValueSchemas`` requests and continue to iterate
1004
+ through the ``skadnetwork_conversion_value_schemas`` field on the
1005
+ corresponding responses.
1006
+
1007
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListSKAdNetworkConversionValueSchemasResponse`
1008
+ attributes are available on the pager. If multiple requests are made, only
1009
+ the most recent response is retained, and thus used for attribute lookup.
1010
+ """
1011
+
1012
+ def __init__(
1013
+ self,
1014
+ method: Callable[
1015
+ ..., analytics_admin.ListSKAdNetworkConversionValueSchemasResponse
1016
+ ],
1017
+ request: analytics_admin.ListSKAdNetworkConversionValueSchemasRequest,
1018
+ response: analytics_admin.ListSKAdNetworkConversionValueSchemasResponse,
1019
+ *,
1020
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
1021
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1022
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1023
+ ):
1024
+ """Instantiate the pager.
1025
+
1026
+ Args:
1027
+ method (Callable): The method that was originally called, and
1028
+ which instantiated this pager.
1029
+ request (google.analytics.admin_v1alpha.types.ListSKAdNetworkConversionValueSchemasRequest):
1030
+ The initial request object.
1031
+ response (google.analytics.admin_v1alpha.types.ListSKAdNetworkConversionValueSchemasResponse):
1032
+ The initial response object.
1033
+ retry (google.api_core.retry.Retry): Designation of what errors,
1034
+ if any, should be retried.
1035
+ timeout (float): The timeout for this request.
1036
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1037
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1038
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1039
+ be of type `bytes`.
1040
+ """
1041
+ self._method = method
1042
+ self._request = analytics_admin.ListSKAdNetworkConversionValueSchemasRequest(
1043
+ request
1044
+ )
1045
+ self._response = response
1046
+ self._retry = retry
1047
+ self._timeout = timeout
1048
+ self._metadata = metadata
1049
+
1050
+ def __getattr__(self, name: str) -> Any:
1051
+ return getattr(self._response, name)
1052
+
1053
+ @property
1054
+ def pages(
1055
+ self,
1056
+ ) -> Iterator[analytics_admin.ListSKAdNetworkConversionValueSchemasResponse]:
1057
+ yield self._response
1058
+ while self._response.next_page_token:
1059
+ self._request.page_token = self._response.next_page_token
1060
+ self._response = self._method(
1061
+ self._request,
1062
+ retry=self._retry,
1063
+ timeout=self._timeout,
1064
+ metadata=self._metadata,
1065
+ )
1066
+ yield self._response
1067
+
1068
+ def __iter__(self) -> Iterator[resources.SKAdNetworkConversionValueSchema]:
1069
+ for page in self.pages:
1070
+ yield from page.skadnetwork_conversion_value_schemas
1071
+
1072
+ def __repr__(self) -> str:
1073
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1074
+
1075
+
1076
+ class ListSKAdNetworkConversionValueSchemasAsyncPager:
1077
+ """A pager for iterating through ``list_sk_ad_network_conversion_value_schemas`` requests.
1078
+
1079
+ This class thinly wraps an initial
1080
+ :class:`google.analytics.admin_v1alpha.types.ListSKAdNetworkConversionValueSchemasResponse` object, and
1081
+ provides an ``__aiter__`` method to iterate through its
1082
+ ``skadnetwork_conversion_value_schemas`` field.
1083
+
1084
+ If there are more pages, the ``__aiter__`` method will make additional
1085
+ ``ListSKAdNetworkConversionValueSchemas`` requests and continue to iterate
1086
+ through the ``skadnetwork_conversion_value_schemas`` field on the
1087
+ corresponding responses.
1088
+
1089
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListSKAdNetworkConversionValueSchemasResponse`
1090
+ attributes are available on the pager. If multiple requests are made, only
1091
+ the most recent response is retained, and thus used for attribute lookup.
1092
+ """
1093
+
1094
+ def __init__(
1095
+ self,
1096
+ method: Callable[
1097
+ ...,
1098
+ Awaitable[analytics_admin.ListSKAdNetworkConversionValueSchemasResponse],
1099
+ ],
1100
+ request: analytics_admin.ListSKAdNetworkConversionValueSchemasRequest,
1101
+ response: analytics_admin.ListSKAdNetworkConversionValueSchemasResponse,
1102
+ *,
1103
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
1104
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1105
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1106
+ ):
1107
+ """Instantiates the pager.
1108
+
1109
+ Args:
1110
+ method (Callable): The method that was originally called, and
1111
+ which instantiated this pager.
1112
+ request (google.analytics.admin_v1alpha.types.ListSKAdNetworkConversionValueSchemasRequest):
1113
+ The initial request object.
1114
+ response (google.analytics.admin_v1alpha.types.ListSKAdNetworkConversionValueSchemasResponse):
1115
+ The initial response object.
1116
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
1117
+ if any, should be retried.
1118
+ timeout (float): The timeout for this request.
1119
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1120
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1121
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1122
+ be of type `bytes`.
1123
+ """
1124
+ self._method = method
1125
+ self._request = analytics_admin.ListSKAdNetworkConversionValueSchemasRequest(
1126
+ request
1127
+ )
1128
+ self._response = response
1129
+ self._retry = retry
1130
+ self._timeout = timeout
1131
+ self._metadata = metadata
1132
+
1133
+ def __getattr__(self, name: str) -> Any:
1134
+ return getattr(self._response, name)
1135
+
1136
+ @property
1137
+ async def pages(
1138
+ self,
1139
+ ) -> AsyncIterator[analytics_admin.ListSKAdNetworkConversionValueSchemasResponse]:
1140
+ yield self._response
1141
+ while self._response.next_page_token:
1142
+ self._request.page_token = self._response.next_page_token
1143
+ self._response = await self._method(
1144
+ self._request,
1145
+ retry=self._retry,
1146
+ timeout=self._timeout,
1147
+ metadata=self._metadata,
1148
+ )
1149
+ yield self._response
1150
+
1151
+ def __aiter__(self) -> AsyncIterator[resources.SKAdNetworkConversionValueSchema]:
1152
+ async def async_generator():
1153
+ async for page in self.pages:
1154
+ for response in page.skadnetwork_conversion_value_schemas:
1155
+ yield response
1156
+
1157
+ return async_generator()
1158
+
1159
+ def __repr__(self) -> str:
1160
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1161
+
1162
+
1163
+ class SearchChangeHistoryEventsPager:
1164
+ """A pager for iterating through ``search_change_history_events`` requests.
1165
+
1166
+ This class thinly wraps an initial
1167
+ :class:`google.analytics.admin_v1alpha.types.SearchChangeHistoryEventsResponse` object, and
1168
+ provides an ``__iter__`` method to iterate through its
1169
+ ``change_history_events`` field.
1170
+
1171
+ If there are more pages, the ``__iter__`` method will make additional
1172
+ ``SearchChangeHistoryEvents`` requests and continue to iterate
1173
+ through the ``change_history_events`` field on the
1174
+ corresponding responses.
1175
+
1176
+ All the usual :class:`google.analytics.admin_v1alpha.types.SearchChangeHistoryEventsResponse`
1177
+ attributes are available on the pager. If multiple requests are made, only
1178
+ the most recent response is retained, and thus used for attribute lookup.
1179
+ """
1180
+
1181
+ def __init__(
1182
+ self,
1183
+ method: Callable[..., analytics_admin.SearchChangeHistoryEventsResponse],
1184
+ request: analytics_admin.SearchChangeHistoryEventsRequest,
1185
+ response: analytics_admin.SearchChangeHistoryEventsResponse,
1186
+ *,
1187
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
1188
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1189
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1190
+ ):
1191
+ """Instantiate the pager.
1192
+
1193
+ Args:
1194
+ method (Callable): The method that was originally called, and
1195
+ which instantiated this pager.
1196
+ request (google.analytics.admin_v1alpha.types.SearchChangeHistoryEventsRequest):
1197
+ The initial request object.
1198
+ response (google.analytics.admin_v1alpha.types.SearchChangeHistoryEventsResponse):
1199
+ The initial response object.
1200
+ retry (google.api_core.retry.Retry): Designation of what errors,
1201
+ if any, should be retried.
1202
+ timeout (float): The timeout for this request.
1203
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1204
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1205
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1206
+ be of type `bytes`.
1207
+ """
1208
+ self._method = method
1209
+ self._request = analytics_admin.SearchChangeHistoryEventsRequest(request)
1210
+ self._response = response
1211
+ self._retry = retry
1212
+ self._timeout = timeout
1213
+ self._metadata = metadata
1214
+
1215
+ def __getattr__(self, name: str) -> Any:
1216
+ return getattr(self._response, name)
1217
+
1218
+ @property
1219
+ def pages(self) -> Iterator[analytics_admin.SearchChangeHistoryEventsResponse]:
1220
+ yield self._response
1221
+ while self._response.next_page_token:
1222
+ self._request.page_token = self._response.next_page_token
1223
+ self._response = self._method(
1224
+ self._request,
1225
+ retry=self._retry,
1226
+ timeout=self._timeout,
1227
+ metadata=self._metadata,
1228
+ )
1229
+ yield self._response
1230
+
1231
+ def __iter__(self) -> Iterator[resources.ChangeHistoryEvent]:
1232
+ for page in self.pages:
1233
+ yield from page.change_history_events
1234
+
1235
+ def __repr__(self) -> str:
1236
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1237
+
1238
+
1239
+ class SearchChangeHistoryEventsAsyncPager:
1240
+ """A pager for iterating through ``search_change_history_events`` requests.
1241
+
1242
+ This class thinly wraps an initial
1243
+ :class:`google.analytics.admin_v1alpha.types.SearchChangeHistoryEventsResponse` object, and
1244
+ provides an ``__aiter__`` method to iterate through its
1245
+ ``change_history_events`` field.
1246
+
1247
+ If there are more pages, the ``__aiter__`` method will make additional
1248
+ ``SearchChangeHistoryEvents`` requests and continue to iterate
1249
+ through the ``change_history_events`` field on the
1250
+ corresponding responses.
1251
+
1252
+ All the usual :class:`google.analytics.admin_v1alpha.types.SearchChangeHistoryEventsResponse`
1253
+ attributes are available on the pager. If multiple requests are made, only
1254
+ the most recent response is retained, and thus used for attribute lookup.
1255
+ """
1256
+
1257
+ def __init__(
1258
+ self,
1259
+ method: Callable[
1260
+ ..., Awaitable[analytics_admin.SearchChangeHistoryEventsResponse]
1261
+ ],
1262
+ request: analytics_admin.SearchChangeHistoryEventsRequest,
1263
+ response: analytics_admin.SearchChangeHistoryEventsResponse,
1264
+ *,
1265
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
1266
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1267
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1268
+ ):
1269
+ """Instantiates the pager.
1270
+
1271
+ Args:
1272
+ method (Callable): The method that was originally called, and
1273
+ which instantiated this pager.
1274
+ request (google.analytics.admin_v1alpha.types.SearchChangeHistoryEventsRequest):
1275
+ The initial request object.
1276
+ response (google.analytics.admin_v1alpha.types.SearchChangeHistoryEventsResponse):
1277
+ The initial response object.
1278
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
1279
+ if any, should be retried.
1280
+ timeout (float): The timeout for this request.
1281
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1282
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1283
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1284
+ be of type `bytes`.
1285
+ """
1286
+ self._method = method
1287
+ self._request = analytics_admin.SearchChangeHistoryEventsRequest(request)
1288
+ self._response = response
1289
+ self._retry = retry
1290
+ self._timeout = timeout
1291
+ self._metadata = metadata
1292
+
1293
+ def __getattr__(self, name: str) -> Any:
1294
+ return getattr(self._response, name)
1295
+
1296
+ @property
1297
+ async def pages(
1298
+ self,
1299
+ ) -> AsyncIterator[analytics_admin.SearchChangeHistoryEventsResponse]:
1300
+ yield self._response
1301
+ while self._response.next_page_token:
1302
+ self._request.page_token = self._response.next_page_token
1303
+ self._response = await self._method(
1304
+ self._request,
1305
+ retry=self._retry,
1306
+ timeout=self._timeout,
1307
+ metadata=self._metadata,
1308
+ )
1309
+ yield self._response
1310
+
1311
+ def __aiter__(self) -> AsyncIterator[resources.ChangeHistoryEvent]:
1312
+ async def async_generator():
1313
+ async for page in self.pages:
1314
+ for response in page.change_history_events:
1315
+ yield response
1316
+
1317
+ return async_generator()
1318
+
1319
+ def __repr__(self) -> str:
1320
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1321
+
1322
+
1323
+ class ListConversionEventsPager:
1324
+ """A pager for iterating through ``list_conversion_events`` requests.
1325
+
1326
+ This class thinly wraps an initial
1327
+ :class:`google.analytics.admin_v1alpha.types.ListConversionEventsResponse` object, and
1328
+ provides an ``__iter__`` method to iterate through its
1329
+ ``conversion_events`` field.
1330
+
1331
+ If there are more pages, the ``__iter__`` method will make additional
1332
+ ``ListConversionEvents`` requests and continue to iterate
1333
+ through the ``conversion_events`` field on the
1334
+ corresponding responses.
1335
+
1336
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListConversionEventsResponse`
1337
+ attributes are available on the pager. If multiple requests are made, only
1338
+ the most recent response is retained, and thus used for attribute lookup.
1339
+ """
1340
+
1341
+ def __init__(
1342
+ self,
1343
+ method: Callable[..., analytics_admin.ListConversionEventsResponse],
1344
+ request: analytics_admin.ListConversionEventsRequest,
1345
+ response: analytics_admin.ListConversionEventsResponse,
1346
+ *,
1347
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
1348
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1349
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1350
+ ):
1351
+ """Instantiate the pager.
1352
+
1353
+ Args:
1354
+ method (Callable): The method that was originally called, and
1355
+ which instantiated this pager.
1356
+ request (google.analytics.admin_v1alpha.types.ListConversionEventsRequest):
1357
+ The initial request object.
1358
+ response (google.analytics.admin_v1alpha.types.ListConversionEventsResponse):
1359
+ The initial response object.
1360
+ retry (google.api_core.retry.Retry): Designation of what errors,
1361
+ if any, should be retried.
1362
+ timeout (float): The timeout for this request.
1363
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1364
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1365
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1366
+ be of type `bytes`.
1367
+ """
1368
+ self._method = method
1369
+ self._request = analytics_admin.ListConversionEventsRequest(request)
1370
+ self._response = response
1371
+ self._retry = retry
1372
+ self._timeout = timeout
1373
+ self._metadata = metadata
1374
+
1375
+ def __getattr__(self, name: str) -> Any:
1376
+ return getattr(self._response, name)
1377
+
1378
+ @property
1379
+ def pages(self) -> Iterator[analytics_admin.ListConversionEventsResponse]:
1380
+ yield self._response
1381
+ while self._response.next_page_token:
1382
+ self._request.page_token = self._response.next_page_token
1383
+ self._response = self._method(
1384
+ self._request,
1385
+ retry=self._retry,
1386
+ timeout=self._timeout,
1387
+ metadata=self._metadata,
1388
+ )
1389
+ yield self._response
1390
+
1391
+ def __iter__(self) -> Iterator[resources.ConversionEvent]:
1392
+ for page in self.pages:
1393
+ yield from page.conversion_events
1394
+
1395
+ def __repr__(self) -> str:
1396
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1397
+
1398
+
1399
+ class ListConversionEventsAsyncPager:
1400
+ """A pager for iterating through ``list_conversion_events`` requests.
1401
+
1402
+ This class thinly wraps an initial
1403
+ :class:`google.analytics.admin_v1alpha.types.ListConversionEventsResponse` object, and
1404
+ provides an ``__aiter__`` method to iterate through its
1405
+ ``conversion_events`` field.
1406
+
1407
+ If there are more pages, the ``__aiter__`` method will make additional
1408
+ ``ListConversionEvents`` requests and continue to iterate
1409
+ through the ``conversion_events`` field on the
1410
+ corresponding responses.
1411
+
1412
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListConversionEventsResponse`
1413
+ attributes are available on the pager. If multiple requests are made, only
1414
+ the most recent response is retained, and thus used for attribute lookup.
1415
+ """
1416
+
1417
+ def __init__(
1418
+ self,
1419
+ method: Callable[..., Awaitable[analytics_admin.ListConversionEventsResponse]],
1420
+ request: analytics_admin.ListConversionEventsRequest,
1421
+ response: analytics_admin.ListConversionEventsResponse,
1422
+ *,
1423
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
1424
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1425
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1426
+ ):
1427
+ """Instantiates the pager.
1428
+
1429
+ Args:
1430
+ method (Callable): The method that was originally called, and
1431
+ which instantiated this pager.
1432
+ request (google.analytics.admin_v1alpha.types.ListConversionEventsRequest):
1433
+ The initial request object.
1434
+ response (google.analytics.admin_v1alpha.types.ListConversionEventsResponse):
1435
+ The initial response object.
1436
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
1437
+ if any, should be retried.
1438
+ timeout (float): The timeout for this request.
1439
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1440
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1441
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1442
+ be of type `bytes`.
1443
+ """
1444
+ self._method = method
1445
+ self._request = analytics_admin.ListConversionEventsRequest(request)
1446
+ self._response = response
1447
+ self._retry = retry
1448
+ self._timeout = timeout
1449
+ self._metadata = metadata
1450
+
1451
+ def __getattr__(self, name: str) -> Any:
1452
+ return getattr(self._response, name)
1453
+
1454
+ @property
1455
+ async def pages(
1456
+ self,
1457
+ ) -> AsyncIterator[analytics_admin.ListConversionEventsResponse]:
1458
+ yield self._response
1459
+ while self._response.next_page_token:
1460
+ self._request.page_token = self._response.next_page_token
1461
+ self._response = await self._method(
1462
+ self._request,
1463
+ retry=self._retry,
1464
+ timeout=self._timeout,
1465
+ metadata=self._metadata,
1466
+ )
1467
+ yield self._response
1468
+
1469
+ def __aiter__(self) -> AsyncIterator[resources.ConversionEvent]:
1470
+ async def async_generator():
1471
+ async for page in self.pages:
1472
+ for response in page.conversion_events:
1473
+ yield response
1474
+
1475
+ return async_generator()
1476
+
1477
+ def __repr__(self) -> str:
1478
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1479
+
1480
+
1481
+ class ListKeyEventsPager:
1482
+ """A pager for iterating through ``list_key_events`` requests.
1483
+
1484
+ This class thinly wraps an initial
1485
+ :class:`google.analytics.admin_v1alpha.types.ListKeyEventsResponse` object, and
1486
+ provides an ``__iter__`` method to iterate through its
1487
+ ``key_events`` field.
1488
+
1489
+ If there are more pages, the ``__iter__`` method will make additional
1490
+ ``ListKeyEvents`` requests and continue to iterate
1491
+ through the ``key_events`` field on the
1492
+ corresponding responses.
1493
+
1494
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListKeyEventsResponse`
1495
+ attributes are available on the pager. If multiple requests are made, only
1496
+ the most recent response is retained, and thus used for attribute lookup.
1497
+ """
1498
+
1499
+ def __init__(
1500
+ self,
1501
+ method: Callable[..., analytics_admin.ListKeyEventsResponse],
1502
+ request: analytics_admin.ListKeyEventsRequest,
1503
+ response: analytics_admin.ListKeyEventsResponse,
1504
+ *,
1505
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
1506
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1507
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1508
+ ):
1509
+ """Instantiate the pager.
1510
+
1511
+ Args:
1512
+ method (Callable): The method that was originally called, and
1513
+ which instantiated this pager.
1514
+ request (google.analytics.admin_v1alpha.types.ListKeyEventsRequest):
1515
+ The initial request object.
1516
+ response (google.analytics.admin_v1alpha.types.ListKeyEventsResponse):
1517
+ The initial response object.
1518
+ retry (google.api_core.retry.Retry): Designation of what errors,
1519
+ if any, should be retried.
1520
+ timeout (float): The timeout for this request.
1521
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1522
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1523
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1524
+ be of type `bytes`.
1525
+ """
1526
+ self._method = method
1527
+ self._request = analytics_admin.ListKeyEventsRequest(request)
1528
+ self._response = response
1529
+ self._retry = retry
1530
+ self._timeout = timeout
1531
+ self._metadata = metadata
1532
+
1533
+ def __getattr__(self, name: str) -> Any:
1534
+ return getattr(self._response, name)
1535
+
1536
+ @property
1537
+ def pages(self) -> Iterator[analytics_admin.ListKeyEventsResponse]:
1538
+ yield self._response
1539
+ while self._response.next_page_token:
1540
+ self._request.page_token = self._response.next_page_token
1541
+ self._response = self._method(
1542
+ self._request,
1543
+ retry=self._retry,
1544
+ timeout=self._timeout,
1545
+ metadata=self._metadata,
1546
+ )
1547
+ yield self._response
1548
+
1549
+ def __iter__(self) -> Iterator[resources.KeyEvent]:
1550
+ for page in self.pages:
1551
+ yield from page.key_events
1552
+
1553
+ def __repr__(self) -> str:
1554
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1555
+
1556
+
1557
+ class ListKeyEventsAsyncPager:
1558
+ """A pager for iterating through ``list_key_events`` requests.
1559
+
1560
+ This class thinly wraps an initial
1561
+ :class:`google.analytics.admin_v1alpha.types.ListKeyEventsResponse` object, and
1562
+ provides an ``__aiter__`` method to iterate through its
1563
+ ``key_events`` field.
1564
+
1565
+ If there are more pages, the ``__aiter__`` method will make additional
1566
+ ``ListKeyEvents`` requests and continue to iterate
1567
+ through the ``key_events`` field on the
1568
+ corresponding responses.
1569
+
1570
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListKeyEventsResponse`
1571
+ attributes are available on the pager. If multiple requests are made, only
1572
+ the most recent response is retained, and thus used for attribute lookup.
1573
+ """
1574
+
1575
+ def __init__(
1576
+ self,
1577
+ method: Callable[..., Awaitable[analytics_admin.ListKeyEventsResponse]],
1578
+ request: analytics_admin.ListKeyEventsRequest,
1579
+ response: analytics_admin.ListKeyEventsResponse,
1580
+ *,
1581
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
1582
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1583
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1584
+ ):
1585
+ """Instantiates the pager.
1586
+
1587
+ Args:
1588
+ method (Callable): The method that was originally called, and
1589
+ which instantiated this pager.
1590
+ request (google.analytics.admin_v1alpha.types.ListKeyEventsRequest):
1591
+ The initial request object.
1592
+ response (google.analytics.admin_v1alpha.types.ListKeyEventsResponse):
1593
+ The initial response object.
1594
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
1595
+ if any, should be retried.
1596
+ timeout (float): The timeout for this request.
1597
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1598
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1599
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1600
+ be of type `bytes`.
1601
+ """
1602
+ self._method = method
1603
+ self._request = analytics_admin.ListKeyEventsRequest(request)
1604
+ self._response = response
1605
+ self._retry = retry
1606
+ self._timeout = timeout
1607
+ self._metadata = metadata
1608
+
1609
+ def __getattr__(self, name: str) -> Any:
1610
+ return getattr(self._response, name)
1611
+
1612
+ @property
1613
+ async def pages(self) -> AsyncIterator[analytics_admin.ListKeyEventsResponse]:
1614
+ yield self._response
1615
+ while self._response.next_page_token:
1616
+ self._request.page_token = self._response.next_page_token
1617
+ self._response = await self._method(
1618
+ self._request,
1619
+ retry=self._retry,
1620
+ timeout=self._timeout,
1621
+ metadata=self._metadata,
1622
+ )
1623
+ yield self._response
1624
+
1625
+ def __aiter__(self) -> AsyncIterator[resources.KeyEvent]:
1626
+ async def async_generator():
1627
+ async for page in self.pages:
1628
+ for response in page.key_events:
1629
+ yield response
1630
+
1631
+ return async_generator()
1632
+
1633
+ def __repr__(self) -> str:
1634
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1635
+
1636
+
1637
+ class ListDisplayVideo360AdvertiserLinksPager:
1638
+ """A pager for iterating through ``list_display_video360_advertiser_links`` requests.
1639
+
1640
+ This class thinly wraps an initial
1641
+ :class:`google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinksResponse` object, and
1642
+ provides an ``__iter__`` method to iterate through its
1643
+ ``display_video_360_advertiser_links`` field.
1644
+
1645
+ If there are more pages, the ``__iter__`` method will make additional
1646
+ ``ListDisplayVideo360AdvertiserLinks`` requests and continue to iterate
1647
+ through the ``display_video_360_advertiser_links`` field on the
1648
+ corresponding responses.
1649
+
1650
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinksResponse`
1651
+ attributes are available on the pager. If multiple requests are made, only
1652
+ the most recent response is retained, and thus used for attribute lookup.
1653
+ """
1654
+
1655
+ def __init__(
1656
+ self,
1657
+ method: Callable[
1658
+ ..., analytics_admin.ListDisplayVideo360AdvertiserLinksResponse
1659
+ ],
1660
+ request: analytics_admin.ListDisplayVideo360AdvertiserLinksRequest,
1661
+ response: analytics_admin.ListDisplayVideo360AdvertiserLinksResponse,
1662
+ *,
1663
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
1664
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1665
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1666
+ ):
1667
+ """Instantiate the pager.
1668
+
1669
+ Args:
1670
+ method (Callable): The method that was originally called, and
1671
+ which instantiated this pager.
1672
+ request (google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinksRequest):
1673
+ The initial request object.
1674
+ response (google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinksResponse):
1675
+ The initial response object.
1676
+ retry (google.api_core.retry.Retry): Designation of what errors,
1677
+ if any, should be retried.
1678
+ timeout (float): The timeout for this request.
1679
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1680
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1681
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1682
+ be of type `bytes`.
1683
+ """
1684
+ self._method = method
1685
+ self._request = analytics_admin.ListDisplayVideo360AdvertiserLinksRequest(
1686
+ request
1687
+ )
1688
+ self._response = response
1689
+ self._retry = retry
1690
+ self._timeout = timeout
1691
+ self._metadata = metadata
1692
+
1693
+ def __getattr__(self, name: str) -> Any:
1694
+ return getattr(self._response, name)
1695
+
1696
+ @property
1697
+ def pages(
1698
+ self,
1699
+ ) -> Iterator[analytics_admin.ListDisplayVideo360AdvertiserLinksResponse]:
1700
+ yield self._response
1701
+ while self._response.next_page_token:
1702
+ self._request.page_token = self._response.next_page_token
1703
+ self._response = self._method(
1704
+ self._request,
1705
+ retry=self._retry,
1706
+ timeout=self._timeout,
1707
+ metadata=self._metadata,
1708
+ )
1709
+ yield self._response
1710
+
1711
+ def __iter__(self) -> Iterator[resources.DisplayVideo360AdvertiserLink]:
1712
+ for page in self.pages:
1713
+ yield from page.display_video_360_advertiser_links
1714
+
1715
+ def __repr__(self) -> str:
1716
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1717
+
1718
+
1719
+ class ListDisplayVideo360AdvertiserLinksAsyncPager:
1720
+ """A pager for iterating through ``list_display_video360_advertiser_links`` requests.
1721
+
1722
+ This class thinly wraps an initial
1723
+ :class:`google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinksResponse` object, and
1724
+ provides an ``__aiter__`` method to iterate through its
1725
+ ``display_video_360_advertiser_links`` field.
1726
+
1727
+ If there are more pages, the ``__aiter__`` method will make additional
1728
+ ``ListDisplayVideo360AdvertiserLinks`` requests and continue to iterate
1729
+ through the ``display_video_360_advertiser_links`` field on the
1730
+ corresponding responses.
1731
+
1732
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinksResponse`
1733
+ attributes are available on the pager. If multiple requests are made, only
1734
+ the most recent response is retained, and thus used for attribute lookup.
1735
+ """
1736
+
1737
+ def __init__(
1738
+ self,
1739
+ method: Callable[
1740
+ ..., Awaitable[analytics_admin.ListDisplayVideo360AdvertiserLinksResponse]
1741
+ ],
1742
+ request: analytics_admin.ListDisplayVideo360AdvertiserLinksRequest,
1743
+ response: analytics_admin.ListDisplayVideo360AdvertiserLinksResponse,
1744
+ *,
1745
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
1746
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1747
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1748
+ ):
1749
+ """Instantiates the pager.
1750
+
1751
+ Args:
1752
+ method (Callable): The method that was originally called, and
1753
+ which instantiated this pager.
1754
+ request (google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinksRequest):
1755
+ The initial request object.
1756
+ response (google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinksResponse):
1757
+ The initial response object.
1758
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
1759
+ if any, should be retried.
1760
+ timeout (float): The timeout for this request.
1761
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1762
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1763
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1764
+ be of type `bytes`.
1765
+ """
1766
+ self._method = method
1767
+ self._request = analytics_admin.ListDisplayVideo360AdvertiserLinksRequest(
1768
+ request
1769
+ )
1770
+ self._response = response
1771
+ self._retry = retry
1772
+ self._timeout = timeout
1773
+ self._metadata = metadata
1774
+
1775
+ def __getattr__(self, name: str) -> Any:
1776
+ return getattr(self._response, name)
1777
+
1778
+ @property
1779
+ async def pages(
1780
+ self,
1781
+ ) -> AsyncIterator[analytics_admin.ListDisplayVideo360AdvertiserLinksResponse]:
1782
+ yield self._response
1783
+ while self._response.next_page_token:
1784
+ self._request.page_token = self._response.next_page_token
1785
+ self._response = await self._method(
1786
+ self._request,
1787
+ retry=self._retry,
1788
+ timeout=self._timeout,
1789
+ metadata=self._metadata,
1790
+ )
1791
+ yield self._response
1792
+
1793
+ def __aiter__(self) -> AsyncIterator[resources.DisplayVideo360AdvertiserLink]:
1794
+ async def async_generator():
1795
+ async for page in self.pages:
1796
+ for response in page.display_video_360_advertiser_links:
1797
+ yield response
1798
+
1799
+ return async_generator()
1800
+
1801
+ def __repr__(self) -> str:
1802
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1803
+
1804
+
1805
+ class ListDisplayVideo360AdvertiserLinkProposalsPager:
1806
+ """A pager for iterating through ``list_display_video360_advertiser_link_proposals`` requests.
1807
+
1808
+ This class thinly wraps an initial
1809
+ :class:`google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinkProposalsResponse` object, and
1810
+ provides an ``__iter__`` method to iterate through its
1811
+ ``display_video_360_advertiser_link_proposals`` field.
1812
+
1813
+ If there are more pages, the ``__iter__`` method will make additional
1814
+ ``ListDisplayVideo360AdvertiserLinkProposals`` requests and continue to iterate
1815
+ through the ``display_video_360_advertiser_link_proposals`` field on the
1816
+ corresponding responses.
1817
+
1818
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinkProposalsResponse`
1819
+ attributes are available on the pager. If multiple requests are made, only
1820
+ the most recent response is retained, and thus used for attribute lookup.
1821
+ """
1822
+
1823
+ def __init__(
1824
+ self,
1825
+ method: Callable[
1826
+ ..., analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsResponse
1827
+ ],
1828
+ request: analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsRequest,
1829
+ response: analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsResponse,
1830
+ *,
1831
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
1832
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1833
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1834
+ ):
1835
+ """Instantiate the pager.
1836
+
1837
+ Args:
1838
+ method (Callable): The method that was originally called, and
1839
+ which instantiated this pager.
1840
+ request (google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinkProposalsRequest):
1841
+ The initial request object.
1842
+ response (google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinkProposalsResponse):
1843
+ The initial response object.
1844
+ retry (google.api_core.retry.Retry): Designation of what errors,
1845
+ if any, should be retried.
1846
+ timeout (float): The timeout for this request.
1847
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1848
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1849
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1850
+ be of type `bytes`.
1851
+ """
1852
+ self._method = method
1853
+ self._request = (
1854
+ analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsRequest(request)
1855
+ )
1856
+ self._response = response
1857
+ self._retry = retry
1858
+ self._timeout = timeout
1859
+ self._metadata = metadata
1860
+
1861
+ def __getattr__(self, name: str) -> Any:
1862
+ return getattr(self._response, name)
1863
+
1864
+ @property
1865
+ def pages(
1866
+ self,
1867
+ ) -> Iterator[analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsResponse]:
1868
+ yield self._response
1869
+ while self._response.next_page_token:
1870
+ self._request.page_token = self._response.next_page_token
1871
+ self._response = self._method(
1872
+ self._request,
1873
+ retry=self._retry,
1874
+ timeout=self._timeout,
1875
+ metadata=self._metadata,
1876
+ )
1877
+ yield self._response
1878
+
1879
+ def __iter__(self) -> Iterator[resources.DisplayVideo360AdvertiserLinkProposal]:
1880
+ for page in self.pages:
1881
+ yield from page.display_video_360_advertiser_link_proposals
1882
+
1883
+ def __repr__(self) -> str:
1884
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1885
+
1886
+
1887
+ class ListDisplayVideo360AdvertiserLinkProposalsAsyncPager:
1888
+ """A pager for iterating through ``list_display_video360_advertiser_link_proposals`` requests.
1889
+
1890
+ This class thinly wraps an initial
1891
+ :class:`google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinkProposalsResponse` object, and
1892
+ provides an ``__aiter__`` method to iterate through its
1893
+ ``display_video_360_advertiser_link_proposals`` field.
1894
+
1895
+ If there are more pages, the ``__aiter__`` method will make additional
1896
+ ``ListDisplayVideo360AdvertiserLinkProposals`` requests and continue to iterate
1897
+ through the ``display_video_360_advertiser_link_proposals`` field on the
1898
+ corresponding responses.
1899
+
1900
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinkProposalsResponse`
1901
+ attributes are available on the pager. If multiple requests are made, only
1902
+ the most recent response is retained, and thus used for attribute lookup.
1903
+ """
1904
+
1905
+ def __init__(
1906
+ self,
1907
+ method: Callable[
1908
+ ...,
1909
+ Awaitable[
1910
+ analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsResponse
1911
+ ],
1912
+ ],
1913
+ request: analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsRequest,
1914
+ response: analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsResponse,
1915
+ *,
1916
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
1917
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1918
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1919
+ ):
1920
+ """Instantiates the pager.
1921
+
1922
+ Args:
1923
+ method (Callable): The method that was originally called, and
1924
+ which instantiated this pager.
1925
+ request (google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinkProposalsRequest):
1926
+ The initial request object.
1927
+ response (google.analytics.admin_v1alpha.types.ListDisplayVideo360AdvertiserLinkProposalsResponse):
1928
+ The initial response object.
1929
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
1930
+ if any, should be retried.
1931
+ timeout (float): The timeout for this request.
1932
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1933
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1934
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1935
+ be of type `bytes`.
1936
+ """
1937
+ self._method = method
1938
+ self._request = (
1939
+ analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsRequest(request)
1940
+ )
1941
+ self._response = response
1942
+ self._retry = retry
1943
+ self._timeout = timeout
1944
+ self._metadata = metadata
1945
+
1946
+ def __getattr__(self, name: str) -> Any:
1947
+ return getattr(self._response, name)
1948
+
1949
+ @property
1950
+ async def pages(
1951
+ self,
1952
+ ) -> AsyncIterator[
1953
+ analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsResponse
1954
+ ]:
1955
+ yield self._response
1956
+ while self._response.next_page_token:
1957
+ self._request.page_token = self._response.next_page_token
1958
+ self._response = await self._method(
1959
+ self._request,
1960
+ retry=self._retry,
1961
+ timeout=self._timeout,
1962
+ metadata=self._metadata,
1963
+ )
1964
+ yield self._response
1965
+
1966
+ def __aiter__(
1967
+ self,
1968
+ ) -> AsyncIterator[resources.DisplayVideo360AdvertiserLinkProposal]:
1969
+ async def async_generator():
1970
+ async for page in self.pages:
1971
+ for response in page.display_video_360_advertiser_link_proposals:
1972
+ yield response
1973
+
1974
+ return async_generator()
1975
+
1976
+ def __repr__(self) -> str:
1977
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1978
+
1979
+
1980
+ class ListCustomDimensionsPager:
1981
+ """A pager for iterating through ``list_custom_dimensions`` requests.
1982
+
1983
+ This class thinly wraps an initial
1984
+ :class:`google.analytics.admin_v1alpha.types.ListCustomDimensionsResponse` object, and
1985
+ provides an ``__iter__`` method to iterate through its
1986
+ ``custom_dimensions`` field.
1987
+
1988
+ If there are more pages, the ``__iter__`` method will make additional
1989
+ ``ListCustomDimensions`` requests and continue to iterate
1990
+ through the ``custom_dimensions`` field on the
1991
+ corresponding responses.
1992
+
1993
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListCustomDimensionsResponse`
1994
+ attributes are available on the pager. If multiple requests are made, only
1995
+ the most recent response is retained, and thus used for attribute lookup.
1996
+ """
1997
+
1998
+ def __init__(
1999
+ self,
2000
+ method: Callable[..., analytics_admin.ListCustomDimensionsResponse],
2001
+ request: analytics_admin.ListCustomDimensionsRequest,
2002
+ response: analytics_admin.ListCustomDimensionsResponse,
2003
+ *,
2004
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
2005
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2006
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
2007
+ ):
2008
+ """Instantiate the pager.
2009
+
2010
+ Args:
2011
+ method (Callable): The method that was originally called, and
2012
+ which instantiated this pager.
2013
+ request (google.analytics.admin_v1alpha.types.ListCustomDimensionsRequest):
2014
+ The initial request object.
2015
+ response (google.analytics.admin_v1alpha.types.ListCustomDimensionsResponse):
2016
+ The initial response object.
2017
+ retry (google.api_core.retry.Retry): Designation of what errors,
2018
+ if any, should be retried.
2019
+ timeout (float): The timeout for this request.
2020
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2021
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2022
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2023
+ be of type `bytes`.
2024
+ """
2025
+ self._method = method
2026
+ self._request = analytics_admin.ListCustomDimensionsRequest(request)
2027
+ self._response = response
2028
+ self._retry = retry
2029
+ self._timeout = timeout
2030
+ self._metadata = metadata
2031
+
2032
+ def __getattr__(self, name: str) -> Any:
2033
+ return getattr(self._response, name)
2034
+
2035
+ @property
2036
+ def pages(self) -> Iterator[analytics_admin.ListCustomDimensionsResponse]:
2037
+ yield self._response
2038
+ while self._response.next_page_token:
2039
+ self._request.page_token = self._response.next_page_token
2040
+ self._response = self._method(
2041
+ self._request,
2042
+ retry=self._retry,
2043
+ timeout=self._timeout,
2044
+ metadata=self._metadata,
2045
+ )
2046
+ yield self._response
2047
+
2048
+ def __iter__(self) -> Iterator[resources.CustomDimension]:
2049
+ for page in self.pages:
2050
+ yield from page.custom_dimensions
2051
+
2052
+ def __repr__(self) -> str:
2053
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
2054
+
2055
+
2056
+ class ListCustomDimensionsAsyncPager:
2057
+ """A pager for iterating through ``list_custom_dimensions`` requests.
2058
+
2059
+ This class thinly wraps an initial
2060
+ :class:`google.analytics.admin_v1alpha.types.ListCustomDimensionsResponse` object, and
2061
+ provides an ``__aiter__`` method to iterate through its
2062
+ ``custom_dimensions`` field.
2063
+
2064
+ If there are more pages, the ``__aiter__`` method will make additional
2065
+ ``ListCustomDimensions`` requests and continue to iterate
2066
+ through the ``custom_dimensions`` field on the
2067
+ corresponding responses.
2068
+
2069
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListCustomDimensionsResponse`
2070
+ attributes are available on the pager. If multiple requests are made, only
2071
+ the most recent response is retained, and thus used for attribute lookup.
2072
+ """
2073
+
2074
+ def __init__(
2075
+ self,
2076
+ method: Callable[..., Awaitable[analytics_admin.ListCustomDimensionsResponse]],
2077
+ request: analytics_admin.ListCustomDimensionsRequest,
2078
+ response: analytics_admin.ListCustomDimensionsResponse,
2079
+ *,
2080
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
2081
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2082
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
2083
+ ):
2084
+ """Instantiates the pager.
2085
+
2086
+ Args:
2087
+ method (Callable): The method that was originally called, and
2088
+ which instantiated this pager.
2089
+ request (google.analytics.admin_v1alpha.types.ListCustomDimensionsRequest):
2090
+ The initial request object.
2091
+ response (google.analytics.admin_v1alpha.types.ListCustomDimensionsResponse):
2092
+ The initial response object.
2093
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
2094
+ if any, should be retried.
2095
+ timeout (float): The timeout for this request.
2096
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2097
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2098
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2099
+ be of type `bytes`.
2100
+ """
2101
+ self._method = method
2102
+ self._request = analytics_admin.ListCustomDimensionsRequest(request)
2103
+ self._response = response
2104
+ self._retry = retry
2105
+ self._timeout = timeout
2106
+ self._metadata = metadata
2107
+
2108
+ def __getattr__(self, name: str) -> Any:
2109
+ return getattr(self._response, name)
2110
+
2111
+ @property
2112
+ async def pages(
2113
+ self,
2114
+ ) -> AsyncIterator[analytics_admin.ListCustomDimensionsResponse]:
2115
+ yield self._response
2116
+ while self._response.next_page_token:
2117
+ self._request.page_token = self._response.next_page_token
2118
+ self._response = await self._method(
2119
+ self._request,
2120
+ retry=self._retry,
2121
+ timeout=self._timeout,
2122
+ metadata=self._metadata,
2123
+ )
2124
+ yield self._response
2125
+
2126
+ def __aiter__(self) -> AsyncIterator[resources.CustomDimension]:
2127
+ async def async_generator():
2128
+ async for page in self.pages:
2129
+ for response in page.custom_dimensions:
2130
+ yield response
2131
+
2132
+ return async_generator()
2133
+
2134
+ def __repr__(self) -> str:
2135
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
2136
+
2137
+
2138
+ class ListCustomMetricsPager:
2139
+ """A pager for iterating through ``list_custom_metrics`` requests.
2140
+
2141
+ This class thinly wraps an initial
2142
+ :class:`google.analytics.admin_v1alpha.types.ListCustomMetricsResponse` object, and
2143
+ provides an ``__iter__`` method to iterate through its
2144
+ ``custom_metrics`` field.
2145
+
2146
+ If there are more pages, the ``__iter__`` method will make additional
2147
+ ``ListCustomMetrics`` requests and continue to iterate
2148
+ through the ``custom_metrics`` field on the
2149
+ corresponding responses.
2150
+
2151
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListCustomMetricsResponse`
2152
+ attributes are available on the pager. If multiple requests are made, only
2153
+ the most recent response is retained, and thus used for attribute lookup.
2154
+ """
2155
+
2156
+ def __init__(
2157
+ self,
2158
+ method: Callable[..., analytics_admin.ListCustomMetricsResponse],
2159
+ request: analytics_admin.ListCustomMetricsRequest,
2160
+ response: analytics_admin.ListCustomMetricsResponse,
2161
+ *,
2162
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
2163
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2164
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
2165
+ ):
2166
+ """Instantiate the pager.
2167
+
2168
+ Args:
2169
+ method (Callable): The method that was originally called, and
2170
+ which instantiated this pager.
2171
+ request (google.analytics.admin_v1alpha.types.ListCustomMetricsRequest):
2172
+ The initial request object.
2173
+ response (google.analytics.admin_v1alpha.types.ListCustomMetricsResponse):
2174
+ The initial response object.
2175
+ retry (google.api_core.retry.Retry): Designation of what errors,
2176
+ if any, should be retried.
2177
+ timeout (float): The timeout for this request.
2178
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2179
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2180
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2181
+ be of type `bytes`.
2182
+ """
2183
+ self._method = method
2184
+ self._request = analytics_admin.ListCustomMetricsRequest(request)
2185
+ self._response = response
2186
+ self._retry = retry
2187
+ self._timeout = timeout
2188
+ self._metadata = metadata
2189
+
2190
+ def __getattr__(self, name: str) -> Any:
2191
+ return getattr(self._response, name)
2192
+
2193
+ @property
2194
+ def pages(self) -> Iterator[analytics_admin.ListCustomMetricsResponse]:
2195
+ yield self._response
2196
+ while self._response.next_page_token:
2197
+ self._request.page_token = self._response.next_page_token
2198
+ self._response = self._method(
2199
+ self._request,
2200
+ retry=self._retry,
2201
+ timeout=self._timeout,
2202
+ metadata=self._metadata,
2203
+ )
2204
+ yield self._response
2205
+
2206
+ def __iter__(self) -> Iterator[resources.CustomMetric]:
2207
+ for page in self.pages:
2208
+ yield from page.custom_metrics
2209
+
2210
+ def __repr__(self) -> str:
2211
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
2212
+
2213
+
2214
+ class ListCustomMetricsAsyncPager:
2215
+ """A pager for iterating through ``list_custom_metrics`` requests.
2216
+
2217
+ This class thinly wraps an initial
2218
+ :class:`google.analytics.admin_v1alpha.types.ListCustomMetricsResponse` object, and
2219
+ provides an ``__aiter__`` method to iterate through its
2220
+ ``custom_metrics`` field.
2221
+
2222
+ If there are more pages, the ``__aiter__`` method will make additional
2223
+ ``ListCustomMetrics`` requests and continue to iterate
2224
+ through the ``custom_metrics`` field on the
2225
+ corresponding responses.
2226
+
2227
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListCustomMetricsResponse`
2228
+ attributes are available on the pager. If multiple requests are made, only
2229
+ the most recent response is retained, and thus used for attribute lookup.
2230
+ """
2231
+
2232
+ def __init__(
2233
+ self,
2234
+ method: Callable[..., Awaitable[analytics_admin.ListCustomMetricsResponse]],
2235
+ request: analytics_admin.ListCustomMetricsRequest,
2236
+ response: analytics_admin.ListCustomMetricsResponse,
2237
+ *,
2238
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
2239
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2240
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
2241
+ ):
2242
+ """Instantiates the pager.
2243
+
2244
+ Args:
2245
+ method (Callable): The method that was originally called, and
2246
+ which instantiated this pager.
2247
+ request (google.analytics.admin_v1alpha.types.ListCustomMetricsRequest):
2248
+ The initial request object.
2249
+ response (google.analytics.admin_v1alpha.types.ListCustomMetricsResponse):
2250
+ The initial response object.
2251
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
2252
+ if any, should be retried.
2253
+ timeout (float): The timeout for this request.
2254
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2255
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2256
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2257
+ be of type `bytes`.
2258
+ """
2259
+ self._method = method
2260
+ self._request = analytics_admin.ListCustomMetricsRequest(request)
2261
+ self._response = response
2262
+ self._retry = retry
2263
+ self._timeout = timeout
2264
+ self._metadata = metadata
2265
+
2266
+ def __getattr__(self, name: str) -> Any:
2267
+ return getattr(self._response, name)
2268
+
2269
+ @property
2270
+ async def pages(self) -> AsyncIterator[analytics_admin.ListCustomMetricsResponse]:
2271
+ yield self._response
2272
+ while self._response.next_page_token:
2273
+ self._request.page_token = self._response.next_page_token
2274
+ self._response = await self._method(
2275
+ self._request,
2276
+ retry=self._retry,
2277
+ timeout=self._timeout,
2278
+ metadata=self._metadata,
2279
+ )
2280
+ yield self._response
2281
+
2282
+ def __aiter__(self) -> AsyncIterator[resources.CustomMetric]:
2283
+ async def async_generator():
2284
+ async for page in self.pages:
2285
+ for response in page.custom_metrics:
2286
+ yield response
2287
+
2288
+ return async_generator()
2289
+
2290
+ def __repr__(self) -> str:
2291
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
2292
+
2293
+
2294
+ class ListDataStreamsPager:
2295
+ """A pager for iterating through ``list_data_streams`` requests.
2296
+
2297
+ This class thinly wraps an initial
2298
+ :class:`google.analytics.admin_v1alpha.types.ListDataStreamsResponse` object, and
2299
+ provides an ``__iter__`` method to iterate through its
2300
+ ``data_streams`` field.
2301
+
2302
+ If there are more pages, the ``__iter__`` method will make additional
2303
+ ``ListDataStreams`` requests and continue to iterate
2304
+ through the ``data_streams`` field on the
2305
+ corresponding responses.
2306
+
2307
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListDataStreamsResponse`
2308
+ attributes are available on the pager. If multiple requests are made, only
2309
+ the most recent response is retained, and thus used for attribute lookup.
2310
+ """
2311
+
2312
+ def __init__(
2313
+ self,
2314
+ method: Callable[..., analytics_admin.ListDataStreamsResponse],
2315
+ request: analytics_admin.ListDataStreamsRequest,
2316
+ response: analytics_admin.ListDataStreamsResponse,
2317
+ *,
2318
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
2319
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2320
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
2321
+ ):
2322
+ """Instantiate the pager.
2323
+
2324
+ Args:
2325
+ method (Callable): The method that was originally called, and
2326
+ which instantiated this pager.
2327
+ request (google.analytics.admin_v1alpha.types.ListDataStreamsRequest):
2328
+ The initial request object.
2329
+ response (google.analytics.admin_v1alpha.types.ListDataStreamsResponse):
2330
+ The initial response object.
2331
+ retry (google.api_core.retry.Retry): Designation of what errors,
2332
+ if any, should be retried.
2333
+ timeout (float): The timeout for this request.
2334
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2335
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2336
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2337
+ be of type `bytes`.
2338
+ """
2339
+ self._method = method
2340
+ self._request = analytics_admin.ListDataStreamsRequest(request)
2341
+ self._response = response
2342
+ self._retry = retry
2343
+ self._timeout = timeout
2344
+ self._metadata = metadata
2345
+
2346
+ def __getattr__(self, name: str) -> Any:
2347
+ return getattr(self._response, name)
2348
+
2349
+ @property
2350
+ def pages(self) -> Iterator[analytics_admin.ListDataStreamsResponse]:
2351
+ yield self._response
2352
+ while self._response.next_page_token:
2353
+ self._request.page_token = self._response.next_page_token
2354
+ self._response = self._method(
2355
+ self._request,
2356
+ retry=self._retry,
2357
+ timeout=self._timeout,
2358
+ metadata=self._metadata,
2359
+ )
2360
+ yield self._response
2361
+
2362
+ def __iter__(self) -> Iterator[resources.DataStream]:
2363
+ for page in self.pages:
2364
+ yield from page.data_streams
2365
+
2366
+ def __repr__(self) -> str:
2367
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
2368
+
2369
+
2370
+ class ListDataStreamsAsyncPager:
2371
+ """A pager for iterating through ``list_data_streams`` requests.
2372
+
2373
+ This class thinly wraps an initial
2374
+ :class:`google.analytics.admin_v1alpha.types.ListDataStreamsResponse` object, and
2375
+ provides an ``__aiter__`` method to iterate through its
2376
+ ``data_streams`` field.
2377
+
2378
+ If there are more pages, the ``__aiter__`` method will make additional
2379
+ ``ListDataStreams`` requests and continue to iterate
2380
+ through the ``data_streams`` field on the
2381
+ corresponding responses.
2382
+
2383
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListDataStreamsResponse`
2384
+ attributes are available on the pager. If multiple requests are made, only
2385
+ the most recent response is retained, and thus used for attribute lookup.
2386
+ """
2387
+
2388
+ def __init__(
2389
+ self,
2390
+ method: Callable[..., Awaitable[analytics_admin.ListDataStreamsResponse]],
2391
+ request: analytics_admin.ListDataStreamsRequest,
2392
+ response: analytics_admin.ListDataStreamsResponse,
2393
+ *,
2394
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
2395
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2396
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
2397
+ ):
2398
+ """Instantiates the pager.
2399
+
2400
+ Args:
2401
+ method (Callable): The method that was originally called, and
2402
+ which instantiated this pager.
2403
+ request (google.analytics.admin_v1alpha.types.ListDataStreamsRequest):
2404
+ The initial request object.
2405
+ response (google.analytics.admin_v1alpha.types.ListDataStreamsResponse):
2406
+ The initial response object.
2407
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
2408
+ if any, should be retried.
2409
+ timeout (float): The timeout for this request.
2410
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2411
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2412
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2413
+ be of type `bytes`.
2414
+ """
2415
+ self._method = method
2416
+ self._request = analytics_admin.ListDataStreamsRequest(request)
2417
+ self._response = response
2418
+ self._retry = retry
2419
+ self._timeout = timeout
2420
+ self._metadata = metadata
2421
+
2422
+ def __getattr__(self, name: str) -> Any:
2423
+ return getattr(self._response, name)
2424
+
2425
+ @property
2426
+ async def pages(self) -> AsyncIterator[analytics_admin.ListDataStreamsResponse]:
2427
+ yield self._response
2428
+ while self._response.next_page_token:
2429
+ self._request.page_token = self._response.next_page_token
2430
+ self._response = await self._method(
2431
+ self._request,
2432
+ retry=self._retry,
2433
+ timeout=self._timeout,
2434
+ metadata=self._metadata,
2435
+ )
2436
+ yield self._response
2437
+
2438
+ def __aiter__(self) -> AsyncIterator[resources.DataStream]:
2439
+ async def async_generator():
2440
+ async for page in self.pages:
2441
+ for response in page.data_streams:
2442
+ yield response
2443
+
2444
+ return async_generator()
2445
+
2446
+ def __repr__(self) -> str:
2447
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
2448
+
2449
+
2450
+ class ListAudiencesPager:
2451
+ """A pager for iterating through ``list_audiences`` requests.
2452
+
2453
+ This class thinly wraps an initial
2454
+ :class:`google.analytics.admin_v1alpha.types.ListAudiencesResponse` object, and
2455
+ provides an ``__iter__`` method to iterate through its
2456
+ ``audiences`` field.
2457
+
2458
+ If there are more pages, the ``__iter__`` method will make additional
2459
+ ``ListAudiences`` requests and continue to iterate
2460
+ through the ``audiences`` field on the
2461
+ corresponding responses.
2462
+
2463
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListAudiencesResponse`
2464
+ attributes are available on the pager. If multiple requests are made, only
2465
+ the most recent response is retained, and thus used for attribute lookup.
2466
+ """
2467
+
2468
+ def __init__(
2469
+ self,
2470
+ method: Callable[..., analytics_admin.ListAudiencesResponse],
2471
+ request: analytics_admin.ListAudiencesRequest,
2472
+ response: analytics_admin.ListAudiencesResponse,
2473
+ *,
2474
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
2475
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2476
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
2477
+ ):
2478
+ """Instantiate the pager.
2479
+
2480
+ Args:
2481
+ method (Callable): The method that was originally called, and
2482
+ which instantiated this pager.
2483
+ request (google.analytics.admin_v1alpha.types.ListAudiencesRequest):
2484
+ The initial request object.
2485
+ response (google.analytics.admin_v1alpha.types.ListAudiencesResponse):
2486
+ The initial response object.
2487
+ retry (google.api_core.retry.Retry): Designation of what errors,
2488
+ if any, should be retried.
2489
+ timeout (float): The timeout for this request.
2490
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2491
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2492
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2493
+ be of type `bytes`.
2494
+ """
2495
+ self._method = method
2496
+ self._request = analytics_admin.ListAudiencesRequest(request)
2497
+ self._response = response
2498
+ self._retry = retry
2499
+ self._timeout = timeout
2500
+ self._metadata = metadata
2501
+
2502
+ def __getattr__(self, name: str) -> Any:
2503
+ return getattr(self._response, name)
2504
+
2505
+ @property
2506
+ def pages(self) -> Iterator[analytics_admin.ListAudiencesResponse]:
2507
+ yield self._response
2508
+ while self._response.next_page_token:
2509
+ self._request.page_token = self._response.next_page_token
2510
+ self._response = self._method(
2511
+ self._request,
2512
+ retry=self._retry,
2513
+ timeout=self._timeout,
2514
+ metadata=self._metadata,
2515
+ )
2516
+ yield self._response
2517
+
2518
+ def __iter__(self) -> Iterator[audience.Audience]:
2519
+ for page in self.pages:
2520
+ yield from page.audiences
2521
+
2522
+ def __repr__(self) -> str:
2523
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
2524
+
2525
+
2526
+ class ListAudiencesAsyncPager:
2527
+ """A pager for iterating through ``list_audiences`` requests.
2528
+
2529
+ This class thinly wraps an initial
2530
+ :class:`google.analytics.admin_v1alpha.types.ListAudiencesResponse` object, and
2531
+ provides an ``__aiter__`` method to iterate through its
2532
+ ``audiences`` field.
2533
+
2534
+ If there are more pages, the ``__aiter__`` method will make additional
2535
+ ``ListAudiences`` requests and continue to iterate
2536
+ through the ``audiences`` field on the
2537
+ corresponding responses.
2538
+
2539
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListAudiencesResponse`
2540
+ attributes are available on the pager. If multiple requests are made, only
2541
+ the most recent response is retained, and thus used for attribute lookup.
2542
+ """
2543
+
2544
+ def __init__(
2545
+ self,
2546
+ method: Callable[..., Awaitable[analytics_admin.ListAudiencesResponse]],
2547
+ request: analytics_admin.ListAudiencesRequest,
2548
+ response: analytics_admin.ListAudiencesResponse,
2549
+ *,
2550
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
2551
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2552
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
2553
+ ):
2554
+ """Instantiates the pager.
2555
+
2556
+ Args:
2557
+ method (Callable): The method that was originally called, and
2558
+ which instantiated this pager.
2559
+ request (google.analytics.admin_v1alpha.types.ListAudiencesRequest):
2560
+ The initial request object.
2561
+ response (google.analytics.admin_v1alpha.types.ListAudiencesResponse):
2562
+ The initial response object.
2563
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
2564
+ if any, should be retried.
2565
+ timeout (float): The timeout for this request.
2566
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2567
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2568
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2569
+ be of type `bytes`.
2570
+ """
2571
+ self._method = method
2572
+ self._request = analytics_admin.ListAudiencesRequest(request)
2573
+ self._response = response
2574
+ self._retry = retry
2575
+ self._timeout = timeout
2576
+ self._metadata = metadata
2577
+
2578
+ def __getattr__(self, name: str) -> Any:
2579
+ return getattr(self._response, name)
2580
+
2581
+ @property
2582
+ async def pages(self) -> AsyncIterator[analytics_admin.ListAudiencesResponse]:
2583
+ yield self._response
2584
+ while self._response.next_page_token:
2585
+ self._request.page_token = self._response.next_page_token
2586
+ self._response = await self._method(
2587
+ self._request,
2588
+ retry=self._retry,
2589
+ timeout=self._timeout,
2590
+ metadata=self._metadata,
2591
+ )
2592
+ yield self._response
2593
+
2594
+ def __aiter__(self) -> AsyncIterator[audience.Audience]:
2595
+ async def async_generator():
2596
+ async for page in self.pages:
2597
+ for response in page.audiences:
2598
+ yield response
2599
+
2600
+ return async_generator()
2601
+
2602
+ def __repr__(self) -> str:
2603
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
2604
+
2605
+
2606
+ class ListSearchAds360LinksPager:
2607
+ """A pager for iterating through ``list_search_ads360_links`` requests.
2608
+
2609
+ This class thinly wraps an initial
2610
+ :class:`google.analytics.admin_v1alpha.types.ListSearchAds360LinksResponse` object, and
2611
+ provides an ``__iter__`` method to iterate through its
2612
+ ``search_ads_360_links`` field.
2613
+
2614
+ If there are more pages, the ``__iter__`` method will make additional
2615
+ ``ListSearchAds360Links`` requests and continue to iterate
2616
+ through the ``search_ads_360_links`` field on the
2617
+ corresponding responses.
2618
+
2619
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListSearchAds360LinksResponse`
2620
+ attributes are available on the pager. If multiple requests are made, only
2621
+ the most recent response is retained, and thus used for attribute lookup.
2622
+ """
2623
+
2624
+ def __init__(
2625
+ self,
2626
+ method: Callable[..., analytics_admin.ListSearchAds360LinksResponse],
2627
+ request: analytics_admin.ListSearchAds360LinksRequest,
2628
+ response: analytics_admin.ListSearchAds360LinksResponse,
2629
+ *,
2630
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
2631
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2632
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
2633
+ ):
2634
+ """Instantiate the pager.
2635
+
2636
+ Args:
2637
+ method (Callable): The method that was originally called, and
2638
+ which instantiated this pager.
2639
+ request (google.analytics.admin_v1alpha.types.ListSearchAds360LinksRequest):
2640
+ The initial request object.
2641
+ response (google.analytics.admin_v1alpha.types.ListSearchAds360LinksResponse):
2642
+ The initial response object.
2643
+ retry (google.api_core.retry.Retry): Designation of what errors,
2644
+ if any, should be retried.
2645
+ timeout (float): The timeout for this request.
2646
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2647
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2648
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2649
+ be of type `bytes`.
2650
+ """
2651
+ self._method = method
2652
+ self._request = analytics_admin.ListSearchAds360LinksRequest(request)
2653
+ self._response = response
2654
+ self._retry = retry
2655
+ self._timeout = timeout
2656
+ self._metadata = metadata
2657
+
2658
+ def __getattr__(self, name: str) -> Any:
2659
+ return getattr(self._response, name)
2660
+
2661
+ @property
2662
+ def pages(self) -> Iterator[analytics_admin.ListSearchAds360LinksResponse]:
2663
+ yield self._response
2664
+ while self._response.next_page_token:
2665
+ self._request.page_token = self._response.next_page_token
2666
+ self._response = self._method(
2667
+ self._request,
2668
+ retry=self._retry,
2669
+ timeout=self._timeout,
2670
+ metadata=self._metadata,
2671
+ )
2672
+ yield self._response
2673
+
2674
+ def __iter__(self) -> Iterator[resources.SearchAds360Link]:
2675
+ for page in self.pages:
2676
+ yield from page.search_ads_360_links
2677
+
2678
+ def __repr__(self) -> str:
2679
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
2680
+
2681
+
2682
+ class ListSearchAds360LinksAsyncPager:
2683
+ """A pager for iterating through ``list_search_ads360_links`` requests.
2684
+
2685
+ This class thinly wraps an initial
2686
+ :class:`google.analytics.admin_v1alpha.types.ListSearchAds360LinksResponse` object, and
2687
+ provides an ``__aiter__`` method to iterate through its
2688
+ ``search_ads_360_links`` field.
2689
+
2690
+ If there are more pages, the ``__aiter__`` method will make additional
2691
+ ``ListSearchAds360Links`` requests and continue to iterate
2692
+ through the ``search_ads_360_links`` field on the
2693
+ corresponding responses.
2694
+
2695
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListSearchAds360LinksResponse`
2696
+ attributes are available on the pager. If multiple requests are made, only
2697
+ the most recent response is retained, and thus used for attribute lookup.
2698
+ """
2699
+
2700
+ def __init__(
2701
+ self,
2702
+ method: Callable[..., Awaitable[analytics_admin.ListSearchAds360LinksResponse]],
2703
+ request: analytics_admin.ListSearchAds360LinksRequest,
2704
+ response: analytics_admin.ListSearchAds360LinksResponse,
2705
+ *,
2706
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
2707
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2708
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
2709
+ ):
2710
+ """Instantiates the pager.
2711
+
2712
+ Args:
2713
+ method (Callable): The method that was originally called, and
2714
+ which instantiated this pager.
2715
+ request (google.analytics.admin_v1alpha.types.ListSearchAds360LinksRequest):
2716
+ The initial request object.
2717
+ response (google.analytics.admin_v1alpha.types.ListSearchAds360LinksResponse):
2718
+ The initial response object.
2719
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
2720
+ if any, should be retried.
2721
+ timeout (float): The timeout for this request.
2722
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2723
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2724
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2725
+ be of type `bytes`.
2726
+ """
2727
+ self._method = method
2728
+ self._request = analytics_admin.ListSearchAds360LinksRequest(request)
2729
+ self._response = response
2730
+ self._retry = retry
2731
+ self._timeout = timeout
2732
+ self._metadata = metadata
2733
+
2734
+ def __getattr__(self, name: str) -> Any:
2735
+ return getattr(self._response, name)
2736
+
2737
+ @property
2738
+ async def pages(
2739
+ self,
2740
+ ) -> AsyncIterator[analytics_admin.ListSearchAds360LinksResponse]:
2741
+ yield self._response
2742
+ while self._response.next_page_token:
2743
+ self._request.page_token = self._response.next_page_token
2744
+ self._response = await self._method(
2745
+ self._request,
2746
+ retry=self._retry,
2747
+ timeout=self._timeout,
2748
+ metadata=self._metadata,
2749
+ )
2750
+ yield self._response
2751
+
2752
+ def __aiter__(self) -> AsyncIterator[resources.SearchAds360Link]:
2753
+ async def async_generator():
2754
+ async for page in self.pages:
2755
+ for response in page.search_ads_360_links:
2756
+ yield response
2757
+
2758
+ return async_generator()
2759
+
2760
+ def __repr__(self) -> str:
2761
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
2762
+
2763
+
2764
+ class ListAccessBindingsPager:
2765
+ """A pager for iterating through ``list_access_bindings`` requests.
2766
+
2767
+ This class thinly wraps an initial
2768
+ :class:`google.analytics.admin_v1alpha.types.ListAccessBindingsResponse` object, and
2769
+ provides an ``__iter__`` method to iterate through its
2770
+ ``access_bindings`` field.
2771
+
2772
+ If there are more pages, the ``__iter__`` method will make additional
2773
+ ``ListAccessBindings`` requests and continue to iterate
2774
+ through the ``access_bindings`` field on the
2775
+ corresponding responses.
2776
+
2777
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListAccessBindingsResponse`
2778
+ attributes are available on the pager. If multiple requests are made, only
2779
+ the most recent response is retained, and thus used for attribute lookup.
2780
+ """
2781
+
2782
+ def __init__(
2783
+ self,
2784
+ method: Callable[..., analytics_admin.ListAccessBindingsResponse],
2785
+ request: analytics_admin.ListAccessBindingsRequest,
2786
+ response: analytics_admin.ListAccessBindingsResponse,
2787
+ *,
2788
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
2789
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2790
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
2791
+ ):
2792
+ """Instantiate the pager.
2793
+
2794
+ Args:
2795
+ method (Callable): The method that was originally called, and
2796
+ which instantiated this pager.
2797
+ request (google.analytics.admin_v1alpha.types.ListAccessBindingsRequest):
2798
+ The initial request object.
2799
+ response (google.analytics.admin_v1alpha.types.ListAccessBindingsResponse):
2800
+ The initial response object.
2801
+ retry (google.api_core.retry.Retry): Designation of what errors,
2802
+ if any, should be retried.
2803
+ timeout (float): The timeout for this request.
2804
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2805
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2806
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2807
+ be of type `bytes`.
2808
+ """
2809
+ self._method = method
2810
+ self._request = analytics_admin.ListAccessBindingsRequest(request)
2811
+ self._response = response
2812
+ self._retry = retry
2813
+ self._timeout = timeout
2814
+ self._metadata = metadata
2815
+
2816
+ def __getattr__(self, name: str) -> Any:
2817
+ return getattr(self._response, name)
2818
+
2819
+ @property
2820
+ def pages(self) -> Iterator[analytics_admin.ListAccessBindingsResponse]:
2821
+ yield self._response
2822
+ while self._response.next_page_token:
2823
+ self._request.page_token = self._response.next_page_token
2824
+ self._response = self._method(
2825
+ self._request,
2826
+ retry=self._retry,
2827
+ timeout=self._timeout,
2828
+ metadata=self._metadata,
2829
+ )
2830
+ yield self._response
2831
+
2832
+ def __iter__(self) -> Iterator[resources.AccessBinding]:
2833
+ for page in self.pages:
2834
+ yield from page.access_bindings
2835
+
2836
+ def __repr__(self) -> str:
2837
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
2838
+
2839
+
2840
+ class ListAccessBindingsAsyncPager:
2841
+ """A pager for iterating through ``list_access_bindings`` requests.
2842
+
2843
+ This class thinly wraps an initial
2844
+ :class:`google.analytics.admin_v1alpha.types.ListAccessBindingsResponse` object, and
2845
+ provides an ``__aiter__`` method to iterate through its
2846
+ ``access_bindings`` field.
2847
+
2848
+ If there are more pages, the ``__aiter__`` method will make additional
2849
+ ``ListAccessBindings`` requests and continue to iterate
2850
+ through the ``access_bindings`` field on the
2851
+ corresponding responses.
2852
+
2853
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListAccessBindingsResponse`
2854
+ attributes are available on the pager. If multiple requests are made, only
2855
+ the most recent response is retained, and thus used for attribute lookup.
2856
+ """
2857
+
2858
+ def __init__(
2859
+ self,
2860
+ method: Callable[..., Awaitable[analytics_admin.ListAccessBindingsResponse]],
2861
+ request: analytics_admin.ListAccessBindingsRequest,
2862
+ response: analytics_admin.ListAccessBindingsResponse,
2863
+ *,
2864
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
2865
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2866
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
2867
+ ):
2868
+ """Instantiates the pager.
2869
+
2870
+ Args:
2871
+ method (Callable): The method that was originally called, and
2872
+ which instantiated this pager.
2873
+ request (google.analytics.admin_v1alpha.types.ListAccessBindingsRequest):
2874
+ The initial request object.
2875
+ response (google.analytics.admin_v1alpha.types.ListAccessBindingsResponse):
2876
+ The initial response object.
2877
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
2878
+ if any, should be retried.
2879
+ timeout (float): The timeout for this request.
2880
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2881
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2882
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2883
+ be of type `bytes`.
2884
+ """
2885
+ self._method = method
2886
+ self._request = analytics_admin.ListAccessBindingsRequest(request)
2887
+ self._response = response
2888
+ self._retry = retry
2889
+ self._timeout = timeout
2890
+ self._metadata = metadata
2891
+
2892
+ def __getattr__(self, name: str) -> Any:
2893
+ return getattr(self._response, name)
2894
+
2895
+ @property
2896
+ async def pages(self) -> AsyncIterator[analytics_admin.ListAccessBindingsResponse]:
2897
+ yield self._response
2898
+ while self._response.next_page_token:
2899
+ self._request.page_token = self._response.next_page_token
2900
+ self._response = await self._method(
2901
+ self._request,
2902
+ retry=self._retry,
2903
+ timeout=self._timeout,
2904
+ metadata=self._metadata,
2905
+ )
2906
+ yield self._response
2907
+
2908
+ def __aiter__(self) -> AsyncIterator[resources.AccessBinding]:
2909
+ async def async_generator():
2910
+ async for page in self.pages:
2911
+ for response in page.access_bindings:
2912
+ yield response
2913
+
2914
+ return async_generator()
2915
+
2916
+ def __repr__(self) -> str:
2917
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
2918
+
2919
+
2920
+ class ListExpandedDataSetsPager:
2921
+ """A pager for iterating through ``list_expanded_data_sets`` requests.
2922
+
2923
+ This class thinly wraps an initial
2924
+ :class:`google.analytics.admin_v1alpha.types.ListExpandedDataSetsResponse` object, and
2925
+ provides an ``__iter__`` method to iterate through its
2926
+ ``expanded_data_sets`` field.
2927
+
2928
+ If there are more pages, the ``__iter__`` method will make additional
2929
+ ``ListExpandedDataSets`` requests and continue to iterate
2930
+ through the ``expanded_data_sets`` field on the
2931
+ corresponding responses.
2932
+
2933
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListExpandedDataSetsResponse`
2934
+ attributes are available on the pager. If multiple requests are made, only
2935
+ the most recent response is retained, and thus used for attribute lookup.
2936
+ """
2937
+
2938
+ def __init__(
2939
+ self,
2940
+ method: Callable[..., analytics_admin.ListExpandedDataSetsResponse],
2941
+ request: analytics_admin.ListExpandedDataSetsRequest,
2942
+ response: analytics_admin.ListExpandedDataSetsResponse,
2943
+ *,
2944
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
2945
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2946
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
2947
+ ):
2948
+ """Instantiate the pager.
2949
+
2950
+ Args:
2951
+ method (Callable): The method that was originally called, and
2952
+ which instantiated this pager.
2953
+ request (google.analytics.admin_v1alpha.types.ListExpandedDataSetsRequest):
2954
+ The initial request object.
2955
+ response (google.analytics.admin_v1alpha.types.ListExpandedDataSetsResponse):
2956
+ The initial response object.
2957
+ retry (google.api_core.retry.Retry): Designation of what errors,
2958
+ if any, should be retried.
2959
+ timeout (float): The timeout for this request.
2960
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2961
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2962
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2963
+ be of type `bytes`.
2964
+ """
2965
+ self._method = method
2966
+ self._request = analytics_admin.ListExpandedDataSetsRequest(request)
2967
+ self._response = response
2968
+ self._retry = retry
2969
+ self._timeout = timeout
2970
+ self._metadata = metadata
2971
+
2972
+ def __getattr__(self, name: str) -> Any:
2973
+ return getattr(self._response, name)
2974
+
2975
+ @property
2976
+ def pages(self) -> Iterator[analytics_admin.ListExpandedDataSetsResponse]:
2977
+ yield self._response
2978
+ while self._response.next_page_token:
2979
+ self._request.page_token = self._response.next_page_token
2980
+ self._response = self._method(
2981
+ self._request,
2982
+ retry=self._retry,
2983
+ timeout=self._timeout,
2984
+ metadata=self._metadata,
2985
+ )
2986
+ yield self._response
2987
+
2988
+ def __iter__(self) -> Iterator[expanded_data_set.ExpandedDataSet]:
2989
+ for page in self.pages:
2990
+ yield from page.expanded_data_sets
2991
+
2992
+ def __repr__(self) -> str:
2993
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
2994
+
2995
+
2996
+ class ListExpandedDataSetsAsyncPager:
2997
+ """A pager for iterating through ``list_expanded_data_sets`` requests.
2998
+
2999
+ This class thinly wraps an initial
3000
+ :class:`google.analytics.admin_v1alpha.types.ListExpandedDataSetsResponse` object, and
3001
+ provides an ``__aiter__`` method to iterate through its
3002
+ ``expanded_data_sets`` field.
3003
+
3004
+ If there are more pages, the ``__aiter__`` method will make additional
3005
+ ``ListExpandedDataSets`` requests and continue to iterate
3006
+ through the ``expanded_data_sets`` field on the
3007
+ corresponding responses.
3008
+
3009
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListExpandedDataSetsResponse`
3010
+ attributes are available on the pager. If multiple requests are made, only
3011
+ the most recent response is retained, and thus used for attribute lookup.
3012
+ """
3013
+
3014
+ def __init__(
3015
+ self,
3016
+ method: Callable[..., Awaitable[analytics_admin.ListExpandedDataSetsResponse]],
3017
+ request: analytics_admin.ListExpandedDataSetsRequest,
3018
+ response: analytics_admin.ListExpandedDataSetsResponse,
3019
+ *,
3020
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
3021
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
3022
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
3023
+ ):
3024
+ """Instantiates the pager.
3025
+
3026
+ Args:
3027
+ method (Callable): The method that was originally called, and
3028
+ which instantiated this pager.
3029
+ request (google.analytics.admin_v1alpha.types.ListExpandedDataSetsRequest):
3030
+ The initial request object.
3031
+ response (google.analytics.admin_v1alpha.types.ListExpandedDataSetsResponse):
3032
+ The initial response object.
3033
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
3034
+ if any, should be retried.
3035
+ timeout (float): The timeout for this request.
3036
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
3037
+ sent along with the request as metadata. Normally, each value must be of type `str`,
3038
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
3039
+ be of type `bytes`.
3040
+ """
3041
+ self._method = method
3042
+ self._request = analytics_admin.ListExpandedDataSetsRequest(request)
3043
+ self._response = response
3044
+ self._retry = retry
3045
+ self._timeout = timeout
3046
+ self._metadata = metadata
3047
+
3048
+ def __getattr__(self, name: str) -> Any:
3049
+ return getattr(self._response, name)
3050
+
3051
+ @property
3052
+ async def pages(
3053
+ self,
3054
+ ) -> AsyncIterator[analytics_admin.ListExpandedDataSetsResponse]:
3055
+ yield self._response
3056
+ while self._response.next_page_token:
3057
+ self._request.page_token = self._response.next_page_token
3058
+ self._response = await self._method(
3059
+ self._request,
3060
+ retry=self._retry,
3061
+ timeout=self._timeout,
3062
+ metadata=self._metadata,
3063
+ )
3064
+ yield self._response
3065
+
3066
+ def __aiter__(self) -> AsyncIterator[expanded_data_set.ExpandedDataSet]:
3067
+ async def async_generator():
3068
+ async for page in self.pages:
3069
+ for response in page.expanded_data_sets:
3070
+ yield response
3071
+
3072
+ return async_generator()
3073
+
3074
+ def __repr__(self) -> str:
3075
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
3076
+
3077
+
3078
+ class ListChannelGroupsPager:
3079
+ """A pager for iterating through ``list_channel_groups`` requests.
3080
+
3081
+ This class thinly wraps an initial
3082
+ :class:`google.analytics.admin_v1alpha.types.ListChannelGroupsResponse` object, and
3083
+ provides an ``__iter__`` method to iterate through its
3084
+ ``channel_groups`` field.
3085
+
3086
+ If there are more pages, the ``__iter__`` method will make additional
3087
+ ``ListChannelGroups`` requests and continue to iterate
3088
+ through the ``channel_groups`` field on the
3089
+ corresponding responses.
3090
+
3091
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListChannelGroupsResponse`
3092
+ attributes are available on the pager. If multiple requests are made, only
3093
+ the most recent response is retained, and thus used for attribute lookup.
3094
+ """
3095
+
3096
+ def __init__(
3097
+ self,
3098
+ method: Callable[..., analytics_admin.ListChannelGroupsResponse],
3099
+ request: analytics_admin.ListChannelGroupsRequest,
3100
+ response: analytics_admin.ListChannelGroupsResponse,
3101
+ *,
3102
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
3103
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
3104
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
3105
+ ):
3106
+ """Instantiate the pager.
3107
+
3108
+ Args:
3109
+ method (Callable): The method that was originally called, and
3110
+ which instantiated this pager.
3111
+ request (google.analytics.admin_v1alpha.types.ListChannelGroupsRequest):
3112
+ The initial request object.
3113
+ response (google.analytics.admin_v1alpha.types.ListChannelGroupsResponse):
3114
+ The initial response object.
3115
+ retry (google.api_core.retry.Retry): Designation of what errors,
3116
+ if any, should be retried.
3117
+ timeout (float): The timeout for this request.
3118
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
3119
+ sent along with the request as metadata. Normally, each value must be of type `str`,
3120
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
3121
+ be of type `bytes`.
3122
+ """
3123
+ self._method = method
3124
+ self._request = analytics_admin.ListChannelGroupsRequest(request)
3125
+ self._response = response
3126
+ self._retry = retry
3127
+ self._timeout = timeout
3128
+ self._metadata = metadata
3129
+
3130
+ def __getattr__(self, name: str) -> Any:
3131
+ return getattr(self._response, name)
3132
+
3133
+ @property
3134
+ def pages(self) -> Iterator[analytics_admin.ListChannelGroupsResponse]:
3135
+ yield self._response
3136
+ while self._response.next_page_token:
3137
+ self._request.page_token = self._response.next_page_token
3138
+ self._response = self._method(
3139
+ self._request,
3140
+ retry=self._retry,
3141
+ timeout=self._timeout,
3142
+ metadata=self._metadata,
3143
+ )
3144
+ yield self._response
3145
+
3146
+ def __iter__(self) -> Iterator[channel_group.ChannelGroup]:
3147
+ for page in self.pages:
3148
+ yield from page.channel_groups
3149
+
3150
+ def __repr__(self) -> str:
3151
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
3152
+
3153
+
3154
+ class ListChannelGroupsAsyncPager:
3155
+ """A pager for iterating through ``list_channel_groups`` requests.
3156
+
3157
+ This class thinly wraps an initial
3158
+ :class:`google.analytics.admin_v1alpha.types.ListChannelGroupsResponse` object, and
3159
+ provides an ``__aiter__`` method to iterate through its
3160
+ ``channel_groups`` field.
3161
+
3162
+ If there are more pages, the ``__aiter__`` method will make additional
3163
+ ``ListChannelGroups`` requests and continue to iterate
3164
+ through the ``channel_groups`` field on the
3165
+ corresponding responses.
3166
+
3167
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListChannelGroupsResponse`
3168
+ attributes are available on the pager. If multiple requests are made, only
3169
+ the most recent response is retained, and thus used for attribute lookup.
3170
+ """
3171
+
3172
+ def __init__(
3173
+ self,
3174
+ method: Callable[..., Awaitable[analytics_admin.ListChannelGroupsResponse]],
3175
+ request: analytics_admin.ListChannelGroupsRequest,
3176
+ response: analytics_admin.ListChannelGroupsResponse,
3177
+ *,
3178
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
3179
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
3180
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
3181
+ ):
3182
+ """Instantiates the pager.
3183
+
3184
+ Args:
3185
+ method (Callable): The method that was originally called, and
3186
+ which instantiated this pager.
3187
+ request (google.analytics.admin_v1alpha.types.ListChannelGroupsRequest):
3188
+ The initial request object.
3189
+ response (google.analytics.admin_v1alpha.types.ListChannelGroupsResponse):
3190
+ The initial response object.
3191
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
3192
+ if any, should be retried.
3193
+ timeout (float): The timeout for this request.
3194
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
3195
+ sent along with the request as metadata. Normally, each value must be of type `str`,
3196
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
3197
+ be of type `bytes`.
3198
+ """
3199
+ self._method = method
3200
+ self._request = analytics_admin.ListChannelGroupsRequest(request)
3201
+ self._response = response
3202
+ self._retry = retry
3203
+ self._timeout = timeout
3204
+ self._metadata = metadata
3205
+
3206
+ def __getattr__(self, name: str) -> Any:
3207
+ return getattr(self._response, name)
3208
+
3209
+ @property
3210
+ async def pages(self) -> AsyncIterator[analytics_admin.ListChannelGroupsResponse]:
3211
+ yield self._response
3212
+ while self._response.next_page_token:
3213
+ self._request.page_token = self._response.next_page_token
3214
+ self._response = await self._method(
3215
+ self._request,
3216
+ retry=self._retry,
3217
+ timeout=self._timeout,
3218
+ metadata=self._metadata,
3219
+ )
3220
+ yield self._response
3221
+
3222
+ def __aiter__(self) -> AsyncIterator[channel_group.ChannelGroup]:
3223
+ async def async_generator():
3224
+ async for page in self.pages:
3225
+ for response in page.channel_groups:
3226
+ yield response
3227
+
3228
+ return async_generator()
3229
+
3230
+ def __repr__(self) -> str:
3231
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
3232
+
3233
+
3234
+ class ListBigQueryLinksPager:
3235
+ """A pager for iterating through ``list_big_query_links`` requests.
3236
+
3237
+ This class thinly wraps an initial
3238
+ :class:`google.analytics.admin_v1alpha.types.ListBigQueryLinksResponse` object, and
3239
+ provides an ``__iter__`` method to iterate through its
3240
+ ``bigquery_links`` field.
3241
+
3242
+ If there are more pages, the ``__iter__`` method will make additional
3243
+ ``ListBigQueryLinks`` requests and continue to iterate
3244
+ through the ``bigquery_links`` field on the
3245
+ corresponding responses.
3246
+
3247
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListBigQueryLinksResponse`
3248
+ attributes are available on the pager. If multiple requests are made, only
3249
+ the most recent response is retained, and thus used for attribute lookup.
3250
+ """
3251
+
3252
+ def __init__(
3253
+ self,
3254
+ method: Callable[..., analytics_admin.ListBigQueryLinksResponse],
3255
+ request: analytics_admin.ListBigQueryLinksRequest,
3256
+ response: analytics_admin.ListBigQueryLinksResponse,
3257
+ *,
3258
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
3259
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
3260
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
3261
+ ):
3262
+ """Instantiate the pager.
3263
+
3264
+ Args:
3265
+ method (Callable): The method that was originally called, and
3266
+ which instantiated this pager.
3267
+ request (google.analytics.admin_v1alpha.types.ListBigQueryLinksRequest):
3268
+ The initial request object.
3269
+ response (google.analytics.admin_v1alpha.types.ListBigQueryLinksResponse):
3270
+ The initial response object.
3271
+ retry (google.api_core.retry.Retry): Designation of what errors,
3272
+ if any, should be retried.
3273
+ timeout (float): The timeout for this request.
3274
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
3275
+ sent along with the request as metadata. Normally, each value must be of type `str`,
3276
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
3277
+ be of type `bytes`.
3278
+ """
3279
+ self._method = method
3280
+ self._request = analytics_admin.ListBigQueryLinksRequest(request)
3281
+ self._response = response
3282
+ self._retry = retry
3283
+ self._timeout = timeout
3284
+ self._metadata = metadata
3285
+
3286
+ def __getattr__(self, name: str) -> Any:
3287
+ return getattr(self._response, name)
3288
+
3289
+ @property
3290
+ def pages(self) -> Iterator[analytics_admin.ListBigQueryLinksResponse]:
3291
+ yield self._response
3292
+ while self._response.next_page_token:
3293
+ self._request.page_token = self._response.next_page_token
3294
+ self._response = self._method(
3295
+ self._request,
3296
+ retry=self._retry,
3297
+ timeout=self._timeout,
3298
+ metadata=self._metadata,
3299
+ )
3300
+ yield self._response
3301
+
3302
+ def __iter__(self) -> Iterator[resources.BigQueryLink]:
3303
+ for page in self.pages:
3304
+ yield from page.bigquery_links
3305
+
3306
+ def __repr__(self) -> str:
3307
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
3308
+
3309
+
3310
+ class ListBigQueryLinksAsyncPager:
3311
+ """A pager for iterating through ``list_big_query_links`` requests.
3312
+
3313
+ This class thinly wraps an initial
3314
+ :class:`google.analytics.admin_v1alpha.types.ListBigQueryLinksResponse` object, and
3315
+ provides an ``__aiter__`` method to iterate through its
3316
+ ``bigquery_links`` field.
3317
+
3318
+ If there are more pages, the ``__aiter__`` method will make additional
3319
+ ``ListBigQueryLinks`` requests and continue to iterate
3320
+ through the ``bigquery_links`` field on the
3321
+ corresponding responses.
3322
+
3323
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListBigQueryLinksResponse`
3324
+ attributes are available on the pager. If multiple requests are made, only
3325
+ the most recent response is retained, and thus used for attribute lookup.
3326
+ """
3327
+
3328
+ def __init__(
3329
+ self,
3330
+ method: Callable[..., Awaitable[analytics_admin.ListBigQueryLinksResponse]],
3331
+ request: analytics_admin.ListBigQueryLinksRequest,
3332
+ response: analytics_admin.ListBigQueryLinksResponse,
3333
+ *,
3334
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
3335
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
3336
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
3337
+ ):
3338
+ """Instantiates the pager.
3339
+
3340
+ Args:
3341
+ method (Callable): The method that was originally called, and
3342
+ which instantiated this pager.
3343
+ request (google.analytics.admin_v1alpha.types.ListBigQueryLinksRequest):
3344
+ The initial request object.
3345
+ response (google.analytics.admin_v1alpha.types.ListBigQueryLinksResponse):
3346
+ The initial response object.
3347
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
3348
+ if any, should be retried.
3349
+ timeout (float): The timeout for this request.
3350
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
3351
+ sent along with the request as metadata. Normally, each value must be of type `str`,
3352
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
3353
+ be of type `bytes`.
3354
+ """
3355
+ self._method = method
3356
+ self._request = analytics_admin.ListBigQueryLinksRequest(request)
3357
+ self._response = response
3358
+ self._retry = retry
3359
+ self._timeout = timeout
3360
+ self._metadata = metadata
3361
+
3362
+ def __getattr__(self, name: str) -> Any:
3363
+ return getattr(self._response, name)
3364
+
3365
+ @property
3366
+ async def pages(self) -> AsyncIterator[analytics_admin.ListBigQueryLinksResponse]:
3367
+ yield self._response
3368
+ while self._response.next_page_token:
3369
+ self._request.page_token = self._response.next_page_token
3370
+ self._response = await self._method(
3371
+ self._request,
3372
+ retry=self._retry,
3373
+ timeout=self._timeout,
3374
+ metadata=self._metadata,
3375
+ )
3376
+ yield self._response
3377
+
3378
+ def __aiter__(self) -> AsyncIterator[resources.BigQueryLink]:
3379
+ async def async_generator():
3380
+ async for page in self.pages:
3381
+ for response in page.bigquery_links:
3382
+ yield response
3383
+
3384
+ return async_generator()
3385
+
3386
+ def __repr__(self) -> str:
3387
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
3388
+
3389
+
3390
+ class ListAdSenseLinksPager:
3391
+ """A pager for iterating through ``list_ad_sense_links`` requests.
3392
+
3393
+ This class thinly wraps an initial
3394
+ :class:`google.analytics.admin_v1alpha.types.ListAdSenseLinksResponse` object, and
3395
+ provides an ``__iter__`` method to iterate through its
3396
+ ``adsense_links`` field.
3397
+
3398
+ If there are more pages, the ``__iter__`` method will make additional
3399
+ ``ListAdSenseLinks`` requests and continue to iterate
3400
+ through the ``adsense_links`` field on the
3401
+ corresponding responses.
3402
+
3403
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListAdSenseLinksResponse`
3404
+ attributes are available on the pager. If multiple requests are made, only
3405
+ the most recent response is retained, and thus used for attribute lookup.
3406
+ """
3407
+
3408
+ def __init__(
3409
+ self,
3410
+ method: Callable[..., analytics_admin.ListAdSenseLinksResponse],
3411
+ request: analytics_admin.ListAdSenseLinksRequest,
3412
+ response: analytics_admin.ListAdSenseLinksResponse,
3413
+ *,
3414
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
3415
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
3416
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
3417
+ ):
3418
+ """Instantiate the pager.
3419
+
3420
+ Args:
3421
+ method (Callable): The method that was originally called, and
3422
+ which instantiated this pager.
3423
+ request (google.analytics.admin_v1alpha.types.ListAdSenseLinksRequest):
3424
+ The initial request object.
3425
+ response (google.analytics.admin_v1alpha.types.ListAdSenseLinksResponse):
3426
+ The initial response object.
3427
+ retry (google.api_core.retry.Retry): Designation of what errors,
3428
+ if any, should be retried.
3429
+ timeout (float): The timeout for this request.
3430
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
3431
+ sent along with the request as metadata. Normally, each value must be of type `str`,
3432
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
3433
+ be of type `bytes`.
3434
+ """
3435
+ self._method = method
3436
+ self._request = analytics_admin.ListAdSenseLinksRequest(request)
3437
+ self._response = response
3438
+ self._retry = retry
3439
+ self._timeout = timeout
3440
+ self._metadata = metadata
3441
+
3442
+ def __getattr__(self, name: str) -> Any:
3443
+ return getattr(self._response, name)
3444
+
3445
+ @property
3446
+ def pages(self) -> Iterator[analytics_admin.ListAdSenseLinksResponse]:
3447
+ yield self._response
3448
+ while self._response.next_page_token:
3449
+ self._request.page_token = self._response.next_page_token
3450
+ self._response = self._method(
3451
+ self._request,
3452
+ retry=self._retry,
3453
+ timeout=self._timeout,
3454
+ metadata=self._metadata,
3455
+ )
3456
+ yield self._response
3457
+
3458
+ def __iter__(self) -> Iterator[resources.AdSenseLink]:
3459
+ for page in self.pages:
3460
+ yield from page.adsense_links
3461
+
3462
+ def __repr__(self) -> str:
3463
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
3464
+
3465
+
3466
+ class ListAdSenseLinksAsyncPager:
3467
+ """A pager for iterating through ``list_ad_sense_links`` requests.
3468
+
3469
+ This class thinly wraps an initial
3470
+ :class:`google.analytics.admin_v1alpha.types.ListAdSenseLinksResponse` object, and
3471
+ provides an ``__aiter__`` method to iterate through its
3472
+ ``adsense_links`` field.
3473
+
3474
+ If there are more pages, the ``__aiter__`` method will make additional
3475
+ ``ListAdSenseLinks`` requests and continue to iterate
3476
+ through the ``adsense_links`` field on the
3477
+ corresponding responses.
3478
+
3479
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListAdSenseLinksResponse`
3480
+ attributes are available on the pager. If multiple requests are made, only
3481
+ the most recent response is retained, and thus used for attribute lookup.
3482
+ """
3483
+
3484
+ def __init__(
3485
+ self,
3486
+ method: Callable[..., Awaitable[analytics_admin.ListAdSenseLinksResponse]],
3487
+ request: analytics_admin.ListAdSenseLinksRequest,
3488
+ response: analytics_admin.ListAdSenseLinksResponse,
3489
+ *,
3490
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
3491
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
3492
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
3493
+ ):
3494
+ """Instantiates the pager.
3495
+
3496
+ Args:
3497
+ method (Callable): The method that was originally called, and
3498
+ which instantiated this pager.
3499
+ request (google.analytics.admin_v1alpha.types.ListAdSenseLinksRequest):
3500
+ The initial request object.
3501
+ response (google.analytics.admin_v1alpha.types.ListAdSenseLinksResponse):
3502
+ The initial response object.
3503
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
3504
+ if any, should be retried.
3505
+ timeout (float): The timeout for this request.
3506
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
3507
+ sent along with the request as metadata. Normally, each value must be of type `str`,
3508
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
3509
+ be of type `bytes`.
3510
+ """
3511
+ self._method = method
3512
+ self._request = analytics_admin.ListAdSenseLinksRequest(request)
3513
+ self._response = response
3514
+ self._retry = retry
3515
+ self._timeout = timeout
3516
+ self._metadata = metadata
3517
+
3518
+ def __getattr__(self, name: str) -> Any:
3519
+ return getattr(self._response, name)
3520
+
3521
+ @property
3522
+ async def pages(self) -> AsyncIterator[analytics_admin.ListAdSenseLinksResponse]:
3523
+ yield self._response
3524
+ while self._response.next_page_token:
3525
+ self._request.page_token = self._response.next_page_token
3526
+ self._response = await self._method(
3527
+ self._request,
3528
+ retry=self._retry,
3529
+ timeout=self._timeout,
3530
+ metadata=self._metadata,
3531
+ )
3532
+ yield self._response
3533
+
3534
+ def __aiter__(self) -> AsyncIterator[resources.AdSenseLink]:
3535
+ async def async_generator():
3536
+ async for page in self.pages:
3537
+ for response in page.adsense_links:
3538
+ yield response
3539
+
3540
+ return async_generator()
3541
+
3542
+ def __repr__(self) -> str:
3543
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
3544
+
3545
+
3546
+ class ListEventCreateRulesPager:
3547
+ """A pager for iterating through ``list_event_create_rules`` requests.
3548
+
3549
+ This class thinly wraps an initial
3550
+ :class:`google.analytics.admin_v1alpha.types.ListEventCreateRulesResponse` object, and
3551
+ provides an ``__iter__`` method to iterate through its
3552
+ ``event_create_rules`` field.
3553
+
3554
+ If there are more pages, the ``__iter__`` method will make additional
3555
+ ``ListEventCreateRules`` requests and continue to iterate
3556
+ through the ``event_create_rules`` field on the
3557
+ corresponding responses.
3558
+
3559
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListEventCreateRulesResponse`
3560
+ attributes are available on the pager. If multiple requests are made, only
3561
+ the most recent response is retained, and thus used for attribute lookup.
3562
+ """
3563
+
3564
+ def __init__(
3565
+ self,
3566
+ method: Callable[..., analytics_admin.ListEventCreateRulesResponse],
3567
+ request: analytics_admin.ListEventCreateRulesRequest,
3568
+ response: analytics_admin.ListEventCreateRulesResponse,
3569
+ *,
3570
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
3571
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
3572
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
3573
+ ):
3574
+ """Instantiate the pager.
3575
+
3576
+ Args:
3577
+ method (Callable): The method that was originally called, and
3578
+ which instantiated this pager.
3579
+ request (google.analytics.admin_v1alpha.types.ListEventCreateRulesRequest):
3580
+ The initial request object.
3581
+ response (google.analytics.admin_v1alpha.types.ListEventCreateRulesResponse):
3582
+ The initial response object.
3583
+ retry (google.api_core.retry.Retry): Designation of what errors,
3584
+ if any, should be retried.
3585
+ timeout (float): The timeout for this request.
3586
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
3587
+ sent along with the request as metadata. Normally, each value must be of type `str`,
3588
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
3589
+ be of type `bytes`.
3590
+ """
3591
+ self._method = method
3592
+ self._request = analytics_admin.ListEventCreateRulesRequest(request)
3593
+ self._response = response
3594
+ self._retry = retry
3595
+ self._timeout = timeout
3596
+ self._metadata = metadata
3597
+
3598
+ def __getattr__(self, name: str) -> Any:
3599
+ return getattr(self._response, name)
3600
+
3601
+ @property
3602
+ def pages(self) -> Iterator[analytics_admin.ListEventCreateRulesResponse]:
3603
+ yield self._response
3604
+ while self._response.next_page_token:
3605
+ self._request.page_token = self._response.next_page_token
3606
+ self._response = self._method(
3607
+ self._request,
3608
+ retry=self._retry,
3609
+ timeout=self._timeout,
3610
+ metadata=self._metadata,
3611
+ )
3612
+ yield self._response
3613
+
3614
+ def __iter__(self) -> Iterator[event_create_and_edit.EventCreateRule]:
3615
+ for page in self.pages:
3616
+ yield from page.event_create_rules
3617
+
3618
+ def __repr__(self) -> str:
3619
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
3620
+
3621
+
3622
+ class ListEventCreateRulesAsyncPager:
3623
+ """A pager for iterating through ``list_event_create_rules`` requests.
3624
+
3625
+ This class thinly wraps an initial
3626
+ :class:`google.analytics.admin_v1alpha.types.ListEventCreateRulesResponse` object, and
3627
+ provides an ``__aiter__`` method to iterate through its
3628
+ ``event_create_rules`` field.
3629
+
3630
+ If there are more pages, the ``__aiter__`` method will make additional
3631
+ ``ListEventCreateRules`` requests and continue to iterate
3632
+ through the ``event_create_rules`` field on the
3633
+ corresponding responses.
3634
+
3635
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListEventCreateRulesResponse`
3636
+ attributes are available on the pager. If multiple requests are made, only
3637
+ the most recent response is retained, and thus used for attribute lookup.
3638
+ """
3639
+
3640
+ def __init__(
3641
+ self,
3642
+ method: Callable[..., Awaitable[analytics_admin.ListEventCreateRulesResponse]],
3643
+ request: analytics_admin.ListEventCreateRulesRequest,
3644
+ response: analytics_admin.ListEventCreateRulesResponse,
3645
+ *,
3646
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
3647
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
3648
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
3649
+ ):
3650
+ """Instantiates the pager.
3651
+
3652
+ Args:
3653
+ method (Callable): The method that was originally called, and
3654
+ which instantiated this pager.
3655
+ request (google.analytics.admin_v1alpha.types.ListEventCreateRulesRequest):
3656
+ The initial request object.
3657
+ response (google.analytics.admin_v1alpha.types.ListEventCreateRulesResponse):
3658
+ The initial response object.
3659
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
3660
+ if any, should be retried.
3661
+ timeout (float): The timeout for this request.
3662
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
3663
+ sent along with the request as metadata. Normally, each value must be of type `str`,
3664
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
3665
+ be of type `bytes`.
3666
+ """
3667
+ self._method = method
3668
+ self._request = analytics_admin.ListEventCreateRulesRequest(request)
3669
+ self._response = response
3670
+ self._retry = retry
3671
+ self._timeout = timeout
3672
+ self._metadata = metadata
3673
+
3674
+ def __getattr__(self, name: str) -> Any:
3675
+ return getattr(self._response, name)
3676
+
3677
+ @property
3678
+ async def pages(
3679
+ self,
3680
+ ) -> AsyncIterator[analytics_admin.ListEventCreateRulesResponse]:
3681
+ yield self._response
3682
+ while self._response.next_page_token:
3683
+ self._request.page_token = self._response.next_page_token
3684
+ self._response = await self._method(
3685
+ self._request,
3686
+ retry=self._retry,
3687
+ timeout=self._timeout,
3688
+ metadata=self._metadata,
3689
+ )
3690
+ yield self._response
3691
+
3692
+ def __aiter__(self) -> AsyncIterator[event_create_and_edit.EventCreateRule]:
3693
+ async def async_generator():
3694
+ async for page in self.pages:
3695
+ for response in page.event_create_rules:
3696
+ yield response
3697
+
3698
+ return async_generator()
3699
+
3700
+ def __repr__(self) -> str:
3701
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
3702
+
3703
+
3704
+ class ListEventEditRulesPager:
3705
+ """A pager for iterating through ``list_event_edit_rules`` requests.
3706
+
3707
+ This class thinly wraps an initial
3708
+ :class:`google.analytics.admin_v1alpha.types.ListEventEditRulesResponse` object, and
3709
+ provides an ``__iter__`` method to iterate through its
3710
+ ``event_edit_rules`` field.
3711
+
3712
+ If there are more pages, the ``__iter__`` method will make additional
3713
+ ``ListEventEditRules`` requests and continue to iterate
3714
+ through the ``event_edit_rules`` field on the
3715
+ corresponding responses.
3716
+
3717
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListEventEditRulesResponse`
3718
+ attributes are available on the pager. If multiple requests are made, only
3719
+ the most recent response is retained, and thus used for attribute lookup.
3720
+ """
3721
+
3722
+ def __init__(
3723
+ self,
3724
+ method: Callable[..., analytics_admin.ListEventEditRulesResponse],
3725
+ request: analytics_admin.ListEventEditRulesRequest,
3726
+ response: analytics_admin.ListEventEditRulesResponse,
3727
+ *,
3728
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
3729
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
3730
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
3731
+ ):
3732
+ """Instantiate the pager.
3733
+
3734
+ Args:
3735
+ method (Callable): The method that was originally called, and
3736
+ which instantiated this pager.
3737
+ request (google.analytics.admin_v1alpha.types.ListEventEditRulesRequest):
3738
+ The initial request object.
3739
+ response (google.analytics.admin_v1alpha.types.ListEventEditRulesResponse):
3740
+ The initial response object.
3741
+ retry (google.api_core.retry.Retry): Designation of what errors,
3742
+ if any, should be retried.
3743
+ timeout (float): The timeout for this request.
3744
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
3745
+ sent along with the request as metadata. Normally, each value must be of type `str`,
3746
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
3747
+ be of type `bytes`.
3748
+ """
3749
+ self._method = method
3750
+ self._request = analytics_admin.ListEventEditRulesRequest(request)
3751
+ self._response = response
3752
+ self._retry = retry
3753
+ self._timeout = timeout
3754
+ self._metadata = metadata
3755
+
3756
+ def __getattr__(self, name: str) -> Any:
3757
+ return getattr(self._response, name)
3758
+
3759
+ @property
3760
+ def pages(self) -> Iterator[analytics_admin.ListEventEditRulesResponse]:
3761
+ yield self._response
3762
+ while self._response.next_page_token:
3763
+ self._request.page_token = self._response.next_page_token
3764
+ self._response = self._method(
3765
+ self._request,
3766
+ retry=self._retry,
3767
+ timeout=self._timeout,
3768
+ metadata=self._metadata,
3769
+ )
3770
+ yield self._response
3771
+
3772
+ def __iter__(self) -> Iterator[event_create_and_edit.EventEditRule]:
3773
+ for page in self.pages:
3774
+ yield from page.event_edit_rules
3775
+
3776
+ def __repr__(self) -> str:
3777
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
3778
+
3779
+
3780
+ class ListEventEditRulesAsyncPager:
3781
+ """A pager for iterating through ``list_event_edit_rules`` requests.
3782
+
3783
+ This class thinly wraps an initial
3784
+ :class:`google.analytics.admin_v1alpha.types.ListEventEditRulesResponse` object, and
3785
+ provides an ``__aiter__`` method to iterate through its
3786
+ ``event_edit_rules`` field.
3787
+
3788
+ If there are more pages, the ``__aiter__`` method will make additional
3789
+ ``ListEventEditRules`` requests and continue to iterate
3790
+ through the ``event_edit_rules`` field on the
3791
+ corresponding responses.
3792
+
3793
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListEventEditRulesResponse`
3794
+ attributes are available on the pager. If multiple requests are made, only
3795
+ the most recent response is retained, and thus used for attribute lookup.
3796
+ """
3797
+
3798
+ def __init__(
3799
+ self,
3800
+ method: Callable[..., Awaitable[analytics_admin.ListEventEditRulesResponse]],
3801
+ request: analytics_admin.ListEventEditRulesRequest,
3802
+ response: analytics_admin.ListEventEditRulesResponse,
3803
+ *,
3804
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
3805
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
3806
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
3807
+ ):
3808
+ """Instantiates the pager.
3809
+
3810
+ Args:
3811
+ method (Callable): The method that was originally called, and
3812
+ which instantiated this pager.
3813
+ request (google.analytics.admin_v1alpha.types.ListEventEditRulesRequest):
3814
+ The initial request object.
3815
+ response (google.analytics.admin_v1alpha.types.ListEventEditRulesResponse):
3816
+ The initial response object.
3817
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
3818
+ if any, should be retried.
3819
+ timeout (float): The timeout for this request.
3820
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
3821
+ sent along with the request as metadata. Normally, each value must be of type `str`,
3822
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
3823
+ be of type `bytes`.
3824
+ """
3825
+ self._method = method
3826
+ self._request = analytics_admin.ListEventEditRulesRequest(request)
3827
+ self._response = response
3828
+ self._retry = retry
3829
+ self._timeout = timeout
3830
+ self._metadata = metadata
3831
+
3832
+ def __getattr__(self, name: str) -> Any:
3833
+ return getattr(self._response, name)
3834
+
3835
+ @property
3836
+ async def pages(self) -> AsyncIterator[analytics_admin.ListEventEditRulesResponse]:
3837
+ yield self._response
3838
+ while self._response.next_page_token:
3839
+ self._request.page_token = self._response.next_page_token
3840
+ self._response = await self._method(
3841
+ self._request,
3842
+ retry=self._retry,
3843
+ timeout=self._timeout,
3844
+ metadata=self._metadata,
3845
+ )
3846
+ yield self._response
3847
+
3848
+ def __aiter__(self) -> AsyncIterator[event_create_and_edit.EventEditRule]:
3849
+ async def async_generator():
3850
+ async for page in self.pages:
3851
+ for response in page.event_edit_rules:
3852
+ yield response
3853
+
3854
+ return async_generator()
3855
+
3856
+ def __repr__(self) -> str:
3857
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
3858
+
3859
+
3860
+ class ListCalculatedMetricsPager:
3861
+ """A pager for iterating through ``list_calculated_metrics`` requests.
3862
+
3863
+ This class thinly wraps an initial
3864
+ :class:`google.analytics.admin_v1alpha.types.ListCalculatedMetricsResponse` object, and
3865
+ provides an ``__iter__`` method to iterate through its
3866
+ ``calculated_metrics`` field.
3867
+
3868
+ If there are more pages, the ``__iter__`` method will make additional
3869
+ ``ListCalculatedMetrics`` requests and continue to iterate
3870
+ through the ``calculated_metrics`` field on the
3871
+ corresponding responses.
3872
+
3873
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListCalculatedMetricsResponse`
3874
+ attributes are available on the pager. If multiple requests are made, only
3875
+ the most recent response is retained, and thus used for attribute lookup.
3876
+ """
3877
+
3878
+ def __init__(
3879
+ self,
3880
+ method: Callable[..., analytics_admin.ListCalculatedMetricsResponse],
3881
+ request: analytics_admin.ListCalculatedMetricsRequest,
3882
+ response: analytics_admin.ListCalculatedMetricsResponse,
3883
+ *,
3884
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
3885
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
3886
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
3887
+ ):
3888
+ """Instantiate the pager.
3889
+
3890
+ Args:
3891
+ method (Callable): The method that was originally called, and
3892
+ which instantiated this pager.
3893
+ request (google.analytics.admin_v1alpha.types.ListCalculatedMetricsRequest):
3894
+ The initial request object.
3895
+ response (google.analytics.admin_v1alpha.types.ListCalculatedMetricsResponse):
3896
+ The initial response object.
3897
+ retry (google.api_core.retry.Retry): Designation of what errors,
3898
+ if any, should be retried.
3899
+ timeout (float): The timeout for this request.
3900
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
3901
+ sent along with the request as metadata. Normally, each value must be of type `str`,
3902
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
3903
+ be of type `bytes`.
3904
+ """
3905
+ self._method = method
3906
+ self._request = analytics_admin.ListCalculatedMetricsRequest(request)
3907
+ self._response = response
3908
+ self._retry = retry
3909
+ self._timeout = timeout
3910
+ self._metadata = metadata
3911
+
3912
+ def __getattr__(self, name: str) -> Any:
3913
+ return getattr(self._response, name)
3914
+
3915
+ @property
3916
+ def pages(self) -> Iterator[analytics_admin.ListCalculatedMetricsResponse]:
3917
+ yield self._response
3918
+ while self._response.next_page_token:
3919
+ self._request.page_token = self._response.next_page_token
3920
+ self._response = self._method(
3921
+ self._request,
3922
+ retry=self._retry,
3923
+ timeout=self._timeout,
3924
+ metadata=self._metadata,
3925
+ )
3926
+ yield self._response
3927
+
3928
+ def __iter__(self) -> Iterator[resources.CalculatedMetric]:
3929
+ for page in self.pages:
3930
+ yield from page.calculated_metrics
3931
+
3932
+ def __repr__(self) -> str:
3933
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
3934
+
3935
+
3936
+ class ListCalculatedMetricsAsyncPager:
3937
+ """A pager for iterating through ``list_calculated_metrics`` requests.
3938
+
3939
+ This class thinly wraps an initial
3940
+ :class:`google.analytics.admin_v1alpha.types.ListCalculatedMetricsResponse` object, and
3941
+ provides an ``__aiter__`` method to iterate through its
3942
+ ``calculated_metrics`` field.
3943
+
3944
+ If there are more pages, the ``__aiter__`` method will make additional
3945
+ ``ListCalculatedMetrics`` requests and continue to iterate
3946
+ through the ``calculated_metrics`` field on the
3947
+ corresponding responses.
3948
+
3949
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListCalculatedMetricsResponse`
3950
+ attributes are available on the pager. If multiple requests are made, only
3951
+ the most recent response is retained, and thus used for attribute lookup.
3952
+ """
3953
+
3954
+ def __init__(
3955
+ self,
3956
+ method: Callable[..., Awaitable[analytics_admin.ListCalculatedMetricsResponse]],
3957
+ request: analytics_admin.ListCalculatedMetricsRequest,
3958
+ response: analytics_admin.ListCalculatedMetricsResponse,
3959
+ *,
3960
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
3961
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
3962
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
3963
+ ):
3964
+ """Instantiates the pager.
3965
+
3966
+ Args:
3967
+ method (Callable): The method that was originally called, and
3968
+ which instantiated this pager.
3969
+ request (google.analytics.admin_v1alpha.types.ListCalculatedMetricsRequest):
3970
+ The initial request object.
3971
+ response (google.analytics.admin_v1alpha.types.ListCalculatedMetricsResponse):
3972
+ The initial response object.
3973
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
3974
+ if any, should be retried.
3975
+ timeout (float): The timeout for this request.
3976
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
3977
+ sent along with the request as metadata. Normally, each value must be of type `str`,
3978
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
3979
+ be of type `bytes`.
3980
+ """
3981
+ self._method = method
3982
+ self._request = analytics_admin.ListCalculatedMetricsRequest(request)
3983
+ self._response = response
3984
+ self._retry = retry
3985
+ self._timeout = timeout
3986
+ self._metadata = metadata
3987
+
3988
+ def __getattr__(self, name: str) -> Any:
3989
+ return getattr(self._response, name)
3990
+
3991
+ @property
3992
+ async def pages(
3993
+ self,
3994
+ ) -> AsyncIterator[analytics_admin.ListCalculatedMetricsResponse]:
3995
+ yield self._response
3996
+ while self._response.next_page_token:
3997
+ self._request.page_token = self._response.next_page_token
3998
+ self._response = await self._method(
3999
+ self._request,
4000
+ retry=self._retry,
4001
+ timeout=self._timeout,
4002
+ metadata=self._metadata,
4003
+ )
4004
+ yield self._response
4005
+
4006
+ def __aiter__(self) -> AsyncIterator[resources.CalculatedMetric]:
4007
+ async def async_generator():
4008
+ async for page in self.pages:
4009
+ for response in page.calculated_metrics:
4010
+ yield response
4011
+
4012
+ return async_generator()
4013
+
4014
+ def __repr__(self) -> str:
4015
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
4016
+
4017
+
4018
+ class ListRollupPropertySourceLinksPager:
4019
+ """A pager for iterating through ``list_rollup_property_source_links`` requests.
4020
+
4021
+ This class thinly wraps an initial
4022
+ :class:`google.analytics.admin_v1alpha.types.ListRollupPropertySourceLinksResponse` object, and
4023
+ provides an ``__iter__`` method to iterate through its
4024
+ ``rollup_property_source_links`` field.
4025
+
4026
+ If there are more pages, the ``__iter__`` method will make additional
4027
+ ``ListRollupPropertySourceLinks`` requests and continue to iterate
4028
+ through the ``rollup_property_source_links`` field on the
4029
+ corresponding responses.
4030
+
4031
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListRollupPropertySourceLinksResponse`
4032
+ attributes are available on the pager. If multiple requests are made, only
4033
+ the most recent response is retained, and thus used for attribute lookup.
4034
+ """
4035
+
4036
+ def __init__(
4037
+ self,
4038
+ method: Callable[..., analytics_admin.ListRollupPropertySourceLinksResponse],
4039
+ request: analytics_admin.ListRollupPropertySourceLinksRequest,
4040
+ response: analytics_admin.ListRollupPropertySourceLinksResponse,
4041
+ *,
4042
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
4043
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
4044
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
4045
+ ):
4046
+ """Instantiate the pager.
4047
+
4048
+ Args:
4049
+ method (Callable): The method that was originally called, and
4050
+ which instantiated this pager.
4051
+ request (google.analytics.admin_v1alpha.types.ListRollupPropertySourceLinksRequest):
4052
+ The initial request object.
4053
+ response (google.analytics.admin_v1alpha.types.ListRollupPropertySourceLinksResponse):
4054
+ The initial response object.
4055
+ retry (google.api_core.retry.Retry): Designation of what errors,
4056
+ if any, should be retried.
4057
+ timeout (float): The timeout for this request.
4058
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
4059
+ sent along with the request as metadata. Normally, each value must be of type `str`,
4060
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
4061
+ be of type `bytes`.
4062
+ """
4063
+ self._method = method
4064
+ self._request = analytics_admin.ListRollupPropertySourceLinksRequest(request)
4065
+ self._response = response
4066
+ self._retry = retry
4067
+ self._timeout = timeout
4068
+ self._metadata = metadata
4069
+
4070
+ def __getattr__(self, name: str) -> Any:
4071
+ return getattr(self._response, name)
4072
+
4073
+ @property
4074
+ def pages(self) -> Iterator[analytics_admin.ListRollupPropertySourceLinksResponse]:
4075
+ yield self._response
4076
+ while self._response.next_page_token:
4077
+ self._request.page_token = self._response.next_page_token
4078
+ self._response = self._method(
4079
+ self._request,
4080
+ retry=self._retry,
4081
+ timeout=self._timeout,
4082
+ metadata=self._metadata,
4083
+ )
4084
+ yield self._response
4085
+
4086
+ def __iter__(self) -> Iterator[resources.RollupPropertySourceLink]:
4087
+ for page in self.pages:
4088
+ yield from page.rollup_property_source_links
4089
+
4090
+ def __repr__(self) -> str:
4091
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
4092
+
4093
+
4094
+ class ListRollupPropertySourceLinksAsyncPager:
4095
+ """A pager for iterating through ``list_rollup_property_source_links`` requests.
4096
+
4097
+ This class thinly wraps an initial
4098
+ :class:`google.analytics.admin_v1alpha.types.ListRollupPropertySourceLinksResponse` object, and
4099
+ provides an ``__aiter__`` method to iterate through its
4100
+ ``rollup_property_source_links`` field.
4101
+
4102
+ If there are more pages, the ``__aiter__`` method will make additional
4103
+ ``ListRollupPropertySourceLinks`` requests and continue to iterate
4104
+ through the ``rollup_property_source_links`` field on the
4105
+ corresponding responses.
4106
+
4107
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListRollupPropertySourceLinksResponse`
4108
+ attributes are available on the pager. If multiple requests are made, only
4109
+ the most recent response is retained, and thus used for attribute lookup.
4110
+ """
4111
+
4112
+ def __init__(
4113
+ self,
4114
+ method: Callable[
4115
+ ..., Awaitable[analytics_admin.ListRollupPropertySourceLinksResponse]
4116
+ ],
4117
+ request: analytics_admin.ListRollupPropertySourceLinksRequest,
4118
+ response: analytics_admin.ListRollupPropertySourceLinksResponse,
4119
+ *,
4120
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
4121
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
4122
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
4123
+ ):
4124
+ """Instantiates the pager.
4125
+
4126
+ Args:
4127
+ method (Callable): The method that was originally called, and
4128
+ which instantiated this pager.
4129
+ request (google.analytics.admin_v1alpha.types.ListRollupPropertySourceLinksRequest):
4130
+ The initial request object.
4131
+ response (google.analytics.admin_v1alpha.types.ListRollupPropertySourceLinksResponse):
4132
+ The initial response object.
4133
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
4134
+ if any, should be retried.
4135
+ timeout (float): The timeout for this request.
4136
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
4137
+ sent along with the request as metadata. Normally, each value must be of type `str`,
4138
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
4139
+ be of type `bytes`.
4140
+ """
4141
+ self._method = method
4142
+ self._request = analytics_admin.ListRollupPropertySourceLinksRequest(request)
4143
+ self._response = response
4144
+ self._retry = retry
4145
+ self._timeout = timeout
4146
+ self._metadata = metadata
4147
+
4148
+ def __getattr__(self, name: str) -> Any:
4149
+ return getattr(self._response, name)
4150
+
4151
+ @property
4152
+ async def pages(
4153
+ self,
4154
+ ) -> AsyncIterator[analytics_admin.ListRollupPropertySourceLinksResponse]:
4155
+ yield self._response
4156
+ while self._response.next_page_token:
4157
+ self._request.page_token = self._response.next_page_token
4158
+ self._response = await self._method(
4159
+ self._request,
4160
+ retry=self._retry,
4161
+ timeout=self._timeout,
4162
+ metadata=self._metadata,
4163
+ )
4164
+ yield self._response
4165
+
4166
+ def __aiter__(self) -> AsyncIterator[resources.RollupPropertySourceLink]:
4167
+ async def async_generator():
4168
+ async for page in self.pages:
4169
+ for response in page.rollup_property_source_links:
4170
+ yield response
4171
+
4172
+ return async_generator()
4173
+
4174
+ def __repr__(self) -> str:
4175
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
4176
+
4177
+
4178
+ class ListSubpropertyEventFiltersPager:
4179
+ """A pager for iterating through ``list_subproperty_event_filters`` requests.
4180
+
4181
+ This class thinly wraps an initial
4182
+ :class:`google.analytics.admin_v1alpha.types.ListSubpropertyEventFiltersResponse` object, and
4183
+ provides an ``__iter__`` method to iterate through its
4184
+ ``subproperty_event_filters`` field.
4185
+
4186
+ If there are more pages, the ``__iter__`` method will make additional
4187
+ ``ListSubpropertyEventFilters`` requests and continue to iterate
4188
+ through the ``subproperty_event_filters`` field on the
4189
+ corresponding responses.
4190
+
4191
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListSubpropertyEventFiltersResponse`
4192
+ attributes are available on the pager. If multiple requests are made, only
4193
+ the most recent response is retained, and thus used for attribute lookup.
4194
+ """
4195
+
4196
+ def __init__(
4197
+ self,
4198
+ method: Callable[..., analytics_admin.ListSubpropertyEventFiltersResponse],
4199
+ request: analytics_admin.ListSubpropertyEventFiltersRequest,
4200
+ response: analytics_admin.ListSubpropertyEventFiltersResponse,
4201
+ *,
4202
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
4203
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
4204
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
4205
+ ):
4206
+ """Instantiate the pager.
4207
+
4208
+ Args:
4209
+ method (Callable): The method that was originally called, and
4210
+ which instantiated this pager.
4211
+ request (google.analytics.admin_v1alpha.types.ListSubpropertyEventFiltersRequest):
4212
+ The initial request object.
4213
+ response (google.analytics.admin_v1alpha.types.ListSubpropertyEventFiltersResponse):
4214
+ The initial response object.
4215
+ retry (google.api_core.retry.Retry): Designation of what errors,
4216
+ if any, should be retried.
4217
+ timeout (float): The timeout for this request.
4218
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
4219
+ sent along with the request as metadata. Normally, each value must be of type `str`,
4220
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
4221
+ be of type `bytes`.
4222
+ """
4223
+ self._method = method
4224
+ self._request = analytics_admin.ListSubpropertyEventFiltersRequest(request)
4225
+ self._response = response
4226
+ self._retry = retry
4227
+ self._timeout = timeout
4228
+ self._metadata = metadata
4229
+
4230
+ def __getattr__(self, name: str) -> Any:
4231
+ return getattr(self._response, name)
4232
+
4233
+ @property
4234
+ def pages(self) -> Iterator[analytics_admin.ListSubpropertyEventFiltersResponse]:
4235
+ yield self._response
4236
+ while self._response.next_page_token:
4237
+ self._request.page_token = self._response.next_page_token
4238
+ self._response = self._method(
4239
+ self._request,
4240
+ retry=self._retry,
4241
+ timeout=self._timeout,
4242
+ metadata=self._metadata,
4243
+ )
4244
+ yield self._response
4245
+
4246
+ def __iter__(self) -> Iterator[subproperty_event_filter.SubpropertyEventFilter]:
4247
+ for page in self.pages:
4248
+ yield from page.subproperty_event_filters
4249
+
4250
+ def __repr__(self) -> str:
4251
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
4252
+
4253
+
4254
+ class ListSubpropertyEventFiltersAsyncPager:
4255
+ """A pager for iterating through ``list_subproperty_event_filters`` requests.
4256
+
4257
+ This class thinly wraps an initial
4258
+ :class:`google.analytics.admin_v1alpha.types.ListSubpropertyEventFiltersResponse` object, and
4259
+ provides an ``__aiter__`` method to iterate through its
4260
+ ``subproperty_event_filters`` field.
4261
+
4262
+ If there are more pages, the ``__aiter__`` method will make additional
4263
+ ``ListSubpropertyEventFilters`` requests and continue to iterate
4264
+ through the ``subproperty_event_filters`` field on the
4265
+ corresponding responses.
4266
+
4267
+ All the usual :class:`google.analytics.admin_v1alpha.types.ListSubpropertyEventFiltersResponse`
4268
+ attributes are available on the pager. If multiple requests are made, only
4269
+ the most recent response is retained, and thus used for attribute lookup.
4270
+ """
4271
+
4272
+ def __init__(
4273
+ self,
4274
+ method: Callable[
4275
+ ..., Awaitable[analytics_admin.ListSubpropertyEventFiltersResponse]
4276
+ ],
4277
+ request: analytics_admin.ListSubpropertyEventFiltersRequest,
4278
+ response: analytics_admin.ListSubpropertyEventFiltersResponse,
4279
+ *,
4280
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
4281
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
4282
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
4283
+ ):
4284
+ """Instantiates the pager.
4285
+
4286
+ Args:
4287
+ method (Callable): The method that was originally called, and
4288
+ which instantiated this pager.
4289
+ request (google.analytics.admin_v1alpha.types.ListSubpropertyEventFiltersRequest):
4290
+ The initial request object.
4291
+ response (google.analytics.admin_v1alpha.types.ListSubpropertyEventFiltersResponse):
4292
+ The initial response object.
4293
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
4294
+ if any, should be retried.
4295
+ timeout (float): The timeout for this request.
4296
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
4297
+ sent along with the request as metadata. Normally, each value must be of type `str`,
4298
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
4299
+ be of type `bytes`.
4300
+ """
4301
+ self._method = method
4302
+ self._request = analytics_admin.ListSubpropertyEventFiltersRequest(request)
4303
+ self._response = response
4304
+ self._retry = retry
4305
+ self._timeout = timeout
4306
+ self._metadata = metadata
4307
+
4308
+ def __getattr__(self, name: str) -> Any:
4309
+ return getattr(self._response, name)
4310
+
4311
+ @property
4312
+ async def pages(
4313
+ self,
4314
+ ) -> AsyncIterator[analytics_admin.ListSubpropertyEventFiltersResponse]:
4315
+ yield self._response
4316
+ while self._response.next_page_token:
4317
+ self._request.page_token = self._response.next_page_token
4318
+ self._response = await self._method(
4319
+ self._request,
4320
+ retry=self._retry,
4321
+ timeout=self._timeout,
4322
+ metadata=self._metadata,
4323
+ )
4324
+ yield self._response
4325
+
4326
+ def __aiter__(
4327
+ self,
4328
+ ) -> AsyncIterator[subproperty_event_filter.SubpropertyEventFilter]:
4329
+ async def async_generator():
4330
+ async for page in self.pages:
4331
+ for response in page.subproperty_event_filters:
4332
+ yield response
4333
+
4334
+ return async_generator()
4335
+
4336
+ def __repr__(self) -> str:
4337
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)