google-cloud-dataform 0.6.1__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 (42) hide show
  1. google/cloud/dataform/__init__.py +247 -0
  2. google/cloud/dataform/gapic_version.py +16 -0
  3. google/cloud/dataform/py.typed +2 -0
  4. google/cloud/dataform_v1/__init__.py +244 -0
  5. google/cloud/dataform_v1/gapic_metadata.json +838 -0
  6. google/cloud/dataform_v1/gapic_version.py +16 -0
  7. google/cloud/dataform_v1/py.typed +2 -0
  8. google/cloud/dataform_v1/services/__init__.py +15 -0
  9. google/cloud/dataform_v1/services/dataform/__init__.py +22 -0
  10. google/cloud/dataform_v1/services/dataform/async_client.py +6371 -0
  11. google/cloud/dataform_v1/services/dataform/client.py +6895 -0
  12. google/cloud/dataform_v1/services/dataform/pagers.py +1925 -0
  13. google/cloud/dataform_v1/services/dataform/transports/__init__.py +36 -0
  14. google/cloud/dataform_v1/services/dataform/transports/base.py +1060 -0
  15. google/cloud/dataform_v1/services/dataform/transports/grpc.py +1980 -0
  16. google/cloud/dataform_v1/services/dataform/transports/grpc_asyncio.py +2337 -0
  17. google/cloud/dataform_v1/services/dataform/transports/rest.py +12350 -0
  18. google/cloud/dataform_v1/services/dataform/transports/rest_base.py +3028 -0
  19. google/cloud/dataform_v1/types/__init__.py +236 -0
  20. google/cloud/dataform_v1/types/dataform.py +4157 -0
  21. google/cloud/dataform_v1beta1/__init__.py +244 -0
  22. google/cloud/dataform_v1beta1/gapic_metadata.json +838 -0
  23. google/cloud/dataform_v1beta1/gapic_version.py +16 -0
  24. google/cloud/dataform_v1beta1/py.typed +2 -0
  25. google/cloud/dataform_v1beta1/services/__init__.py +15 -0
  26. google/cloud/dataform_v1beta1/services/dataform/__init__.py +22 -0
  27. google/cloud/dataform_v1beta1/services/dataform/async_client.py +6371 -0
  28. google/cloud/dataform_v1beta1/services/dataform/client.py +6895 -0
  29. google/cloud/dataform_v1beta1/services/dataform/pagers.py +1925 -0
  30. google/cloud/dataform_v1beta1/services/dataform/transports/__init__.py +36 -0
  31. google/cloud/dataform_v1beta1/services/dataform/transports/base.py +1060 -0
  32. google/cloud/dataform_v1beta1/services/dataform/transports/grpc.py +1980 -0
  33. google/cloud/dataform_v1beta1/services/dataform/transports/grpc_asyncio.py +2337 -0
  34. google/cloud/dataform_v1beta1/services/dataform/transports/rest.py +12350 -0
  35. google/cloud/dataform_v1beta1/services/dataform/transports/rest_base.py +3028 -0
  36. google/cloud/dataform_v1beta1/types/__init__.py +236 -0
  37. google/cloud/dataform_v1beta1/types/dataform.py +4169 -0
  38. google_cloud_dataform-0.6.1.dist-info/LICENSE +202 -0
  39. google_cloud_dataform-0.6.1.dist-info/METADATA +229 -0
  40. google_cloud_dataform-0.6.1.dist-info/RECORD +42 -0
  41. google_cloud_dataform-0.6.1.dist-info/WHEEL +5 -0
  42. google_cloud_dataform-0.6.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1925 @@
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.cloud.dataform_v1beta1.types import dataform
42
+
43
+
44
+ class ListRepositoriesPager:
45
+ """A pager for iterating through ``list_repositories`` requests.
46
+
47
+ This class thinly wraps an initial
48
+ :class:`google.cloud.dataform_v1beta1.types.ListRepositoriesResponse` object, and
49
+ provides an ``__iter__`` method to iterate through its
50
+ ``repositories`` field.
51
+
52
+ If there are more pages, the ``__iter__`` method will make additional
53
+ ``ListRepositories`` requests and continue to iterate
54
+ through the ``repositories`` field on the
55
+ corresponding responses.
56
+
57
+ All the usual :class:`google.cloud.dataform_v1beta1.types.ListRepositoriesResponse`
58
+ attributes are available on the pager. If multiple requests are made, only
59
+ the most recent response is retained, and thus used for attribute lookup.
60
+ """
61
+
62
+ def __init__(
63
+ self,
64
+ method: Callable[..., dataform.ListRepositoriesResponse],
65
+ request: dataform.ListRepositoriesRequest,
66
+ response: dataform.ListRepositoriesResponse,
67
+ *,
68
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
69
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
70
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
71
+ ):
72
+ """Instantiate the pager.
73
+
74
+ Args:
75
+ method (Callable): The method that was originally called, and
76
+ which instantiated this pager.
77
+ request (google.cloud.dataform_v1beta1.types.ListRepositoriesRequest):
78
+ The initial request object.
79
+ response (google.cloud.dataform_v1beta1.types.ListRepositoriesResponse):
80
+ The initial response object.
81
+ retry (google.api_core.retry.Retry): Designation of what errors,
82
+ if any, should be retried.
83
+ timeout (float): The timeout for this request.
84
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
85
+ sent along with the request as metadata. Normally, each value must be of type `str`,
86
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
87
+ be of type `bytes`.
88
+ """
89
+ self._method = method
90
+ self._request = dataform.ListRepositoriesRequest(request)
91
+ self._response = response
92
+ self._retry = retry
93
+ self._timeout = timeout
94
+ self._metadata = metadata
95
+
96
+ def __getattr__(self, name: str) -> Any:
97
+ return getattr(self._response, name)
98
+
99
+ @property
100
+ def pages(self) -> Iterator[dataform.ListRepositoriesResponse]:
101
+ yield self._response
102
+ while self._response.next_page_token:
103
+ self._request.page_token = self._response.next_page_token
104
+ self._response = self._method(
105
+ self._request,
106
+ retry=self._retry,
107
+ timeout=self._timeout,
108
+ metadata=self._metadata,
109
+ )
110
+ yield self._response
111
+
112
+ def __iter__(self) -> Iterator[dataform.Repository]:
113
+ for page in self.pages:
114
+ yield from page.repositories
115
+
116
+ def __repr__(self) -> str:
117
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
118
+
119
+
120
+ class ListRepositoriesAsyncPager:
121
+ """A pager for iterating through ``list_repositories`` requests.
122
+
123
+ This class thinly wraps an initial
124
+ :class:`google.cloud.dataform_v1beta1.types.ListRepositoriesResponse` object, and
125
+ provides an ``__aiter__`` method to iterate through its
126
+ ``repositories`` field.
127
+
128
+ If there are more pages, the ``__aiter__`` method will make additional
129
+ ``ListRepositories`` requests and continue to iterate
130
+ through the ``repositories`` field on the
131
+ corresponding responses.
132
+
133
+ All the usual :class:`google.cloud.dataform_v1beta1.types.ListRepositoriesResponse`
134
+ attributes are available on the pager. If multiple requests are made, only
135
+ the most recent response is retained, and thus used for attribute lookup.
136
+ """
137
+
138
+ def __init__(
139
+ self,
140
+ method: Callable[..., Awaitable[dataform.ListRepositoriesResponse]],
141
+ request: dataform.ListRepositoriesRequest,
142
+ response: dataform.ListRepositoriesResponse,
143
+ *,
144
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
145
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
146
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
147
+ ):
148
+ """Instantiates the pager.
149
+
150
+ Args:
151
+ method (Callable): The method that was originally called, and
152
+ which instantiated this pager.
153
+ request (google.cloud.dataform_v1beta1.types.ListRepositoriesRequest):
154
+ The initial request object.
155
+ response (google.cloud.dataform_v1beta1.types.ListRepositoriesResponse):
156
+ The initial response object.
157
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
158
+ if any, should be retried.
159
+ timeout (float): The timeout for this request.
160
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
161
+ sent along with the request as metadata. Normally, each value must be of type `str`,
162
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
163
+ be of type `bytes`.
164
+ """
165
+ self._method = method
166
+ self._request = dataform.ListRepositoriesRequest(request)
167
+ self._response = response
168
+ self._retry = retry
169
+ self._timeout = timeout
170
+ self._metadata = metadata
171
+
172
+ def __getattr__(self, name: str) -> Any:
173
+ return getattr(self._response, name)
174
+
175
+ @property
176
+ async def pages(self) -> AsyncIterator[dataform.ListRepositoriesResponse]:
177
+ yield self._response
178
+ while self._response.next_page_token:
179
+ self._request.page_token = self._response.next_page_token
180
+ self._response = await self._method(
181
+ self._request,
182
+ retry=self._retry,
183
+ timeout=self._timeout,
184
+ metadata=self._metadata,
185
+ )
186
+ yield self._response
187
+
188
+ def __aiter__(self) -> AsyncIterator[dataform.Repository]:
189
+ async def async_generator():
190
+ async for page in self.pages:
191
+ for response in page.repositories:
192
+ yield response
193
+
194
+ return async_generator()
195
+
196
+ def __repr__(self) -> str:
197
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
198
+
199
+
200
+ class QueryRepositoryDirectoryContentsPager:
201
+ """A pager for iterating through ``query_repository_directory_contents`` requests.
202
+
203
+ This class thinly wraps an initial
204
+ :class:`google.cloud.dataform_v1beta1.types.QueryRepositoryDirectoryContentsResponse` object, and
205
+ provides an ``__iter__`` method to iterate through its
206
+ ``directory_entries`` field.
207
+
208
+ If there are more pages, the ``__iter__`` method will make additional
209
+ ``QueryRepositoryDirectoryContents`` requests and continue to iterate
210
+ through the ``directory_entries`` field on the
211
+ corresponding responses.
212
+
213
+ All the usual :class:`google.cloud.dataform_v1beta1.types.QueryRepositoryDirectoryContentsResponse`
214
+ attributes are available on the pager. If multiple requests are made, only
215
+ the most recent response is retained, and thus used for attribute lookup.
216
+ """
217
+
218
+ def __init__(
219
+ self,
220
+ method: Callable[..., dataform.QueryRepositoryDirectoryContentsResponse],
221
+ request: dataform.QueryRepositoryDirectoryContentsRequest,
222
+ response: dataform.QueryRepositoryDirectoryContentsResponse,
223
+ *,
224
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
225
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
226
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
227
+ ):
228
+ """Instantiate the pager.
229
+
230
+ Args:
231
+ method (Callable): The method that was originally called, and
232
+ which instantiated this pager.
233
+ request (google.cloud.dataform_v1beta1.types.QueryRepositoryDirectoryContentsRequest):
234
+ The initial request object.
235
+ response (google.cloud.dataform_v1beta1.types.QueryRepositoryDirectoryContentsResponse):
236
+ The initial response object.
237
+ retry (google.api_core.retry.Retry): Designation of what errors,
238
+ if any, should be retried.
239
+ timeout (float): The timeout for this request.
240
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
241
+ sent along with the request as metadata. Normally, each value must be of type `str`,
242
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
243
+ be of type `bytes`.
244
+ """
245
+ self._method = method
246
+ self._request = dataform.QueryRepositoryDirectoryContentsRequest(request)
247
+ self._response = response
248
+ self._retry = retry
249
+ self._timeout = timeout
250
+ self._metadata = metadata
251
+
252
+ def __getattr__(self, name: str) -> Any:
253
+ return getattr(self._response, name)
254
+
255
+ @property
256
+ def pages(self) -> Iterator[dataform.QueryRepositoryDirectoryContentsResponse]:
257
+ yield self._response
258
+ while self._response.next_page_token:
259
+ self._request.page_token = self._response.next_page_token
260
+ self._response = self._method(
261
+ self._request,
262
+ retry=self._retry,
263
+ timeout=self._timeout,
264
+ metadata=self._metadata,
265
+ )
266
+ yield self._response
267
+
268
+ def __iter__(self) -> Iterator[dataform.DirectoryEntry]:
269
+ for page in self.pages:
270
+ yield from page.directory_entries
271
+
272
+ def __repr__(self) -> str:
273
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
274
+
275
+
276
+ class QueryRepositoryDirectoryContentsAsyncPager:
277
+ """A pager for iterating through ``query_repository_directory_contents`` requests.
278
+
279
+ This class thinly wraps an initial
280
+ :class:`google.cloud.dataform_v1beta1.types.QueryRepositoryDirectoryContentsResponse` object, and
281
+ provides an ``__aiter__`` method to iterate through its
282
+ ``directory_entries`` field.
283
+
284
+ If there are more pages, the ``__aiter__`` method will make additional
285
+ ``QueryRepositoryDirectoryContents`` requests and continue to iterate
286
+ through the ``directory_entries`` field on the
287
+ corresponding responses.
288
+
289
+ All the usual :class:`google.cloud.dataform_v1beta1.types.QueryRepositoryDirectoryContentsResponse`
290
+ attributes are available on the pager. If multiple requests are made, only
291
+ the most recent response is retained, and thus used for attribute lookup.
292
+ """
293
+
294
+ def __init__(
295
+ self,
296
+ method: Callable[
297
+ ..., Awaitable[dataform.QueryRepositoryDirectoryContentsResponse]
298
+ ],
299
+ request: dataform.QueryRepositoryDirectoryContentsRequest,
300
+ response: dataform.QueryRepositoryDirectoryContentsResponse,
301
+ *,
302
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
303
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
304
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
305
+ ):
306
+ """Instantiates the pager.
307
+
308
+ Args:
309
+ method (Callable): The method that was originally called, and
310
+ which instantiated this pager.
311
+ request (google.cloud.dataform_v1beta1.types.QueryRepositoryDirectoryContentsRequest):
312
+ The initial request object.
313
+ response (google.cloud.dataform_v1beta1.types.QueryRepositoryDirectoryContentsResponse):
314
+ The initial response object.
315
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
316
+ if any, should be retried.
317
+ timeout (float): The timeout for this request.
318
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
319
+ sent along with the request as metadata. Normally, each value must be of type `str`,
320
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
321
+ be of type `bytes`.
322
+ """
323
+ self._method = method
324
+ self._request = dataform.QueryRepositoryDirectoryContentsRequest(request)
325
+ self._response = response
326
+ self._retry = retry
327
+ self._timeout = timeout
328
+ self._metadata = metadata
329
+
330
+ def __getattr__(self, name: str) -> Any:
331
+ return getattr(self._response, name)
332
+
333
+ @property
334
+ async def pages(
335
+ self,
336
+ ) -> AsyncIterator[dataform.QueryRepositoryDirectoryContentsResponse]:
337
+ yield self._response
338
+ while self._response.next_page_token:
339
+ self._request.page_token = self._response.next_page_token
340
+ self._response = await self._method(
341
+ self._request,
342
+ retry=self._retry,
343
+ timeout=self._timeout,
344
+ metadata=self._metadata,
345
+ )
346
+ yield self._response
347
+
348
+ def __aiter__(self) -> AsyncIterator[dataform.DirectoryEntry]:
349
+ async def async_generator():
350
+ async for page in self.pages:
351
+ for response in page.directory_entries:
352
+ yield response
353
+
354
+ return async_generator()
355
+
356
+ def __repr__(self) -> str:
357
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
358
+
359
+
360
+ class FetchRepositoryHistoryPager:
361
+ """A pager for iterating through ``fetch_repository_history`` requests.
362
+
363
+ This class thinly wraps an initial
364
+ :class:`google.cloud.dataform_v1beta1.types.FetchRepositoryHistoryResponse` object, and
365
+ provides an ``__iter__`` method to iterate through its
366
+ ``commits`` field.
367
+
368
+ If there are more pages, the ``__iter__`` method will make additional
369
+ ``FetchRepositoryHistory`` requests and continue to iterate
370
+ through the ``commits`` field on the
371
+ corresponding responses.
372
+
373
+ All the usual :class:`google.cloud.dataform_v1beta1.types.FetchRepositoryHistoryResponse`
374
+ attributes are available on the pager. If multiple requests are made, only
375
+ the most recent response is retained, and thus used for attribute lookup.
376
+ """
377
+
378
+ def __init__(
379
+ self,
380
+ method: Callable[..., dataform.FetchRepositoryHistoryResponse],
381
+ request: dataform.FetchRepositoryHistoryRequest,
382
+ response: dataform.FetchRepositoryHistoryResponse,
383
+ *,
384
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
385
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
386
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
387
+ ):
388
+ """Instantiate the pager.
389
+
390
+ Args:
391
+ method (Callable): The method that was originally called, and
392
+ which instantiated this pager.
393
+ request (google.cloud.dataform_v1beta1.types.FetchRepositoryHistoryRequest):
394
+ The initial request object.
395
+ response (google.cloud.dataform_v1beta1.types.FetchRepositoryHistoryResponse):
396
+ The initial response object.
397
+ retry (google.api_core.retry.Retry): Designation of what errors,
398
+ if any, should be retried.
399
+ timeout (float): The timeout for this request.
400
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
401
+ sent along with the request as metadata. Normally, each value must be of type `str`,
402
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
403
+ be of type `bytes`.
404
+ """
405
+ self._method = method
406
+ self._request = dataform.FetchRepositoryHistoryRequest(request)
407
+ self._response = response
408
+ self._retry = retry
409
+ self._timeout = timeout
410
+ self._metadata = metadata
411
+
412
+ def __getattr__(self, name: str) -> Any:
413
+ return getattr(self._response, name)
414
+
415
+ @property
416
+ def pages(self) -> Iterator[dataform.FetchRepositoryHistoryResponse]:
417
+ yield self._response
418
+ while self._response.next_page_token:
419
+ self._request.page_token = self._response.next_page_token
420
+ self._response = self._method(
421
+ self._request,
422
+ retry=self._retry,
423
+ timeout=self._timeout,
424
+ metadata=self._metadata,
425
+ )
426
+ yield self._response
427
+
428
+ def __iter__(self) -> Iterator[dataform.CommitLogEntry]:
429
+ for page in self.pages:
430
+ yield from page.commits
431
+
432
+ def __repr__(self) -> str:
433
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
434
+
435
+
436
+ class FetchRepositoryHistoryAsyncPager:
437
+ """A pager for iterating through ``fetch_repository_history`` requests.
438
+
439
+ This class thinly wraps an initial
440
+ :class:`google.cloud.dataform_v1beta1.types.FetchRepositoryHistoryResponse` object, and
441
+ provides an ``__aiter__`` method to iterate through its
442
+ ``commits`` field.
443
+
444
+ If there are more pages, the ``__aiter__`` method will make additional
445
+ ``FetchRepositoryHistory`` requests and continue to iterate
446
+ through the ``commits`` field on the
447
+ corresponding responses.
448
+
449
+ All the usual :class:`google.cloud.dataform_v1beta1.types.FetchRepositoryHistoryResponse`
450
+ attributes are available on the pager. If multiple requests are made, only
451
+ the most recent response is retained, and thus used for attribute lookup.
452
+ """
453
+
454
+ def __init__(
455
+ self,
456
+ method: Callable[..., Awaitable[dataform.FetchRepositoryHistoryResponse]],
457
+ request: dataform.FetchRepositoryHistoryRequest,
458
+ response: dataform.FetchRepositoryHistoryResponse,
459
+ *,
460
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
461
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
462
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
463
+ ):
464
+ """Instantiates the pager.
465
+
466
+ Args:
467
+ method (Callable): The method that was originally called, and
468
+ which instantiated this pager.
469
+ request (google.cloud.dataform_v1beta1.types.FetchRepositoryHistoryRequest):
470
+ The initial request object.
471
+ response (google.cloud.dataform_v1beta1.types.FetchRepositoryHistoryResponse):
472
+ The initial response object.
473
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
474
+ if any, should be retried.
475
+ timeout (float): The timeout for this request.
476
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
477
+ sent along with the request as metadata. Normally, each value must be of type `str`,
478
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
479
+ be of type `bytes`.
480
+ """
481
+ self._method = method
482
+ self._request = dataform.FetchRepositoryHistoryRequest(request)
483
+ self._response = response
484
+ self._retry = retry
485
+ self._timeout = timeout
486
+ self._metadata = metadata
487
+
488
+ def __getattr__(self, name: str) -> Any:
489
+ return getattr(self._response, name)
490
+
491
+ @property
492
+ async def pages(self) -> AsyncIterator[dataform.FetchRepositoryHistoryResponse]:
493
+ yield self._response
494
+ while self._response.next_page_token:
495
+ self._request.page_token = self._response.next_page_token
496
+ self._response = await self._method(
497
+ self._request,
498
+ retry=self._retry,
499
+ timeout=self._timeout,
500
+ metadata=self._metadata,
501
+ )
502
+ yield self._response
503
+
504
+ def __aiter__(self) -> AsyncIterator[dataform.CommitLogEntry]:
505
+ async def async_generator():
506
+ async for page in self.pages:
507
+ for response in page.commits:
508
+ yield response
509
+
510
+ return async_generator()
511
+
512
+ def __repr__(self) -> str:
513
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
514
+
515
+
516
+ class ListWorkspacesPager:
517
+ """A pager for iterating through ``list_workspaces`` requests.
518
+
519
+ This class thinly wraps an initial
520
+ :class:`google.cloud.dataform_v1beta1.types.ListWorkspacesResponse` object, and
521
+ provides an ``__iter__`` method to iterate through its
522
+ ``workspaces`` field.
523
+
524
+ If there are more pages, the ``__iter__`` method will make additional
525
+ ``ListWorkspaces`` requests and continue to iterate
526
+ through the ``workspaces`` field on the
527
+ corresponding responses.
528
+
529
+ All the usual :class:`google.cloud.dataform_v1beta1.types.ListWorkspacesResponse`
530
+ attributes are available on the pager. If multiple requests are made, only
531
+ the most recent response is retained, and thus used for attribute lookup.
532
+ """
533
+
534
+ def __init__(
535
+ self,
536
+ method: Callable[..., dataform.ListWorkspacesResponse],
537
+ request: dataform.ListWorkspacesRequest,
538
+ response: dataform.ListWorkspacesResponse,
539
+ *,
540
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
541
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
542
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
543
+ ):
544
+ """Instantiate the pager.
545
+
546
+ Args:
547
+ method (Callable): The method that was originally called, and
548
+ which instantiated this pager.
549
+ request (google.cloud.dataform_v1beta1.types.ListWorkspacesRequest):
550
+ The initial request object.
551
+ response (google.cloud.dataform_v1beta1.types.ListWorkspacesResponse):
552
+ The initial response object.
553
+ retry (google.api_core.retry.Retry): Designation of what errors,
554
+ if any, should be retried.
555
+ timeout (float): The timeout for this request.
556
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
557
+ sent along with the request as metadata. Normally, each value must be of type `str`,
558
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
559
+ be of type `bytes`.
560
+ """
561
+ self._method = method
562
+ self._request = dataform.ListWorkspacesRequest(request)
563
+ self._response = response
564
+ self._retry = retry
565
+ self._timeout = timeout
566
+ self._metadata = metadata
567
+
568
+ def __getattr__(self, name: str) -> Any:
569
+ return getattr(self._response, name)
570
+
571
+ @property
572
+ def pages(self) -> Iterator[dataform.ListWorkspacesResponse]:
573
+ yield self._response
574
+ while self._response.next_page_token:
575
+ self._request.page_token = self._response.next_page_token
576
+ self._response = self._method(
577
+ self._request,
578
+ retry=self._retry,
579
+ timeout=self._timeout,
580
+ metadata=self._metadata,
581
+ )
582
+ yield self._response
583
+
584
+ def __iter__(self) -> Iterator[dataform.Workspace]:
585
+ for page in self.pages:
586
+ yield from page.workspaces
587
+
588
+ def __repr__(self) -> str:
589
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
590
+
591
+
592
+ class ListWorkspacesAsyncPager:
593
+ """A pager for iterating through ``list_workspaces`` requests.
594
+
595
+ This class thinly wraps an initial
596
+ :class:`google.cloud.dataform_v1beta1.types.ListWorkspacesResponse` object, and
597
+ provides an ``__aiter__`` method to iterate through its
598
+ ``workspaces`` field.
599
+
600
+ If there are more pages, the ``__aiter__`` method will make additional
601
+ ``ListWorkspaces`` requests and continue to iterate
602
+ through the ``workspaces`` field on the
603
+ corresponding responses.
604
+
605
+ All the usual :class:`google.cloud.dataform_v1beta1.types.ListWorkspacesResponse`
606
+ attributes are available on the pager. If multiple requests are made, only
607
+ the most recent response is retained, and thus used for attribute lookup.
608
+ """
609
+
610
+ def __init__(
611
+ self,
612
+ method: Callable[..., Awaitable[dataform.ListWorkspacesResponse]],
613
+ request: dataform.ListWorkspacesRequest,
614
+ response: dataform.ListWorkspacesResponse,
615
+ *,
616
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
617
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
618
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
619
+ ):
620
+ """Instantiates the pager.
621
+
622
+ Args:
623
+ method (Callable): The method that was originally called, and
624
+ which instantiated this pager.
625
+ request (google.cloud.dataform_v1beta1.types.ListWorkspacesRequest):
626
+ The initial request object.
627
+ response (google.cloud.dataform_v1beta1.types.ListWorkspacesResponse):
628
+ The initial response object.
629
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
630
+ if any, should be retried.
631
+ timeout (float): The timeout for this request.
632
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
633
+ sent along with the request as metadata. Normally, each value must be of type `str`,
634
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
635
+ be of type `bytes`.
636
+ """
637
+ self._method = method
638
+ self._request = dataform.ListWorkspacesRequest(request)
639
+ self._response = response
640
+ self._retry = retry
641
+ self._timeout = timeout
642
+ self._metadata = metadata
643
+
644
+ def __getattr__(self, name: str) -> Any:
645
+ return getattr(self._response, name)
646
+
647
+ @property
648
+ async def pages(self) -> AsyncIterator[dataform.ListWorkspacesResponse]:
649
+ yield self._response
650
+ while self._response.next_page_token:
651
+ self._request.page_token = self._response.next_page_token
652
+ self._response = await self._method(
653
+ self._request,
654
+ retry=self._retry,
655
+ timeout=self._timeout,
656
+ metadata=self._metadata,
657
+ )
658
+ yield self._response
659
+
660
+ def __aiter__(self) -> AsyncIterator[dataform.Workspace]:
661
+ async def async_generator():
662
+ async for page in self.pages:
663
+ for response in page.workspaces:
664
+ yield response
665
+
666
+ return async_generator()
667
+
668
+ def __repr__(self) -> str:
669
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
670
+
671
+
672
+ class QueryDirectoryContentsPager:
673
+ """A pager for iterating through ``query_directory_contents`` requests.
674
+
675
+ This class thinly wraps an initial
676
+ :class:`google.cloud.dataform_v1beta1.types.QueryDirectoryContentsResponse` object, and
677
+ provides an ``__iter__`` method to iterate through its
678
+ ``directory_entries`` field.
679
+
680
+ If there are more pages, the ``__iter__`` method will make additional
681
+ ``QueryDirectoryContents`` requests and continue to iterate
682
+ through the ``directory_entries`` field on the
683
+ corresponding responses.
684
+
685
+ All the usual :class:`google.cloud.dataform_v1beta1.types.QueryDirectoryContentsResponse`
686
+ attributes are available on the pager. If multiple requests are made, only
687
+ the most recent response is retained, and thus used for attribute lookup.
688
+ """
689
+
690
+ def __init__(
691
+ self,
692
+ method: Callable[..., dataform.QueryDirectoryContentsResponse],
693
+ request: dataform.QueryDirectoryContentsRequest,
694
+ response: dataform.QueryDirectoryContentsResponse,
695
+ *,
696
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
697
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
698
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
699
+ ):
700
+ """Instantiate the pager.
701
+
702
+ Args:
703
+ method (Callable): The method that was originally called, and
704
+ which instantiated this pager.
705
+ request (google.cloud.dataform_v1beta1.types.QueryDirectoryContentsRequest):
706
+ The initial request object.
707
+ response (google.cloud.dataform_v1beta1.types.QueryDirectoryContentsResponse):
708
+ The initial response object.
709
+ retry (google.api_core.retry.Retry): Designation of what errors,
710
+ if any, should be retried.
711
+ timeout (float): The timeout for this request.
712
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
713
+ sent along with the request as metadata. Normally, each value must be of type `str`,
714
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
715
+ be of type `bytes`.
716
+ """
717
+ self._method = method
718
+ self._request = dataform.QueryDirectoryContentsRequest(request)
719
+ self._response = response
720
+ self._retry = retry
721
+ self._timeout = timeout
722
+ self._metadata = metadata
723
+
724
+ def __getattr__(self, name: str) -> Any:
725
+ return getattr(self._response, name)
726
+
727
+ @property
728
+ def pages(self) -> Iterator[dataform.QueryDirectoryContentsResponse]:
729
+ yield self._response
730
+ while self._response.next_page_token:
731
+ self._request.page_token = self._response.next_page_token
732
+ self._response = self._method(
733
+ self._request,
734
+ retry=self._retry,
735
+ timeout=self._timeout,
736
+ metadata=self._metadata,
737
+ )
738
+ yield self._response
739
+
740
+ def __iter__(self) -> Iterator[dataform.DirectoryEntry]:
741
+ for page in self.pages:
742
+ yield from page.directory_entries
743
+
744
+ def __repr__(self) -> str:
745
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
746
+
747
+
748
+ class QueryDirectoryContentsAsyncPager:
749
+ """A pager for iterating through ``query_directory_contents`` requests.
750
+
751
+ This class thinly wraps an initial
752
+ :class:`google.cloud.dataform_v1beta1.types.QueryDirectoryContentsResponse` object, and
753
+ provides an ``__aiter__`` method to iterate through its
754
+ ``directory_entries`` field.
755
+
756
+ If there are more pages, the ``__aiter__`` method will make additional
757
+ ``QueryDirectoryContents`` requests and continue to iterate
758
+ through the ``directory_entries`` field on the
759
+ corresponding responses.
760
+
761
+ All the usual :class:`google.cloud.dataform_v1beta1.types.QueryDirectoryContentsResponse`
762
+ attributes are available on the pager. If multiple requests are made, only
763
+ the most recent response is retained, and thus used for attribute lookup.
764
+ """
765
+
766
+ def __init__(
767
+ self,
768
+ method: Callable[..., Awaitable[dataform.QueryDirectoryContentsResponse]],
769
+ request: dataform.QueryDirectoryContentsRequest,
770
+ response: dataform.QueryDirectoryContentsResponse,
771
+ *,
772
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
773
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
774
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
775
+ ):
776
+ """Instantiates the pager.
777
+
778
+ Args:
779
+ method (Callable): The method that was originally called, and
780
+ which instantiated this pager.
781
+ request (google.cloud.dataform_v1beta1.types.QueryDirectoryContentsRequest):
782
+ The initial request object.
783
+ response (google.cloud.dataform_v1beta1.types.QueryDirectoryContentsResponse):
784
+ The initial response object.
785
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
786
+ if any, should be retried.
787
+ timeout (float): The timeout for this request.
788
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
789
+ sent along with the request as metadata. Normally, each value must be of type `str`,
790
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
791
+ be of type `bytes`.
792
+ """
793
+ self._method = method
794
+ self._request = dataform.QueryDirectoryContentsRequest(request)
795
+ self._response = response
796
+ self._retry = retry
797
+ self._timeout = timeout
798
+ self._metadata = metadata
799
+
800
+ def __getattr__(self, name: str) -> Any:
801
+ return getattr(self._response, name)
802
+
803
+ @property
804
+ async def pages(self) -> AsyncIterator[dataform.QueryDirectoryContentsResponse]:
805
+ yield self._response
806
+ while self._response.next_page_token:
807
+ self._request.page_token = self._response.next_page_token
808
+ self._response = await self._method(
809
+ self._request,
810
+ retry=self._retry,
811
+ timeout=self._timeout,
812
+ metadata=self._metadata,
813
+ )
814
+ yield self._response
815
+
816
+ def __aiter__(self) -> AsyncIterator[dataform.DirectoryEntry]:
817
+ async def async_generator():
818
+ async for page in self.pages:
819
+ for response in page.directory_entries:
820
+ yield response
821
+
822
+ return async_generator()
823
+
824
+ def __repr__(self) -> str:
825
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
826
+
827
+
828
+ class SearchFilesPager:
829
+ """A pager for iterating through ``search_files`` requests.
830
+
831
+ This class thinly wraps an initial
832
+ :class:`google.cloud.dataform_v1beta1.types.SearchFilesResponse` object, and
833
+ provides an ``__iter__`` method to iterate through its
834
+ ``search_results`` field.
835
+
836
+ If there are more pages, the ``__iter__`` method will make additional
837
+ ``SearchFiles`` requests and continue to iterate
838
+ through the ``search_results`` field on the
839
+ corresponding responses.
840
+
841
+ All the usual :class:`google.cloud.dataform_v1beta1.types.SearchFilesResponse`
842
+ attributes are available on the pager. If multiple requests are made, only
843
+ the most recent response is retained, and thus used for attribute lookup.
844
+ """
845
+
846
+ def __init__(
847
+ self,
848
+ method: Callable[..., dataform.SearchFilesResponse],
849
+ request: dataform.SearchFilesRequest,
850
+ response: dataform.SearchFilesResponse,
851
+ *,
852
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
853
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
854
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
855
+ ):
856
+ """Instantiate the pager.
857
+
858
+ Args:
859
+ method (Callable): The method that was originally called, and
860
+ which instantiated this pager.
861
+ request (google.cloud.dataform_v1beta1.types.SearchFilesRequest):
862
+ The initial request object.
863
+ response (google.cloud.dataform_v1beta1.types.SearchFilesResponse):
864
+ The initial response object.
865
+ retry (google.api_core.retry.Retry): Designation of what errors,
866
+ if any, should be retried.
867
+ timeout (float): The timeout for this request.
868
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
869
+ sent along with the request as metadata. Normally, each value must be of type `str`,
870
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
871
+ be of type `bytes`.
872
+ """
873
+ self._method = method
874
+ self._request = dataform.SearchFilesRequest(request)
875
+ self._response = response
876
+ self._retry = retry
877
+ self._timeout = timeout
878
+ self._metadata = metadata
879
+
880
+ def __getattr__(self, name: str) -> Any:
881
+ return getattr(self._response, name)
882
+
883
+ @property
884
+ def pages(self) -> Iterator[dataform.SearchFilesResponse]:
885
+ yield self._response
886
+ while self._response.next_page_token:
887
+ self._request.page_token = self._response.next_page_token
888
+ self._response = self._method(
889
+ self._request,
890
+ retry=self._retry,
891
+ timeout=self._timeout,
892
+ metadata=self._metadata,
893
+ )
894
+ yield self._response
895
+
896
+ def __iter__(self) -> Iterator[dataform.SearchResult]:
897
+ for page in self.pages:
898
+ yield from page.search_results
899
+
900
+ def __repr__(self) -> str:
901
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
902
+
903
+
904
+ class SearchFilesAsyncPager:
905
+ """A pager for iterating through ``search_files`` requests.
906
+
907
+ This class thinly wraps an initial
908
+ :class:`google.cloud.dataform_v1beta1.types.SearchFilesResponse` object, and
909
+ provides an ``__aiter__`` method to iterate through its
910
+ ``search_results`` field.
911
+
912
+ If there are more pages, the ``__aiter__`` method will make additional
913
+ ``SearchFiles`` requests and continue to iterate
914
+ through the ``search_results`` field on the
915
+ corresponding responses.
916
+
917
+ All the usual :class:`google.cloud.dataform_v1beta1.types.SearchFilesResponse`
918
+ attributes are available on the pager. If multiple requests are made, only
919
+ the most recent response is retained, and thus used for attribute lookup.
920
+ """
921
+
922
+ def __init__(
923
+ self,
924
+ method: Callable[..., Awaitable[dataform.SearchFilesResponse]],
925
+ request: dataform.SearchFilesRequest,
926
+ response: dataform.SearchFilesResponse,
927
+ *,
928
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
929
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
930
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
931
+ ):
932
+ """Instantiates the pager.
933
+
934
+ Args:
935
+ method (Callable): The method that was originally called, and
936
+ which instantiated this pager.
937
+ request (google.cloud.dataform_v1beta1.types.SearchFilesRequest):
938
+ The initial request object.
939
+ response (google.cloud.dataform_v1beta1.types.SearchFilesResponse):
940
+ The initial response object.
941
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
942
+ if any, should be retried.
943
+ timeout (float): The timeout for this request.
944
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
945
+ sent along with the request as metadata. Normally, each value must be of type `str`,
946
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
947
+ be of type `bytes`.
948
+ """
949
+ self._method = method
950
+ self._request = dataform.SearchFilesRequest(request)
951
+ self._response = response
952
+ self._retry = retry
953
+ self._timeout = timeout
954
+ self._metadata = metadata
955
+
956
+ def __getattr__(self, name: str) -> Any:
957
+ return getattr(self._response, name)
958
+
959
+ @property
960
+ async def pages(self) -> AsyncIterator[dataform.SearchFilesResponse]:
961
+ yield self._response
962
+ while self._response.next_page_token:
963
+ self._request.page_token = self._response.next_page_token
964
+ self._response = await self._method(
965
+ self._request,
966
+ retry=self._retry,
967
+ timeout=self._timeout,
968
+ metadata=self._metadata,
969
+ )
970
+ yield self._response
971
+
972
+ def __aiter__(self) -> AsyncIterator[dataform.SearchResult]:
973
+ async def async_generator():
974
+ async for page in self.pages:
975
+ for response in page.search_results:
976
+ yield response
977
+
978
+ return async_generator()
979
+
980
+ def __repr__(self) -> str:
981
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
982
+
983
+
984
+ class ListReleaseConfigsPager:
985
+ """A pager for iterating through ``list_release_configs`` requests.
986
+
987
+ This class thinly wraps an initial
988
+ :class:`google.cloud.dataform_v1beta1.types.ListReleaseConfigsResponse` object, and
989
+ provides an ``__iter__`` method to iterate through its
990
+ ``release_configs`` field.
991
+
992
+ If there are more pages, the ``__iter__`` method will make additional
993
+ ``ListReleaseConfigs`` requests and continue to iterate
994
+ through the ``release_configs`` field on the
995
+ corresponding responses.
996
+
997
+ All the usual :class:`google.cloud.dataform_v1beta1.types.ListReleaseConfigsResponse`
998
+ attributes are available on the pager. If multiple requests are made, only
999
+ the most recent response is retained, and thus used for attribute lookup.
1000
+ """
1001
+
1002
+ def __init__(
1003
+ self,
1004
+ method: Callable[..., dataform.ListReleaseConfigsResponse],
1005
+ request: dataform.ListReleaseConfigsRequest,
1006
+ response: dataform.ListReleaseConfigsResponse,
1007
+ *,
1008
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
1009
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1010
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1011
+ ):
1012
+ """Instantiate the pager.
1013
+
1014
+ Args:
1015
+ method (Callable): The method that was originally called, and
1016
+ which instantiated this pager.
1017
+ request (google.cloud.dataform_v1beta1.types.ListReleaseConfigsRequest):
1018
+ The initial request object.
1019
+ response (google.cloud.dataform_v1beta1.types.ListReleaseConfigsResponse):
1020
+ The initial response object.
1021
+ retry (google.api_core.retry.Retry): Designation of what errors,
1022
+ if any, should be retried.
1023
+ timeout (float): The timeout for this request.
1024
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1025
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1026
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1027
+ be of type `bytes`.
1028
+ """
1029
+ self._method = method
1030
+ self._request = dataform.ListReleaseConfigsRequest(request)
1031
+ self._response = response
1032
+ self._retry = retry
1033
+ self._timeout = timeout
1034
+ self._metadata = metadata
1035
+
1036
+ def __getattr__(self, name: str) -> Any:
1037
+ return getattr(self._response, name)
1038
+
1039
+ @property
1040
+ def pages(self) -> Iterator[dataform.ListReleaseConfigsResponse]:
1041
+ yield self._response
1042
+ while self._response.next_page_token:
1043
+ self._request.page_token = self._response.next_page_token
1044
+ self._response = self._method(
1045
+ self._request,
1046
+ retry=self._retry,
1047
+ timeout=self._timeout,
1048
+ metadata=self._metadata,
1049
+ )
1050
+ yield self._response
1051
+
1052
+ def __iter__(self) -> Iterator[dataform.ReleaseConfig]:
1053
+ for page in self.pages:
1054
+ yield from page.release_configs
1055
+
1056
+ def __repr__(self) -> str:
1057
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1058
+
1059
+
1060
+ class ListReleaseConfigsAsyncPager:
1061
+ """A pager for iterating through ``list_release_configs`` requests.
1062
+
1063
+ This class thinly wraps an initial
1064
+ :class:`google.cloud.dataform_v1beta1.types.ListReleaseConfigsResponse` object, and
1065
+ provides an ``__aiter__`` method to iterate through its
1066
+ ``release_configs`` field.
1067
+
1068
+ If there are more pages, the ``__aiter__`` method will make additional
1069
+ ``ListReleaseConfigs`` requests and continue to iterate
1070
+ through the ``release_configs`` field on the
1071
+ corresponding responses.
1072
+
1073
+ All the usual :class:`google.cloud.dataform_v1beta1.types.ListReleaseConfigsResponse`
1074
+ attributes are available on the pager. If multiple requests are made, only
1075
+ the most recent response is retained, and thus used for attribute lookup.
1076
+ """
1077
+
1078
+ def __init__(
1079
+ self,
1080
+ method: Callable[..., Awaitable[dataform.ListReleaseConfigsResponse]],
1081
+ request: dataform.ListReleaseConfigsRequest,
1082
+ response: dataform.ListReleaseConfigsResponse,
1083
+ *,
1084
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
1085
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1086
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1087
+ ):
1088
+ """Instantiates the pager.
1089
+
1090
+ Args:
1091
+ method (Callable): The method that was originally called, and
1092
+ which instantiated this pager.
1093
+ request (google.cloud.dataform_v1beta1.types.ListReleaseConfigsRequest):
1094
+ The initial request object.
1095
+ response (google.cloud.dataform_v1beta1.types.ListReleaseConfigsResponse):
1096
+ The initial response object.
1097
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
1098
+ if any, should be retried.
1099
+ timeout (float): The timeout for this request.
1100
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1101
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1102
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1103
+ be of type `bytes`.
1104
+ """
1105
+ self._method = method
1106
+ self._request = dataform.ListReleaseConfigsRequest(request)
1107
+ self._response = response
1108
+ self._retry = retry
1109
+ self._timeout = timeout
1110
+ self._metadata = metadata
1111
+
1112
+ def __getattr__(self, name: str) -> Any:
1113
+ return getattr(self._response, name)
1114
+
1115
+ @property
1116
+ async def pages(self) -> AsyncIterator[dataform.ListReleaseConfigsResponse]:
1117
+ yield self._response
1118
+ while self._response.next_page_token:
1119
+ self._request.page_token = self._response.next_page_token
1120
+ self._response = await self._method(
1121
+ self._request,
1122
+ retry=self._retry,
1123
+ timeout=self._timeout,
1124
+ metadata=self._metadata,
1125
+ )
1126
+ yield self._response
1127
+
1128
+ def __aiter__(self) -> AsyncIterator[dataform.ReleaseConfig]:
1129
+ async def async_generator():
1130
+ async for page in self.pages:
1131
+ for response in page.release_configs:
1132
+ yield response
1133
+
1134
+ return async_generator()
1135
+
1136
+ def __repr__(self) -> str:
1137
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1138
+
1139
+
1140
+ class ListCompilationResultsPager:
1141
+ """A pager for iterating through ``list_compilation_results`` requests.
1142
+
1143
+ This class thinly wraps an initial
1144
+ :class:`google.cloud.dataform_v1beta1.types.ListCompilationResultsResponse` object, and
1145
+ provides an ``__iter__`` method to iterate through its
1146
+ ``compilation_results`` field.
1147
+
1148
+ If there are more pages, the ``__iter__`` method will make additional
1149
+ ``ListCompilationResults`` requests and continue to iterate
1150
+ through the ``compilation_results`` field on the
1151
+ corresponding responses.
1152
+
1153
+ All the usual :class:`google.cloud.dataform_v1beta1.types.ListCompilationResultsResponse`
1154
+ attributes are available on the pager. If multiple requests are made, only
1155
+ the most recent response is retained, and thus used for attribute lookup.
1156
+ """
1157
+
1158
+ def __init__(
1159
+ self,
1160
+ method: Callable[..., dataform.ListCompilationResultsResponse],
1161
+ request: dataform.ListCompilationResultsRequest,
1162
+ response: dataform.ListCompilationResultsResponse,
1163
+ *,
1164
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
1165
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1166
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1167
+ ):
1168
+ """Instantiate the pager.
1169
+
1170
+ Args:
1171
+ method (Callable): The method that was originally called, and
1172
+ which instantiated this pager.
1173
+ request (google.cloud.dataform_v1beta1.types.ListCompilationResultsRequest):
1174
+ The initial request object.
1175
+ response (google.cloud.dataform_v1beta1.types.ListCompilationResultsResponse):
1176
+ The initial response object.
1177
+ retry (google.api_core.retry.Retry): Designation of what errors,
1178
+ if any, should be retried.
1179
+ timeout (float): The timeout for this request.
1180
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1181
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1182
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1183
+ be of type `bytes`.
1184
+ """
1185
+ self._method = method
1186
+ self._request = dataform.ListCompilationResultsRequest(request)
1187
+ self._response = response
1188
+ self._retry = retry
1189
+ self._timeout = timeout
1190
+ self._metadata = metadata
1191
+
1192
+ def __getattr__(self, name: str) -> Any:
1193
+ return getattr(self._response, name)
1194
+
1195
+ @property
1196
+ def pages(self) -> Iterator[dataform.ListCompilationResultsResponse]:
1197
+ yield self._response
1198
+ while self._response.next_page_token:
1199
+ self._request.page_token = self._response.next_page_token
1200
+ self._response = self._method(
1201
+ self._request,
1202
+ retry=self._retry,
1203
+ timeout=self._timeout,
1204
+ metadata=self._metadata,
1205
+ )
1206
+ yield self._response
1207
+
1208
+ def __iter__(self) -> Iterator[dataform.CompilationResult]:
1209
+ for page in self.pages:
1210
+ yield from page.compilation_results
1211
+
1212
+ def __repr__(self) -> str:
1213
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1214
+
1215
+
1216
+ class ListCompilationResultsAsyncPager:
1217
+ """A pager for iterating through ``list_compilation_results`` requests.
1218
+
1219
+ This class thinly wraps an initial
1220
+ :class:`google.cloud.dataform_v1beta1.types.ListCompilationResultsResponse` object, and
1221
+ provides an ``__aiter__`` method to iterate through its
1222
+ ``compilation_results`` field.
1223
+
1224
+ If there are more pages, the ``__aiter__`` method will make additional
1225
+ ``ListCompilationResults`` requests and continue to iterate
1226
+ through the ``compilation_results`` field on the
1227
+ corresponding responses.
1228
+
1229
+ All the usual :class:`google.cloud.dataform_v1beta1.types.ListCompilationResultsResponse`
1230
+ attributes are available on the pager. If multiple requests are made, only
1231
+ the most recent response is retained, and thus used for attribute lookup.
1232
+ """
1233
+
1234
+ def __init__(
1235
+ self,
1236
+ method: Callable[..., Awaitable[dataform.ListCompilationResultsResponse]],
1237
+ request: dataform.ListCompilationResultsRequest,
1238
+ response: dataform.ListCompilationResultsResponse,
1239
+ *,
1240
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
1241
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1242
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1243
+ ):
1244
+ """Instantiates the pager.
1245
+
1246
+ Args:
1247
+ method (Callable): The method that was originally called, and
1248
+ which instantiated this pager.
1249
+ request (google.cloud.dataform_v1beta1.types.ListCompilationResultsRequest):
1250
+ The initial request object.
1251
+ response (google.cloud.dataform_v1beta1.types.ListCompilationResultsResponse):
1252
+ The initial response object.
1253
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
1254
+ if any, should be retried.
1255
+ timeout (float): The timeout for this request.
1256
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1257
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1258
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1259
+ be of type `bytes`.
1260
+ """
1261
+ self._method = method
1262
+ self._request = dataform.ListCompilationResultsRequest(request)
1263
+ self._response = response
1264
+ self._retry = retry
1265
+ self._timeout = timeout
1266
+ self._metadata = metadata
1267
+
1268
+ def __getattr__(self, name: str) -> Any:
1269
+ return getattr(self._response, name)
1270
+
1271
+ @property
1272
+ async def pages(self) -> AsyncIterator[dataform.ListCompilationResultsResponse]:
1273
+ yield self._response
1274
+ while self._response.next_page_token:
1275
+ self._request.page_token = self._response.next_page_token
1276
+ self._response = await self._method(
1277
+ self._request,
1278
+ retry=self._retry,
1279
+ timeout=self._timeout,
1280
+ metadata=self._metadata,
1281
+ )
1282
+ yield self._response
1283
+
1284
+ def __aiter__(self) -> AsyncIterator[dataform.CompilationResult]:
1285
+ async def async_generator():
1286
+ async for page in self.pages:
1287
+ for response in page.compilation_results:
1288
+ yield response
1289
+
1290
+ return async_generator()
1291
+
1292
+ def __repr__(self) -> str:
1293
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1294
+
1295
+
1296
+ class QueryCompilationResultActionsPager:
1297
+ """A pager for iterating through ``query_compilation_result_actions`` requests.
1298
+
1299
+ This class thinly wraps an initial
1300
+ :class:`google.cloud.dataform_v1beta1.types.QueryCompilationResultActionsResponse` object, and
1301
+ provides an ``__iter__`` method to iterate through its
1302
+ ``compilation_result_actions`` field.
1303
+
1304
+ If there are more pages, the ``__iter__`` method will make additional
1305
+ ``QueryCompilationResultActions`` requests and continue to iterate
1306
+ through the ``compilation_result_actions`` field on the
1307
+ corresponding responses.
1308
+
1309
+ All the usual :class:`google.cloud.dataform_v1beta1.types.QueryCompilationResultActionsResponse`
1310
+ attributes are available on the pager. If multiple requests are made, only
1311
+ the most recent response is retained, and thus used for attribute lookup.
1312
+ """
1313
+
1314
+ def __init__(
1315
+ self,
1316
+ method: Callable[..., dataform.QueryCompilationResultActionsResponse],
1317
+ request: dataform.QueryCompilationResultActionsRequest,
1318
+ response: dataform.QueryCompilationResultActionsResponse,
1319
+ *,
1320
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
1321
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1322
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1323
+ ):
1324
+ """Instantiate the pager.
1325
+
1326
+ Args:
1327
+ method (Callable): The method that was originally called, and
1328
+ which instantiated this pager.
1329
+ request (google.cloud.dataform_v1beta1.types.QueryCompilationResultActionsRequest):
1330
+ The initial request object.
1331
+ response (google.cloud.dataform_v1beta1.types.QueryCompilationResultActionsResponse):
1332
+ The initial response object.
1333
+ retry (google.api_core.retry.Retry): Designation of what errors,
1334
+ if any, should be retried.
1335
+ timeout (float): The timeout for this request.
1336
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1337
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1338
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1339
+ be of type `bytes`.
1340
+ """
1341
+ self._method = method
1342
+ self._request = dataform.QueryCompilationResultActionsRequest(request)
1343
+ self._response = response
1344
+ self._retry = retry
1345
+ self._timeout = timeout
1346
+ self._metadata = metadata
1347
+
1348
+ def __getattr__(self, name: str) -> Any:
1349
+ return getattr(self._response, name)
1350
+
1351
+ @property
1352
+ def pages(self) -> Iterator[dataform.QueryCompilationResultActionsResponse]:
1353
+ yield self._response
1354
+ while self._response.next_page_token:
1355
+ self._request.page_token = self._response.next_page_token
1356
+ self._response = self._method(
1357
+ self._request,
1358
+ retry=self._retry,
1359
+ timeout=self._timeout,
1360
+ metadata=self._metadata,
1361
+ )
1362
+ yield self._response
1363
+
1364
+ def __iter__(self) -> Iterator[dataform.CompilationResultAction]:
1365
+ for page in self.pages:
1366
+ yield from page.compilation_result_actions
1367
+
1368
+ def __repr__(self) -> str:
1369
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1370
+
1371
+
1372
+ class QueryCompilationResultActionsAsyncPager:
1373
+ """A pager for iterating through ``query_compilation_result_actions`` requests.
1374
+
1375
+ This class thinly wraps an initial
1376
+ :class:`google.cloud.dataform_v1beta1.types.QueryCompilationResultActionsResponse` object, and
1377
+ provides an ``__aiter__`` method to iterate through its
1378
+ ``compilation_result_actions`` field.
1379
+
1380
+ If there are more pages, the ``__aiter__`` method will make additional
1381
+ ``QueryCompilationResultActions`` requests and continue to iterate
1382
+ through the ``compilation_result_actions`` field on the
1383
+ corresponding responses.
1384
+
1385
+ All the usual :class:`google.cloud.dataform_v1beta1.types.QueryCompilationResultActionsResponse`
1386
+ attributes are available on the pager. If multiple requests are made, only
1387
+ the most recent response is retained, and thus used for attribute lookup.
1388
+ """
1389
+
1390
+ def __init__(
1391
+ self,
1392
+ method: Callable[
1393
+ ..., Awaitable[dataform.QueryCompilationResultActionsResponse]
1394
+ ],
1395
+ request: dataform.QueryCompilationResultActionsRequest,
1396
+ response: dataform.QueryCompilationResultActionsResponse,
1397
+ *,
1398
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
1399
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1400
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1401
+ ):
1402
+ """Instantiates the pager.
1403
+
1404
+ Args:
1405
+ method (Callable): The method that was originally called, and
1406
+ which instantiated this pager.
1407
+ request (google.cloud.dataform_v1beta1.types.QueryCompilationResultActionsRequest):
1408
+ The initial request object.
1409
+ response (google.cloud.dataform_v1beta1.types.QueryCompilationResultActionsResponse):
1410
+ The initial response object.
1411
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
1412
+ if any, should be retried.
1413
+ timeout (float): The timeout for this request.
1414
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1415
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1416
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1417
+ be of type `bytes`.
1418
+ """
1419
+ self._method = method
1420
+ self._request = dataform.QueryCompilationResultActionsRequest(request)
1421
+ self._response = response
1422
+ self._retry = retry
1423
+ self._timeout = timeout
1424
+ self._metadata = metadata
1425
+
1426
+ def __getattr__(self, name: str) -> Any:
1427
+ return getattr(self._response, name)
1428
+
1429
+ @property
1430
+ async def pages(
1431
+ self,
1432
+ ) -> AsyncIterator[dataform.QueryCompilationResultActionsResponse]:
1433
+ yield self._response
1434
+ while self._response.next_page_token:
1435
+ self._request.page_token = self._response.next_page_token
1436
+ self._response = await self._method(
1437
+ self._request,
1438
+ retry=self._retry,
1439
+ timeout=self._timeout,
1440
+ metadata=self._metadata,
1441
+ )
1442
+ yield self._response
1443
+
1444
+ def __aiter__(self) -> AsyncIterator[dataform.CompilationResultAction]:
1445
+ async def async_generator():
1446
+ async for page in self.pages:
1447
+ for response in page.compilation_result_actions:
1448
+ yield response
1449
+
1450
+ return async_generator()
1451
+
1452
+ def __repr__(self) -> str:
1453
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1454
+
1455
+
1456
+ class ListWorkflowConfigsPager:
1457
+ """A pager for iterating through ``list_workflow_configs`` requests.
1458
+
1459
+ This class thinly wraps an initial
1460
+ :class:`google.cloud.dataform_v1beta1.types.ListWorkflowConfigsResponse` object, and
1461
+ provides an ``__iter__`` method to iterate through its
1462
+ ``workflow_configs`` field.
1463
+
1464
+ If there are more pages, the ``__iter__`` method will make additional
1465
+ ``ListWorkflowConfigs`` requests and continue to iterate
1466
+ through the ``workflow_configs`` field on the
1467
+ corresponding responses.
1468
+
1469
+ All the usual :class:`google.cloud.dataform_v1beta1.types.ListWorkflowConfigsResponse`
1470
+ attributes are available on the pager. If multiple requests are made, only
1471
+ the most recent response is retained, and thus used for attribute lookup.
1472
+ """
1473
+
1474
+ def __init__(
1475
+ self,
1476
+ method: Callable[..., dataform.ListWorkflowConfigsResponse],
1477
+ request: dataform.ListWorkflowConfigsRequest,
1478
+ response: dataform.ListWorkflowConfigsResponse,
1479
+ *,
1480
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
1481
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1482
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1483
+ ):
1484
+ """Instantiate the pager.
1485
+
1486
+ Args:
1487
+ method (Callable): The method that was originally called, and
1488
+ which instantiated this pager.
1489
+ request (google.cloud.dataform_v1beta1.types.ListWorkflowConfigsRequest):
1490
+ The initial request object.
1491
+ response (google.cloud.dataform_v1beta1.types.ListWorkflowConfigsResponse):
1492
+ The initial response object.
1493
+ retry (google.api_core.retry.Retry): Designation of what errors,
1494
+ if any, should be retried.
1495
+ timeout (float): The timeout for this request.
1496
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1497
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1498
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1499
+ be of type `bytes`.
1500
+ """
1501
+ self._method = method
1502
+ self._request = dataform.ListWorkflowConfigsRequest(request)
1503
+ self._response = response
1504
+ self._retry = retry
1505
+ self._timeout = timeout
1506
+ self._metadata = metadata
1507
+
1508
+ def __getattr__(self, name: str) -> Any:
1509
+ return getattr(self._response, name)
1510
+
1511
+ @property
1512
+ def pages(self) -> Iterator[dataform.ListWorkflowConfigsResponse]:
1513
+ yield self._response
1514
+ while self._response.next_page_token:
1515
+ self._request.page_token = self._response.next_page_token
1516
+ self._response = self._method(
1517
+ self._request,
1518
+ retry=self._retry,
1519
+ timeout=self._timeout,
1520
+ metadata=self._metadata,
1521
+ )
1522
+ yield self._response
1523
+
1524
+ def __iter__(self) -> Iterator[dataform.WorkflowConfig]:
1525
+ for page in self.pages:
1526
+ yield from page.workflow_configs
1527
+
1528
+ def __repr__(self) -> str:
1529
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1530
+
1531
+
1532
+ class ListWorkflowConfigsAsyncPager:
1533
+ """A pager for iterating through ``list_workflow_configs`` requests.
1534
+
1535
+ This class thinly wraps an initial
1536
+ :class:`google.cloud.dataform_v1beta1.types.ListWorkflowConfigsResponse` object, and
1537
+ provides an ``__aiter__`` method to iterate through its
1538
+ ``workflow_configs`` field.
1539
+
1540
+ If there are more pages, the ``__aiter__`` method will make additional
1541
+ ``ListWorkflowConfigs`` requests and continue to iterate
1542
+ through the ``workflow_configs`` field on the
1543
+ corresponding responses.
1544
+
1545
+ All the usual :class:`google.cloud.dataform_v1beta1.types.ListWorkflowConfigsResponse`
1546
+ attributes are available on the pager. If multiple requests are made, only
1547
+ the most recent response is retained, and thus used for attribute lookup.
1548
+ """
1549
+
1550
+ def __init__(
1551
+ self,
1552
+ method: Callable[..., Awaitable[dataform.ListWorkflowConfigsResponse]],
1553
+ request: dataform.ListWorkflowConfigsRequest,
1554
+ response: dataform.ListWorkflowConfigsResponse,
1555
+ *,
1556
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
1557
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1558
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1559
+ ):
1560
+ """Instantiates the pager.
1561
+
1562
+ Args:
1563
+ method (Callable): The method that was originally called, and
1564
+ which instantiated this pager.
1565
+ request (google.cloud.dataform_v1beta1.types.ListWorkflowConfigsRequest):
1566
+ The initial request object.
1567
+ response (google.cloud.dataform_v1beta1.types.ListWorkflowConfigsResponse):
1568
+ The initial response object.
1569
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
1570
+ if any, should be retried.
1571
+ timeout (float): The timeout for this request.
1572
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1573
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1574
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1575
+ be of type `bytes`.
1576
+ """
1577
+ self._method = method
1578
+ self._request = dataform.ListWorkflowConfigsRequest(request)
1579
+ self._response = response
1580
+ self._retry = retry
1581
+ self._timeout = timeout
1582
+ self._metadata = metadata
1583
+
1584
+ def __getattr__(self, name: str) -> Any:
1585
+ return getattr(self._response, name)
1586
+
1587
+ @property
1588
+ async def pages(self) -> AsyncIterator[dataform.ListWorkflowConfigsResponse]:
1589
+ yield self._response
1590
+ while self._response.next_page_token:
1591
+ self._request.page_token = self._response.next_page_token
1592
+ self._response = await self._method(
1593
+ self._request,
1594
+ retry=self._retry,
1595
+ timeout=self._timeout,
1596
+ metadata=self._metadata,
1597
+ )
1598
+ yield self._response
1599
+
1600
+ def __aiter__(self) -> AsyncIterator[dataform.WorkflowConfig]:
1601
+ async def async_generator():
1602
+ async for page in self.pages:
1603
+ for response in page.workflow_configs:
1604
+ yield response
1605
+
1606
+ return async_generator()
1607
+
1608
+ def __repr__(self) -> str:
1609
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1610
+
1611
+
1612
+ class ListWorkflowInvocationsPager:
1613
+ """A pager for iterating through ``list_workflow_invocations`` requests.
1614
+
1615
+ This class thinly wraps an initial
1616
+ :class:`google.cloud.dataform_v1beta1.types.ListWorkflowInvocationsResponse` object, and
1617
+ provides an ``__iter__`` method to iterate through its
1618
+ ``workflow_invocations`` field.
1619
+
1620
+ If there are more pages, the ``__iter__`` method will make additional
1621
+ ``ListWorkflowInvocations`` requests and continue to iterate
1622
+ through the ``workflow_invocations`` field on the
1623
+ corresponding responses.
1624
+
1625
+ All the usual :class:`google.cloud.dataform_v1beta1.types.ListWorkflowInvocationsResponse`
1626
+ attributes are available on the pager. If multiple requests are made, only
1627
+ the most recent response is retained, and thus used for attribute lookup.
1628
+ """
1629
+
1630
+ def __init__(
1631
+ self,
1632
+ method: Callable[..., dataform.ListWorkflowInvocationsResponse],
1633
+ request: dataform.ListWorkflowInvocationsRequest,
1634
+ response: dataform.ListWorkflowInvocationsResponse,
1635
+ *,
1636
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
1637
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1638
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1639
+ ):
1640
+ """Instantiate the pager.
1641
+
1642
+ Args:
1643
+ method (Callable): The method that was originally called, and
1644
+ which instantiated this pager.
1645
+ request (google.cloud.dataform_v1beta1.types.ListWorkflowInvocationsRequest):
1646
+ The initial request object.
1647
+ response (google.cloud.dataform_v1beta1.types.ListWorkflowInvocationsResponse):
1648
+ The initial response object.
1649
+ retry (google.api_core.retry.Retry): Designation of what errors,
1650
+ if any, should be retried.
1651
+ timeout (float): The timeout for this request.
1652
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1653
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1654
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1655
+ be of type `bytes`.
1656
+ """
1657
+ self._method = method
1658
+ self._request = dataform.ListWorkflowInvocationsRequest(request)
1659
+ self._response = response
1660
+ self._retry = retry
1661
+ self._timeout = timeout
1662
+ self._metadata = metadata
1663
+
1664
+ def __getattr__(self, name: str) -> Any:
1665
+ return getattr(self._response, name)
1666
+
1667
+ @property
1668
+ def pages(self) -> Iterator[dataform.ListWorkflowInvocationsResponse]:
1669
+ yield self._response
1670
+ while self._response.next_page_token:
1671
+ self._request.page_token = self._response.next_page_token
1672
+ self._response = self._method(
1673
+ self._request,
1674
+ retry=self._retry,
1675
+ timeout=self._timeout,
1676
+ metadata=self._metadata,
1677
+ )
1678
+ yield self._response
1679
+
1680
+ def __iter__(self) -> Iterator[dataform.WorkflowInvocation]:
1681
+ for page in self.pages:
1682
+ yield from page.workflow_invocations
1683
+
1684
+ def __repr__(self) -> str:
1685
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1686
+
1687
+
1688
+ class ListWorkflowInvocationsAsyncPager:
1689
+ """A pager for iterating through ``list_workflow_invocations`` requests.
1690
+
1691
+ This class thinly wraps an initial
1692
+ :class:`google.cloud.dataform_v1beta1.types.ListWorkflowInvocationsResponse` object, and
1693
+ provides an ``__aiter__`` method to iterate through its
1694
+ ``workflow_invocations`` field.
1695
+
1696
+ If there are more pages, the ``__aiter__`` method will make additional
1697
+ ``ListWorkflowInvocations`` requests and continue to iterate
1698
+ through the ``workflow_invocations`` field on the
1699
+ corresponding responses.
1700
+
1701
+ All the usual :class:`google.cloud.dataform_v1beta1.types.ListWorkflowInvocationsResponse`
1702
+ attributes are available on the pager. If multiple requests are made, only
1703
+ the most recent response is retained, and thus used for attribute lookup.
1704
+ """
1705
+
1706
+ def __init__(
1707
+ self,
1708
+ method: Callable[..., Awaitable[dataform.ListWorkflowInvocationsResponse]],
1709
+ request: dataform.ListWorkflowInvocationsRequest,
1710
+ response: dataform.ListWorkflowInvocationsResponse,
1711
+ *,
1712
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
1713
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1714
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1715
+ ):
1716
+ """Instantiates the pager.
1717
+
1718
+ Args:
1719
+ method (Callable): The method that was originally called, and
1720
+ which instantiated this pager.
1721
+ request (google.cloud.dataform_v1beta1.types.ListWorkflowInvocationsRequest):
1722
+ The initial request object.
1723
+ response (google.cloud.dataform_v1beta1.types.ListWorkflowInvocationsResponse):
1724
+ The initial response object.
1725
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
1726
+ if any, should be retried.
1727
+ timeout (float): The timeout for this request.
1728
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1729
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1730
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1731
+ be of type `bytes`.
1732
+ """
1733
+ self._method = method
1734
+ self._request = dataform.ListWorkflowInvocationsRequest(request)
1735
+ self._response = response
1736
+ self._retry = retry
1737
+ self._timeout = timeout
1738
+ self._metadata = metadata
1739
+
1740
+ def __getattr__(self, name: str) -> Any:
1741
+ return getattr(self._response, name)
1742
+
1743
+ @property
1744
+ async def pages(self) -> AsyncIterator[dataform.ListWorkflowInvocationsResponse]:
1745
+ yield self._response
1746
+ while self._response.next_page_token:
1747
+ self._request.page_token = self._response.next_page_token
1748
+ self._response = await self._method(
1749
+ self._request,
1750
+ retry=self._retry,
1751
+ timeout=self._timeout,
1752
+ metadata=self._metadata,
1753
+ )
1754
+ yield self._response
1755
+
1756
+ def __aiter__(self) -> AsyncIterator[dataform.WorkflowInvocation]:
1757
+ async def async_generator():
1758
+ async for page in self.pages:
1759
+ for response in page.workflow_invocations:
1760
+ yield response
1761
+
1762
+ return async_generator()
1763
+
1764
+ def __repr__(self) -> str:
1765
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1766
+
1767
+
1768
+ class QueryWorkflowInvocationActionsPager:
1769
+ """A pager for iterating through ``query_workflow_invocation_actions`` requests.
1770
+
1771
+ This class thinly wraps an initial
1772
+ :class:`google.cloud.dataform_v1beta1.types.QueryWorkflowInvocationActionsResponse` object, and
1773
+ provides an ``__iter__`` method to iterate through its
1774
+ ``workflow_invocation_actions`` field.
1775
+
1776
+ If there are more pages, the ``__iter__`` method will make additional
1777
+ ``QueryWorkflowInvocationActions`` requests and continue to iterate
1778
+ through the ``workflow_invocation_actions`` field on the
1779
+ corresponding responses.
1780
+
1781
+ All the usual :class:`google.cloud.dataform_v1beta1.types.QueryWorkflowInvocationActionsResponse`
1782
+ attributes are available on the pager. If multiple requests are made, only
1783
+ the most recent response is retained, and thus used for attribute lookup.
1784
+ """
1785
+
1786
+ def __init__(
1787
+ self,
1788
+ method: Callable[..., dataform.QueryWorkflowInvocationActionsResponse],
1789
+ request: dataform.QueryWorkflowInvocationActionsRequest,
1790
+ response: dataform.QueryWorkflowInvocationActionsResponse,
1791
+ *,
1792
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
1793
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1794
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1795
+ ):
1796
+ """Instantiate the pager.
1797
+
1798
+ Args:
1799
+ method (Callable): The method that was originally called, and
1800
+ which instantiated this pager.
1801
+ request (google.cloud.dataform_v1beta1.types.QueryWorkflowInvocationActionsRequest):
1802
+ The initial request object.
1803
+ response (google.cloud.dataform_v1beta1.types.QueryWorkflowInvocationActionsResponse):
1804
+ The initial response object.
1805
+ retry (google.api_core.retry.Retry): Designation of what errors,
1806
+ if any, should be retried.
1807
+ timeout (float): The timeout for this request.
1808
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1809
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1810
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1811
+ be of type `bytes`.
1812
+ """
1813
+ self._method = method
1814
+ self._request = dataform.QueryWorkflowInvocationActionsRequest(request)
1815
+ self._response = response
1816
+ self._retry = retry
1817
+ self._timeout = timeout
1818
+ self._metadata = metadata
1819
+
1820
+ def __getattr__(self, name: str) -> Any:
1821
+ return getattr(self._response, name)
1822
+
1823
+ @property
1824
+ def pages(self) -> Iterator[dataform.QueryWorkflowInvocationActionsResponse]:
1825
+ yield self._response
1826
+ while self._response.next_page_token:
1827
+ self._request.page_token = self._response.next_page_token
1828
+ self._response = self._method(
1829
+ self._request,
1830
+ retry=self._retry,
1831
+ timeout=self._timeout,
1832
+ metadata=self._metadata,
1833
+ )
1834
+ yield self._response
1835
+
1836
+ def __iter__(self) -> Iterator[dataform.WorkflowInvocationAction]:
1837
+ for page in self.pages:
1838
+ yield from page.workflow_invocation_actions
1839
+
1840
+ def __repr__(self) -> str:
1841
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
1842
+
1843
+
1844
+ class QueryWorkflowInvocationActionsAsyncPager:
1845
+ """A pager for iterating through ``query_workflow_invocation_actions`` requests.
1846
+
1847
+ This class thinly wraps an initial
1848
+ :class:`google.cloud.dataform_v1beta1.types.QueryWorkflowInvocationActionsResponse` object, and
1849
+ provides an ``__aiter__`` method to iterate through its
1850
+ ``workflow_invocation_actions`` field.
1851
+
1852
+ If there are more pages, the ``__aiter__`` method will make additional
1853
+ ``QueryWorkflowInvocationActions`` requests and continue to iterate
1854
+ through the ``workflow_invocation_actions`` field on the
1855
+ corresponding responses.
1856
+
1857
+ All the usual :class:`google.cloud.dataform_v1beta1.types.QueryWorkflowInvocationActionsResponse`
1858
+ attributes are available on the pager. If multiple requests are made, only
1859
+ the most recent response is retained, and thus used for attribute lookup.
1860
+ """
1861
+
1862
+ def __init__(
1863
+ self,
1864
+ method: Callable[
1865
+ ..., Awaitable[dataform.QueryWorkflowInvocationActionsResponse]
1866
+ ],
1867
+ request: dataform.QueryWorkflowInvocationActionsRequest,
1868
+ response: dataform.QueryWorkflowInvocationActionsResponse,
1869
+ *,
1870
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
1871
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1872
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
1873
+ ):
1874
+ """Instantiates the pager.
1875
+
1876
+ Args:
1877
+ method (Callable): The method that was originally called, and
1878
+ which instantiated this pager.
1879
+ request (google.cloud.dataform_v1beta1.types.QueryWorkflowInvocationActionsRequest):
1880
+ The initial request object.
1881
+ response (google.cloud.dataform_v1beta1.types.QueryWorkflowInvocationActionsResponse):
1882
+ The initial response object.
1883
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
1884
+ if any, should be retried.
1885
+ timeout (float): The timeout for this request.
1886
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1887
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1888
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1889
+ be of type `bytes`.
1890
+ """
1891
+ self._method = method
1892
+ self._request = dataform.QueryWorkflowInvocationActionsRequest(request)
1893
+ self._response = response
1894
+ self._retry = retry
1895
+ self._timeout = timeout
1896
+ self._metadata = metadata
1897
+
1898
+ def __getattr__(self, name: str) -> Any:
1899
+ return getattr(self._response, name)
1900
+
1901
+ @property
1902
+ async def pages(
1903
+ self,
1904
+ ) -> AsyncIterator[dataform.QueryWorkflowInvocationActionsResponse]:
1905
+ yield self._response
1906
+ while self._response.next_page_token:
1907
+ self._request.page_token = self._response.next_page_token
1908
+ self._response = await self._method(
1909
+ self._request,
1910
+ retry=self._retry,
1911
+ timeout=self._timeout,
1912
+ metadata=self._metadata,
1913
+ )
1914
+ yield self._response
1915
+
1916
+ def __aiter__(self) -> AsyncIterator[dataform.WorkflowInvocationAction]:
1917
+ async def async_generator():
1918
+ async for page in self.pages:
1919
+ for response in page.workflow_invocation_actions:
1920
+ yield response
1921
+
1922
+ return async_generator()
1923
+
1924
+ def __repr__(self) -> str:
1925
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)