Airflow Summit 2025 is coming October 07-09. Register now for early bird ticket!

airflow.providers.google.cloud.links.base

Attributes

BASE_LINK

Classes

BaseGoogleLink

Base class for all Google links.

Module Contents

Bases: airflow.sdk.BaseOperatorLink

Base class for all Google links.

When you inherit this class in a Link class;
  • You can call the persist method to push data to the XCom to use it later in the get_link method.

  • If you have an operator which inherit the GoogleCloudBaseOperator or BaseSensorOperator You can define extra_links_params method in the operator to pass the operator properties to the get_link method.

name: ClassVar[str][source]

Name of the link. This will be the button name on the task UI.

key: ClassVar[str][source]
format_str: ClassVar[str][source]
property xcom_key: str[source]

XCom key with while the whole “link” for this operator link is stored.

On retrieving with this key, the entire link is returned.

Defaults to _link_<class name> if not provided.

classmethod persist(context, **value)[source]

Push arguments to the XCom to use later for link formatting at the get_link method.

Note: for Airflow 2 we need to call this function with context variable only where we have the extra_links_params property method defined

get_config(operator, ti_key)[source]

Link to external system.

Parameters:
Returns:

link to external system

Return type:

str

Was this entry helpful?