airflow.providers.google.cloud.transfers.azure_fileshare_to_gcs

Module Contents

Classes

AzureFileShareToGCSOperator

Sync an Azure FileShare directory with a Google Cloud Storage destination path.

class airflow.providers.google.cloud.transfers.azure_fileshare_to_gcs.AzureFileShareToGCSOperator(*, share_name, dest_gcs, directory_name=None, directory_path=None, prefix='', azure_fileshare_conn_id='azure_fileshare_default', gcp_conn_id='google_cloud_default', replace=False, gzip=False, google_impersonation_chain=None, **kwargs)[source]

Bases: airflow.models.BaseOperator

Sync an Azure FileShare directory with a Google Cloud Storage destination path.

Does not include subdirectories. May be filtered by prefix.

Parameters
  • share_name (str) – The Azure FileShare share where to find the objects. (templated)

  • directory_name (str | None) – (Deprecated) Path to Azure FileShare directory which content is to be transferred. Defaults to root directory (templated)

  • directory_path (str | None) – (Optional) Path to Azure FileShare directory which content is to be transferred. Defaults to root directory. Use this instead of directory_name. (templated)

  • prefix (str) – Prefix string which filters objects whose name begin with such prefix. (templated)

  • azure_fileshare_conn_id (str) – The source WASB connection

  • gcp_conn_id (str) – (Optional) The connection ID used to connect to Google Cloud.

  • dest_gcs (str) – The destination Google Cloud Storage bucket and prefix where you want to store the files. (templated)

  • replace (bool) – Whether you want to replace existing destination files or not.

  • gzip (bool) – Option to compress file for upload

  • google_impersonation_chain (str | collections.abc.Sequence[str] | None) – Optional Google service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).

Note that share_name, directory_path, prefix, and dest_gcs are templated, so you can use variables in them if you wish.

template_fields: collections.abc.Sequence[str] = ('share_name', 'directory_name', 'directory_path', 'prefix', 'dest_gcs')[source]
execute(context)[source]

Derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?