Skip to content

Commit

Permalink
Revert "Delete deprecated AutoML operators and deprecate AutoML hook …
Browse files Browse the repository at this point in the history
…and links (#38418)" (#38633)

This reverts commit 4a4eee1
  • Loading branch information
shahar1 committed Apr 2, 2024
1 parent 0010bf1 commit c443971
Show file tree
Hide file tree
Showing 18 changed files with 3,643 additions and 267 deletions.
758 changes: 610 additions & 148 deletions airflow/providers/google/cloud/hooks/automl.py

Large diffs are not rendered by default.

17 changes: 1 addition & 16 deletions airflow/providers/google/cloud/links/automl.py
Expand Up @@ -19,28 +19,13 @@

from __future__ import annotations

import warnings
from typing import TYPE_CHECKING, Any
from typing import TYPE_CHECKING

from airflow.exceptions import AirflowProviderDeprecationWarning
from airflow.providers.google.cloud.links.base import BaseGoogleLink

if TYPE_CHECKING:
from airflow.utils.context import Context


def __getattr__(name: str) -> Any:
warnings.warn(
(
"AutoML links module have been deprecated and will be removed in the next MAJOR release."
" Please use equivalent Vertex AI links instead"
),
AirflowProviderDeprecationWarning,
stacklevel=2,
)
return getattr(__name__, name)


AUTOML_BASE_LINK = "https://console.cloud.google.com/automl-tables"
AUTOML_DATASET_LINK = (
AUTOML_BASE_LINK + "/locations/{location}/datasets/{dataset_id}/schemav2?project={project_id}"
Expand Down

0 comments on commit c443971

Please sign in to comment.