Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate obsolete AutoML operators and hooks #38635

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
607 changes: 476 additions & 131 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
Original file line number Diff line number Diff line change
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
Loading
Loading