Commit 9ba48cc
Paginate all SCIM list requests in the SDK (#440)
## Changes
This PR incorporates two hard-coded changes for the SCIM API in the
Python SDK:
1. startIndex starts at 1 for SCIM APIs, not 0. However, the existing
.Pagination.Increment controls both the start index as well as whether
the pagination is per-page or per-resource. Later, we should replace
this extension with two independent OpenAPI options: `one_indexed`
(defaulting to `false`) and `pagination_basis` (defaulting to `resource`
but can be overridden to `page`).
2. If users don't specify a limit, the SDK will include a hard-coded
limit of 100 resources per request. We could add this to the OpenAPI
spec as an option `default_limit`, which is useful for any non-paginated
APIs that later expose pagination options and allow the SDK to
gracefully support those. However, we don't want to encourage folks to
use this pattern: all new list APIs are required to be paginated from
the start.
## Tests
<!--
How is this tested? Please see the checklist below and also describe any
other relevant tests
-->
- [ ] `make test` run locally
- [ ] `make fmt` applied
- [ ] relevant integration tests applied
---------
Co-authored-by: Xinjie Zheng <[email protected]>1 parent 50c71a1 commit 9ba48cc
File tree
4 files changed
+63
-22
lines changed- .codegen
- databricks/sdk/service
- tests/integration
4 files changed
+63
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
251 | 260 | | |
252 | 261 | | |
253 | 262 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
| 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 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments