diff --git a/.codegen.json b/.codegen.json
deleted file mode 100644
index b0e1d9a7c..000000000
--- a/.codegen.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "mode": "java_v0",
- "api_changelog": false,
- "sync": {
- "allow_from_packages": [
- "**/*.java",
- "**/*.{xml,html,tmpl,properties}",
- "**/*.md",
- "**/*.sh",
- "**/testdata/**",
- ".codegen.json",
- ".codegen/{_last_sha,_openapi_sha}",
- ".gitattributes",
- "**/.gitignore",
- ".github/actions/**/*.yml",
- ".github/conftest/**/*.rego",
- ".github/dependabot.yml",
- ".github/workflows/*.yml",
- ".package.json",
- ".release_metadata.json",
- "DCO",
- "LICENSE",
- "Makefile",
- "NOTICE",
- "databricks-sdk-java/lockfile.json",
- "lockfile.json"
- ],
- "skip_from_source": [
- ".nextchanges",
- "BUILD.bazel",
- "CLAUDE.md",
- "OWNERS",
- "changelog_validate"
- ]
- },
- "version": {
- "pom.xml": "databricks-sdk-parent\n $VERSION",
- "databricks-sdk-java/pom.xml": "databricks-sdk-parent\n $VERSION",
- "databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java": "private static final String version = \"$VERSION\";",
- "examples/docs/pom.xml": "databricks-sdk-java\n $VERSION",
- "examples/spring-boot-oauth-u2m-demo/pom.xml": "databricks-sdk-java\n $VERSION",
- "shaded/pom.xml": "\n $VERSION",
- "lockfile.json": "\"artifactId\": \"databricks-sdk-parent\",\n \"groupId\": \"com.databricks\",\n \"version\": \"$VERSION\"",
- "databricks-sdk-java/lockfile.json": "\"artifactId\": \"databricks-sdk-java\",\n \"groupId\": \"com.databricks\",\n \"version\": \"$VERSION\""
- },
- "toolchain": {
- "require": ["mvn", "java"],
- "setup": ["bash scripts/cleanup-services.sh"],
- "post_generate": ["mvn --errors clean compile"]
- }
-}
diff --git a/.codegen/_last_sha b/.codegen/_last_sha
index 323564dc8..8d155ac4d 100644
--- a/.codegen/_last_sha
+++ b/.codegen/_last_sha
@@ -1 +1 @@
-64023bb8acefdd6c8861e4ebb9238af23f134471
\ No newline at end of file
+53e4c6273d2874b13429a178dbbc57b5aac59fbb
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a3e7797bc..3be3a0506 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,17 @@
# Version changelog
+## Release v0.186.0 (2026-11-25)
+
+### API Changes
+* Add `com.databricks.sdk.service.geniemigrate` package.
+* Add `workspaceClient.genieMigrate()` service.
+* Add `resources` field for `com.databricks.sdk.service.genieagents.GenieAgentDefinition`.
+* Add `textInstruction` field for `com.databricks.sdk.service.genieagents.GenieAgentInstructions`.
+* Add `ASSET_TYPE_METRIC_VIEW` and `ASSET_TYPE_AGENT_SKILL` enum values for `com.databricks.sdk.service.marketplace.AssetType`.
+* [Breaking] Remove `dataSources` field for `com.databricks.sdk.service.genieagents.GenieAgentDefinition`.
+* [Breaking] Remove `sqlFunctions` and `textInstructions` fields for `com.databricks.sdk.service.genieagents.GenieAgentInstructions`.
+* [Breaking] Remove `notifications` field for `com.databricks.sdk.service.ml.MaterializationSet`.
+
## Release v0.185.0 (2026-11-23)
### API Changes
diff --git a/databricks-sdk-java/lockfile.json b/databricks-sdk-java/lockfile.json
index 1b396ead5..d744d2000 100644
--- a/databricks-sdk-java/lockfile.json
+++ b/databricks-sdk-java/lockfile.json
@@ -1,7 +1,7 @@
{
"artifactId": "databricks-sdk-java",
"groupId": "com.databricks",
- "version": "0.185.0",
+ "version": "0.186.0",
"lockFileVersion": 1,
"dependencies": [
{
diff --git a/databricks-sdk-java/pom.xml b/databricks-sdk-java/pom.xml
index 47ca3d3a3..d80beb456 100644
--- a/databricks-sdk-java/pom.xml
+++ b/databricks-sdk-java/pom.xml
@@ -5,7 +5,7 @@
com.databricksdatabricks-sdk-parent
- 0.185.0
+ 0.186.0databricks-sdk-javaDatabricks SDK for Java
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java
index 7abe4594f..90e15ec82 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java
@@ -134,6 +134,8 @@
import com.databricks.sdk.service.files.FilesService;
import com.databricks.sdk.service.genieagents.GenieAgentsAPI;
import com.databricks.sdk.service.genieagents.GenieAgentsService;
+import com.databricks.sdk.service.geniemigrate.GenieMigrateAPI;
+import com.databricks.sdk.service.geniemigrate.GenieMigrateService;
import com.databricks.sdk.service.iam.AccessControlAPI;
import com.databricks.sdk.service.iam.AccessControlService;
import com.databricks.sdk.service.iam.AccountAccessControlProxyAPI;
@@ -359,6 +361,7 @@ public class WorkspaceClient {
private FunctionsAPI functionsAPI;
private GenieAPI genieAPI;
private GenieAgentsAPI genieAgentsAPI;
+ private GenieMigrateAPI genieMigrateAPI;
private GitCredentialsAPI gitCredentialsAPI;
private GlobalInitScriptsAPI globalInitScriptsAPI;
private GrantsAPI grantsAPI;
@@ -512,6 +515,7 @@ public WorkspaceClient(DatabricksConfig config) {
functionsAPI = new FunctionsAPI(apiClient);
genieAPI = new GenieAPI(apiClient);
genieAgentsAPI = new GenieAgentsAPI(apiClient);
+ genieMigrateAPI = new GenieMigrateAPI(apiClient);
gitCredentialsAPI = new GitCredentialsAPI(apiClient);
globalInitScriptsAPI = new GlobalInitScriptsAPI(apiClient);
grantsAPI = new GrantsAPI(apiClient);
@@ -643,7 +647,7 @@ public AgentKitAPI agentKit() {
return agentKitAPI;
}
- /** Transform and enrich data with AI on Databricks. */
+ /** Transform and enrich data with AI. */
public AiFunctionsAPI aiFunctions() {
return aiFunctionsAPI;
}
@@ -1176,6 +1180,14 @@ public GenieAgentsAPI genieAgents() {
return genieAgentsAPI;
}
+ /**
+ * Use the Genie Migrate API to create and manage migration projects and the source files to
+ * convert.
+ */
+ public GenieMigrateAPI genieMigrate() {
+ return genieMigrateAPI;
+ }
+
/**
* Registers personal access token for Databricks to do operations on behalf of the user.
*
@@ -3018,6 +3030,17 @@ public WorkspaceClient withGenieAgentsAPI(GenieAgentsAPI genieAgents) {
return this;
}
+ /** Replace the default GenieMigrateService with a custom implementation. */
+ public WorkspaceClient withGenieMigrateImpl(GenieMigrateService genieMigrate) {
+ return this.withGenieMigrateAPI(new GenieMigrateAPI(genieMigrate));
+ }
+
+ /** Replace the default GenieMigrateAPI with a custom implementation. */
+ public WorkspaceClient withGenieMigrateAPI(GenieMigrateAPI genieMigrate) {
+ this.genieMigrateAPI = genieMigrate;
+ return this;
+ }
+
/** Replace the default GitCredentialsService with a custom implementation. */
public WorkspaceClient withGitCredentialsImpl(GitCredentialsService gitCredentials) {
return this.withGitCredentialsAPI(new GitCredentialsAPI(gitCredentials));
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java
index bd26c25fa..945863bf1 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java
@@ -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.185.0";
+ private static final String version = "0.186.0";
public static void withProduct(String product, String productVersion) {
UserAgent.product = product;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/AgentKitAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/AgentKitAPI.java
index ac48f33fc..2507432f5 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/AgentKitAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/AgentKitAPI.java
@@ -137,8 +137,8 @@ public ManagedMemoryEntry getMemory(String name) {
}
/**
- * Retrieves a memory entry by resource name. `view` controls whether the response includes memory
- * content. Returns `NOT_FOUND` when the entry does not exist in the caller's workspace.
+ * Retrieves a memory entry by resource name. Returns `NOT_FOUND` when the entry does not exist in
+ * the caller's workspace.
*/
public ManagedMemoryEntry getMemory(GetManagedMemoryEntryRequest request) {
return impl.getMemory(request);
@@ -378,7 +378,7 @@ public RevokeSessionStorePermissionResponse revokeSessionStorePermission(
/**
* Searches memory entries by text query for one actor. Returns matching entries and scores ranked
- * by relevance; `view` controls whether each returned entry includes content.
+ * by relevance.
*/
public Iterable searchMemories(
SearchManagedMemoryEntriesRequest request) {
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/AgentKitService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/AgentKitService.java
index 819c3411d..eeeaf9cea 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/AgentKitService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/AgentKitService.java
@@ -81,8 +81,8 @@ ManagedMemoryStore createMemoryStore(
ForkSessionResponse forkSession(ForkSessionRequest forkSessionRequest);
/**
- * Retrieves a memory entry by resource name. `view` controls whether the response includes memory
- * content. Returns `NOT_FOUND` when the entry does not exist in the caller's workspace.
+ * Retrieves a memory entry by resource name. Returns `NOT_FOUND` when the entry does not exist in
+ * the caller's workspace.
*/
ManagedMemoryEntry getMemory(GetManagedMemoryEntryRequest getManagedMemoryEntryRequest);
@@ -178,7 +178,7 @@ RevokeSessionStorePermissionResponse revokeSessionStorePermission(
/**
* Searches memory entries by text query for one actor. Returns matching entries and scores ranked
- * by relevance; `view` controls whether each returned entry includes content.
+ * by relevance.
*/
SearchManagedMemoryEntriesResponse searchMemories(
SearchManagedMemoryEntriesRequest searchManagedMemoryEntriesRequest);
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/CreateManagedMemoryEntryRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/CreateManagedMemoryEntryRequest.java
index ebedc05cd..0e83e9c74 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/CreateManagedMemoryEntryRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/CreateManagedMemoryEntryRequest.java
@@ -15,7 +15,11 @@ public class CreateManagedMemoryEntryRequest {
@JsonProperty("managed_memory_entry")
private ManagedMemoryEntry managedMemoryEntry;
- /** Optional caller-selected memory entry ID. The service generates an ID when omitted. */
+ /**
+ * Caller-selected memory entry ID. It must contain 1-255 letters, digits, hyphens, or
+ * underscores, and it becomes the last segment of the entry's `name`. The service generates a
+ * UUID when it is omitted.
+ */
@JsonIgnore
@QueryParam("managed_memory_entry_id")
private String managedMemoryEntryId;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/ListManagedMemoryEntriesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/ListManagedMemoryEntriesRequest.java
index c309bfd01..b425c1cde 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/ListManagedMemoryEntriesRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/ListManagedMemoryEntriesRequest.java
@@ -23,7 +23,10 @@ public class ListManagedMemoryEntriesRequest {
@QueryParam("page_size")
private Long pageSize;
- /** Opaque pagination token from a previous ListManagedMemoryEntries response. */
+ /**
+ * Opaque pagination token, taken from the `next_page_token` of a previous response. The other
+ * request parameters must match the request that returned the token.
+ */
@JsonIgnore
@QueryParam("page_token")
private String pageToken;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/ListManagedMemoryEntriesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/ListManagedMemoryEntriesResponse.java
index 72b8d628e..1b2a39e40 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/ListManagedMemoryEntriesResponse.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/ListManagedMemoryEntriesResponse.java
@@ -11,7 +11,10 @@
/** Response containing memory entries. */
@Generated
public class ListManagedMemoryEntriesResponse {
- /** Memory entries matching the request and selected response view. */
+ /**
+ * Memory entries matching the request and selected response view, ordered by creation time,
+ * oldest first.
+ */
@JsonProperty("managed_memory_entries")
private Collection managedMemoryEntries;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/ManagedMemoryEntry.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/ManagedMemoryEntry.java
index 152c22be1..0d04d488f 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/ManagedMemoryEntry.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/ManagedMemoryEntry.java
@@ -8,7 +8,10 @@
import com.google.protobuf.Timestamp;
import java.util.Objects;
-/** A workspace-scoped entry in a memory store. */
+/**
+ * A workspace-scoped entry in a memory store. Each entry belongs to one actor and, optionally, one
+ * session, and its `path` is unique within that actor and session.
+ */
@Generated
public class ManagedMemoryEntry {
/** Customer-provided identifier for the actor whose memory this entry represents. */
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/SearchManagedMemoryEntriesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/SearchManagedMemoryEntriesRequest.java
index a913d9964..50b54a35b 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/SearchManagedMemoryEntriesRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/agentkit/SearchManagedMemoryEntriesRequest.java
@@ -49,7 +49,10 @@ public class SearchManagedMemoryEntriesRequest {
@JsonProperty("path_prefix")
private String pathPrefix;
- /** Free-form search query. */
+ /**
+ * Free-form search query. Entries are ranked by how well their `content` and `description` match
+ * it.
+ */
@JsonProperty("query")
private String query;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiDecideOptions.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiDecideOptions.java
index 3bef1da06..f506dcfd9 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiDecideOptions.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiDecideOptions.java
@@ -11,7 +11,8 @@
@Generated
public class AiDecideOptions {
/**
- * The function API version to invoke. If unset, version 1.0 is used. Supported versions: ["1.0"].
+ * Set to `"2.0"`. If unset, the deprecated version 1.0 is used during the [migration
+ * period](/api/ai-functions/v1#aidecide).
*/
@JsonProperty("version")
private String version;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiDecideRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiDecideRequest.java
index 26e5761b7..05e620a00 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiDecideRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiDecideRequest.java
@@ -15,31 +15,28 @@ public class AiDecideRequest {
private AiDecideOptions options;
/**
- * A JSON object mapping question IDs to their definitions. Each ID must contain non-whitespace
- * text; its answer is returned with the same ID in `response.answers`.
+ * A JSON object mapping up to 256 question IDs to their definitions. Each ID must be nonblank;
+ * its answer is returned with the same ID in `response.answers`.
*
*
Each definition is an object with the required fields `type` and `instructions`. The
* `criteria` field is optional for the type `noul` but is required for the types `choice` and
* `score`.
*
- *
The `instructions` field describes the judgment to make and can be a string, object, or
- * array. Use an object or array to include supporting context alongside the instructions.
+ *
In AI Decide v2, `instructions` and each criteria description must be nonblank strings. Each
+ * question may contain at most 20,000 characters across its ID, instructions, and criteria.
*
*
The `type` can be one of:
*
*
- `choice`: Selects one option from a defined set. Requires `criteria` to be an object
- * mapping 1 to 255 nonempty option names to descriptions. The criteria description can be a
- * string, object, array, or null when the name needs no additional detail. For example:
+ * mapping 1 to 255 nonblank option names to nonblank string descriptions. For example:
*
*
```json { "team": { "type": "choice", "instructions": "Which team should handle this
- * ticket?", "criteria": { "billing": "Payments, charges, and refunds", "technical_support": null
- * } } } ```
+ * ticket?", "criteria": { "billing": "Payments, charges, and refunds", "technical_support":
+ * "Product errors and troubleshooting" } } } ```
*
*
- `noul`: Estimates the probability that the answer to a true-or-false question is true.
- * `criteria` can take the fields `true` or `false`, or both, with descriptions that are strings,
- * objects, or arrays. Omit `criteria` to use the question alone. The instructions or at least one
- * criteria description must contain non-whitespace text, a nonempty object, or a nonempty array.
- * For example, both of the following are valid:
+ * `criteria` can take the fields `true` or `false`, or both, with nonblank string descriptions.
+ * Omit `criteria` to use the question alone. For example, both of the following are valid:
*
*
```json { "escalate": { "type": "noul", "instructions": "Does this ticket need escalation?",
* "criteria": { "true": "Suspected fraud or an exception to standard policy", "false": "A routine
@@ -51,9 +48,8 @@ public class AiDecideRequest {
* } } ```
*
*
- `score`: Rates the state on an ordered scale. Requires `criteria` to be an array of 2 to
- * 10 level descriptions, ordered from low to high. Descriptions must contain non-whitespace text,
- * a nonempty object, or a nonempty array. Array positions define levels starting at 0. For
- * example:
+ * 10 unique, nonblank string descriptions, ordered from low to high. Array positions define
+ * levels starting at 0. For example:
*
*
```json { "urgency": { "type": "score", "instructions": "How urgent is this ticket?",
* "criteria": [ "Routine: can wait a few days", "Time-sensitive: needs attention today",
@@ -63,9 +59,20 @@ public class AiDecideRequest {
private JsonNode questions;
/**
- * A string, JSON object, or array containing the content, related context, and examples needed to
- * answer the provided questions. For example, provide a support message, a conversation, or
- * records describing the current state of an application. All questions receive this same state.
+ * A nonempty array of typed content objects shared by all questions. Set `options.version` to
+ * `"2.0"` to use this format. Text and JSON content plus questions must fit within 32 KiB as
+ * compact UTF-8 JSON, excluding image parts.
+ *
+ *
| type | Content field | Value | | --- | --- | --- | | `text` | `text` | A nonblank string.
+ * | | `json` | `data` | A JSON object or array. | | `image` | `image_url` | An inline base64 PNG
+ * or JPEG data URL: `data:image/png;base64,` or
+ * `data:image/jpeg;base64,`. HTTP URLs and file paths are not
+ * supported. Each image must be at most 4 MiB after base64 decoding, with a resolution up to
+ * 1,568 × 1,568 pixels (or an equivalent pixel count). A request supports up to five images.
+ * Images are only supported in [select regions]. |
+ *
+ *
- `score`: score is the probability-weighted mean of the zero-based level indices. It can
+ *
- `score`: score is a numeric rating on the zero-based scale defined by `criteria`. It can
* fall between levels, from 0 to the number of levels minus 1. `probabilities` maps each level
* index to its probability, and `legend` maps each index to its original description. Both maps
* use string keys such as "0", "1", and "2". `confidence` is a number from 0 to 1 indicating how
- * well the state supports the assessment. The `probabilities` values sum to 1. For example:
+ * well the state supports the assessment. The `probabilities` values sum to 1. Depending on the
+ * model, `score` may be truncated and `probabilities` rounded to 2 decimal places while
+ * preserving a sum of 1, so the score can differ slightly from the probability-weighted mean
+ * computed from the returned probabilities. For example:
*
*
```json { "answers": { "urgency": { "type": "score", "score": 1.6, "probabilities": { "0":
* 0.1, "1": 0.2, "2": 0.7 }, "legend": { "0": "Routine: can wait a few days", "1":
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiFunctionsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiFunctionsAPI.java
index 4ed77e83e..8c6522fd6 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiFunctionsAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiFunctionsAPI.java
@@ -7,7 +7,7 @@
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.Paginator;
-/** Transform and enrich data with AI on Databricks. */
+/** Transform and enrich data with AI. */
@Generated
public class AiFunctionsAPI {
private static final Logger LOG = LoggerFactory.getLogger(AiFunctionsAPI.class);
@@ -25,8 +25,8 @@ public AiFunctionsAPI(AiFunctionsService mock) {
}
/**
- * Classifies content according to a set of provided labels. For REST API requests, the default
- * rate limit is 1,200 requests per minute per workspace. Contact your Databricks account team to
+ * Classifies content according to a set of provided labels. The AI Classify REST API has a
+ * default rate limit of 1,200 requests per minute per workspace. Contact your account team to
* request a higher limit.
*/
public AiClassifyResponse aiClassify(AiClassifyRequest request) {
@@ -36,17 +36,22 @@ public AiClassifyResponse aiClassify(AiClassifyRequest request) {
/**
* Turn text and structured data into decisions your application can use. Define questions and
* criteria to choose an option, estimate a probability, or assign a score given a provided state.
- * For REST API requests, the default rate limit is 1,200 requests per minute per workspace.
- * Contact your Databricks account team to request a higher limit.
+ * The AI Decide REST API has a default rate limit of 1,200 requests per minute per workspace.
+ * Contact your account team to request a higher limit.
+ *
+ *
> **Note:** The v1 AI Decide syntax supporting strings and objects in `state` and objects
+ * and arrays in `instructions` will no longer be supported starting February 1, 2027. To use AI
+ * Decide, you must set `options.version` to `"2.0"`, pass an array of typed content objects to
+ * `state`, and a nonblank string to `instructions`.
*/
public AiDecideResponse aiDecide(AiDecideRequest request) {
return impl.aiDecide(request);
}
/**
- * Extracts structured data from text and documents according to a provided schema. For REST API
- * requests, the default rate limit is 120 requests per minute per workspace. Contact your
- * Databricks account team to request a higher limit.
+ * Extracts structured data from text and documents according to a provided schema. The AI Extract
+ * REST API has a default rate limit of 120 requests per minute per workspace. Contact your
+ * account team to request a higher limit.
*/
public AiExtractResponse aiExtract(AiExtractRequest request) {
return impl.aiExtract(request);
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiFunctionsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiFunctionsService.java
index 6ef22ea30..dc2b5130f 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiFunctionsService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiFunctionsService.java
@@ -4,7 +4,7 @@
import com.databricks.sdk.support.Generated;
/**
- * Transform and enrich data with AI on Databricks.
+ * Transform and enrich data with AI.
*
*
This is the high-level interface, that contains generated methods.
*
@@ -13,8 +13,8 @@
@Generated
public interface AiFunctionsService {
/**
- * Classifies content according to a set of provided labels. For REST API requests, the default
- * rate limit is 1,200 requests per minute per workspace. Contact your Databricks account team to
+ * Classifies content according to a set of provided labels. The AI Classify REST API has a
+ * default rate limit of 1,200 requests per minute per workspace. Contact your account team to
* request a higher limit.
*/
AiClassifyResponse aiClassify(AiClassifyRequest aiClassifyRequest);
@@ -22,15 +22,20 @@ public interface AiFunctionsService {
/**
* Turn text and structured data into decisions your application can use. Define questions and
* criteria to choose an option, estimate a probability, or assign a score given a provided state.
- * For REST API requests, the default rate limit is 1,200 requests per minute per workspace.
- * Contact your Databricks account team to request a higher limit.
+ * The AI Decide REST API has a default rate limit of 1,200 requests per minute per workspace.
+ * Contact your account team to request a higher limit.
+ *
+ *
> **Note:** The v1 AI Decide syntax supporting strings and objects in `state` and objects
+ * and arrays in `instructions` will no longer be supported starting February 1, 2027. To use AI
+ * Decide, you must set `options.version` to `"2.0"`, pass an array of typed content objects to
+ * `state`, and a nonblank string to `instructions`.
*/
AiDecideResponse aiDecide(AiDecideRequest aiDecideRequest);
/**
- * Extracts structured data from text and documents according to a provided schema. For REST API
- * requests, the default rate limit is 120 requests per minute per workspace. Contact your
- * Databricks account team to request a higher limit.
+ * Extracts structured data from text and documents according to a provided schema. The AI Extract
+ * REST API has a default rate limit of 120 requests per minute per workspace. Contact your
+ * account team to request a higher limit.
*/
AiExtractResponse aiExtract(AiExtractRequest aiExtractRequest);
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java
index 306b9c885..310d55e3f 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java
@@ -50,7 +50,8 @@ public class App {
/**
* Size of the compute instances the app runs on. Defaults to MEDIUM. Larger sizes provide more
- * CPU and memory at a higher hourly cost. See
+ * CPU and memory at a higher hourly cost. Leave unset for an app in a space: apps in a space
+ * always run on space compute and reject any other size. See
* https://docs.databricks.com/aws/en/dev-tools/databricks-apps/compute-size.
*/
@JsonProperty("compute_size")
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java
index 1cd0d5a3a..499f42edb 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java
@@ -274,7 +274,10 @@ public DeleteSpaceOperation deleteSpace(String name) {
return deleteSpace(new DeleteSpaceRequest().setName(name));
}
- /** Deletes an app space. */
+ /**
+ * Deletes the app space with the supplied name. Spaces are identified by name, not by id. The
+ * workspace's default space can't be deleted.
+ */
public DeleteSpaceOperation deleteSpace(DeleteSpaceRequest request) {
Operation operation = impl.deleteSpace(request);
return new DeleteSpaceOperation(impl, operation);
@@ -346,7 +349,10 @@ public Space getSpace(String name) {
return getSpace(new GetSpaceRequest().setName(name));
}
- /** Retrieves information for the app space with the supplied name. */
+ /**
+ * Retrieves information for the app space with the supplied name. Spaces are identified by name,
+ * not by id.
+ */
public Space getSpace(GetSpaceRequest request) {
return impl.getSpace(request);
}
@@ -489,8 +495,9 @@ public AppPermissions updatePermissions(AppPermissionsRequest request) {
}
/**
- * Updates an app space. The update process is asynchronous and the status of the update can be
- * checked with the GetSpaceOperation method.
+ * Updates the app space with the supplied name. Spaces are identified by name, not by id. The
+ * workspace's default space can't be updated. The update process is asynchronous and the status
+ * of the update can be checked with the GetSpaceOperation method.
*/
public UpdateSpaceOperation updateSpace(UpdateSpaceRequest request) {
Operation operation = impl.updateSpace(request);
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsService.java
index 8da26b9a6..03f45b9d2 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsService.java
@@ -31,7 +31,10 @@ public interface AppsService {
/** Deletes the thumbnail for an app. */
void deleteAppThumbnail(DeleteAppThumbnailRequest deleteAppThumbnailRequest);
- /** Deletes an app space. */
+ /**
+ * Deletes the app space with the supplied name. Spaces are identified by name, not by id. The
+ * workspace's default space can't be deleted.
+ */
Operation deleteSpace(DeleteSpaceRequest deleteSpaceRequest);
/**
@@ -59,7 +62,10 @@ GetAppPermissionLevelsResponse getPermissionLevels(
/** Gets the permissions of an app. Apps can inherit permissions from their root object. */
AppPermissions getPermissions(GetAppPermissionsRequest getAppPermissionsRequest);
- /** Retrieves information for the app space with the supplied name. */
+ /**
+ * Retrieves information for the app space with the supplied name. Spaces are identified by name,
+ * not by id.
+ */
Space getSpace(GetSpaceRequest getSpaceRequest);
/** Gets the status of an app space update operation. */
@@ -113,8 +119,9 @@ AppDeploymentScanFinding updateAppDeploymentScanFinding(
AppPermissions updatePermissions(AppPermissionsRequest appPermissionsRequest);
/**
- * Updates an app space. The update process is asynchronous and the status of the update can be
- * checked with the GetSpaceOperation method.
+ * Updates the app space with the supplied name. Spaces are identified by name, not by id. The
+ * workspace's default space can't be updated. The update process is asynchronous and the status
+ * of the update can be checked with the GetSpaceOperation method.
*/
Operation updateSpace(UpdateSpaceRequest updateSpaceRequest);
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AsyncUpdateAppRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AsyncUpdateAppRequest.java
index 57394c2f0..18f3127a8 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AsyncUpdateAppRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AsyncUpdateAppRequest.java
@@ -23,7 +23,7 @@ public class AsyncUpdateAppRequest {
/**
* Comma-separated names of the `app` fields to update, such as `description` or `resources`. A
* field named in the mask but absent from `app` is cleared, except `compute_size`, which resets
- * to `MEDIUM`.
+ * to `MEDIUM`. Sent in the request body together with `app`.
*
*
The field mask must be a single string, with multiple fields separated by commas (no
* spaces). The field path is relative to the resource object, using a dot (`.`) to navigate
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/UpdateSpaceRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/UpdateSpaceRequest.java
index 42f3859b4..5697fd8bf 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/UpdateSpaceRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/UpdateSpaceRequest.java
@@ -25,7 +25,8 @@ public class UpdateSpaceRequest {
/**
* Comma-separated names of the `space` fields to update, such as `description` or `resources`. A
- * field named in the mask but absent from `space` is cleared.
+ * field named in the mask but absent from `space` is cleared. Sent as a query parameter, not in
+ * the `space` body.
*/
@JsonIgnore
@QueryParam("update_mask")
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateModelServiceRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateModelServiceRequest.java
index 576ac26cc..2b773a089 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateModelServiceRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateModelServiceRequest.java
@@ -38,11 +38,12 @@ public class UpdateModelServiceRequest {
@JsonIgnore private String name;
/**
- * Fields to update. Use `config` to replace the entire configuration. The replacement must
- * include every required field; any optional field you omit is cleared. To preserve sibling
- * fields, use one or more granular paths: `comment`, `config.routing.destinations`,
- * `config.routing.fallback.destinations`, `config.rate_limits`, or `config.inference_table`.
- * Intermediate paths such as `config.routing` and `config.routing.fallback` are not supported.
+ * Fields to update. Use `config` for a broad configuration replacement. The replacement must
+ * include every required field; optional fields in its replacement scope are cleared when
+ * omitted. To preserve sibling fields, use one or more granular paths: `comment`,
+ * `config.routing.destinations`, `config.routing.fallback.destinations`, `config.rate_limits`, or
+ * `config.inference_table`. Intermediate paths such as `config.routing` and
+ * `config.routing.fallback` are not supported.
*/
@JsonIgnore
@QueryParam("update_mask")
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CreateInstancePool.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CreateInstancePool.java
index 39594374d..a36d8758a 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CreateInstancePool.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/CreateInstancePool.java
@@ -27,22 +27,28 @@ public class CreateInstancePool {
/**
* Additional tags for pool resources. Databricks will tag all pool resources (e.g., AWS instances
- * and EBS volumes) with these tags in addition to `default_tags`. Notes:
+ * and EBS volumes) with these tags in addition to `default_tags`, and clusters backed by the pool
+ * inherit them. When editing a pool, omitting this field or passing an empty map keeps the
+ * existing tags, and a non-empty map replaces them. Notes:
*
*
- Currently, Databricks allows at most 45 custom tags
*/
@JsonProperty("custom_tags")
private Map customTags;
- /** Defines the specification of the disks that will be attached to all spark containers. */
+ /**
+ * Defines the specification of the disks that will be attached to all spark containers. The disk
+ * specification cannot be changed after the pool is created.
+ */
@JsonProperty("disk_spec")
private DiskSpec diskSpec;
/**
- * Autoscaling Local Storage: when enabled, this instances in this pool will dynamically acquire
- * additional disk space when its Spark workers are running low on disk space. In AWS, this
- * feature requires specific AWS permissions to function correctly - refer to the User Guide for
- * more details.
+ * Autoscaling Local Storage: when enabled, the instances in this pool will dynamically acquire
+ * additional disk space when their Spark workers are running low on disk space. In AWS, this
+ * feature requires specific AWS permissions to function correctly; see
+ * https://docs.databricks.com/aws/en/compute/pools#autoscaling-local-storage for details. This
+ * setting cannot be changed after the pool is created.
*/
@JsonProperty("enable_elastic_disk")
private Boolean enableElasticDisk;
@@ -74,12 +80,16 @@ public class CreateInstancePool {
/**
* Maximum number of outstanding instances to keep in the pool, including both instances used by
* clusters and idle instances. Clusters that require further instance provisioning will fail
- * during upsize requests.
+ * during upsize requests. If unset, the pool size is not capped.
*/
@JsonProperty("max_capacity")
private Long maxCapacity;
- /** Minimum number of idle instances to keep in the instance pool */
+ /**
+ * Minimum number of idle instances to keep in the instance pool. These instances do not terminate
+ * regardless of `idle_instance_autotermination_minutes`, and the pool provisions replacements
+ * when clusters consume them. Defaults to 0.
+ */
@JsonProperty("min_idle_instances")
private Long minIdleInstances;
@@ -89,23 +99,29 @@ public class CreateInstancePool {
/**
* This field encodes, through a single value, the resources available to each of the Spark nodes
- * in this cluster. For example, the Spark nodes can be provisioned and optimized for memory or
- * compute intensive workloads. A list of available node types can be retrieved by using the
- * [clusters/listNodeTypes] API call. The node type cannot be changed after the pool is created.
+ * in clusters that use this pool. For example, the Spark nodes can be provisioned and optimized
+ * for memory or compute intensive workloads. A list of available node types can be retrieved by
+ * using the [clusters/listNodeTypes] API call. The node type cannot be changed after the pool is
+ * created.
*
*
[clusters/listNodeTypes]: https://docs.databricks.com/api/workspace/clusters/listnodetypes
*/
@JsonProperty("node_type_id")
private String nodeTypeId;
- /** Custom Docker Image BYOC */
+ /**
+ * A list containing at most one custom Docker image to preload on the pool's idle instances.
+ * Clusters that use Databricks Container Services with the preloaded image start faster. The list
+ * cannot be changed after the pool is created.
+ */
@JsonProperty("preloaded_docker_images")
private Collection preloadedDockerImages;
/**
* A list containing at most one preloaded Spark image version for the pool. Pool-backed clusters
* started with the preloaded Spark version will start faster. A list of available Spark versions
- * can be retrieved by using the [clusters/sparkVersions] API call.
+ * can be retrieved by using the [clusters/sparkVersions] API call. The list cannot be changed
+ * after the pool is created.
*
*
[clusters/sparkVersions]: https://docs.databricks.com/api/workspace/clusters/sparkversions
*/
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EditInstancePool.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EditInstancePool.java
index 8dd20a9b3..00d04b9c1 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EditInstancePool.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/EditInstancePool.java
@@ -12,7 +12,9 @@
public class EditInstancePool {
/**
* Additional tags for pool resources. Databricks will tag all pool resources (e.g., AWS instances
- * and EBS volumes) with these tags in addition to `default_tags`. Notes:
+ * and EBS volumes) with these tags in addition to `default_tags`, and clusters backed by the pool
+ * inherit them. When editing a pool, omitting this field or passing an empty map keeps the
+ * existing tags, and a non-empty map replaces them. Notes:
*
*
- Currently, Databricks allows at most 45 custom tags
*/
@@ -29,7 +31,7 @@ public class EditInstancePool {
@JsonProperty("idle_instance_autotermination_minutes")
private Long idleInstanceAutoterminationMinutes;
- /** Instance pool ID */
+ /** Identifier of the instance pool to edit. */
@JsonProperty("instance_pool_id")
private String instancePoolId;
@@ -43,20 +45,25 @@ public class EditInstancePool {
/**
* Maximum number of outstanding instances to keep in the pool, including both instances used by
* clusters and idle instances. Clusters that require further instance provisioning will fail
- * during upsize requests.
+ * during upsize requests. If unset, the pool size is not capped.
*/
@JsonProperty("max_capacity")
private Long maxCapacity;
- /** Minimum number of idle instances to keep in the instance pool */
+ /**
+ * Minimum number of idle instances to keep in the instance pool. These instances do not terminate
+ * regardless of `idle_instance_autotermination_minutes`, and the pool provisions replacements
+ * when clusters consume them. Defaults to 0.
+ */
@JsonProperty("min_idle_instances")
private Long minIdleInstances;
/**
* This field encodes, through a single value, the resources available to each of the Spark nodes
- * in this cluster. For example, the Spark nodes can be provisioned and optimized for memory or
- * compute intensive workloads. A list of available node types can be retrieved by using the
- * [clusters/listNodeTypes] API call. The node type cannot be changed after the pool is created.
+ * in clusters that use this pool. For example, the Spark nodes can be provisioned and optimized
+ * for memory or compute intensive workloads. A list of available node types can be retrieved by
+ * using the [clusters/listNodeTypes] API call. The node type cannot be changed after the pool is
+ * created.
*
*
[clusters/listNodeTypes]: https://docs.databricks.com/api/workspace/clusters/listnodetypes
*/
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GetInstancePool.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GetInstancePool.java
index 8df449b67..91c492727 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GetInstancePool.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GetInstancePool.java
@@ -27,7 +27,9 @@ public class GetInstancePool {
/**
* Additional tags for pool resources. Databricks will tag all pool resources (e.g., AWS instances
- * and EBS volumes) with these tags in addition to `default_tags`. Notes:
+ * and EBS volumes) with these tags in addition to `default_tags`, and clusters backed by the pool
+ * inherit them. When editing a pool, omitting this field or passing an empty map keeps the
+ * existing tags, and a non-empty map replaces them. Notes:
*
*
- Currently, Databricks allows at most 45 custom tags
*/
@@ -35,7 +37,7 @@ public class GetInstancePool {
private Map customTags;
/**
- * Tags that are added by Databricks regardless of any ``custom_tags``, including:
+ * Tags that Databricks adds to every pool resource in addition to any `custom_tags`:
*
*
- Vendor: Databricks
*
@@ -46,15 +48,19 @@ public class GetInstancePool {
@JsonProperty("default_tags")
private Map defaultTags;
- /** Defines the specification of the disks that will be attached to all spark containers. */
+ /**
+ * Defines the specification of the disks that will be attached to all spark containers. The disk
+ * specification cannot be changed after the pool is created.
+ */
@JsonProperty("disk_spec")
private DiskSpec diskSpec;
/**
- * Autoscaling Local Storage: when enabled, this instances in this pool will dynamically acquire
- * additional disk space when its Spark workers are running low on disk space. In AWS, this
- * feature requires specific AWS permissions to function correctly - refer to the User Guide for
- * more details.
+ * Autoscaling Local Storage: when enabled, the instances in this pool will dynamically acquire
+ * additional disk space when their Spark workers are running low on disk space. In AWS, this
+ * feature requires specific AWS permissions to function correctly; see
+ * https://docs.databricks.com/aws/en/compute/pools#autoscaling-local-storage for details. This
+ * setting cannot be changed after the pool is created.
*/
@JsonProperty("enable_elastic_disk")
private Boolean enableElasticDisk;
@@ -90,12 +96,16 @@ public class GetInstancePool {
/**
* Maximum number of outstanding instances to keep in the pool, including both instances used by
* clusters and idle instances. Clusters that require further instance provisioning will fail
- * during upsize requests.
+ * during upsize requests. If unset, the pool size is not capped.
*/
@JsonProperty("max_capacity")
private Long maxCapacity;
- /** Minimum number of idle instances to keep in the instance pool */
+ /**
+ * Minimum number of idle instances to keep in the instance pool. These instances do not terminate
+ * regardless of `idle_instance_autotermination_minutes`, and the pool provisions replacements
+ * when clusters consume them. Defaults to 0.
+ */
@JsonProperty("min_idle_instances")
private Long minIdleInstances;
@@ -105,23 +115,29 @@ public class GetInstancePool {
/**
* This field encodes, through a single value, the resources available to each of the Spark nodes
- * in this cluster. For example, the Spark nodes can be provisioned and optimized for memory or
- * compute intensive workloads. A list of available node types can be retrieved by using the
- * [clusters/listNodeTypes] API call. The node type cannot be changed after the pool is created.
+ * in clusters that use this pool. For example, the Spark nodes can be provisioned and optimized
+ * for memory or compute intensive workloads. A list of available node types can be retrieved by
+ * using the [clusters/listNodeTypes] API call. The node type cannot be changed after the pool is
+ * created.
*
*
[clusters/listNodeTypes]: https://docs.databricks.com/api/workspace/clusters/listnodetypes
*/
@JsonProperty("node_type_id")
private String nodeTypeId;
- /** Custom Docker Image BYOC */
+ /**
+ * A list containing at most one custom Docker image to preload on the pool's idle instances.
+ * Clusters that use Databricks Container Services with the preloaded image start faster. The list
+ * cannot be changed after the pool is created.
+ */
@JsonProperty("preloaded_docker_images")
private Collection preloadedDockerImages;
/**
* A list containing at most one preloaded Spark image version for the pool. Pool-backed clusters
* started with the preloaded Spark version will start faster. A list of available Spark versions
- * can be retrieved by using the [clusters/sparkVersions] API call.
+ * can be retrieved by using the [clusters/sparkVersions] API call. The list cannot be changed
+ * after the pool is created.
*
*
[clusters/sparkVersions]: https://docs.databricks.com/api/workspace/clusters/sparkversions
*/
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptCreateRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptCreateRequest.java
index 52aac9dde..58baf1f6d 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptCreateRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptCreateRequest.java
@@ -13,7 +13,7 @@ public class GlobalInitScriptCreateRequest {
@JsonProperty("enabled")
private Boolean enabled;
- /** The name of the script */
+ /** The name of the script. The name must be unique within the workspace. */
@JsonProperty("name")
private String name;
@@ -31,7 +31,10 @@ public class GlobalInitScriptCreateRequest {
@JsonProperty("position")
private Long position;
- /** The Base64-encoded content of the script. */
+ /**
+ * The Base64-encoded content of the script. The decoded content must not be empty and cannot
+ * exceed 64 KB.
+ */
@JsonProperty("script")
private String script;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptDetails.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptDetails.java
index 06fdf3861..526ebc743 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptDetails.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptDetails.java
@@ -7,6 +7,10 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
+/**
+ * A global init script in the workspace. Only workspace admins can view and manage global init
+ * scripts.
+ */
@Generated
public class GlobalInitScriptDetails {
/** Time when the script was created, represented as a Unix timestamp in milliseconds. */
@@ -21,7 +25,7 @@ public class GlobalInitScriptDetails {
@JsonProperty("enabled")
private Boolean enabled;
- /** The name of the script */
+ /** The name of the script. The name must be unique within the workspace. */
@JsonProperty("name")
private String name;
@@ -40,7 +44,7 @@ public class GlobalInitScriptDetails {
@JsonProperty("updated_at")
private Long updatedAt;
- /** The username of the user who last updated the script */
+ /** The username of the user who last updated the script. */
@JsonProperty("updated_by")
private String updatedBy;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptDetailsWithContent.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptDetailsWithContent.java
index 31a41511e..356a9bbfb 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptDetailsWithContent.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptDetailsWithContent.java
@@ -7,6 +7,10 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
+/**
+ * A global init script in the workspace. Only workspace admins can view and manage global init
+ * scripts.
+ */
@Generated
public class GlobalInitScriptDetailsWithContent {
/** Time when the script was created, represented as a Unix timestamp in milliseconds. */
@@ -21,7 +25,7 @@ public class GlobalInitScriptDetailsWithContent {
@JsonProperty("enabled")
private Boolean enabled;
- /** The name of the script */
+ /** The name of the script. The name must be unique within the workspace. */
@JsonProperty("name")
private String name;
@@ -44,7 +48,7 @@ public class GlobalInitScriptDetailsWithContent {
@JsonProperty("updated_at")
private Long updatedAt;
- /** The username of the user who last updated the script */
+ /** The username of the user who last updated the script. */
@JsonProperty("updated_by")
private String updatedBy;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptUpdateRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptUpdateRequest.java
index 1d1e56640..491f17b8c 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptUpdateRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptUpdateRequest.java
@@ -14,7 +14,7 @@ public class GlobalInitScriptUpdateRequest {
@JsonProperty("enabled")
private Boolean enabled;
- /** The name of the script */
+ /** The name of the script. The name must be unique within the workspace. */
@JsonProperty("name")
private String name;
@@ -33,7 +33,10 @@ public class GlobalInitScriptUpdateRequest {
@JsonProperty("position")
private Long position;
- /** The Base64-encoded content of the script. */
+ /**
+ * The Base64-encoded content of the script. The decoded content must not be empty and cannot
+ * exceed 64 KB.
+ */
@JsonProperty("script")
private String script;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptsAPI.java
index d0e9f31d8..3bd0c7cd7 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptsAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptsAPI.java
@@ -32,7 +32,10 @@ public GlobalInitScriptsAPI(GlobalInitScriptsService mock) {
impl = mock;
}
- /** Creates a new global init script in this workspace. */
+ /**
+ * Creates a new global init script in this workspace. The number of global init scripts per
+ * workspace is limited.
+ */
public CreateResponse create(GlobalInitScriptCreateRequest request) {
return impl.create(request);
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptsService.java
index b031af2ef..8e3676909 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptsService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/GlobalInitScriptsService.java
@@ -18,7 +18,10 @@
*/
@Generated
public interface GlobalInitScriptsService {
- /** Creates a new global init script in this workspace. */
+ /**
+ * Creates a new global init script in this workspace. The number of global init scripts per
+ * workspace is limited.
+ */
CreateResponse create(GlobalInitScriptCreateRequest globalInitScriptCreateRequest);
/** Deletes a global init script. */
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolAndStats.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolAndStats.java
index ee5511dca..a7b160a2f 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolAndStats.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolAndStats.java
@@ -27,7 +27,9 @@ public class InstancePoolAndStats {
/**
* Additional tags for pool resources. Databricks will tag all pool resources (e.g., AWS instances
- * and EBS volumes) with these tags in addition to `default_tags`. Notes:
+ * and EBS volumes) with these tags in addition to `default_tags`, and clusters backed by the pool
+ * inherit them. When editing a pool, omitting this field or passing an empty map keeps the
+ * existing tags, and a non-empty map replaces them. Notes:
*
*
- Currently, Databricks allows at most 45 custom tags
*/
@@ -35,7 +37,7 @@ public class InstancePoolAndStats {
private Map customTags;
/**
- * Tags that are added by Databricks regardless of any ``custom_tags``, including:
+ * Tags that Databricks adds to every pool resource in addition to any `custom_tags`:
*
*
- Vendor: Databricks
*
@@ -46,15 +48,19 @@ public class InstancePoolAndStats {
@JsonProperty("default_tags")
private Map defaultTags;
- /** Defines the specification of the disks that will be attached to all spark containers. */
+ /**
+ * Defines the specification of the disks that will be attached to all spark containers. The disk
+ * specification cannot be changed after the pool is created.
+ */
@JsonProperty("disk_spec")
private DiskSpec diskSpec;
/**
- * Autoscaling Local Storage: when enabled, this instances in this pool will dynamically acquire
- * additional disk space when its Spark workers are running low on disk space. In AWS, this
- * feature requires specific AWS permissions to function correctly - refer to the User Guide for
- * more details.
+ * Autoscaling Local Storage: when enabled, the instances in this pool will dynamically acquire
+ * additional disk space when their Spark workers are running low on disk space. In AWS, this
+ * feature requires specific AWS permissions to function correctly; see
+ * https://docs.databricks.com/aws/en/compute/pools#autoscaling-local-storage for details. This
+ * setting cannot be changed after the pool is created.
*/
@JsonProperty("enable_elastic_disk")
private Boolean enableElasticDisk;
@@ -90,12 +96,16 @@ public class InstancePoolAndStats {
/**
* Maximum number of outstanding instances to keep in the pool, including both instances used by
* clusters and idle instances. Clusters that require further instance provisioning will fail
- * during upsize requests.
+ * during upsize requests. If unset, the pool size is not capped.
*/
@JsonProperty("max_capacity")
private Long maxCapacity;
- /** Minimum number of idle instances to keep in the instance pool */
+ /**
+ * Minimum number of idle instances to keep in the instance pool. These instances do not terminate
+ * regardless of `idle_instance_autotermination_minutes`, and the pool provisions replacements
+ * when clusters consume them. Defaults to 0.
+ */
@JsonProperty("min_idle_instances")
private Long minIdleInstances;
@@ -105,23 +115,29 @@ public class InstancePoolAndStats {
/**
* This field encodes, through a single value, the resources available to each of the Spark nodes
- * in this cluster. For example, the Spark nodes can be provisioned and optimized for memory or
- * compute intensive workloads. A list of available node types can be retrieved by using the
- * [clusters/listNodeTypes] API call. The node type cannot be changed after the pool is created.
+ * in clusters that use this pool. For example, the Spark nodes can be provisioned and optimized
+ * for memory or compute intensive workloads. A list of available node types can be retrieved by
+ * using the [clusters/listNodeTypes] API call. The node type cannot be changed after the pool is
+ * created.
*
*
[clusters/listNodeTypes]: https://docs.databricks.com/api/workspace/clusters/listnodetypes
*/
@JsonProperty("node_type_id")
private String nodeTypeId;
- /** Custom Docker Image BYOC */
+ /**
+ * A list containing at most one custom Docker image to preload on the pool's idle instances.
+ * Clusters that use Databricks Container Services with the preloaded image start faster. The list
+ * cannot be changed after the pool is created.
+ */
@JsonProperty("preloaded_docker_images")
private Collection preloadedDockerImages;
/**
* A list containing at most one preloaded Spark image version for the pool. Pool-backed clusters
* started with the preloaded Spark version will start faster. A list of available Spark versions
- * can be retrieved by using the [clusters/sparkVersions] API call.
+ * can be retrieved by using the [clusters/sparkVersions] API call. The list cannot be changed
+ * after the pool is created.
*
*
[clusters/sparkVersions]: https://docs.databricks.com/api/workspace/clusters/sparkversions
*/
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolAwsAttributes.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolAwsAttributes.java
index 53392a9c0..3521297a4 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolAwsAttributes.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolAwsAttributes.java
@@ -54,8 +54,8 @@ public class InstancePoolAwsAttributes {
* Identifier for the availability zone/datacenter in which the cluster resides. This string will
* be of a form like "us-west-2a". The provided availability zone must be in the same region as
* the Databricks deployment. For example, "us-west-2a" is not a valid zone id if the Databricks
- * deployment resides in the "us-east-1" region. This is an optional field at cluster creation,
- * and if not specified, a default zone will be used. The list of available zones as well as the
+ * deployment resides in the "us-east-1" region. This is an optional field at pool creation, and
+ * if not specified, a default zone will be used. The list of available zones as well as the
* default value can be found by using the `List Zones` method.
*
*
Set this field to "auto" to enable Auto-AZ, in which case Databricks selects the
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolState.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolState.java
index b89994ca2..9a0330a82 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolState.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolState.java
@@ -5,10 +5,10 @@
import com.databricks.sdk.support.Generated;
/**
- * The state of a Cluster. The current allowable state transitions are as follows:
+ * The state of an instance pool. The current allowable state transitions are as follows:
*
- *
- `ACTIVE` -> `STOPPED` - `ACTIVE` -> `DELETED` - `STOPPED` -> `ACTIVE` - `STOPPED` ->
+ * `DELETED`
*/
@Generated
public enum InstancePoolState {
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolStatus.java
index 568239d21..f2ac037be 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolStatus.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolStatus.java
@@ -11,9 +11,9 @@
@Generated
public class InstancePoolStatus {
/**
- * List of error messages for the failed pending instances. The pending_instance_errors follows
- * FIFO with maximum length of the min_idle of the pool. The pending_instance_errors is emptied
- * once the number of exiting available instances reaches the min_idle of the pool.
+ * List of errors for pending instances that failed to launch, most recent first. The list holds
+ * at most `min_idle_instances` entries, and never more than 20, and is emptied once the pool has
+ * at least `min_idle_instances` available instances and no pending ones.
*/
@JsonProperty("pending_instance_errors")
private Collection pendingInstanceErrors;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolsAPI.java
index 5a38a18e2..01641a24c 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolsAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolsAPI.java
@@ -57,7 +57,13 @@ public void delete(DeleteInstancePool request) {
impl.delete(request);
}
- /** Modifies the configuration of an existing instance pool. */
+ /**
+ * Modifies the configuration of an existing instance pool. Settings that are fixed at creation,
+ * such as the node type, cannot be changed and the request fails if it attempts to change one.
+ * Omitted `min_idle_instances`, `max_capacity` and `idle_instance_autotermination_minutes` are
+ * reset to their defaults; omitted `custom_tags` keep their current value. On Azure, an omitted
+ * `azure_attributes.capacity_reservation_group` is removed.
+ */
public void edit(EditInstancePool request) {
impl.edit(request);
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolsService.java
index 4b41a1123..b71f1bdb8 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolsService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InstancePoolsService.java
@@ -35,7 +35,13 @@ public interface InstancePoolsService {
*/
void delete(DeleteInstancePool deleteInstancePool);
- /** Modifies the configuration of an existing instance pool. */
+ /**
+ * Modifies the configuration of an existing instance pool. Settings that are fixed at creation,
+ * such as the node type, cannot be changed and the request fails if it attempts to change one.
+ * Omitted `min_idle_instances`, `max_capacity` and `idle_instance_autotermination_minutes` are
+ * reset to their defaults; omitted `custom_tags` keep their current value. On Azure, an omitted
+ * `azure_attributes.capacity_reservation_group` is removed.
+ */
void edit(EditInstancePool editInstancePool);
/** Retrieve the information for an instance pool based on its identifier. */
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ListInstancePools.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ListInstancePools.java
index d31e13594..277b1f7f2 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ListInstancePools.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ListInstancePools.java
@@ -10,7 +10,7 @@
@Generated
public class ListInstancePools {
- /** */
+ /** Instance pools in the workspace, each with its usage statistics and status. */
@JsonProperty("instance_pools")
private Collection instancePools;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PendingInstanceError.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PendingInstanceError.java
index 7e21345dd..807b7ade4 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PendingInstanceError.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PendingInstanceError.java
@@ -7,14 +7,17 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
-/** Error message of a failed pending instances */
+/** Error for an instance that failed to launch while the pool was provisioning it. */
@Generated
public class PendingInstanceError {
- /** */
+ /** Identifier of the pending instance that failed to launch. */
@JsonProperty("instance_id")
private String instanceId;
- /** */
+ /**
+ * Error message describing why the instance failed to launch. The message may be omitted, because
+ * not all pool status reads include it.
+ */
@JsonProperty("message")
private String message;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieCreateSpaceRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieCreateSpaceRequest.java
index 0ca1f17b0..781e076d0 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieCreateSpaceRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/GenieCreateSpaceRequest.java
@@ -18,9 +18,10 @@ public class GenieCreateSpaceRequest {
private String parentPath;
/**
- * Configuration of the new space as a JSON string. To copy an existing space, use the value that
- * [Get Genie Space](:method:genie/getspace) returns when `include_serialized_space` is true. For
- * the JSON format and its validation rules, see
+ * Configuration of the new space as a JSON string. The configuration must include at least one
+ * table, metric view, volume, MCP connection, or sub-agent data source. To copy an existing
+ * space, use the value that [Get Genie Space](:method:genie/getspace) returns when
+ * `include_serialized_space` is true. For the JSON format and its validation rules, see
* https://docs.databricks.com/aws/en/genie-agents/conversation-api.
*/
@JsonProperty("serialized_space")
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/database/UpdateSyncedDatabaseTableRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/database/UpdateSyncedDatabaseTableRequest.java
index 679dc16c8..8d3e8be90 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/database/UpdateSyncedDatabaseTableRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/database/UpdateSyncedDatabaseTableRequest.java
@@ -14,11 +14,11 @@ public class UpdateSyncedDatabaseTableRequest {
/** Full three-part (catalog, schema, table) name of the table. */
@JsonIgnore private String name;
- /** Note that updating a synced database table is not yet supported. */
+ /** The synced database table and requested spec values. */
@JsonProperty("synced_table")
private SyncedDatabaseTable syncedTable;
- /** The list of fields to update. Setting this field is not yet supported. */
+ /** The list of fields to update. Updatable paths include spec.accelerated_sync and *. */
@JsonIgnore
@QueryParam("update_mask")
private String updateMask;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgent.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgent.java
index 75751a0af..54157e96f 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgent.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgent.java
@@ -17,10 +17,11 @@ public class GenieAgent {
/**
* The definition of the Genie Agent: its sample questions, data sources, instructions, and
- * benchmarks. Must set at least one field. Returned on get and on list with
- * `GENIE_AGENT_VIEW_FULL`. Create and update return a submitted definition unchanged; one the
- * service would store differently, or with a column config the workspace can't keep (unknown
- * column, or a display name while those are disabled), is rejected with INVALID_PARAMETER_VALUE.
+ * benchmarks. Create requires at least one table, volume, MCP connection, or sub-agent in
+ * `data_sources`. Returned on get and on list with `GENIE_AGENT_VIEW_FULL`. Create and update
+ * return a submitted definition unchanged; one the service would store differently, or with a
+ * column config the workspace can't keep (unknown column, or a display name while those are
+ * disabled), is rejected with INVALID_PARAMETER_VALUE.
*/
@JsonProperty("definition")
private GenieAgentDefinition definition;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentDefinition.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentDefinition.java
index 9accba53e..8de7ba125 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentDefinition.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentDefinition.java
@@ -18,14 +18,14 @@ public class GenieAgentDefinition {
@JsonProperty("config")
private GenieAgentConfig config;
- /** The data the Genie Agent can access. */
- @JsonProperty("data_sources")
- private GenieAgentDataSources dataSources;
-
/** Instructions and SQL that guide how the Genie Agent answers questions. */
@JsonProperty("instructions")
private GenieAgentInstructions instructions;
+ /** The resources the Genie Agent can use: data, SQL functions, connections, and sub-agents. */
+ @JsonProperty("resources")
+ private GenieAgentResources resources;
+
public GenieAgentDefinition setBenchmarks(GenieAgentBenchmarks benchmarks) {
this.benchmarks = benchmarks;
return this;
@@ -44,22 +44,22 @@ public GenieAgentConfig getConfig() {
return config;
}
- public GenieAgentDefinition setDataSources(GenieAgentDataSources dataSources) {
- this.dataSources = dataSources;
+ public GenieAgentDefinition setInstructions(GenieAgentInstructions instructions) {
+ this.instructions = instructions;
return this;
}
- public GenieAgentDataSources getDataSources() {
- return dataSources;
+ public GenieAgentInstructions getInstructions() {
+ return instructions;
}
- public GenieAgentDefinition setInstructions(GenieAgentInstructions instructions) {
- this.instructions = instructions;
+ public GenieAgentDefinition setResources(GenieAgentResources resources) {
+ this.resources = resources;
return this;
}
- public GenieAgentInstructions getInstructions() {
- return instructions;
+ public GenieAgentResources getResources() {
+ return resources;
}
@Override
@@ -69,13 +69,13 @@ public boolean equals(Object o) {
GenieAgentDefinition that = (GenieAgentDefinition) o;
return Objects.equals(benchmarks, that.benchmarks)
&& Objects.equals(config, that.config)
- && Objects.equals(dataSources, that.dataSources)
- && Objects.equals(instructions, that.instructions);
+ && Objects.equals(instructions, that.instructions)
+ && Objects.equals(resources, that.resources);
}
@Override
public int hashCode() {
- return Objects.hash(benchmarks, config, dataSources, instructions);
+ return Objects.hash(benchmarks, config, instructions, resources);
}
@Override
@@ -83,8 +83,8 @@ public String toString() {
return new ToStringer(GenieAgentDefinition.class)
.add("benchmarks", benchmarks)
.add("config", config)
- .add("dataSources", dataSources)
.add("instructions", instructions)
+ .add("resources", resources)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentInstructions.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentInstructions.java
index 67da8c5dd..25e13f677 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentInstructions.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentInstructions.java
@@ -19,17 +19,13 @@ public class GenieAgentInstructions {
@JsonProperty("join_specs")
private Collection joinSpecs;
- /** Unity Catalog SQL functions the generated SQL may call. */
- @JsonProperty("sql_functions")
- private Collection sqlFunctions;
-
/** Reusable SQL filters, expressions, and measures. */
@JsonProperty("sql_snippets")
private GenieAgentSqlSnippets sqlSnippets;
- /** General text instructions. At most one text instruction is supported. */
- @JsonProperty("text_instructions")
- private Collection textInstructions;
+ /** The general text instruction. */
+ @JsonProperty("text_instruction")
+ private GenieAgentTextInstruction textInstruction;
public GenieAgentInstructions setExampleQuestionSqls(
Collection exampleQuestionSqls) {
@@ -50,15 +46,6 @@ public Collection getJoinSpecs() {
return joinSpecs;
}
- public GenieAgentInstructions setSqlFunctions(Collection sqlFunctions) {
- this.sqlFunctions = sqlFunctions;
- return this;
- }
-
- public Collection getSqlFunctions() {
- return sqlFunctions;
- }
-
public GenieAgentInstructions setSqlSnippets(GenieAgentSqlSnippets sqlSnippets) {
this.sqlSnippets = sqlSnippets;
return this;
@@ -68,14 +55,13 @@ public GenieAgentSqlSnippets getSqlSnippets() {
return sqlSnippets;
}
- public GenieAgentInstructions setTextInstructions(
- Collection textInstructions) {
- this.textInstructions = textInstructions;
+ public GenieAgentInstructions setTextInstruction(GenieAgentTextInstruction textInstruction) {
+ this.textInstruction = textInstruction;
return this;
}
- public Collection getTextInstructions() {
- return textInstructions;
+ public GenieAgentTextInstruction getTextInstruction() {
+ return textInstruction;
}
@Override
@@ -85,15 +71,13 @@ public boolean equals(Object o) {
GenieAgentInstructions that = (GenieAgentInstructions) o;
return Objects.equals(exampleQuestionSqls, that.exampleQuestionSqls)
&& Objects.equals(joinSpecs, that.joinSpecs)
- && Objects.equals(sqlFunctions, that.sqlFunctions)
&& Objects.equals(sqlSnippets, that.sqlSnippets)
- && Objects.equals(textInstructions, that.textInstructions);
+ && Objects.equals(textInstruction, that.textInstruction);
}
@Override
public int hashCode() {
- return Objects.hash(
- exampleQuestionSqls, joinSpecs, sqlFunctions, sqlSnippets, textInstructions);
+ return Objects.hash(exampleQuestionSqls, joinSpecs, sqlSnippets, textInstruction);
}
@Override
@@ -101,9 +85,8 @@ public String toString() {
return new ToStringer(GenieAgentInstructions.class)
.add("exampleQuestionSqls", exampleQuestionSqls)
.add("joinSpecs", joinSpecs)
- .add("sqlFunctions", sqlFunctions)
.add("sqlSnippets", sqlSnippets)
- .add("textInstructions", textInstructions)
+ .add("textInstruction", textInstruction)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentDataSources.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentResources.java
similarity index 62%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentDataSources.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentResources.java
index 9715d6339..a7653b436 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentDataSources.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/GenieAgentResources.java
@@ -8,13 +8,17 @@
import java.util.Collection;
import java.util.Objects;
-/** The data a Genie Agent can access. */
+/** The resources a Genie Agent can use. */
@Generated
-public class GenieAgentDataSources {
+public class GenieAgentResources {
/** Unity Catalog MCP connections, sorted by `mcp_connection`. */
@JsonProperty("mcp_connections")
private Collection mcpConnections;
+ /** Unity Catalog SQL functions the generated SQL may call, sorted by `id`, then `identifier`. */
+ @JsonProperty("sql_functions")
+ private Collection sqlFunctions;
+
/** Unity Catalog tables, views, and metric views, sorted by `identifier`. */
@JsonProperty("tables")
private Collection tables;
@@ -23,8 +27,7 @@ public class GenieAgentDataSources {
@JsonProperty("volumes")
private Collection volumes;
- public GenieAgentDataSources setMcpConnections(
- Collection mcpConnections) {
+ public GenieAgentResources setMcpConnections(Collection mcpConnections) {
this.mcpConnections = mcpConnections;
return this;
}
@@ -33,7 +36,16 @@ public Collection getMcpConnections() {
return mcpConnections;
}
- public GenieAgentDataSources setTables(Collection tables) {
+ public GenieAgentResources setSqlFunctions(Collection sqlFunctions) {
+ this.sqlFunctions = sqlFunctions;
+ return this;
+ }
+
+ public Collection getSqlFunctions() {
+ return sqlFunctions;
+ }
+
+ public GenieAgentResources setTables(Collection tables) {
this.tables = tables;
return this;
}
@@ -42,7 +54,7 @@ public Collection getTables() {
return tables;
}
- public GenieAgentDataSources setVolumes(Collection volumes) {
+ public GenieAgentResources setVolumes(Collection volumes) {
this.volumes = volumes;
return this;
}
@@ -55,21 +67,23 @@ public Collection getVolumes() {
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
- GenieAgentDataSources that = (GenieAgentDataSources) o;
+ GenieAgentResources that = (GenieAgentResources) o;
return Objects.equals(mcpConnections, that.mcpConnections)
+ && Objects.equals(sqlFunctions, that.sqlFunctions)
&& Objects.equals(tables, that.tables)
&& Objects.equals(volumes, that.volumes);
}
@Override
public int hashCode() {
- return Objects.hash(mcpConnections, tables, volumes);
+ return Objects.hash(mcpConnections, sqlFunctions, tables, volumes);
}
@Override
public String toString() {
- return new ToStringer(GenieAgentDataSources.class)
+ return new ToStringer(GenieAgentResources.class)
.add("mcpConnections", mcpConnections)
+ .add("sqlFunctions", sqlFunctions)
.add("tables", tables)
.add("volumes", volumes)
.toString();
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/UpdateGenieAgentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/UpdateGenieAgentRequest.java
index dc299f85e..74281b8f3 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/UpdateGenieAgentRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/UpdateGenieAgentRequest.java
@@ -42,7 +42,7 @@ public class UpdateGenieAgentRequest {
* rejected with INVALID_PARAMETER_VALUE; an unset `parent_path` is cleared without moving the
* Genie Agent. `definition` is replaced as a whole.
*
- *
The one supported path inside `definition` is `definition.data_sources.sub_agents`, and only
+ *
The one supported path inside `definition` is `definition.resources.sub_agents`, and only
* alongside `definition`. Naming it makes the sub-agent list exact, so an empty list detaches
* every sub-agent. Without it, including with `*`, an empty list keeps them.
*
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/AddProjectFilesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/AddProjectFilesRequest.java
new file mode 100644
index 000000000..5898e7f2e
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/AddProjectFilesRequest.java
@@ -0,0 +1,68 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.geniemigrate;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Collection;
+import java.util.Objects;
+
+/** The request to add workspace files to a migration project. */
+@Generated
+public class AddProjectFilesRequest {
+ /**
+ * The resource name of the project, in the format `projects/{project_id}`. For example,
+ * `projects/123`.
+ */
+ @JsonIgnore private String name;
+
+ /**
+ * The files to add, each identified by `workspace.path` or `workspace.object_id`. Send at most
+ * 500 files per request. Duplicate files, and requests that exceed a file-count limit, return
+ * `INVALID_PARAMETER_VALUE`. Files already in the project aren't overwritten. An empty list
+ * changes nothing.
+ */
+ @JsonProperty("sources")
+ private Collection sources;
+
+ public AddProjectFilesRequest setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public AddProjectFilesRequest setSources(Collection sources) {
+ this.sources = sources;
+ return this;
+ }
+
+ public Collection getSources() {
+ return sources;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ AddProjectFilesRequest that = (AddProjectFilesRequest) o;
+ return Objects.equals(name, that.name) && Objects.equals(sources, that.sources);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(name, sources);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(AddProjectFilesRequest.class)
+ .add("name", name)
+ .add("sources", sources)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/AddProjectFilesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/AddProjectFilesResponse.java
new file mode 100644
index 000000000..c590d2a20
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/AddProjectFilesResponse.java
@@ -0,0 +1,50 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.geniemigrate;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Collection;
+import java.util.Objects;
+
+/**
+ * Lists the files from an `AddProjectFiles` request, including files that were already in the
+ * project.
+ */
+@Generated
+public class AddProjectFilesResponse {
+ /**
+ * The requested files, in request order, without conversion results. Call `ListProjectFiles` or
+ * `GetProjectFile` to read their state.
+ */
+ @JsonProperty("files")
+ private Collection files;
+
+ public AddProjectFilesResponse setFiles(Collection files) {
+ this.files = files;
+ return this;
+ }
+
+ public Collection getFiles() {
+ return files;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ AddProjectFilesResponse that = (AddProjectFilesResponse) o;
+ return Objects.equals(files, that.files);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(files);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(AddProjectFilesResponse.class).add("files", files).toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/CancelOperationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/CancelOperationRequest.java
new file mode 100644
index 000000000..ec975eb19
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/CancelOperationRequest.java
@@ -0,0 +1,42 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.geniemigrate;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import java.util.Objects;
+
+/** The request message for `CancelOperation` method. */
+@Generated
+public class CancelOperationRequest {
+ /** The name of the operation resource to be cancelled. */
+ @JsonIgnore private String name;
+
+ public CancelOperationRequest setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ CancelOperationRequest that = (CancelOperationRequest) o;
+ return Objects.equals(name, that.name);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(name);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(CancelOperationRequest.class).add("name", name).toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRun.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRun.java
new file mode 100644
index 000000000..43eab52bd
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRun.java
@@ -0,0 +1,143 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.geniemigrate;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.protobuf.Timestamp;
+import java.util.Collection;
+import java.util.Objects;
+
+/** A conversion of a migration project's files, with its state and the status of each file. */
+@Generated
+public class ConversionRun {
+ /** The time the run was accepted, before its background job started. */
+ @JsonProperty("create_time")
+ private Timestamp createTime;
+
+ /** The time the run ended. Absent while the run is active. */
+ @JsonProperty("end_time")
+ private Timestamp endTime;
+
+ /** Why the run failed. Set only when `state` is `CONVERSION_RUN_STATE_FAILED`. */
+ @JsonProperty("error_code")
+ private ConversionRunErrorCode errorCode;
+
+ /**
+ * The files in this run, at most 500, each with its status in this run. Later conversions and
+ * reviews can change `ProjectFile.status` but don't change this list.
+ */
+ @JsonProperty("files")
+ private Collection files;
+
+ /** The resource name of the project being converted, in the format `projects/{project_id}`. */
+ @JsonProperty("project")
+ private String project;
+
+ /**
+ * The skill folders that the run was started with. Empty if the run discovers skills
+ * automatically.
+ */
+ @JsonProperty("skill_paths")
+ private Collection skillPaths;
+
+ /** The state of the run. */
+ @JsonProperty("state")
+ private ConversionRunState state;
+
+ public ConversionRun setCreateTime(Timestamp createTime) {
+ this.createTime = createTime;
+ return this;
+ }
+
+ public Timestamp getCreateTime() {
+ return createTime;
+ }
+
+ public ConversionRun setEndTime(Timestamp endTime) {
+ this.endTime = endTime;
+ return this;
+ }
+
+ public Timestamp getEndTime() {
+ return endTime;
+ }
+
+ public ConversionRun setErrorCode(ConversionRunErrorCode errorCode) {
+ this.errorCode = errorCode;
+ return this;
+ }
+
+ public ConversionRunErrorCode getErrorCode() {
+ return errorCode;
+ }
+
+ public ConversionRun setFiles(Collection files) {
+ this.files = files;
+ return this;
+ }
+
+ public Collection getFiles() {
+ return files;
+ }
+
+ public ConversionRun setProject(String project) {
+ this.project = project;
+ return this;
+ }
+
+ public String getProject() {
+ return project;
+ }
+
+ public ConversionRun setSkillPaths(Collection skillPaths) {
+ this.skillPaths = skillPaths;
+ return this;
+ }
+
+ public Collection getSkillPaths() {
+ return skillPaths;
+ }
+
+ public ConversionRun setState(ConversionRunState state) {
+ this.state = state;
+ return this;
+ }
+
+ public ConversionRunState getState() {
+ return state;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ ConversionRun that = (ConversionRun) o;
+ return Objects.equals(createTime, that.createTime)
+ && Objects.equals(endTime, that.endTime)
+ && Objects.equals(errorCode, that.errorCode)
+ && Objects.equals(files, that.files)
+ && Objects.equals(project, that.project)
+ && Objects.equals(skillPaths, that.skillPaths)
+ && Objects.equals(state, that.state);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(createTime, endTime, errorCode, files, project, skillPaths, state);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(ConversionRun.class)
+ .add("createTime", createTime)
+ .add("endTime", endTime)
+ .add("errorCode", errorCode)
+ .add("files", files)
+ .add("project", project)
+ .add("skillPaths", skillPaths)
+ .add("state", state)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRunErrorCode.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRunErrorCode.java
new file mode 100644
index 000000000..c621020cf
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRunErrorCode.java
@@ -0,0 +1,13 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.geniemigrate;
+
+import com.databricks.sdk.support.Generated;
+
+/** Why a conversion run failed. */
+@Generated
+public enum ConversionRunErrorCode {
+ CONVERSION_RUN_ERROR_CODE_EXPIRED,
+ CONVERSION_RUN_ERROR_CODE_JOB_FAILED,
+ CONVERSION_RUN_ERROR_CODE_SUBMIT_REJECTED,
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRunFile.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRunFile.java
new file mode 100644
index 000000000..2d68af451
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRunFile.java
@@ -0,0 +1,62 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.geniemigrate;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Objects;
+
+/** A file in a conversion run. */
+@Generated
+public class ConversionRunFile {
+ /** The resource name of the file, in the format `projects/{project_id}/files/{file_id}`. */
+ @JsonProperty("name")
+ private String name;
+
+ /**
+ * The status of the file in this run. `ProjectFile.status` has the file's latest status across
+ * all runs.
+ */
+ @JsonProperty("status")
+ private FileStatus status;
+
+ public ConversionRunFile setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public ConversionRunFile setStatus(FileStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ public FileStatus getStatus() {
+ return status;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ ConversionRunFile that = (ConversionRunFile) o;
+ return Objects.equals(name, that.name) && Objects.equals(status, that.status);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(name, status);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(ConversionRunFile.class)
+ .add("name", name)
+ .add("status", status)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRunState.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRunState.java
new file mode 100644
index 000000000..53fa6d05a
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRunState.java
@@ -0,0 +1,14 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.geniemigrate;
+
+import com.databricks.sdk.support.Generated;
+
+/** State of a conversion run. */
+@Generated
+public enum ConversionRunState {
+ CONVERSION_RUN_STATE_ACTIVE,
+ CONVERSION_RUN_STATE_CANCELLED,
+ CONVERSION_RUN_STATE_COMPLETED,
+ CONVERSION_RUN_STATE_FAILED,
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConvertProjectFilesOperation.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConvertProjectFilesOperation.java
new file mode 100644
index 000000000..4dc470248
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConvertProjectFilesOperation.java
@@ -0,0 +1,172 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+package com.databricks.sdk.service.geniemigrate;
+
+import com.databricks.sdk.core.DatabricksException;
+import com.databricks.sdk.core.logging.Logger;
+import com.databricks.sdk.core.logging.LoggerFactory;
+import com.databricks.sdk.core.utils.SerDeUtils;
+import com.databricks.sdk.service.common.lro.LroOptions;
+import com.databricks.sdk.support.Generated;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.JsonNode;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import java.time.Duration;
+import java.util.Optional;
+import java.util.concurrent.TimeoutException;
+
+/**
+ * Wrapper for interacting with a long-running convertProjectFiles operation. Provides methods to
+ * wait for completion, check status, cancel, and access metadata.
+ */
+@Generated
+public class ConvertProjectFilesOperation {
+ private static final Logger LOG = LoggerFactory.getLogger(ConvertProjectFilesOperation.class);
+
+ private final GenieMigrateService impl;
+ private Operation operation;
+ private final ObjectMapper objectMapper;
+
+ public ConvertProjectFilesOperation(GenieMigrateService impl, Operation operation) {
+ this.impl = impl;
+ this.operation = operation;
+ this.objectMapper = SerDeUtils.createMapper();
+ }
+
+ /**
+ * Wait for the operation to complete and return the resulting ConvertProjectFilesResponse. Waits
+ * indefinitely if no timeout is specified.
+ *
+ * @return the created ConvertProjectFilesResponse
+ * @throws TimeoutException if the operation doesn't complete within the timeout
+ * @throws DatabricksException if the operation fails
+ */
+ public ConvertProjectFilesResponse waitForCompletion() throws TimeoutException {
+ return waitForCompletion(Optional.empty());
+ }
+
+ /**
+ * Wait for the operation to complete and return the resulting ConvertProjectFilesResponse.
+ *
+ * @param options the options for configuring the wait behavior, can be empty for defaults
+ * @return the created ConvertProjectFilesResponse
+ * @throws TimeoutException if the operation doesn't complete within the timeout
+ * @throws DatabricksException if the operation fails
+ */
+ public ConvertProjectFilesResponse waitForCompletion(Optional options)
+ throws TimeoutException {
+ Optional timeout = options.flatMap(LroOptions::getTimeout);
+ long deadline =
+ timeout.isPresent()
+ ? System.currentTimeMillis() + timeout.get().toMillis()
+ : Long.MAX_VALUE;
+ String statusMessage = "polling operation...";
+ int attempt = 1;
+
+ while (System.currentTimeMillis() < deadline) {
+ // Refresh the operation state
+ refreshOperation();
+
+ if (operation.getDone() != null && operation.getDone()) {
+ // Operation completed, check for success or failure
+ if (operation.getError() != null) {
+ String errorMsg = "unknown error";
+ if (operation.getError().getMessage() != null
+ && !operation.getError().getMessage().isEmpty()) {
+ errorMsg = operation.getError().getMessage();
+ }
+
+ if (operation.getError().getErrorCode() != null) {
+ errorMsg = String.format("[%s] %s", operation.getError().getErrorCode(), errorMsg);
+ }
+
+ throw new DatabricksException("Operation failed: " + errorMsg);
+ }
+
+ // Operation completed successfully, unmarshal response
+ if (operation.getResponse() == null) {
+ throw new DatabricksException("Operation completed but no response available");
+ }
+
+ try {
+ JsonNode responseJson = objectMapper.valueToTree(operation.getResponse());
+ return objectMapper.treeToValue(responseJson, ConvertProjectFilesResponse.class);
+ } catch (JsonProcessingException e) {
+ throw new DatabricksException(
+ "Failed to unmarshal convertProjectFilesResponse response: " + e.getMessage(), e);
+ }
+ }
+
+ // Operation still in progress, wait before polling again
+ String prefix = String.format("operation=%s", operation.getName());
+ int sleep = Math.min(attempt, 10); // sleep 10s max per attempt
+ LOG.info("{}: operation in progress (sleeping ~{}s)", prefix, sleep);
+
+ try {
+ Thread.sleep((long) (sleep * 1000L + Math.random() * 1000));
+ } catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ throw new DatabricksException("Current thread was interrupted", e);
+ }
+ attempt++;
+ }
+
+ String timeoutMessage =
+ timeout.isPresent()
+ ? String.format("Operation timed out after %s: %s", timeout.get(), statusMessage)
+ : String.format("Operation timed out: %s", statusMessage);
+ throw new TimeoutException(timeoutMessage);
+ }
+
+ /**
+ * Cancel the operation.
+ *
+ * @throws DatabricksException if the cancellation fails
+ */
+ public void cancel() {
+ impl.cancelOperation(new CancelOperationRequest().setName(operation.getName()));
+ }
+
+ /**
+ * Get the operation name.
+ *
+ * @return the operation name
+ */
+ public String getName() {
+ return operation.getName();
+ }
+
+ /**
+ * Get the operation metadata.
+ *
+ * @return the operation metadata, or null if not available
+ * @throws DatabricksException if the metadata cannot be deserialized
+ */
+ public ConversionRun getMetadata() {
+ if (operation.getMetadata() == null) {
+ return null;
+ }
+
+ try {
+ JsonNode metadataJson = objectMapper.valueToTree(operation.getMetadata());
+ return objectMapper.treeToValue(metadataJson, ConversionRun.class);
+ } catch (JsonProcessingException e) {
+ throw new DatabricksException("Failed to unmarshal operation metadata: " + e.getMessage(), e);
+ }
+ }
+
+ /**
+ * Check if the operation is done. This method refreshes the operation state before checking.
+ *
+ * @return true if the operation is complete, false otherwise
+ * @throws DatabricksException if the status check fails
+ */
+ public boolean isDone() {
+ refreshOperation();
+ return operation.getDone() != null && operation.getDone();
+ }
+
+ /** Refresh the operation state by polling the server. */
+ private void refreshOperation() {
+ operation = impl.getOperation(new GetOperationRequest().setName(operation.getName()));
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConvertProjectFilesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConvertProjectFilesRequest.java
new file mode 100644
index 000000000..f2f8893a2
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConvertProjectFilesRequest.java
@@ -0,0 +1,110 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.geniemigrate;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Collection;
+import java.util.Objects;
+
+/** The request to convert files of a migration project. */
+@Generated
+public class ConvertProjectFilesRequest {
+ /**
+ * The files to convert, in the format `projects/{project_id}/files/{file_id}`. For example,
+ * `projects/123/files/789`. All files must belong to `parent`. At most 500 files; a workspace can
+ * set a lower limit, and requests over it return `INVALID_PARAMETER_VALUE`.
+ */
+ @JsonProperty("names")
+ private Collection names;
+
+ /**
+ * The resource name of the project whose files to convert, in the format `projects/{project_id}`.
+ * For example, `projects/123`.
+ */
+ @JsonIgnore private String parent;
+
+ /**
+ * Custom skills that the conversion can use, as workspace paths of skill folders. Each folder
+ * must contain a `SKILL.md` file and be directly inside a skills folder:
+ * `/.assistant/skills`, `/Workspace/.assistant/skills`, or another configured skills
+ * folder. At most 10 paths, which together must fit in 1000 bytes when encoded as a JSON array.
+ * Larger values return `INVALID_PARAMETER_VALUE`. If empty, the conversion discovers skills
+ * automatically.
+ */
+ @JsonProperty("skill_paths")
+ private Collection skillPaths;
+
+ /**
+ * Whether to convert each selected file from scratch instead of continuing from its previous
+ * results (changes, to-do items, blockers, and notes). Supported only for projects whose target
+ * framework is `TARGET_FRAMEWORK_SQL`; other projects return `INVALID_PARAMETER_VALUE`. Defaults
+ * to `false`.
+ */
+ @JsonProperty("start_over")
+ private Boolean startOver;
+
+ public ConvertProjectFilesRequest setNames(Collection names) {
+ this.names = names;
+ return this;
+ }
+
+ public Collection getNames() {
+ return names;
+ }
+
+ public ConvertProjectFilesRequest setParent(String parent) {
+ this.parent = parent;
+ return this;
+ }
+
+ public String getParent() {
+ return parent;
+ }
+
+ public ConvertProjectFilesRequest setSkillPaths(Collection skillPaths) {
+ this.skillPaths = skillPaths;
+ return this;
+ }
+
+ public Collection getSkillPaths() {
+ return skillPaths;
+ }
+
+ public ConvertProjectFilesRequest setStartOver(Boolean startOver) {
+ this.startOver = startOver;
+ return this;
+ }
+
+ public Boolean getStartOver() {
+ return startOver;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ ConvertProjectFilesRequest that = (ConvertProjectFilesRequest) o;
+ return Objects.equals(names, that.names)
+ && Objects.equals(parent, that.parent)
+ && Objects.equals(skillPaths, that.skillPaths)
+ && Objects.equals(startOver, that.startOver);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(names, parent, skillPaths, startOver);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(ConvertProjectFilesRequest.class)
+ .add("names", names)
+ .add("parent", parent)
+ .add("skillPaths", skillPaths)
+ .add("startOver", startOver)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConvertProjectFilesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConvertProjectFilesResponse.java
new file mode 100644
index 000000000..99778b61d
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConvertProjectFilesResponse.java
@@ -0,0 +1,46 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.geniemigrate;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Objects;
+
+/** The result of a completed conversion. */
+@Generated
+public class ConvertProjectFilesResponse {
+ /**
+ * The completed conversion run. Each file's outcome is in `run.files`; a completed run can
+ * include files that failed to convert.
+ */
+ @JsonProperty("run")
+ private ConversionRun run;
+
+ public ConvertProjectFilesResponse setRun(ConversionRun run) {
+ this.run = run;
+ return this;
+ }
+
+ public ConversionRun getRun() {
+ return run;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ ConvertProjectFilesResponse that = (ConvertProjectFilesResponse) o;
+ return Objects.equals(run, that.run);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(run);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(ConvertProjectFilesResponse.class).add("run", run).toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/CreateProjectRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/CreateProjectRequest.java
new file mode 100644
index 000000000..c0b57dcc0
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/CreateProjectRequest.java
@@ -0,0 +1,42 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.geniemigrate;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Objects;
+
+@Generated
+public class CreateProjectRequest {
+ /** The project to create. The server sets `name` in the response. */
+ @JsonProperty("project")
+ private Project project;
+
+ public CreateProjectRequest setProject(Project project) {
+ this.project = project;
+ return this;
+ }
+
+ public Project getProject() {
+ return project;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ CreateProjectRequest that = (CreateProjectRequest) o;
+ return Objects.equals(project, that.project);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(project);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(CreateProjectRequest.class).add("project", project).toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DatabricksServiceExceptionWithDetailsProto.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DatabricksServiceExceptionWithDetailsProto.java
new file mode 100644
index 000000000..cc0aa7981
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DatabricksServiceExceptionWithDetailsProto.java
@@ -0,0 +1,92 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.geniemigrate;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Collection;
+import java.util.Objects;
+
+/** Databricks Error that is returned by all Databricks APIs. */
+@Generated
+public class DatabricksServiceExceptionWithDetailsProto {
+ /** */
+ @JsonProperty("details")
+ private Collection