Skip to content
Merged
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
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
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