Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen/_last_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
874d8f1733df5029f169c35ed088d2f081eb6687
64023bb8acefdd6c8861e4ebb9238af23f134471
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Version changelog

## Release v0.185.0 (2026-11-23)

### API Changes
* Add `createComputePolicy()`, `deleteComputePolicy()`, `getComputePolicy()` and `updateComputePolicy()` methods for `workspaceClient.serverlessComputeService()` service.
* Add `rescanCatalog()` method for `workspaceClient.dataClassification()` service.
* Add `urlConfiguration` field for `com.databricks.sdk.service.catalog.AccessRequestDestinations`.
* Add `streaming` field for `com.databricks.sdk.service.lakewatch.Rule`.
* Add `lookup` and `secondaryKeys` fields for `com.databricks.sdk.service.ml.Function`.
* Add `computePolicyId` field for `com.databricks.sdk.service.postgres.ProjectStatus`.
* Add `network` field for `com.databricks.sdk.service.sandbox.SandboxSpec`.
* Add `FINALIZING` enum value for `com.databricks.sdk.service.aisearch.EndpointScalingInfoPhase`.
* Add `GOOGLE_ADS` enum value for `com.databricks.sdk.service.catalog.ConnectionType`.
* Add `PREEMPTABLE` enum value for `com.databricks.sdk.service.jobs.AiRuntimeTaskPriorityClass`.
* Add `FINALIZING` enum value for `com.databricks.sdk.service.vectorsearch.EndpointScalingInfoScalingPhase`.
* [Breaking] Change `schedule` field for `com.databricks.sdk.service.lakewatch.Rule` to no longer be required.
* Change `schedule` field for `com.databricks.sdk.service.lakewatch.Rule` to no longer be required.

## Release v0.184.0 (2026-11-19)

### API Changes
Expand Down
2 changes: 1 addition & 1 deletion databricks-sdk-java/lockfile.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"artifactId": "databricks-sdk-java",
"groupId": "com.databricks",
"version": "0.184.0",
"version": "0.185.0",
"lockFileVersion": 1,
"dependencies": [
{
Expand Down
2 changes: 1 addition & 1 deletion databricks-sdk-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.databricks</groupId>
<artifactId>databricks-sdk-parent</artifactId>
<version>0.184.0</version>
<version>0.185.0</version>
</parent>
<artifactId>databricks-sdk-java</artifactId>
<name>Databricks SDK for Java</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.databricks.sdk.core.oauth.TokenSource;
import com.databricks.sdk.core.utils.Cloud;
import com.databricks.sdk.core.utils.Environment;
import com.databricks.sdk.support.InternalApi;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -204,6 +205,22 @@ public class DatabricksConfig {
@ConfigAttribute(env = "DATABRICKS_DISABLE_OAUTH_REFRESH_TOKEN")
private Boolean disableOauthRefreshToken;

/**
* Turns off the Files transfer extension (FilesExt), from the environment or a profile only. It
* is not a public option, which is why it has no setter.
*/
@ConfigAttribute(env = "DATABRICKS_DISABLE_EXPERIMENTAL_FILES_API_CLIENT")
private Boolean disableExperimentalFilesApiClient;

/**
* Turns on endpoint discovery for the Files transfer extension: asking the workspace which
* endpoints to transfer through. From the environment or a profile only. It defaults off, while
* the Python SDK defaults it on. It is not a public option, which is why it has no setter. The
* extension's off switch wins over it.
*/
@ConfigAttribute(env = "DATABRICKS_EXPERIMENTAL_FILES_EXT_ENABLE_ENDPOINTS_API")
private Boolean experimentalFilesExtEnableEndpointsApi;

public Environment getEnv() {
return env;
}
Expand Down Expand Up @@ -713,6 +730,18 @@ public boolean getDisableOauthRefreshToken() {
return disableOauthRefreshToken != null && disableOauthRefreshToken;
}

/** Whether the Files transfer extension is turned off; see the field. */
@InternalApi
public boolean getDisableExperimentalFilesApiClient() {
return disableExperimentalFilesApiClient != null && disableExperimentalFilesApiClient;
}

/** Whether the Files transfer extension asks the workspace for its endpoints; see the field. */
@InternalApi
public boolean getExperimentalFilesExtEnableEndpointsApi() {
return experimentalFilesExtEnableEndpointsApi != null && experimentalFilesExtEnableEndpointsApi;
}

public DatabricksConfig setDisableOauthRefreshToken(boolean disable) {
this.disableOauthRefreshToken = disable;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public String getValue() {
// TODO: check if reading from
// /META-INF/maven/com.databricks/databrics-sdk-java/pom.properties
// or getClass().getPackage().getImplementationVersion() is enough.
private static final String version = "0.184.0";
private static final String version = "0.185.0";

public static void withProduct(String product, String productVersion) {
UserAgent.product = product;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
package com.databricks.sdk.mixin;

import java.util.Objects;

/** One entry of the ordered endpoint list a file transfer walks, best first. */
final class FilesExtEndpoint {

/**
* A file transfer protocol this SDK can speak, identified by the {@code (api, api_version)} pair
* the endpoints API returns.
*/
enum Kind {
IO_OFFLOAD,
FILES_API_V2,
FILES_API_V3
}

private final Kind kind;
private final String baseUrl;
private final boolean multipartUploadSupported;

FilesExtEndpoint(Kind kind, String baseUrl, boolean multipartUploadSupported) {
this.kind = Objects.requireNonNull(kind, "kind");
this.baseUrl = Objects.requireNonNull(baseUrl, "baseUrl");
this.multipartUploadSupported = multipartUploadSupported;
}

Kind kind() {
return kind;
}

/** Scheme and hostname as returned by the server, e.g. https://example.cloud.databricks.com. */
String baseUrl() {
return baseUrl;
}

boolean multipartUploadSupported() {
return multipartUploadSupported;
}

@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof FilesExtEndpoint)) {
return false;
}
FilesExtEndpoint that = (FilesExtEndpoint) o;
return kind == that.kind
&& baseUrl.equals(that.baseUrl)
&& multipartUploadSupported == that.multipartUploadSupported;
}

@Override
public int hashCode() {
return Objects.hash(kind, baseUrl, multipartUploadSupported);
}

@Override
public String toString() {
return "FilesExtEndpoint{"
+ kind
+ ", "
+ baseUrl
+ ", multipartUploadSupported="
+ multipartUploadSupported
+ "}";
}
}
Loading
Loading