azure_system_helpers_7.py 447 B

123456789101112131415
  1. def upload_file_from_string(
  2. cls,
  3. string_data: str,
  4. share_name: str,
  5. azure_fileshare_conn_id: str,
  6. file_name: str,
  7. directory: str,
  8. ):
  9. hook = AzureFileShareHook(azure_fileshare_conn_id=azure_fileshare_conn_id)
  10. hook.load_string(
  11. string_data=string_data,
  12. share_name=share_name,
  13. directory_name=directory,
  14. file_name=file_name,
  15. )