Skip to content

Commit 52fea2e

Browse files
committed
SDK regeneration
1 parent a01d402 commit 52fea2e

9 files changed

Lines changed: 32 additions & 32 deletions

File tree

reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2467,8 +2467,8 @@ client = TrueFoundry(
24672467
)
24682468
response = client.v1.jobs.list_runs(
24692469
job_id="jobId",
2470-
limit=1,
2471-
offset=1,
2470+
limit=10,
2471+
offset=0,
24722472
)
24732473
for item in response:
24742474
yield item
@@ -2498,15 +2498,15 @@ for page in response.iter_pages():
24982498
<dl>
24992499
<dd>
25002500

2501-
**limit:** `int` — Number of items per page
2501+
**limit:** `typing.Optional[int]` — Number of items per page
25022502

25032503
</dd>
25042504
</dl>
25052505

25062506
<dl>
25072507
<dd>
25082508

2509-
**offset:** `int` — Number of items to skip
2509+
**offset:** `typing.Optional[int]` — Number of items to skip
25102510

25112511
</dd>
25122512
</dl>

src/truefoundry_sdk/v1/application_versions/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def list(
9494
for page in response.iter_pages():
9595
yield page
9696
"""
97-
offset = offset if offset is not None else 1
97+
offset = offset if offset is not None else 0
9898
_response = self._raw_client._client_wrapper.httpx_client.request(
9999
f"api/svc/v1/apps/{jsonable_encoder(id)}/deployments",
100100
method="GET",
@@ -272,7 +272,7 @@ async def main() -> None:
272272
273273
asyncio.run(main())
274274
"""
275-
offset = offset if offset is not None else 1
275+
offset = offset if offset is not None else 0
276276
_response = await self._raw_client._client_wrapper.httpx_client.request(
277277
f"api/svc/v1/apps/{jsonable_encoder(id)}/deployments",
278278
method="GET",

src/truefoundry_sdk/v1/applications/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def list(
137137
for page in response.iter_pages():
138138
yield page
139139
"""
140-
offset = offset if offset is not None else 1
140+
offset = offset if offset is not None else 0
141141
_response = self._raw_client._client_wrapper.httpx_client.request(
142142
"api/svc/v1/apps",
143143
method="GET",
@@ -563,7 +563,7 @@ async def main() -> None:
563563
564564
asyncio.run(main())
565565
"""
566-
offset = offset if offset is not None else 1
566+
offset = offset if offset is not None else 0
567567
_response = await self._raw_client._client_wrapper.httpx_client.request(
568568
"api/svc/v1/apps",
569569
method="GET",

src/truefoundry_sdk/v1/clusters/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def list(
8484
for page in response.iter_pages():
8585
yield page
8686
"""
87-
offset = offset if offset is not None else 1
87+
offset = offset if offset is not None else 0
8888
_response = self._raw_client._client_wrapper.httpx_client.request(
8989
"api/svc/v1/clusters",
9090
method="GET",
@@ -397,7 +397,7 @@ async def main() -> None:
397397
398398
asyncio.run(main())
399399
"""
400-
offset = offset if offset is not None else 1
400+
offset = offset if offset is not None else 0
401401
_response = await self._raw_client._client_wrapper.httpx_client.request(
402402
"api/svc/v1/clusters",
403403
method="GET",

src/truefoundry_sdk/v1/environments/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def list(
7979
for page in response.iter_pages():
8080
yield page
8181
"""
82-
offset = offset if offset is not None else 1
82+
offset = offset if offset is not None else 0
8383
_response = self._raw_client._client_wrapper.httpx_client.request(
8484
"api/svc/v1/environments",
8585
method="GET",
@@ -296,7 +296,7 @@ async def main() -> None:
296296
297297
asyncio.run(main())
298298
"""
299-
offset = offset if offset is not None else 1
299+
offset = offset if offset is not None else 0
300300
_response = await self._raw_client._client_wrapper.httpx_client.request(
301301
"api/svc/v1/environments",
302302
method="GET",

src/truefoundry_sdk/v1/jobs/client.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def list_runs(
5050
self,
5151
job_id: str,
5252
*,
53-
limit: int,
54-
offset: int,
53+
limit: typing.Optional[int] = None,
54+
offset: typing.Optional[int] = None,
5555
search_prefix: typing.Optional[str] = None,
5656
sort_by: typing.Optional[JobRunsSortBy] = None,
5757
order: typing.Optional[JobRunsSortDirection] = None,
@@ -67,10 +67,10 @@ def list_runs(
6767
job_id : str
6868
Job id of the application
6969
70-
limit : int
70+
limit : typing.Optional[int]
7171
Number of items per page
7272
73-
offset : int
73+
offset : typing.Optional[int]
7474
Number of items to skip
7575
7676
search_prefix : typing.Optional[str]
@@ -106,16 +106,16 @@ def list_runs(
106106
)
107107
response = client.v1.jobs.list_runs(
108108
job_id="jobId",
109-
limit=1,
110-
offset=1,
109+
limit=10,
110+
offset=0,
111111
)
112112
for item in response:
113113
yield item
114114
# alternatively, you can paginate page-by-page
115115
for page in response.iter_pages():
116116
yield page
117117
"""
118-
offset = offset if offset is not None else 1
118+
offset = offset if offset is not None else 0
119119
_response = self._raw_client._client_wrapper.httpx_client.request(
120120
f"api/svc/v1/jobs/{jsonable_encoder(job_id)}/runs",
121121
method="GET",
@@ -369,8 +369,8 @@ async def list_runs(
369369
self,
370370
job_id: str,
371371
*,
372-
limit: int,
373-
offset: int,
372+
limit: typing.Optional[int] = None,
373+
offset: typing.Optional[int] = None,
374374
search_prefix: typing.Optional[str] = None,
375375
sort_by: typing.Optional[JobRunsSortBy] = None,
376376
order: typing.Optional[JobRunsSortDirection] = None,
@@ -386,10 +386,10 @@ async def list_runs(
386386
job_id : str
387387
Job id of the application
388388
389-
limit : int
389+
limit : typing.Optional[int]
390390
Number of items per page
391391
392-
offset : int
392+
offset : typing.Optional[int]
393393
Number of items to skip
394394
395395
search_prefix : typing.Optional[str]
@@ -430,8 +430,8 @@ async def list_runs(
430430
async def main() -> None:
431431
response = await client.v1.jobs.list_runs(
432432
job_id="jobId",
433-
limit=1,
434-
offset=1,
433+
limit=10,
434+
offset=0,
435435
)
436436
async for item in response:
437437
yield item
@@ -442,7 +442,7 @@ async def main() -> None:
442442
443443
asyncio.run(main())
444444
"""
445-
offset = offset if offset is not None else 1
445+
offset = offset if offset is not None else 0
446446
_response = await self._raw_client._client_wrapper.httpx_client.request(
447447
f"api/svc/v1/jobs/{jsonable_encoder(job_id)}/runs",
448448
method="GET",

src/truefoundry_sdk/v1/secret_groups/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def list(
102102
for page in response.iter_pages():
103103
yield page
104104
"""
105-
offset = offset if offset is not None else 1
105+
offset = offset if offset is not None else 0
106106
_response = self._raw_client._client_wrapper.httpx_client.request(
107107
"api/svc/v1/secret-groups",
108108
method="GET",
@@ -428,7 +428,7 @@ async def main() -> None:
428428
429429
asyncio.run(main())
430430
"""
431-
offset = offset if offset is not None else 1
431+
offset = offset if offset is not None else 0
432432
_response = await self._raw_client._client_wrapper.httpx_client.request(
433433
"api/svc/v1/secret-groups",
434434
method="GET",

src/truefoundry_sdk/v1/secrets/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def list(
8888
for page in response.iter_pages():
8989
yield page
9090
"""
91-
offset = offset if offset is not None else 1
91+
offset = offset if offset is not None else 0
9292
_response = self._raw_client._client_wrapper.httpx_client.request(
9393
"api/svc/v1/secrets",
9494
method="POST",
@@ -281,7 +281,7 @@ async def main() -> None:
281281
282282
asyncio.run(main())
283283
"""
284-
offset = offset if offset is not None else 1
284+
offset = offset if offset is not None else 0
285285
_response = await self._raw_client._client_wrapper.httpx_client.request(
286286
"api/svc/v1/secrets",
287287
method="POST",

src/truefoundry_sdk/v1/workspaces/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def list(
9292
for page in response.iter_pages():
9393
yield page
9494
"""
95-
offset = offset if offset is not None else 1
95+
offset = offset if offset is not None else 0
9696
_response = self._raw_client._client_wrapper.httpx_client.request(
9797
"api/svc/v1/workspaces",
9898
method="GET",
@@ -324,7 +324,7 @@ async def main() -> None:
324324
325325
asyncio.run(main())
326326
"""
327-
offset = offset if offset is not None else 1
327+
offset = offset if offset is not None else 0
328328
_response = await self._raw_client._client_wrapper.httpx_client.request(
329329
"api/svc/v1/workspaces",
330330
method="GET",

0 commit comments

Comments
 (0)