Skip to content

Commit 3b28d64

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
fix: Fix example usage of batch delete pipelinejobs.
PiperOrigin-RevId: 599910083
1 parent 191a1aa commit 3b28d64

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

google/cloud/aiplatform/preview/pipelinejob/pipeline_jobs.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ def batch_delete(
128128
) -> aiplatform_v1beta1.BatchDeletePipelineJobsResponse:
129129
"""
130130
Example Usage:
131-
pipeline_job = aiplatform.PipelineJob(
132-
display_name='job_display_name',
133-
template_path='your_pipeline.yaml',
134-
)
135-
pipeline_job.batch_delete(
131+
aiplatform.init(
132+
project='your_project_name',
133+
location='your_location',
134+
)
135+
aiplatform.PipelineJob.batch_delete(
136136
names=['pipeline_job_name', 'pipeline_job_name2']
137137
)
138138

0 commit comments

Comments
 (0)