|
17 | 17 |
|
18 | 18 | import datetime
|
19 | 19 | import logging
|
20 |
| -import time |
21 | 20 | import re
|
22 | 21 | import tempfile
|
| 22 | +import time |
23 | 23 | from typing import Any, Callable, Dict, List, Optional, Union
|
24 | 24 |
|
25 | 25 | from google.auth import credentials as auth_credentials
|
|
29 | 29 | from google.cloud.aiplatform import utils
|
30 | 30 | from google.cloud.aiplatform.constants import pipeline as pipeline_constants
|
31 | 31 | from google.cloud.aiplatform.metadata import artifact
|
| 32 | +from google.cloud.aiplatform.metadata import constants as metadata_constants |
32 | 33 | from google.cloud.aiplatform.metadata import context
|
33 | 34 | from google.cloud.aiplatform.metadata import execution
|
34 |
| -from google.cloud.aiplatform.metadata import constants as metadata_constants |
35 | 35 | from google.cloud.aiplatform.metadata import experiment_resources
|
36 | 36 | from google.cloud.aiplatform.metadata import utils as metadata_utils
|
37 | 37 | from google.cloud.aiplatform.utils import gcs_utils
|
38 |
| -from google.cloud.aiplatform.utils import yaml_utils |
39 | 38 | from google.cloud.aiplatform.utils import pipeline_utils
|
40 |
| -from google.protobuf import json_format |
| 39 | +from google.cloud.aiplatform.utils import yaml_utils |
41 | 40 | from google.protobuf import field_mask_pb2 as field_mask
|
| 41 | +from google.protobuf import json_format |
42 | 42 |
|
43 | 43 | from google.cloud.aiplatform.compat.types import (
|
44 | 44 | pipeline_job as gca_pipeline_job,
|
@@ -96,7 +96,6 @@ class PipelineJob(
|
96 | 96 | ),
|
97 | 97 | ),
|
98 | 98 | ):
|
99 |
| - |
100 | 99 | client_class = utils.PipelineJobClientWithOverride
|
101 | 100 | _resource_noun = "pipelineJobs"
|
102 | 101 | _delete_method = "delete_pipeline_job"
|
@@ -443,6 +442,10 @@ def wait(self):
|
443 | 442 | def pipeline_spec(self):
|
444 | 443 | return self._gca_resource.pipeline_spec
|
445 | 444 |
|
| 445 | + @property |
| 446 | + def runtime_config(self) -> gca_pipeline_job.PipelineJob.RuntimeConfig: |
| 447 | + return self._gca_resource.runtime_config |
| 448 | + |
446 | 449 | @property
|
447 | 450 | def state(self) -> Optional[gca_pipeline_state.PipelineState]:
|
448 | 451 | """Current pipeline state."""
|
|
0 commit comments