@@ -8,44 +8,58 @@ import (
88)
99
1010var (
11+ AccountHostnameField = field .StringField (
12+ "account-hostname" ,
13+ field .WithDescription ("The hostname used to connect to the Databricks account API. If not set, it will be calculated from the hostname field." ),
14+ field .WithDisplayName ("Account Hostname" ),
15+ )
1116 AccountIdField = field .StringField (
1217 "account-id" ,
1318 field .WithDescription ("The Databricks account ID used to connect to the Databricks Account and Workspace API" ),
1419 field .WithRequired (true ),
20+ field .WithDisplayName ("Account ID" ),
1521 )
1622 HostnameField = field .StringField (
1723 "hostname" ,
1824 field .WithDescription ("The Databricks hostname used to connect to the Databricks API" ),
1925 field .WithDefaultValue ("cloud.databricks.com" ),
26+ field .WithDisplayName ("Hostname" ),
2027 )
2128 DatabricksClientIdField = field .StringField (
2229 "databricks-client-id" ,
2330 field .WithDescription ("The Databricks service principal's client ID used to connect to the Databricks Account and Workspace API" ),
31+ field .WithDisplayName ("Databricks Client ID" ),
2432 )
2533 DatabricksClientSecretField = field .StringField (
2634 "databricks-client-secret" ,
2735 field .WithDescription ("The Databricks service principal's client secret used to connect to the Databricks Account and Workspace API" ),
2836 field .WithIsSecret (true ),
37+ field .WithDisplayName ("Databricks Client Secret" ),
2938 )
3039 UsernameField = field .StringField (
3140 "username" ,
3241 field .WithDescription ("The Databricks username used to connect to the Databricks API" ),
42+ field .WithDisplayName ("Username" ),
3343 )
3444 PasswordField = field .StringField (
3545 "password" ,
3646 field .WithDescription ("The Databricks password used to connect to the Databricks API" ),
3747 field .WithIsSecret (true ),
48+ field .WithDisplayName ("Password" ),
3849 )
3950 WorkspacesField = field .StringSliceField (
4051 "workspaces" ,
4152 field .WithDescription ("Limit syncing to the specified workspaces" ),
53+ field .WithDisplayName ("Workspaces" ),
4254 )
4355 TokensField = field .StringSliceField (
4456 "workspace-tokens" ,
4557 field .WithDescription ("The Databricks access tokens scoped to specific workspaces used to connect to the Databricks Workspace API" ),
4658 field .WithIsSecret (true ),
59+ field .WithDisplayName ("Workspace Tokens" ),
4760 )
4861 configFields = []field.SchemaField {
62+ AccountHostnameField ,
4963 AccountIdField ,
5064 DatabricksClientIdField ,
5165 DatabricksClientSecretField ,
90104 DatabricksClientIdField ,
91105 DatabricksClientSecretField ,
92106 HostnameField ,
107+ AccountHostnameField ,
93108 },
94109 Default : true ,
95110 },
@@ -102,6 +117,7 @@ var (
102117 TokensField ,
103118 WorkspacesField ,
104119 HostnameField ,
120+ AccountHostnameField ,
105121 },
106122 Default : false ,
107123 },
@@ -114,6 +130,7 @@ var (
114130 UsernameField ,
115131 PasswordField ,
116132 HostnameField ,
133+ AccountHostnameField ,
117134 },
118135 Default : false ,
119136 },
@@ -125,6 +142,9 @@ var Config = field.NewConfiguration(
125142 configFields ,
126143 field .WithConstraints (fieldRelationships ... ),
127144 field .WithFieldGroups (fieldGroups ),
145+ field .WithConnectorDisplayName ("Databricks" ),
146+ field .WithHelpUrl ("/docs/baton/databricks" ),
147+ field .WithIconUrl ("/static/app-icons/databricks.svg" ),
128148)
129149
130150// ValidateConfig - additional validations that cannot be encoded in relationships (yet!)
0 commit comments