Skip to content

Commit 012a036

Browse files
authored
Added cluster_id to DatabricksConfig for DBConnect (#102)
## Changes <!-- Summary of your changes that are easy to understand --> Python SDK for reference: https://github.com/databricks/databricks-sdk-py/blob/main/databricks/sdk/core.py#LL392C2-L392C2. ## Tests <!-- How is this tested? --> PR Tests
1 parent fbf5b36 commit 012a036

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

databricks-sdk-java/src/main/java/com/databricks/sdk/core/DatabricksConfig.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ public class DatabricksConfig {
5858
@ConfigAttribute(value = "config_file", env = "DATABRICKS_CONFIG_FILE")
5959
private String configFile;
6060

61+
@ConfigAttribute(value = "cluster_id", env = "DATABRICKS_CLUSTER_ID")
62+
private String clusterId;
63+
6164
@ConfigAttribute(
6265
value = "google_service_account",
6366
env = "DATABRICKS_GOOGLE_SERVICE_ACCOUNT",
@@ -252,6 +255,15 @@ public DatabricksConfig setUsername(String username) {
252255
return this;
253256
}
254257

258+
public String getClusterId() {
259+
return clusterId;
260+
}
261+
262+
public DatabricksConfig setClusterId(String clusterId) {
263+
this.clusterId = clusterId;
264+
return this;
265+
}
266+
255267
public String getPassword() {
256268
return password;
257269
}

0 commit comments

Comments
 (0)