This is an automated email from the ASF dual-hosted git repository.

uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 85085a46deb Migrate samba connection UI metadata to YAML (#62514)
85085a46deb is described below

commit 85085a46deb5fd0d118c7fc7914bb71dda7b96f0
Author: Keisuke Kawamura <[email protected]>
AuthorDate: Sat Feb 28 01:50:56 2026 +0900

    Migrate samba connection UI metadata to YAML (#62514)
    
    Co-authored-by: keisuke-kawamura <[email protected]>
    Co-authored-by: Amogh Desai <[email protected]>
---
 providers/samba/provider.yaml                             | 15 +++++++++++++++
 .../src/airflow/providers/samba/get_provider_info.py      | 13 ++++++++++++-
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/providers/samba/provider.yaml b/providers/samba/provider.yaml
index 4d915c462b8..ba87fc8e5b5 100644
--- a/providers/samba/provider.yaml
+++ b/providers/samba/provider.yaml
@@ -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
diff --git a/providers/samba/src/airflow/providers/samba/get_provider_info.py 
b/providers/samba/src/airflow/providers/samba/get_provider_info.py
index f12ff9f3633..d46471380df 100644
--- a/providers/samba/src/airflow/providers/samba/get_provider_info.py
+++ b/providers/samba/src/airflow/providers/samba/get_provider_info.py
@@ -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"}},
+            }
         ],
     }

Reply via email to