@@ -54,6 +54,18 @@ async def create_job_definition(
5454 job_timeout : Optional [str ] = None ,
5555 ) -> JobDefinition :
5656 """
57+ Create a new job definition in a specified Project.
58+ :param region: Region to target. If none is passed will use default region from the config.
59+ :param name: Name of the job definition.
60+ :param cpu_limit: CPU limit of the job.
61+ :param memory_limit: Memory limit of the job.
62+ :param image_uri: Image to use for the job.
63+ :param command: Startup command.
64+ :param project_id: UUID of the Scaleway Project containing the job.
65+ :param environment_variables: Environment variables of the job.
66+ :param description: Description of the job.
67+ :param job_timeout: Timeout of the job in seconds.
68+ :return: :class:`JobDefinition <JobDefinition>`
5769
5870 Usage:
5971 ::
@@ -101,6 +113,10 @@ async def get_job_definition(
101113 region : Optional [Region ] = None ,
102114 ) -> JobDefinition :
103115 """
116+ Get a job definition by its unique identifier.
117+ :param region: Region to target. If none is passed will use default region from the config.
118+ :param job_definition_id: UUID of the job definition to get.
119+ :return: :class:`JobDefinition <JobDefinition>`
104120
105121 Usage:
106122 ::
@@ -133,6 +149,13 @@ async def list_job_definitions(
133149 project_id : Optional [str ] = None ,
134150 ) -> ListJobDefinitionsResponse :
135151 """
152+ List all your job definitions with filters.
153+ :param region: Region to target. If none is passed will use default region from the config.
154+ :param page:
155+ :param page_size:
156+ :param order_by:
157+ :param project_id:
158+ :return: :class:`ListJobDefinitionsResponse <ListJobDefinitionsResponse>`
136159
137160 Usage:
138161 ::
@@ -168,6 +191,12 @@ async def list_job_definitions_all(
168191 project_id : Optional [str ] = None ,
169192 ) -> List [JobDefinition ]:
170193 """
194+ List all your job definitions with filters.
195+ :param region: Region to target. If none is passed will use default region from the config.
196+ :param page:
197+ :param page_size:
198+ :param order_by:
199+ :param project_id:
171200 :return: :class:`List[ListJobDefinitionsResponse] <List[ListJobDefinitionsResponse]>`
172201
173202 Usage:
@@ -204,6 +233,18 @@ async def update_job_definition(
204233 job_timeout : Optional [str ] = None ,
205234 ) -> JobDefinition :
206235 """
236+ Update an existing job definition associated with the specified unique identifier.
237+ :param region: Region to target. If none is passed will use default region from the config.
238+ :param job_definition_id: UUID of the job definition to update.
239+ :param name: Name of the job definition.
240+ :param cpu_limit: CPU limit of the job.
241+ :param memory_limit: Memory limit of the job.
242+ :param image_uri: Image to use for the job.
243+ :param command: Startup command.
244+ :param environment_variables: Environment variables of the job.
245+ :param description: Description of the job.
246+ :param job_timeout: Timeout of the job in seconds.
247+ :return: :class:`JobDefinition <JobDefinition>`
207248
208249 Usage:
209250 ::
@@ -248,6 +289,9 @@ async def delete_job_definition(
248289 region : Optional [Region ] = None ,
249290 ) -> Optional [None ]:
250291 """
292+ Delete an exsisting job definition by its unique identifier.
293+ :param region: Region to target. If none is passed will use default region from the config.
294+ :param job_definition_id: UUID of the job definition to delete.
251295
252296 Usage:
253297 ::
@@ -277,6 +321,10 @@ async def start_job_definition(
277321 region : Optional [Region ] = None ,
278322 ) -> JobRun :
279323 """
324+ Run an existing job definition by its unique identifier. This will create a new job run.
325+ :param region: Region to target. If none is passed will use default region from the config.
326+ :param job_definition_id: UUID of the job definition to start.
327+ :return: :class:`JobRun <JobRun>`
280328
281329 Usage:
282330 ::
@@ -306,6 +354,10 @@ async def get_job_run(
306354 region : Optional [Region ] = None ,
307355 ) -> JobRun :
308356 """
357+ Get a job run by its unique identifier.
358+ :param region: Region to target. If none is passed will use default region from the config.
359+ :param job_run_id: UUID of the job run to get.
360+ :return: :class:`JobRun <JobRun>`
309361
310362 Usage:
311363 ::
@@ -333,6 +385,10 @@ async def stop_job_run(
333385 region : Optional [Region ] = None ,
334386 ) -> JobRun :
335387 """
388+ Stop a job run by its unique identifier.
389+ :param region: Region to target. If none is passed will use default region from the config.
390+ :param job_run_id: UUID of the job run to stop.
391+ :return: :class:`JobRun <JobRun>`
336392
337393 Usage:
338394 ::
@@ -364,6 +420,14 @@ async def list_job_runs(
364420 project_id : Optional [str ] = None ,
365421 ) -> ListJobRunsResponse :
366422 """
423+ List all job runs with filters.
424+ :param region: Region to target. If none is passed will use default region from the config.
425+ :param page:
426+ :param page_size:
427+ :param order_by:
428+ :param job_definition_id:
429+ :param project_id:
430+ :return: :class:`ListJobRunsResponse <ListJobRunsResponse>`
367431
368432 Usage:
369433 ::
@@ -401,6 +465,13 @@ async def list_job_runs_all(
401465 project_id : Optional [str ] = None ,
402466 ) -> List [JobRun ]:
403467 """
468+ List all job runs with filters.
469+ :param region: Region to target. If none is passed will use default region from the config.
470+ :param page:
471+ :param page_size:
472+ :param order_by:
473+ :param job_definition_id:
474+ :param project_id:
404475 :return: :class:`List[ListJobRunsResponse] <List[ListJobRunsResponse]>`
405476
406477 Usage:
0 commit comments