copy_job_definitions#

ProjectApi.copy_job_definitions(job_definitions, wait=True)#

Create job definitions by copying existing job definitions.

Return type:

Union[str, List[str]]

Parameters:
job_definitionsList[JobDefinition]

List of job definitions. Note that only the id field of the JobDefinition objects must be filled. The other fields can be empty.

waitbool

Whether to wait for the copy to complete. The default is True.

Returns:
Union[List[str], str]

If wait=True, returns the list of newly created job definition IDs. If wait=False, returns an operation ID that can be used to track progress.