airflow.providers.google.cloud.operators.life_sciences

與 Google Cloud Life Sciences 服務互動的 Operators。

LifeSciencesRunPipelineOperator

執行 Life Sciences Pipeline。

模組內容

class airflow.providers.google.cloud.operators.life_sciences.LifeSciencesRunPipelineOperator(*, body, location, project_id=PROVIDE_PROJECT_ID, gcp_conn_id='google_cloud_default', api_version='v2beta', impersonation_chain=None, **kwargs)[source]

Bases: airflow.providers.google.cloud.operators.cloud_base.GoogleCloudBaseOperator

執行 Life Sciences Pipeline。

警告

此 Operator 已被棄用。請考慮改用 Google Cloud Batch Operators。Life Sciences API(beta 版)將於 2025 年 7 月 8 日停用,取而代之的是 Google Cloud Batch。

另請參閱

有關如何使用此 Operator 的更多資訊,請參閱指南:執行 Pipeline

引數:
  • body (dict) – 請求體

  • location (str) – 專案所在區域

  • project_id (str) – Google Cloud 專案 ID;如果為 None,則使用預設專案 ID。

  • gcp_conn_id (str) – 用於連線到 Google Cloud 的連線 ID。

  • api_version (str) – 使用的 API 版本(例如 v2beta)。

  • impersonation_chain (str | collections.abc.Sequence[str] | None) – 可選的服務帳號,用於使用短期憑據進行模擬;或者是一系列帳號鏈,需要獲取列表中最後一個帳號的 access_token,該帳號將在請求中被模擬。如果設定為字串,該帳號必須向原始帳號授予 Service Account Token Creator IAM 角色。如果設定為 sequence,列表中的身份必須向直接前一個身份授予 Service Account Token Creator IAM 角色,列表中第一個帳號向原始帳號授予此角色(模板化)。

template_fields: collections.abc.Sequence[str] = ('body', 'gcp_conn_id', 'api_version', 'impersonation_chain')[source]
body[source]
location[source]
project_id = None[source]
gcp_conn_id = 'google_cloud_default'[source]
api_version = 'v2beta'[source]
impersonation_chain = None[source]
execute(context)[source]

建立 Operator 時派生。

Context 是與渲染 jinja 模板時使用的相同的字典。

請參考 get_template_context 獲取更多 context。

此條目是否有用?