@@ -383,7 +383,14 @@ def create(self, **kwargs) -> "Job":
383383 return self
384384
385385 def run (
386- self , name = None , args = None , env_var = None , freeform_tags = None , wait = False
386+ self ,
387+ name = None ,
388+ args = None ,
389+ env_var = None ,
390+ freeform_tags = None ,
391+ defined_tags = None ,
392+ wait = False ,
393+ ** kwargs
387394 ) -> Union [DataScienceJobRun , DataFlowRun ]:
388395 """Runs the job.
389396
@@ -404,11 +411,15 @@ def run(
404411 Additional environment variables for the job run, by default None
405412 freeform_tags : dict, optional
406413 Freeform tags for the job run, by default None
414+ defined_tags : dict, optional
415+ Defined tags for the job run, by default None
407416 wait : bool, optional
408417 Indicate if this method call should wait for the job run.
409418 By default False, this method returns as soon as the job run is created.
410419 If this is set to True, this method will stream the job logs and wait until it finishes,
411420 similar to `job.run().watch()`.
421+ kwargs
422+ additional keyword arguments
412423
413424 Returns
414425 -------
@@ -423,7 +434,8 @@ def run(
423434 name="<my_job_run_name>",
424435 args="new_arg --new_key new_val",
425436 env_var={"new_env": "new_val"},
426- freeform_tags={"new_tag": "new_tag_val"}
437+ freeform_tags={"new_tag": "new_tag_val"},
438+ defined_tags={"Operations": {"CostCenter": "42"}}
427439 )
428440
429441 """
@@ -432,7 +444,9 @@ def run(
432444 args = args ,
433445 env_var = env_var ,
434446 freeform_tags = freeform_tags ,
447+ defined_tags = defined_tags ,
435448 wait = wait ,
449+ ** kwargs
436450 )
437451
438452 def run_list (self , ** kwargs ) -> list :
0 commit comments