Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions providers/samba/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,18 @@ transfers:
connection-types:
- hook-class-name: airflow.providers.samba.hooks.samba.SambaHook
connection-type: samba
conn-fields:
share_type:
label: Share Type
schema:
type:
- string
- 'null'
default: posix
description: >-
The share OS type (`posix` or `windows`).
Used to determine the formatting of file and folder paths.
ui-field-behaviour:
hidden-fields: []
relabeling:
schema: Share
13 changes: 12 additions & 1 deletion providers/samba/src/airflow/providers/samba/get_provider_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ def get_provider_info():
}
],
"connection-types": [
{"hook-class-name": "airflow.providers.samba.hooks.samba.SambaHook", "connection-type": "samba"}
{
"hook-class-name": "airflow.providers.samba.hooks.samba.SambaHook",
"connection-type": "samba",
"conn-fields": {
"share_type": {
"label": "Share Type",
"schema": {"type": ["string", "null"], "default": "posix"},
"description": "The share OS type (`posix` or `windows`). Used to determine the formatting of file and folder paths.",
}
},
"ui-field-behaviour": {"hidden-fields": [], "relabeling": {"schema": "Share"}},
}
],
}
Loading