Skip to content

Commit 6b2bf6a

Browse files
fix(iam): inject default limit on users list to ensure paginated response
The IAM users list endpoint returns a flat array when no limit/offset is provided, breaking SDK pagination. This defaults limit to 50 so the API always returns the paginated envelope with count/results.
1 parent 24bb358 commit 6b2bf6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gcore/resources/iam/users.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def update(
111111
def list(
112112
self,
113113
*,
114-
limit: int | Omit = omit,
114+
limit: int | Omit = 50,
115115
offset: int | Omit = omit,
116116
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
117117
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -368,7 +368,7 @@ async def update(
368368
def list(
369369
self,
370370
*,
371-
limit: int | Omit = omit,
371+
limit: int | Omit = 50,
372372
offset: int | Omit = omit,
373373
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
374374
# The extra values given here take precedence over values defined on the client or passed to this method.

0 commit comments

Comments
 (0)