airflow.providers.airbyte.hooks.airbyte
¶
Module Contents¶
Classes¶
Hook for Airbyte API. |
Attributes¶
- class airflow.providers.airbyte.hooks.airbyte.AirbyteHook(airbyte_conn_id='airbyte_default', api_version='v1', api_type='config')[source]¶
Bases:
airflow.providers.http.hooks.http.HttpHook
Hook for Airbyte API.
- Parameters
airbyte_conn_id (str) – Optional. The name of the Airflow connection to get connection information for Airbyte. Defaults to “airbyte_default”.
api_version (str) – Optional. Airbyte API version. Defaults to “v1”.
api_type (Literal[config, cloud]) – Optional. The type of Airbyte API to use. Either “config” or “cloud”. Defaults to “config”.
- async get_headers_tenants_from_connection()[source]¶
Get Headers, tenants from the connection details.
- async get_job_details(job_id)[source]¶
Use Http async call to retrieve metadata for a specific job of an Airbyte Sync.
- Parameters
job_id (int) – The ID of an Airbyte Sync Job.
- async get_job_status(job_id)[source]¶
Retrieve the status for a specific job of an Airbyte Sync.
- Parameters
job_id (int) – The ID of an Airbyte Sync Job.
- submit_sync_connection(connection_id)[source]¶
Submit a job to a Airbyte server.
- Parameters
connection_id (str) – Required. The ConnectionId of the Airbyte Connection.
- get_job(job_id)[source]¶
Get the resource representation for a job in Airbyte.
- Parameters
job_id (int) – Required. Id of the Airbyte job