Source code for

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
"""This module contains Google Dataproc links."""

from __future__ import annotations

import warnings
from typing import TYPE_CHECKING, Any

import attr

from airflow.exceptions import AirflowProviderDeprecationWarning
from airflow.models import BaseOperatorLink, XCom
from import BASE_LINK, BaseGoogleLink

    from airflow.models import BaseOperator
    from airflow.models.taskinstancekey import TaskInstanceKey
    from airflow.utils.context import Context

[docs]def __getattr__(name: str) -> Any: # PEP-562: deprecate module-level variable if name == "DATAPROC_JOB_LOG_LINK": # TODO: remove DATAPROC_JOB_LOG_LINK alias in the next major release # For backward-compatibility, DATAPROC_JOB_LINK was DATAPROC_JOB_LOG_LINK. warnings.warn( ( "DATAPROC_JOB_LOG_LINK has been deprecated and will be removed in the next MAJOR release." " Please use DATAPROC_JOB_LINK instead" ), AirflowProviderDeprecationWarning, stacklevel=2, ) return DATAPROC_JOB_LINK raise AttributeError(f"module {__name__} has no attribute {name}")
@attr.s(auto_attribs=True) @attr.s(auto_attribs=True)

Was this entry helpful?