Skip to content

Commit

Permalink
clean up DatabricksConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
vikrantpuppala committed Sep 10, 2024
1 parent 25fc83b commit 9afce45
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,27 +132,6 @@ public class DatabricksConfig {
@ConfigAttribute(env = "DATABRICKS_RATE_LIMIT")
private Integer rateLimit;

@ConfigAttribute(env = "PROXY_HOST")
private String proxyHost;

@ConfigAttribute(env = "PROXY_PORT")
private Integer proxyPort;

@ConfigAttribute(env = "PROXY_USERNAME")
private String proxyUsername;

@ConfigAttribute(env = "PROXY_PASSWORD")
private String proxyPassword;

@ConfigAttribute(env = "PROXY_AUTH_TYPE")
private ProxyConfig.ProxyAuthType proxyAuthType;

@ConfigAttribute(env = "USE_SYSTEM_PROPERTIES_HTTP")
private Boolean useSystemPropertiesHttp;

@ConfigAttribute(env = "NON_PROXY_HOSTS")
private String nonProxyHosts;

private volatile boolean resolved;
private HeaderFactory headerFactory;

Expand Down Expand Up @@ -533,69 +512,6 @@ public DatabricksConfig setHttpClient(HttpClient httpClient) {
return this;
}

public String getProxyHost() {
return proxyHost;
}

public DatabricksConfig setProxyHost(String proxyHost) {
this.proxyHost = proxyHost;
return this;
}

public Integer getProxyPort() {
return proxyPort;
}

public DatabricksConfig setProxyPort(Integer proxyPort) {
this.proxyPort = proxyPort;
return this;
}

public String getProxyUsername() {
return proxyUsername;
}

public DatabricksConfig setProxyUsername(String proxyUsername) {
this.proxyUsername = proxyUsername;
return this;
}

public String getProxyPassword() {
return proxyPassword;
}

public DatabricksConfig setProxyPassword(String proxyPassword) {
this.proxyPassword = proxyPassword;
return this;
}

public ProxyConfig.ProxyAuthType getProxyAuthType() {
return proxyAuthType;
}

public DatabricksConfig setProxyAuthType(ProxyConfig.ProxyAuthType proxyAuthType) {
this.proxyAuthType = proxyAuthType;
return this;
}

public Boolean getUseSystemPropertiesHttp() {
return useSystemPropertiesHttp;
}

public DatabricksConfig setUseSystemPropertiesHttp(Boolean useSystemPropertiesHttp) {
this.useSystemPropertiesHttp = useSystemPropertiesHttp;
return this;
}

public String getNonProxyHosts() {
return nonProxyHosts;
}

public DatabricksConfig setNonProxyHosts(String nonProxyHosts) {
this.nonProxyHosts = nonProxyHosts;
return this;
}

public boolean isAzure() {
if (azureWorkspaceResourceId != null) {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ public enum ProxyAuthType {

public ProxyConfig() {}

public ProxyConfig(DatabricksConfig config) {
this.host = config.getProxyHost();
this.port = config.getProxyPort();
this.username = config.getProxyUsername();
this.password = config.getProxyPassword();
this.proxyAuthType = config.getProxyAuthType();
this.useSystemProperties = config.getUseSystemPropertiesHttp();
this.nonProxyHosts = config.getNonProxyHosts();
}

public String getHost() {
return host;
}
Expand Down

0 comments on commit 9afce45

Please sign in to comment.