@@ -42,6 +42,7 @@ public static class Builder {
4242 private Integer debugTruncateBytes ;
4343 private HttpClient httpClient ;
4444 private String accountId ;
45+ private String defaultWorkspaceId ;
4546 private RetryStrategyPicker retryStrategyPicker ;
4647 private boolean isDebugHeaders ;
4748
@@ -114,6 +115,7 @@ public ApiClient build() {
114115 private final Function <Void , String > getHostFunc ;
115116 private final Function <Void , String > getAuthTypeFunc ;
116117 private final String accountId ;
118+ private final String defaultWorkspaceId ;
117119 private final boolean isDebugHeaders ;
118120 private static final String RETRY_AFTER_HEADER = "retry-after" ;
119121
@@ -125,6 +127,10 @@ public String configuredAccountID() {
125127 return accountId ;
126128 }
127129
130+ public String defaultWorkspaceId () {
131+ return defaultWorkspaceId ;
132+ }
133+
128134 public ApiClient (DatabricksConfig config ) {
129135 this (config , new SystemTimer ());
130136 }
@@ -143,6 +149,7 @@ private ApiClient(Builder builder) {
143149 this .getAuthTypeFunc = builder .getAuthTypeFunc != null ? builder .getAuthTypeFunc : v -> "" ;
144150 this .httpClient = builder .httpClient ;
145151 this .accountId = builder .accountId ;
152+ this .defaultWorkspaceId = builder .defaultWorkspaceId ;
146153 this .retryStrategyPicker =
147154 builder .retryStrategyPicker != null
148155 ? builder .retryStrategyPicker
0 commit comments