@@ -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" ,
0 commit comments