You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add input artifact when creating a pipeline (#1593)
* Add input artifact
* Add input artifact
* Add unit tests
* Add the example on docstring
* update the unit tests
* fix the key
* update unit test
* update the docstring to be more accurate
* update the docstring
* fix unit test
* fix unit test
* fix lint
Co-authored-by: Jaycee Li <[email protected]>
Copy file name to clipboardExpand all lines: google/cloud/aiplatform/pipeline_jobs.py
+15
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,7 @@ def __init__(
110
110
job_id: Optional[str] =None,
111
111
pipeline_root: Optional[str] =None,
112
112
parameter_values: Optional[Dict[str, Any]] =None,
113
+
input_artifacts: Optional[Dict[str, str]] =None,
113
114
enable_caching: Optional[bool] =None,
114
115
encryption_spec_key_name: Optional[str] =None,
115
116
labels: Optional[Dict[str, str]] =None,
@@ -139,6 +140,9 @@ def __init__(
139
140
parameter_values (Dict[str, Any]):
140
141
Optional. The mapping from runtime parameter names to its values that
141
142
control the pipeline run.
143
+
input_artifacts (Dict[str, str]):
144
+
Optional. The mapping from the runtime parameter name for this artifact to its resource id.
145
+
For example: "vertex_model":"456". Note: full resource name ("projects/123/locations/us-central1/metadataStores/default/artifacts/456") cannot be used.
Optional. The mapping from runtime parameter names to its values that
686
693
control the pipeline run. Defaults to be the same values as original
687
694
PipelineJob.
695
+
input_artifacts (Dict[str, str]):
696
+
Optional. The mapping from the runtime parameter name for this artifact to its resource id. Defaults to be the same values as original
697
+
PipelineJob. For example: "vertex_model":"456". Note: full resource name ("projects/123/locations/us-central1/metadataStores/default/artifacts/456") cannot be used.
688
698
enable_caching (bool):
689
699
Optional. Whether to turn on caching for the run.
690
700
If this is not set, defaults to be the same as original pipeline.
Optional. The mapping from runtime parameter names to its values that
829
841
control the pipeline run.
842
+
input_artifacts (Dict[str, str]):
843
+
Optional. The mapping from the runtime parameter name for this artifact to its resource id. For example: "vertex_model":"456". Note: full resource name ("projects/123/locations/us-central1/metadataStores/default/artifacts/456") cannot be used.
830
844
output_artifacts_gcs_dir (str):
831
845
Optional. The GCS location of the pipeline outputs.
832
846
A GCS bucket for artifacts will be created if not specified.
0 commit comments