Skip to content

Commit 03cef2b

Browse files
committed
Update docstring examples.
1 parent d243d7d commit 03cef2b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ads/jobs/ads_job.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ class Job(Builder):
7474
.with_python_path("other_packages")
7575
# Copy files in "code_dir/output" to object storage after job finishes.
7676
.with_output("output", "oci://bucket_name@namespace/path/to/dir")
77+
# Tags
78+
.with_freeform_tag(my_tag="my_value")
79+
.with_defined_tag(**{"Operations": {"CostCenter": "42"}})
7780
)
7881
)
7982
# Create and Run the job

ads/jobs/builders/infrastructure/dsc_job.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,9 @@ class DataScienceJob(Infrastructure):
847847
"dest" : "<destination_directory_name>"
848848
}
849849
)
850+
# Tags
851+
.with_freeform_tag(my_tag="my_value")
852+
.with_defined_tag(**{"Operations": {"CostCenter": "42"}})
850853
)
851854
852855
"""

0 commit comments

Comments
 (0)