Skip to content

Commit 50a8d37

Browse files
shahar1potiuk
authored andcommitted
Revert "Delete deprecated AutoML operators and deprecate AutoML hook and links (#38418)"
This reverts commit 4a4eee1
1 parent eb541ae commit 50a8d37

18 files changed

Lines changed: 3643 additions & 267 deletions

File tree

airflow/providers/google/cloud/hooks/automl.py

Lines changed: 610 additions & 148 deletions
Large diffs are not rendered by default.

airflow/providers/google/cloud/links/automl.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,13 @@
1919

2020
from __future__ import annotations
2121

22-
import warnings
23-
from typing import TYPE_CHECKING, Any
22+
from typing import TYPE_CHECKING
2423

25-
from airflow.exceptions import AirflowProviderDeprecationWarning
2624
from airflow.providers.google.cloud.links.base import BaseGoogleLink
2725

2826
if TYPE_CHECKING:
2927
from airflow.utils.context import Context
3028

31-
32-
def __getattr__(name: str) -> Any:
33-
warnings.warn(
34-
(
35-
"AutoML links module have been deprecated and will be removed in the next MAJOR release."
36-
" Please use equivalent Vertex AI links instead"
37-
),
38-
AirflowProviderDeprecationWarning,
39-
stacklevel=2,
40-
)
41-
return getattr(__name__, name)
42-
43-
4429
AUTOML_BASE_LINK = "https://console.cloud.google.com/automl-tables"
4530
AUTOML_DATASET_LINK = (
4631
AUTOML_BASE_LINK + "/locations/{location}/datasets/{dataset_id}/schemav2?project={project_id}"

0 commit comments

Comments
 (0)