airflow.providers.samba.hooks.samba¶
Classes¶
Allows for interaction with a Samba server. |
Module Contents¶
- class airflow.providers.samba.hooks.samba.SambaHook(samba_conn_id=default_conn_name, share=None, share_type=None)[source]¶
Bases:
airflow.providers.common.compat.sdk.BaseHookAllows for interaction with a Samba server.
The hook should be used as a context manager in order to correctly set up a session and disconnect open connections upon exit.
- Parameters:
samba_conn_id (str) – The connection id reference.
share (str | None) – An optional share name. If this is unset then the “schema” field of the connection is used in its place.
share_type (Literal['posix', 'windows'] | None) – An optional share type name. If this is unset then it will assume a posix share type.
- open_file(path, mode='r', buffering=-1, encoding=None, errors=None, newline=None, share_access=None, desired_access=None, file_attributes=None, file_type='file')[source]¶