Commit 1981951
authored
[Internal] Update Jobs GetRun API to support paginated responses for jobs and ForEach tasks (#1089)
## What changes are proposed in this pull request?
Introduces extension for jobs GetRun call that paginates tasks and
iterations arrays in the response. This change is necessary to prepare
for jobs API 2.2 release that serves paginated response. Pagination is
over once the `next_page_token` is absent from the response. The
pagination logic is not exposed to the customer.
## How is this tested?
Unit test and manual test. I wrote go code that called the new logic and
verified that the returned result contained full object when the API was
paginated.1 parent 776b63c commit 1981951
2 files changed
+405
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments