|
25 | 25 | runtime_dependency, |
26 | 26 | OptionalDependency, |
27 | 27 | ) |
| 28 | +from ads.common.decorator.deprecate import deprecated |
28 | 29 |
|
29 | 30 | from oci.data_flow.models import ( |
30 | 31 | CreateApplicationDetails, |
@@ -60,6 +61,7 @@ class SPARK_VERSION(str): |
60 | 61 |
|
61 | 62 |
|
62 | 63 | class DataFlow: |
| 64 | + @deprecated("2.6.3") |
63 | 65 | def __init__( |
64 | 66 | self, |
65 | 67 | compartment_id=None, |
@@ -947,6 +949,7 @@ def load_app( |
947 | 949 |
|
948 | 950 |
|
949 | 951 | class DataFlowApp(DataFlow): |
| 952 | + @deprecated("2.6.3") |
950 | 953 | def __init__(self, app_config, app_response, app_dir, oci_link, **kwargs): |
951 | 954 | super().__init__(compartment_id=app_config["compartment_id"], **kwargs) |
952 | 955 | self._config = app_config |
@@ -1386,6 +1389,7 @@ def get_run(self, run_id: str): |
1386 | 1389 |
|
1387 | 1390 |
|
1388 | 1391 | class RunObserver: |
| 1392 | + @deprecated("2.6.3") |
1389 | 1393 | def __init__(self, app, run_config, save_log_to_local): |
1390 | 1394 | self.app = app |
1391 | 1395 | self._config = run_config |
@@ -1571,6 +1575,7 @@ def oci_link(self) -> object: |
1571 | 1575 | class DataFlowRun(DataFlow): |
1572 | 1576 | LOG_OUTPUTS = ["stdout", "stderr"] |
1573 | 1577 |
|
| 1578 | + @deprecated("2.6.3") |
1574 | 1579 | def __init__( |
1575 | 1580 | self, run_config, run_response, save_log_to_local, local_dir, **kwargs |
1576 | 1581 | ): |
@@ -1739,6 +1744,7 @@ def _repr_html_(self): |
1739 | 1744 |
|
1740 | 1745 |
|
1741 | 1746 | class DataFlowLog: |
| 1747 | + @deprecated("2.6.3") |
1742 | 1748 | def __init__(self, text, oci_path, log_local_dir): |
1743 | 1749 | self.text = str(text) |
1744 | 1750 | self._oci_path = oci_path |
|
0 commit comments