airflow.providers.microsoft.azure.hooks.fileshare
¶
Module Contents¶
Classes¶
Interacts with Azure FileShare Storage. |
- class airflow.providers.microsoft.azure.hooks.fileshare.AzureFileShareHook(share_name=None, file_path=None, directory_path=None, azure_fileshare_conn_id='azure_fileshare_default')[source]¶
Bases:
airflow.hooks.base.BaseHook
Interacts with Azure FileShare Storage.
- Parameters
azure_fileshare_conn_id (str) – Reference to the Azure FileShare connection id of an Azure account of which file share should be used.
- classmethod get_connection_form_widgets()[source]¶
Return connection widgets to add to connection form.
- list_directories_and_files()[source]¶
Return the list of directories and files stored on a Azure File Share.
- get_file(file_path, **kwargs)[source]¶
Download a file from Azure File Share.
- Parameters
file_path (str) – Where to store the file.
- get_file_to_stream(stream, **kwargs)[source]¶
Download a file from Azure File Share.
- Parameters
stream (IO) – A filehandle to store the file to.
- load_file(file_path, **kwargs)[source]¶
Upload a file to Azure File Share.
- Parameters
file_path (str) – Path to the file to load.
Was this entry helpful?