From d9320a84f80fb9393f0c195e420791d7c60cd763 Mon Sep 17 00:00:00 2001 From: "databricks-ci-ghec-2[bot]" <184307802+databricks-ci-ghec-2[bot]@users.noreply.github.com> Date: Wed, 25 Nov 2026 03:20:45 +0000 Subject: [PATCH] Release databricks-sdk-java --- .codegen.json | 51 ---- .codegen/_last_sha | 2 +- CHANGELOG.md | 12 + databricks-sdk-java/lockfile.json | 2 +- databricks-sdk-java/pom.xml | 2 +- .../com/databricks/sdk/WorkspaceClient.java | 25 +- .../com/databricks/sdk/core/UserAgent.java | 2 +- .../sdk/service/agentkit/AgentKitAPI.java | 6 +- .../sdk/service/agentkit/AgentKitService.java | 6 +- .../CreateManagedMemoryEntryRequest.java | 6 +- .../ListManagedMemoryEntriesRequest.java | 5 +- .../ListManagedMemoryEntriesResponse.java | 5 +- .../service/agentkit/ManagedMemoryEntry.java | 5 +- .../SearchManagedMemoryEntriesRequest.java | 5 +- .../service/aifunctions/AiDecideOptions.java | 3 +- .../service/aifunctions/AiDecideRequest.java | 43 +-- .../service/aifunctions/AiDecideResponse.java | 7 +- .../service/aifunctions/AiFunctionsAPI.java | 21 +- .../aifunctions/AiFunctionsService.java | 21 +- .../com/databricks/sdk/service/apps/App.java | 3 +- .../databricks/sdk/service/apps/AppsAPI.java | 15 +- .../sdk/service/apps/AppsService.java | 15 +- .../service/apps/AsyncUpdateAppRequest.java | 2 +- .../sdk/service/apps/UpdateSpaceRequest.java | 3 +- .../catalog/UpdateModelServiceRequest.java | 11 +- .../service/compute/CreateInstancePool.java | 42 ++- .../sdk/service/compute/EditInstancePool.java | 21 +- .../sdk/service/compute/GetInstancePool.java | 44 ++- .../GlobalInitScriptCreateRequest.java | 7 +- .../compute/GlobalInitScriptDetails.java | 8 +- .../GlobalInitScriptDetailsWithContent.java | 8 +- .../GlobalInitScriptUpdateRequest.java | 7 +- .../service/compute/GlobalInitScriptsAPI.java | 5 +- .../compute/GlobalInitScriptsService.java | 5 +- .../service/compute/InstancePoolAndStats.java | 44 ++- .../compute/InstancePoolAwsAttributes.java | 4 +- .../service/compute/InstancePoolState.java | 6 +- .../service/compute/InstancePoolStatus.java | 6 +- .../sdk/service/compute/InstancePoolsAPI.java | 8 +- .../service/compute/InstancePoolsService.java | 8 +- .../service/compute/ListInstancePools.java | 2 +- .../service/compute/PendingInstanceError.java | 9 +- .../dashboards/GenieCreateSpaceRequest.java | 7 +- .../UpdateSyncedDatabaseTableRequest.java | 4 +- .../sdk/service/genieagents/GenieAgent.java | 9 +- .../genieagents/GenieAgentDefinition.java | 32 +-- .../genieagents/GenieAgentInstructions.java | 37 +-- ...aSources.java => GenieAgentResources.java} | 32 ++- .../genieagents/UpdateGenieAgentRequest.java | 2 +- .../geniemigrate/AddProjectFilesRequest.java | 68 +++++ .../geniemigrate/AddProjectFilesResponse.java | 50 ++++ .../geniemigrate/CancelOperationRequest.java | 42 +++ .../service/geniemigrate/ConversionRun.java | 143 +++++++++ .../geniemigrate/ConversionRunErrorCode.java | 13 + .../geniemigrate/ConversionRunFile.java | 62 ++++ .../geniemigrate/ConversionRunState.java | 14 + .../ConvertProjectFilesOperation.java | 172 +++++++++++ .../ConvertProjectFilesRequest.java | 110 +++++++ .../ConvertProjectFilesResponse.java | 46 +++ .../geniemigrate/CreateProjectRequest.java | 42 +++ ...ricksServiceExceptionWithDetailsProto.java | 92 ++++++ .../geniemigrate/DeleteProjectRequest.java | 44 +++ .../service/geniemigrate/DestinationKind.java | 14 + .../geniemigrate/DestinationResource.java | 59 ++++ .../sdk/service/geniemigrate/ErrorCode.java | 91 ++++++ .../sdk/service/geniemigrate/FileStatus.java | 17 ++ .../service/geniemigrate/GenieMigrateAPI.java | 206 +++++++++++++ .../geniemigrate/GenieMigrateImpl.java | 264 +++++++++++++++++ .../geniemigrate/GenieMigrateService.java | 121 ++++++++ .../geniemigrate/GetOperationRequest.java | 41 +++ .../geniemigrate/GetProjectFileRequest.java | 44 +++ .../geniemigrate/GetProjectRequest.java | 44 +++ .../geniemigrate/ListProjectFilesRequest.java | 86 ++++++ .../ListProjectFilesResponse.java | 61 ++++ .../geniemigrate/ListProjectsRequest.java | 87 ++++++ .../geniemigrate/ListProjectsResponse.java | 64 +++++ .../sdk/service/geniemigrate/Location.java | 46 +++ .../sdk/service/geniemigrate/Operation.java | 116 ++++++++ .../sdk/service/geniemigrate/Project.java | 161 +++++++++++ .../service/geniemigrate/ProjectConfig.java | 102 +++++++ .../sdk/service/geniemigrate/ProjectFile.java | 271 ++++++++++++++++++ .../RemoveProjectFilesRequest.java | 67 +++++ .../RemoveProjectFilesResponse.java | 47 +++ .../ReviewProjectFilesRequest.java | 66 +++++ .../ReviewProjectFilesResponse.java | 49 ++++ .../service/geniemigrate/SourceDialect.java | 19 ++ .../service/geniemigrate/SourceFileRef.java | 66 +++++ .../service/geniemigrate/TargetFramework.java | 14 + .../UnreviewProjectFilesRequest.java | 66 +++++ .../UnreviewProjectFilesResponse.java | 49 ++++ .../geniemigrate/UpdateProjectRequest.java | 84 ++++++ .../geniemigrate/WorkspaceLocation.java | 64 +++++ .../databricks/sdk/service/jobs/BaseRun.java | 12 +- .../sdk/service/jobs/CancelRun.java | 2 +- .../JobCompletionTriggerRunInfoDetails.java | 5 +- ...mpletionTriggerStateMonitoredJobState.java | 5 +- .../databricks/sdk/service/jobs/JobsAPI.java | 6 +- .../sdk/service/jobs/JobsService.java | 6 +- .../sdk/service/jobs/ListRunsRequest.java | 2 +- .../sdk/service/jobs/RepairHistoryItem.java | 15 +- .../sdk/service/jobs/RepairRun.java | 2 +- .../jobs/ResolvedConditionTaskValues.java | 10 +- .../service/jobs/ResolvedDbtTaskValues.java | 2 +- .../jobs/ResolvedNotebookTaskValues.java | 2 +- .../service/jobs/ResolvedParamPairValues.java | 2 +- .../jobs/ResolvedPythonWheelTaskValues.java | 4 +- .../jobs/ResolvedRunJobTaskValues.java | 5 +- .../jobs/ResolvedStringParamsValues.java | 5 +- .../sdk/service/jobs/ResolvedValues.java | 20 +- .../com/databricks/sdk/service/jobs/Run.java | 12 +- .../databricks/sdk/service/jobs/RunTask.java | 4 +- .../sdk/service/lakewatch/Rule.java | 11 +- .../sdk/service/marketplace/AssetType.java | 2 + .../sdk/service/ml/ExperimentsAPI.java | 6 +- .../sdk/service/ml/ExperimentsService.java | 6 +- .../sdk/service/ml/MaterializationSet.java | 23 +- .../com/databricks/sdk/service/ml/Metric.java | 2 +- .../databricks/sdk/service/ml/RunInfo.java | 9 +- .../databricks/sdk/service/ml/RunInputs.java | 2 +- .../pipelines/ClonePipelineRequest.java | 5 +- .../sdk/service/pipelines/CreatePipeline.java | 5 +- .../sdk/service/pipelines/EditPipeline.java | 5 +- .../pipelines/GetPipelineResponse.java | 5 +- .../sdk/service/pipelines/PipelineSpec.java | 5 +- .../sdk/service/settings/NccEgressConfig.java | 5 +- .../settings/NccEgressTargetRules.java | 4 +- .../service/sql/CreateWarehouseRequest.java | 11 +- .../sdk/service/sql/EditWarehouseRequest.java | 11 +- .../sdk/service/sql/EndpointInfo.java | 11 +- .../sdk/service/sql/GetWarehouseResponse.java | 11 +- examples/docs/pom.xml | 2 +- examples/spring-boot-oauth-u2m-demo/pom.xml | 2 +- lockfile.json | 2 +- pom.xml | 2 +- shaded/pom.xml | 2 +- 135 files changed, 3925 insertions(+), 364 deletions(-) delete mode 100644 .codegen.json rename databricks-sdk-java/src/main/java/com/databricks/sdk/service/genieagents/{GenieAgentDataSources.java => GenieAgentResources.java} (62%) create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/AddProjectFilesRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/AddProjectFilesResponse.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/CancelOperationRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRun.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRunErrorCode.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRunFile.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConversionRunState.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConvertProjectFilesOperation.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConvertProjectFilesRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ConvertProjectFilesResponse.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/CreateProjectRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DatabricksServiceExceptionWithDetailsProto.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DeleteProjectRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DestinationKind.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DestinationResource.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ErrorCode.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/FileStatus.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GenieMigrateAPI.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GenieMigrateImpl.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GenieMigrateService.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GetOperationRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GetProjectFileRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GetProjectRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectFilesRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectFilesResponse.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectsRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectsResponse.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/Location.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/Operation.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/Project.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ProjectConfig.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ProjectFile.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/RemoveProjectFilesRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/RemoveProjectFilesResponse.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ReviewProjectFilesRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ReviewProjectFilesResponse.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/SourceDialect.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/SourceFileRef.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/TargetFramework.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/UnreviewProjectFilesRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/UnreviewProjectFilesResponse.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/UpdateProjectRequest.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/WorkspaceLocation.java 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.databricks databricks-sdk-parent - 0.185.0 + 0.186.0 databricks-sdk-java Databricks 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]. | + * + *

[select regions]: + * https://docs.databricks.com/aws/en/resources/feature-region-support#ai-function-availability */ @JsonProperty("state") private JsonNode state; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiDecideResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiDecideResponse.java index da50c46cc..31d82ba4d 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiDecideResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/aifunctions/AiDecideResponse.java @@ -32,11 +32,14 @@ public class AiDecideResponse { * *

```json { "answers": { "escalate": { "type": "noul", "probability": 0.8 } } } ``` * - *

- `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`` + *

- `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 details; + + /** */ + @JsonProperty("error_code") + private ErrorCode errorCode; + + /** */ + @JsonProperty("message") + private String message; + + /** */ + @JsonProperty("stack_trace") + private String stackTrace; + + public DatabricksServiceExceptionWithDetailsProto setDetails(Collection details) { + this.details = details; + return this; + } + + public Collection getDetails() { + return details; + } + + public DatabricksServiceExceptionWithDetailsProto setErrorCode(ErrorCode errorCode) { + this.errorCode = errorCode; + return this; + } + + public ErrorCode getErrorCode() { + return errorCode; + } + + public DatabricksServiceExceptionWithDetailsProto setMessage(String message) { + this.message = message; + return this; + } + + public String getMessage() { + return message; + } + + public DatabricksServiceExceptionWithDetailsProto setStackTrace(String stackTrace) { + this.stackTrace = stackTrace; + return this; + } + + public String getStackTrace() { + return stackTrace; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + DatabricksServiceExceptionWithDetailsProto that = + (DatabricksServiceExceptionWithDetailsProto) o; + return Objects.equals(details, that.details) + && Objects.equals(errorCode, that.errorCode) + && Objects.equals(message, that.message) + && Objects.equals(stackTrace, that.stackTrace); + } + + @Override + public int hashCode() { + return Objects.hash(details, errorCode, message, stackTrace); + } + + @Override + public String toString() { + return new ToStringer(DatabricksServiceExceptionWithDetailsProto.class) + .add("details", details) + .add("errorCode", errorCode) + .add("message", message) + .add("stackTrace", stackTrace) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DeleteProjectRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DeleteProjectRequest.java new file mode 100644 index 000000000..1a043d6b4 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DeleteProjectRequest.java @@ -0,0 +1,44 @@ +// 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; + +@Generated +public class DeleteProjectRequest { + /** + * The resource name of the project, in the format `projects/{project_id}`. For example, + * `projects/123`. + */ + @JsonIgnore private String name; + + public DeleteProjectRequest 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; + DeleteProjectRequest that = (DeleteProjectRequest) o; + return Objects.equals(name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + return new ToStringer(DeleteProjectRequest.class).add("name", name).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DestinationKind.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DestinationKind.java new file mode 100644 index 000000000..69702e023 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DestinationKind.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; + +/** Destination asset kind for a converted file. */ +@Generated +public enum DestinationKind { + DESTINATION_KIND_DESIGNER_FILE, + DESTINATION_KIND_FILE, + DESTINATION_KIND_NOTEBOOK, + DESTINATION_KIND_QUERY, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DestinationResource.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DestinationResource.java new file mode 100644 index 000000000..3a576d580 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/DestinationResource.java @@ -0,0 +1,59 @@ +// 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 Databricks job or pipeline created during conversion. */ +@Generated +public class DestinationResource { + /** The ID of the job that conversion created, if any. */ + @JsonProperty("job_id") + private Long jobId; + + /** The ID (a UUID) of the pipeline that conversion created, if any. */ + @JsonProperty("pipeline_id") + private String pipelineId; + + public DestinationResource setJobId(Long jobId) { + this.jobId = jobId; + return this; + } + + public Long getJobId() { + return jobId; + } + + public DestinationResource setPipelineId(String pipelineId) { + this.pipelineId = pipelineId; + return this; + } + + public String getPipelineId() { + return pipelineId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + DestinationResource that = (DestinationResource) o; + return Objects.equals(jobId, that.jobId) && Objects.equals(pipelineId, that.pipelineId); + } + + @Override + public int hashCode() { + return Objects.hash(jobId, pipelineId); + } + + @Override + public String toString() { + return new ToStringer(DestinationResource.class) + .add("jobId", jobId) + .add("pipelineId", pipelineId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ErrorCode.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ErrorCode.java new file mode 100644 index 000000000..f3ff146a2 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ErrorCode.java @@ -0,0 +1,91 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.geniemigrate; + +import com.databricks.sdk.support.Generated; + +/** Error codes returned by Databricks APIs to indicate specific failure conditions. */ +@Generated +public enum ErrorCode { + ABORTED, + ALREADY_EXISTS, + BAD_REQUEST, + CANCELLED, + CATALOG_ALREADY_EXISTS, + CATALOG_DOES_NOT_EXIST, + CATALOG_NOT_EMPTY, + COULD_NOT_ACQUIRE_LOCK, + CUSTOMER_UNAUTHORIZED, + DAC_ALREADY_EXISTS, + DAC_DOES_NOT_EXIST, + DATA_LOSS, + DEADLINE_EXCEEDED, + DEPLOYMENT_TIMEOUT, + DIRECTORY_NOT_EMPTY, + DIRECTORY_PROTECTED, + DRY_RUN_FAILED, + ENDPOINT_NOT_FOUND, + EXTERNAL_LOCATION_ALREADY_EXISTS, + EXTERNAL_LOCATION_DOES_NOT_EXIST, + FEATURE_DISABLED, + GIT_CONFLICT, + GIT_REMOTE_ERROR, + GIT_SENSITIVE_TOKEN_DETECTED, + GIT_UNKNOWN_REF, + GIT_URL_NOT_ON_ALLOW_LIST, + INSECURE_PARTNER_RESPONSE, + INTERNAL_ERROR, + INVALID_PARAMETER_VALUE, + INVALID_STATE, + INVALID_STATE_TRANSITION, + IO_ERROR, + IPYNB_FILE_IN_REPO, + MALFORMED_PARTNER_RESPONSE, + MALFORMED_REQUEST, + MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST, + MAX_BLOCK_SIZE_EXCEEDED, + MAX_CHILD_NODE_SIZE_EXCEEDED, + MAX_LIST_SIZE_EXCEEDED, + MAX_NOTEBOOK_SIZE_EXCEEDED, + MAX_READ_SIZE_EXCEEDED, + METASTORE_ALREADY_EXISTS, + METASTORE_DOES_NOT_EXIST, + METASTORE_NOT_EMPTY, + NOT_FOUND, + NOT_IMPLEMENTED, + PARTIAL_DELETE, + PERMISSION_DENIED, + PERMISSION_NOT_PROPAGATED, + PRINCIPAL_DOES_NOT_EXIST, + PROJECTS_OPERATION_TIMEOUT, + PROVIDER_ALREADY_EXISTS, + PROVIDER_DOES_NOT_EXIST, + PROVIDER_SHARE_NOT_ACCESSIBLE, + QUOTA_EXCEEDED, + RECIPIENT_ALREADY_EXISTS, + RECIPIENT_DOES_NOT_EXIST, + REQUEST_LIMIT_EXCEEDED, + RESOURCE_ALREADY_EXISTS, + RESOURCE_CONFLICT, + RESOURCE_DOES_NOT_EXIST, + RESOURCE_EXHAUSTED, + RESOURCE_LIMIT_EXCEEDED, + SCHEMA_ALREADY_EXISTS, + SCHEMA_DOES_NOT_EXIST, + SCHEMA_NOT_EMPTY, + SEARCH_QUERY_TOO_LONG, + SEARCH_QUERY_TOO_SHORT, + SERVICE_UNDER_MAINTENANCE, + SHARE_ALREADY_EXISTS, + SHARE_DOES_NOT_EXIST, + STORAGE_CREDENTIAL_ALREADY_EXISTS, + STORAGE_CREDENTIAL_DOES_NOT_EXIST, + TABLE_ALREADY_EXISTS, + TABLE_DOES_NOT_EXIST, + TEMPORARILY_UNAVAILABLE, + UNAUTHENTICATED, + UNAVAILABLE, + UNKNOWN, + UNPARSEABLE_HTTP_ERROR, + WORKSPACE_TEMPORARILY_UNAVAILABLE, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/FileStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/FileStatus.java new file mode 100644 index 000000000..f0a10a23f --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/FileStatus.java @@ -0,0 +1,17 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.geniemigrate; + +import com.databricks.sdk.support.Generated; + +/** Conversion status of a file in a migration project. */ +@Generated +public enum FileStatus { + FILE_STATUS_ERROR, + FILE_STATUS_IN_PROGRESS, + FILE_STATUS_PARTIAL_SUCCESS, + FILE_STATUS_QUEUED, + FILE_STATUS_REVIEWED, + FILE_STATUS_STOPPED, + FILE_STATUS_SUCCESS, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GenieMigrateAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GenieMigrateAPI.java new file mode 100644 index 000000000..ac3c2dd5c --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GenieMigrateAPI.java @@ -0,0 +1,206 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.geniemigrate; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.core.logging.Logger; +import com.databricks.sdk.core.logging.LoggerFactory; +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.Paginator; + +/** + * Use the Genie Migrate API to create and manage migration projects and the source files to + * convert. + */ +@Generated +public class GenieMigrateAPI { + private static final Logger LOG = LoggerFactory.getLogger(GenieMigrateAPI.class); + + private final GenieMigrateService impl; + + /** Regular-use constructor */ + public GenieMigrateAPI(ApiClient apiClient) { + impl = new GenieMigrateImpl(apiClient); + } + + /** Constructor for mocks */ + public GenieMigrateAPI(GenieMigrateService mock) { + impl = mock; + } + + /** + * Adds source files to a migration project. Files that are already in the project are skipped and + * keep their conversion results. + */ + public AddProjectFilesResponse addFiles(AddProjectFilesRequest request) { + return impl.addFiles(request); + } + + /** + * Requests cancellation of a long-running operation. Requires `CAN_EDIT` permission on the + * project. Cancellation is best effort: the operation can complete before cancellation takes + * effect. Call `GetOperation` to see its final state. + */ + public void cancelOperation(CancelOperationRequest request) { + impl.cancelOperation(request); + } + + /** + * Converts files of a migration project in a background job. Returns an operation; poll it with + * `GetOperation`. The operation's metadata is the current `ConversionRun`, with the run's state + * and the status of each file. When the run completes, the operation's response is a + * `ConvertProjectFilesResponse`. A failed or cancelled run sets the operation's `error` instead. + * Files that fail to convert don't fail the run. + * + *

To stop a conversion, call `CancelOperation`. Cancellation is best effort, and the + * conversion can complete first. `GetOperation` reports the final outcome. + */ + public ConvertProjectFilesOperation convertProjectFiles(ConvertProjectFilesRequest request) { + Operation operation = impl.convertProjectFiles(request); + return new ConvertProjectFilesOperation(impl, operation); + } + + /** + * Creates a migration project in a workspace folder. The server assigns the project ID. Add + * source files to the project with `AddProjectFiles`. + */ + public Project create(CreateProjectRequest request) { + return impl.create(request); + } + + public void delete(String name) { + delete(new DeleteProjectRequest().setName(name)); + } + + /** + * Moves a migration project to the workspace trash. The project keeps its ID until it's removed + * from the trash. + */ + public void delete(DeleteProjectRequest request) { + impl.delete(request); + } + + public Project get(String name) { + return get(new GetProjectRequest().setName(name)); + } + + /** + * Gets a migration project, including its conversion settings and whether they're locked. To list + * the project's source files, call `ListProjectFiles`. To track a conversion, call + * `GetOperation`. + */ + public Project get(GetProjectRequest request) { + return impl.get(request); + } + + public ProjectFile getFile(String name) { + return getFile(new GetProjectFileRequest().setName(name)); + } + + /** + * Gets a file of a migration project, including the conversion details stored with its converted + * file, when available. Requires `CAN_READ` permission on the project and, once the file is + * converted, on the converted file. + */ + public ProjectFile getFile(GetProjectFileRequest request) { + return impl.getFile(request); + } + + public Operation getOperation(String name) { + return getOperation(new GetOperationRequest().setName(name)); + } + + /** + * Gets the latest state of a long-running operation, such as a conversion started by + * `ConvertProjectFiles`. Operation names have the format + * `projects/{project_id}/operations/{operation_id}`. Use the full name that the service returned, + * and treat the operation ID as opaque. Requires `CAN_READ` permission on the project. + */ + public Operation getOperation(GetOperationRequest request) { + return impl.getOperation(request); + } + + /** + * Lists the migration projects in a workspace folder. Select the folder with `filter`; without a + * filter, lists the caller's home folder. Listing every project in the workspace isn't supported. + * + *

Returns project summaries without conversion settings; call `GetProject` for the full + * project. A page can be empty even when more pages follow, so keep requesting pages until + * `next_page_token` is empty. + */ + public Iterable list(ListProjectsRequest request) { + return Paginator.newTokenPagination( + request, + impl::list, + ListProjectsResponse::getProjects, + response -> { + String token = response.getNextPageToken(); + if (token == null || token.isEmpty()) { + return null; + } + return request.setPageToken(token); + }); + } + + public Iterable listFiles(String parent) { + return listFiles(new ListProjectFilesRequest().setParent(parent)); + } + + /** + * Lists the files of a migration project with their latest conversion statuses. To read a file's + * changes, to-do items, blockers, and notes, call `GetProjectFile`. A page can have fewer files + * than requested, or none, even when more pages follow; keep requesting pages until + * `next_page_token` is empty. + */ + public Iterable listFiles(ListProjectFilesRequest request) { + return Paginator.newTokenPagination( + request, + impl::listFiles, + ListProjectFilesResponse::getProjectFiles, + response -> { + String token = response.getNextPageToken(); + if (token == null || token.isEmpty()) { + return null; + } + return request.setPageToken(token); + }); + } + + /** + * Removes files from a migration project by their resource names. The source files and their + * converted output stay in the workspace. + */ + public RemoveProjectFilesResponse removeFiles(RemoveProjectFilesRequest request) { + return impl.removeFiles(request); + } + + /** + * Marks files of a migration project as reviewed, accepting their converted output. Each file's + * status becomes `FILE_STATUS_REVIEWED`, and reviewed files aren't converted again. Files that + * are already reviewed don't change. Returns the files in request order. + */ + public ReviewProjectFilesResponse reviewProjectFiles(ReviewProjectFilesRequest request) { + return impl.reviewProjectFiles(request); + } + + /** + * Removes the reviewed status from files of a migration project. Each file returns to the status + * it had before it was reviewed. Files that aren't reviewed don't change. Returns the files in + * request order. + */ + public UnreviewProjectFilesResponse unreviewProjectFiles(UnreviewProjectFilesRequest request) { + return impl.unreviewProjectFiles(request); + } + + /** + * Updates a migration project. Only the fields listed in `update_mask` change. An empty mask, or + * a mask with an unsupported field, returns `INVALID_PARAMETER_VALUE`. When `changes_locked` is + * `true`, the source dialect and target framework can't be changed. + */ + public Project update(UpdateProjectRequest request) { + return impl.update(request); + } + + public GenieMigrateService impl() { + return impl; + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GenieMigrateImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GenieMigrateImpl.java new file mode 100644 index 000000000..9e223828d --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GenieMigrateImpl.java @@ -0,0 +1,264 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.geniemigrate; + +import com.databricks.sdk.core.ApiClient; +import com.databricks.sdk.core.DatabricksException; +import com.databricks.sdk.core.http.Request; +import com.databricks.sdk.support.Generated; +import java.io.IOException; + +/** Package-local implementation of GenieMigrate */ +@Generated +class GenieMigrateImpl implements GenieMigrateService { + private final ApiClient apiClient; + + public GenieMigrateImpl(ApiClient apiClient) { + this.apiClient = apiClient; + } + + @Override + public AddProjectFilesResponse addFiles(AddProjectFilesRequest request) { + String path = String.format("/api/2.0/migrations/%s/files:add", request.getName()); + try { + Request req = new Request("POST", path, apiClient.serialize(request)); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + req.withHeader("Content-Type", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + return apiClient.execute(req, AddProjectFilesResponse.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public void cancelOperation(CancelOperationRequest request) { + String path = String.format("/api/2.0/migrations/%s/cancel", request.getName()); + try { + Request req = new Request("POST", path, apiClient.serialize(request)); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + req.withHeader("Content-Type", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + apiClient.execute(req, Void.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public Operation convertProjectFiles(ConvertProjectFilesRequest request) { + String path = String.format("/api/2.0/migrations/%s/files:convert", request.getParent()); + try { + Request req = new Request("POST", path, apiClient.serialize(request)); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + req.withHeader("Content-Type", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + return apiClient.execute(req, Operation.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public Project create(CreateProjectRequest request) { + String path = "/api/2.0/migrations/projects"; + try { + Request req = new Request("POST", path, apiClient.serialize(request.getProject())); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + req.withHeader("Content-Type", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + return apiClient.execute(req, Project.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public void delete(DeleteProjectRequest request) { + String path = String.format("/api/2.0/migrations/%s", request.getName()); + try { + Request req = new Request("DELETE", path); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + apiClient.execute(req, Void.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public Project get(GetProjectRequest request) { + String path = String.format("/api/2.0/migrations/%s", request.getName()); + try { + Request req = new Request("GET", path); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + return apiClient.execute(req, Project.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public ProjectFile getFile(GetProjectFileRequest request) { + String path = String.format("/api/2.0/migrations/%s", request.getName()); + try { + Request req = new Request("GET", path); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + return apiClient.execute(req, ProjectFile.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public Operation getOperation(GetOperationRequest request) { + String path = String.format("/api/2.0/migrations/%s", request.getName()); + try { + Request req = new Request("GET", path); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + return apiClient.execute(req, Operation.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public ListProjectsResponse list(ListProjectsRequest request) { + String path = "/api/2.0/migrations/projects"; + try { + Request req = new Request("GET", path); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + return apiClient.execute(req, ListProjectsResponse.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public ListProjectFilesResponse listFiles(ListProjectFilesRequest request) { + String path = String.format("/api/2.0/migrations/%s/files", request.getParent()); + try { + Request req = new Request("GET", path); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + return apiClient.execute(req, ListProjectFilesResponse.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public RemoveProjectFilesResponse removeFiles(RemoveProjectFilesRequest request) { + String path = String.format("/api/2.0/migrations/%s/files:remove", request.getName()); + try { + Request req = new Request("POST", path, apiClient.serialize(request)); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + req.withHeader("Content-Type", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + return apiClient.execute(req, RemoveProjectFilesResponse.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public ReviewProjectFilesResponse reviewProjectFiles(ReviewProjectFilesRequest request) { + String path = String.format("/api/2.0/migrations/%s/files:review", request.getParent()); + try { + Request req = new Request("POST", path, apiClient.serialize(request)); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + req.withHeader("Content-Type", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + return apiClient.execute(req, ReviewProjectFilesResponse.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public UnreviewProjectFilesResponse unreviewProjectFiles(UnreviewProjectFilesRequest request) { + String path = String.format("/api/2.0/migrations/%s/files:unreview", request.getParent()); + try { + Request req = new Request("POST", path, apiClient.serialize(request)); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + req.withHeader("Content-Type", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + return apiClient.execute(req, UnreviewProjectFilesResponse.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } + + @Override + public Project update(UpdateProjectRequest request) { + String path = String.format("/api/2.0/migrations/%s", request.getName()); + try { + Request req = new Request("PATCH", path, apiClient.serialize(request.getProject())); + + ApiClient.setQuery(req, request); + req.withHeader("Accept", "application/json"); + req.withHeader("Content-Type", "application/json"); + if (apiClient.workspaceId() != null) { + req.withHeader("X-Databricks-Workspace-Id", apiClient.workspaceId()); + } + return apiClient.execute(req, Project.class); + } catch (IOException e) { + throw new DatabricksException("IO error: " + e.getMessage(), e); + } + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GenieMigrateService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GenieMigrateService.java new file mode 100644 index 000000000..cbbb558e2 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GenieMigrateService.java @@ -0,0 +1,121 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. +package com.databricks.sdk.service.geniemigrate; + +import com.databricks.sdk.support.Generated; + +/** + * Use the Genie Migrate API to create and manage migration projects and the source files to + * convert. + * + *

This is the high-level interface, that contains generated methods. + * + *

Evolving: this interface is under development. Method signatures may change. + */ +@Generated +public interface GenieMigrateService { + /** + * Adds source files to a migration project. Files that are already in the project are skipped and + * keep their conversion results. + */ + AddProjectFilesResponse addFiles(AddProjectFilesRequest addProjectFilesRequest); + + /** + * Requests cancellation of a long-running operation. Requires `CAN_EDIT` permission on the + * project. Cancellation is best effort: the operation can complete before cancellation takes + * effect. Call `GetOperation` to see its final state. + */ + void cancelOperation(CancelOperationRequest cancelOperationRequest); + + /** + * Converts files of a migration project in a background job. Returns an operation; poll it with + * `GetOperation`. The operation's metadata is the current `ConversionRun`, with the run's state + * and the status of each file. When the run completes, the operation's response is a + * `ConvertProjectFilesResponse`. A failed or cancelled run sets the operation's `error` instead. + * Files that fail to convert don't fail the run. + * + *

To stop a conversion, call `CancelOperation`. Cancellation is best effort, and the + * conversion can complete first. `GetOperation` reports the final outcome. + */ + Operation convertProjectFiles(ConvertProjectFilesRequest convertProjectFilesRequest); + + /** + * Creates a migration project in a workspace folder. The server assigns the project ID. Add + * source files to the project with `AddProjectFiles`. + */ + Project create(CreateProjectRequest createProjectRequest); + + /** + * Moves a migration project to the workspace trash. The project keeps its ID until it's removed + * from the trash. + */ + void delete(DeleteProjectRequest deleteProjectRequest); + + /** + * Gets a migration project, including its conversion settings and whether they're locked. To list + * the project's source files, call `ListProjectFiles`. To track a conversion, call + * `GetOperation`. + */ + Project get(GetProjectRequest getProjectRequest); + + /** + * Gets a file of a migration project, including the conversion details stored with its converted + * file, when available. Requires `CAN_READ` permission on the project and, once the file is + * converted, on the converted file. + */ + ProjectFile getFile(GetProjectFileRequest getProjectFileRequest); + + /** + * Gets the latest state of a long-running operation, such as a conversion started by + * `ConvertProjectFiles`. Operation names have the format + * `projects/{project_id}/operations/{operation_id}`. Use the full name that the service returned, + * and treat the operation ID as opaque. Requires `CAN_READ` permission on the project. + */ + Operation getOperation(GetOperationRequest getOperationRequest); + + /** + * Lists the migration projects in a workspace folder. Select the folder with `filter`; without a + * filter, lists the caller's home folder. Listing every project in the workspace isn't supported. + * + *

Returns project summaries without conversion settings; call `GetProject` for the full + * project. A page can be empty even when more pages follow, so keep requesting pages until + * `next_page_token` is empty. + */ + ListProjectsResponse list(ListProjectsRequest listProjectsRequest); + + /** + * Lists the files of a migration project with their latest conversion statuses. To read a file's + * changes, to-do items, blockers, and notes, call `GetProjectFile`. A page can have fewer files + * than requested, or none, even when more pages follow; keep requesting pages until + * `next_page_token` is empty. + */ + ListProjectFilesResponse listFiles(ListProjectFilesRequest listProjectFilesRequest); + + /** + * Removes files from a migration project by their resource names. The source files and their + * converted output stay in the workspace. + */ + RemoveProjectFilesResponse removeFiles(RemoveProjectFilesRequest removeProjectFilesRequest); + + /** + * Marks files of a migration project as reviewed, accepting their converted output. Each file's + * status becomes `FILE_STATUS_REVIEWED`, and reviewed files aren't converted again. Files that + * are already reviewed don't change. Returns the files in request order. + */ + ReviewProjectFilesResponse reviewProjectFiles( + ReviewProjectFilesRequest reviewProjectFilesRequest); + + /** + * Removes the reviewed status from files of a migration project. Each file returns to the status + * it had before it was reviewed. Files that aren't reviewed don't change. Returns the files in + * request order. + */ + UnreviewProjectFilesResponse unreviewProjectFiles( + UnreviewProjectFilesRequest unreviewProjectFilesRequest); + + /** + * Updates a migration project. Only the fields listed in `update_mask` change. An empty mask, or + * a mask with an unsupported field, returns `INVALID_PARAMETER_VALUE`. When `changes_locked` is + * `true`, the source dialect and target framework can't be changed. + */ + Project update(UpdateProjectRequest updateProjectRequest); +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GetOperationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GetOperationRequest.java new file mode 100644 index 000000000..6f63ddd31 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GetOperationRequest.java @@ -0,0 +1,41 @@ +// 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; + +@Generated +public class GetOperationRequest { + /** The name of the operation resource. */ + @JsonIgnore private String name; + + public GetOperationRequest 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; + GetOperationRequest that = (GetOperationRequest) o; + return Objects.equals(name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + return new ToStringer(GetOperationRequest.class).add("name", name).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GetProjectFileRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GetProjectFileRequest.java new file mode 100644 index 000000000..75f2bee46 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GetProjectFileRequest.java @@ -0,0 +1,44 @@ +// 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; + +@Generated +public class GetProjectFileRequest { + /** + * The resource name of the file, in the format `projects/{project_id}/files/{file_id}`. For + * example, `projects/123/files/789`. + */ + @JsonIgnore private String name; + + public GetProjectFileRequest 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; + GetProjectFileRequest that = (GetProjectFileRequest) o; + return Objects.equals(name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + return new ToStringer(GetProjectFileRequest.class).add("name", name).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GetProjectRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GetProjectRequest.java new file mode 100644 index 000000000..2b8ec8dce --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/GetProjectRequest.java @@ -0,0 +1,44 @@ +// 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; + +@Generated +public class GetProjectRequest { + /** + * The resource name of the project, in the format `projects/{project_id}`. For example, + * `projects/123`. + */ + @JsonIgnore private String name; + + public GetProjectRequest 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; + GetProjectRequest that = (GetProjectRequest) o; + return Objects.equals(name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + return new ToStringer(GetProjectRequest.class).add("name", name).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectFilesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectFilesRequest.java new file mode 100644 index 000000000..cbbb8f54d --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectFilesRequest.java @@ -0,0 +1,86 @@ +// 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.QueryParam; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.util.Objects; + +@Generated +public class ListProjectFilesRequest { + /** + * The maximum number of files to return, at most 500. If omitted, zero, or negative, the server + * chooses. The server can return a different number of files than requested, so keep requesting + * pages until `next_page_token` is empty. + */ + @JsonIgnore + @QueryParam("page_size") + private Long pageSize; + + /** + * The `next_page_token` from a previous response. Omit it for the first page. Use it only with + * the same `parent`. + */ + @JsonIgnore + @QueryParam("page_token") + private String pageToken; + + /** + * The resource name of the project, in the format `projects/{project_id}`. For example, + * `projects/123`. + */ + @JsonIgnore private String parent; + + public ListProjectFilesRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListProjectFilesRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + public ListProjectFilesRequest setParent(String parent) { + this.parent = parent; + return this; + } + + public String getParent() { + return parent; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListProjectFilesRequest that = (ListProjectFilesRequest) o; + return Objects.equals(pageSize, that.pageSize) + && Objects.equals(pageToken, that.pageToken) + && Objects.equals(parent, that.parent); + } + + @Override + public int hashCode() { + return Objects.hash(pageSize, pageToken, parent); + } + + @Override + public String toString() { + return new ToStringer(ListProjectFilesRequest.class) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .add("parent", parent) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectFilesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectFilesResponse.java new file mode 100644 index 000000000..b98bfdf45 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectFilesResponse.java @@ -0,0 +1,61 @@ +// 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; + +/** The response to `ListProjectFiles`. */ +@Generated +public class ListProjectFilesResponse { + /** The token for the next page. Empty when there are no more pages. */ + @JsonProperty("next_page_token") + private String nextPageToken; + + /** The files in this page. */ + @JsonProperty("project_files") + private Collection projectFiles; + + public ListProjectFilesResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + public ListProjectFilesResponse setProjectFiles(Collection projectFiles) { + this.projectFiles = projectFiles; + return this; + } + + public Collection getProjectFiles() { + return projectFiles; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListProjectFilesResponse that = (ListProjectFilesResponse) o; + return Objects.equals(nextPageToken, that.nextPageToken) + && Objects.equals(projectFiles, that.projectFiles); + } + + @Override + public int hashCode() { + return Objects.hash(nextPageToken, projectFiles); + } + + @Override + public String toString() { + return new ToStringer(ListProjectFilesResponse.class) + .add("nextPageToken", nextPageToken) + .add("projectFiles", projectFiles) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectsRequest.java new file mode 100644 index 000000000..63bea7f52 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectsRequest.java @@ -0,0 +1,87 @@ +// 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.QueryParam; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.util.Objects; + +@Generated +public class ListProjectsRequest { + /** + * The folder to list, as `folder = "folders/{folder_id}"`. For example, `folder = "folders/456"`. + * No other filter is supported. Defaults to the caller's home folder. + */ + @JsonIgnore + @QueryParam("filter") + private String filter; + + /** + * The maximum number of projects to return, at most 500. Defaults to 100 if omitted, zero, or + * negative. A page can have fewer projects than requested, or none, even when more pages follow. + */ + @JsonIgnore + @QueryParam("page_size") + private Long pageSize; + + /** + * The `next_page_token` from a previous response. Omit it for the first page. Use the same + * `filter` for every page. + */ + @JsonIgnore + @QueryParam("page_token") + private String pageToken; + + public ListProjectsRequest setFilter(String filter) { + this.filter = filter; + return this; + } + + public String getFilter() { + return filter; + } + + public ListProjectsRequest setPageSize(Long pageSize) { + this.pageSize = pageSize; + return this; + } + + public Long getPageSize() { + return pageSize; + } + + public ListProjectsRequest setPageToken(String pageToken) { + this.pageToken = pageToken; + return this; + } + + public String getPageToken() { + return pageToken; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListProjectsRequest that = (ListProjectsRequest) o; + return Objects.equals(filter, that.filter) + && Objects.equals(pageSize, that.pageSize) + && Objects.equals(pageToken, that.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(filter, pageSize, pageToken); + } + + @Override + public String toString() { + return new ToStringer(ListProjectsRequest.class) + .add("filter", filter) + .add("pageSize", pageSize) + .add("pageToken", pageToken) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectsResponse.java new file mode 100644 index 000000000..2b98f8929 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ListProjectsResponse.java @@ -0,0 +1,64 @@ +// 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; + +/** The response to `ListProjects`. */ +@Generated +public class ListProjectsResponse { + /** The token for the next page. Empty when there are no more pages. */ + @JsonProperty("next_page_token") + private String nextPageToken; + + /** + * The projects in this page, without `project_config` or `changes_locked`. Call `GetProject` for + * the full project. + */ + @JsonProperty("projects") + private Collection projects; + + public ListProjectsResponse setNextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + public String getNextPageToken() { + return nextPageToken; + } + + public ListProjectsResponse setProjects(Collection projects) { + this.projects = projects; + return this; + } + + public Collection getProjects() { + return projects; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ListProjectsResponse that = (ListProjectsResponse) o; + return Objects.equals(nextPageToken, that.nextPageToken) + && Objects.equals(projects, that.projects); + } + + @Override + public int hashCode() { + return Objects.hash(nextPageToken, projects); + } + + @Override + public String toString() { + return new ToStringer(ListProjectsResponse.class) + .add("nextPageToken", nextPageToken) + .add("projects", projects) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/Location.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/Location.java new file mode 100644 index 000000000..249e2cefc --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/Location.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 location of a file or folder. Exactly one location type is set. More location types can be + * added later, so clients should ignore types they don't recognize. + */ +@Generated +public class Location { + /** A file or folder in the workspace. */ + @JsonProperty("workspace") + private WorkspaceLocation workspace; + + public Location setWorkspace(WorkspaceLocation workspace) { + this.workspace = workspace; + return this; + } + + public WorkspaceLocation getWorkspace() { + return workspace; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Location that = (Location) o; + return Objects.equals(workspace, that.workspace); + } + + @Override + public int hashCode() { + return Objects.hash(workspace); + } + + @Override + public String toString() { + return new ToStringer(Location.class).add("workspace", workspace).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/Operation.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/Operation.java new file mode 100644 index 000000000..e4cf057e7 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/Operation.java @@ -0,0 +1,116 @@ +// 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; + +/** This resource represents a long-running operation that is the result of a network API call. */ +@Generated +public class Operation { + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + */ + @JsonProperty("done") + private Boolean done; + + /** The error result of the operation in case of failure or cancellation. */ + @JsonProperty("error") + private DatabricksServiceExceptionWithDetailsProto error; + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. + */ + @JsonProperty("metadata") + private Object metadata; + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + */ + @JsonProperty("name") + private String name; + + /** The normal, successful response of the operation. */ + @JsonProperty("response") + private Object response; + + public Operation setDone(Boolean done) { + this.done = done; + return this; + } + + public Boolean getDone() { + return done; + } + + public Operation setError(DatabricksServiceExceptionWithDetailsProto error) { + this.error = error; + return this; + } + + public DatabricksServiceExceptionWithDetailsProto getError() { + return error; + } + + public Operation setMetadata(Object metadata) { + this.metadata = metadata; + return this; + } + + public Object getMetadata() { + return metadata; + } + + public Operation setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + public Operation setResponse(Object response) { + this.response = response; + return this; + } + + public Object getResponse() { + return response; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Operation that = (Operation) o; + return Objects.equals(done, that.done) + && Objects.equals(error, that.error) + && Objects.equals(metadata, that.metadata) + && Objects.equals(name, that.name) + && Objects.equals(response, that.response); + } + + @Override + public int hashCode() { + return Objects.hash(done, error, metadata, name, response); + } + + @Override + public String toString() { + return new ToStringer(Operation.class) + .add("done", done) + .add("error", error) + .add("metadata", metadata) + .add("name", name) + .add("response", response) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/Project.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/Project.java new file mode 100644 index 000000000..30f00ddb5 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/Project.java @@ -0,0 +1,161 @@ +// 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.Objects; + +/** A migration project: the conversion settings and source files of one migration. */ +@Generated +public class Project { + /** + * Whether the source dialect and target framework are locked. They lock after a conversion or + * analysis runs on the project. Other settings stay editable. + */ + @JsonProperty("changes_locked") + private Boolean changesLocked; + + /** + * The time the project was created, if available. Can be absent from `CreateProject` and + * `UpdateProject` responses. + */ + @JsonProperty("create_time") + private Timestamp createTime; + + /** + * The display name of the project. Required on create, and can't be blank. Changing it renames + * the project. + */ + @JsonProperty("display_name") + private String displayName; + + /** + * The workspace folder that contains the project, in the format `folders/{folder_id}`. For + * example, `folders/456`. If omitted on create, defaults to the caller's home folder. + * `UpdateProject` can't change it, but moving the project in the workspace does. Returned when + * available. Converted files are written to `project_config.destination_location`, which can be a + * different folder. + */ + @JsonProperty("folder") + private String folder; + + /** + * The resource name of the project, in the format `projects/{project_id}`. For example, + * `projects/123`. The server assigns it when the project is created. + */ + @JsonProperty("name") + private String name; + + /** + * The conversion settings of the project. Required on create. Returned by `CreateProject`, + * `GetProject`, and `UpdateProject`, but not by `ListProjects`. + */ + @JsonProperty("project_config") + private ProjectConfig projectConfig; + + /** + * The time the project was last modified, if available. Can be absent from `CreateProject` and + * `UpdateProject` responses. + */ + @JsonProperty("update_time") + private Timestamp updateTime; + + public Project setChangesLocked(Boolean changesLocked) { + this.changesLocked = changesLocked; + return this; + } + + public Boolean getChangesLocked() { + return changesLocked; + } + + public Project setCreateTime(Timestamp createTime) { + this.createTime = createTime; + return this; + } + + public Timestamp getCreateTime() { + return createTime; + } + + public Project setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + public String getDisplayName() { + return displayName; + } + + public Project setFolder(String folder) { + this.folder = folder; + return this; + } + + public String getFolder() { + return folder; + } + + public Project setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + public Project setProjectConfig(ProjectConfig projectConfig) { + this.projectConfig = projectConfig; + return this; + } + + public ProjectConfig getProjectConfig() { + return projectConfig; + } + + public Project setUpdateTime(Timestamp updateTime) { + this.updateTime = updateTime; + return this; + } + + public Timestamp getUpdateTime() { + return updateTime; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Project that = (Project) o; + return Objects.equals(changesLocked, that.changesLocked) + && Objects.equals(createTime, that.createTime) + && Objects.equals(displayName, that.displayName) + && Objects.equals(folder, that.folder) + && Objects.equals(name, that.name) + && Objects.equals(projectConfig, that.projectConfig) + && Objects.equals(updateTime, that.updateTime); + } + + @Override + public int hashCode() { + return Objects.hash( + changesLocked, createTime, displayName, folder, name, projectConfig, updateTime); + } + + @Override + public String toString() { + return new ToStringer(Project.class) + .add("changesLocked", changesLocked) + .add("createTime", createTime) + .add("displayName", displayName) + .add("folder", folder) + .add("name", name) + .add("projectConfig", projectConfig) + .add("updateTime", updateTime) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ProjectConfig.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ProjectConfig.java new file mode 100644 index 000000000..5a602960e --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ProjectConfig.java @@ -0,0 +1,102 @@ +// 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; + +/** Conversion settings of a migration project. */ +@Generated +public class ProjectConfig { + /** + * The workspace folder where converted files are written. Required on create; set + * `workspace.path` or `workspace.object_id`. `UpdateProject` can't change it. + */ + @JsonProperty("destination_location") + private Location destinationLocation; + + /** + * The workspace JSON file that holds the project's lineage report. Optional. To clear it, include + * `project_config.lineage_location` in `update_mask` and leave this field unset. + */ + @JsonProperty("lineage_location") + private Location lineageLocation; + + /** + * The dialect of the project's source files. Can't be changed when `Project.changes_locked` is + * `true`. + */ + @JsonProperty("source_dialect") + private SourceDialect sourceDialect; + + /** + * The framework that source files are converted to. Required on create, and can't be + * `TARGET_FRAMEWORK_UNSPECIFIED`. Can't be changed when `Project.changes_locked` is `true`. + */ + @JsonProperty("target_framework") + private TargetFramework targetFramework; + + public ProjectConfig setDestinationLocation(Location destinationLocation) { + this.destinationLocation = destinationLocation; + return this; + } + + public Location getDestinationLocation() { + return destinationLocation; + } + + public ProjectConfig setLineageLocation(Location lineageLocation) { + this.lineageLocation = lineageLocation; + return this; + } + + public Location getLineageLocation() { + return lineageLocation; + } + + public ProjectConfig setSourceDialect(SourceDialect sourceDialect) { + this.sourceDialect = sourceDialect; + return this; + } + + public SourceDialect getSourceDialect() { + return sourceDialect; + } + + public ProjectConfig setTargetFramework(TargetFramework targetFramework) { + this.targetFramework = targetFramework; + return this; + } + + public TargetFramework getTargetFramework() { + return targetFramework; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ProjectConfig that = (ProjectConfig) o; + return Objects.equals(destinationLocation, that.destinationLocation) + && Objects.equals(lineageLocation, that.lineageLocation) + && Objects.equals(sourceDialect, that.sourceDialect) + && Objects.equals(targetFramework, that.targetFramework); + } + + @Override + public int hashCode() { + return Objects.hash(destinationLocation, lineageLocation, sourceDialect, targetFramework); + } + + @Override + public String toString() { + return new ToStringer(ProjectConfig.class) + .add("destinationLocation", destinationLocation) + .add("lineageLocation", lineageLocation) + .add("sourceDialect", sourceDialect) + .add("targetFramework", targetFramework) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ProjectFile.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ProjectFile.java new file mode 100644 index 000000000..f7172734f --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ProjectFile.java @@ -0,0 +1,271 @@ +// 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; + +/** + * A source file in a migration project, with its latest conversion results. The service sets the + * conversion results. To accept the converted output, call `ReviewProjectFiles`; to undo that, call + * `UnreviewProjectFiles`. Neither method changes the conversion results. + */ +@Generated +public class ProjectFile { + /** + * Issues that block the conversion. Returned only by `GetProjectFile`, which reads them from the + * converted file. + */ + @JsonProperty("blockers") + private Collection blockers; + + /** + * The changes made during conversion. Returned only by `GetProjectFile`, which reads them from + * the converted file. + */ + @JsonProperty("changes") + private Collection changes; + + /** + * The location of the asset that this file was derived from. Absent if the file wasn't derived + * from another asset. + */ + @JsonProperty("derived_from") + private Location derivedFrom; + + /** The location of the converted file. Absent until a conversion writes it. */ + @JsonProperty("destination") + private Location destination; + + /** The kind of the converted file, when recorded. */ + @JsonProperty("destination_kind") + private DestinationKind destinationKind; + + /** The Databricks job or pipeline that conversion created for this file, if any. */ + @JsonProperty("destination_resource") + private DestinationResource destinationResource; + + /** + * The error reported for this file, if any. `GetProjectFile` returns the error stored with the + * converted file when available, and otherwise the latest error recorded for the project file. + */ + @JsonProperty("error_message") + private String errorMessage; + + /** + * Whether the file has conversion notes. Returned by `ListProjectFiles`; call `GetProjectFile` to + * read the notes. + */ + @JsonProperty("has_notes") + private Boolean hasNotes; + + /** + * The resource name of the file, in the format `projects/{project_id}/files/{file_id}`. For + * example, `projects/123/files/789`. The server assigns `file_id`, an opaque value of at most 63 + * characters. + */ + @JsonProperty("name") + private String name; + + /** + * Informational notes about the conversion that need no decision. Returned only by + * `GetProjectFile`, which reads them from the converted file. + */ + @JsonProperty("notes") + private Collection notes; + + /** The location of the source file. */ + @JsonProperty("source") + private Location source; + + /** + * The file's latest conversion status across all runs. For its status in a specific run, read + * `ConversionRun.files` in that run's operation metadata. + */ + @JsonProperty("status") + private FileStatus status; + + /** + * Follow-up work (to-do items) identified during conversion. Returned only by `GetProjectFile`, + * which reads them from the converted file. + */ + @JsonProperty("todos") + private Collection todos; + + public ProjectFile setBlockers(Collection blockers) { + this.blockers = blockers; + return this; + } + + public Collection getBlockers() { + return blockers; + } + + public ProjectFile setChanges(Collection changes) { + this.changes = changes; + return this; + } + + public Collection getChanges() { + return changes; + } + + public ProjectFile setDerivedFrom(Location derivedFrom) { + this.derivedFrom = derivedFrom; + return this; + } + + public Location getDerivedFrom() { + return derivedFrom; + } + + public ProjectFile setDestination(Location destination) { + this.destination = destination; + return this; + } + + public Location getDestination() { + return destination; + } + + public ProjectFile setDestinationKind(DestinationKind destinationKind) { + this.destinationKind = destinationKind; + return this; + } + + public DestinationKind getDestinationKind() { + return destinationKind; + } + + public ProjectFile setDestinationResource(DestinationResource destinationResource) { + this.destinationResource = destinationResource; + return this; + } + + public DestinationResource getDestinationResource() { + return destinationResource; + } + + public ProjectFile setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + public String getErrorMessage() { + return errorMessage; + } + + public ProjectFile setHasNotes(Boolean hasNotes) { + this.hasNotes = hasNotes; + return this; + } + + public Boolean getHasNotes() { + return hasNotes; + } + + public ProjectFile setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + public ProjectFile setNotes(Collection notes) { + this.notes = notes; + return this; + } + + public Collection getNotes() { + return notes; + } + + public ProjectFile setSource(Location source) { + this.source = source; + return this; + } + + public Location getSource() { + return source; + } + + public ProjectFile setStatus(FileStatus status) { + this.status = status; + return this; + } + + public FileStatus getStatus() { + return status; + } + + public ProjectFile setTodos(Collection todos) { + this.todos = todos; + return this; + } + + public Collection getTodos() { + return todos; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ProjectFile that = (ProjectFile) o; + return Objects.equals(blockers, that.blockers) + && Objects.equals(changes, that.changes) + && Objects.equals(derivedFrom, that.derivedFrom) + && Objects.equals(destination, that.destination) + && Objects.equals(destinationKind, that.destinationKind) + && Objects.equals(destinationResource, that.destinationResource) + && Objects.equals(errorMessage, that.errorMessage) + && Objects.equals(hasNotes, that.hasNotes) + && Objects.equals(name, that.name) + && Objects.equals(notes, that.notes) + && Objects.equals(source, that.source) + && Objects.equals(status, that.status) + && Objects.equals(todos, that.todos); + } + + @Override + public int hashCode() { + return Objects.hash( + blockers, + changes, + derivedFrom, + destination, + destinationKind, + destinationResource, + errorMessage, + hasNotes, + name, + notes, + source, + status, + todos); + } + + @Override + public String toString() { + return new ToStringer(ProjectFile.class) + .add("blockers", blockers) + .add("changes", changes) + .add("derivedFrom", derivedFrom) + .add("destination", destination) + .add("destinationKind", destinationKind) + .add("destinationResource", destinationResource) + .add("errorMessage", errorMessage) + .add("hasNotes", hasNotes) + .add("name", name) + .add("notes", notes) + .add("source", source) + .add("status", status) + .add("todos", todos) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/RemoveProjectFilesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/RemoveProjectFilesRequest.java new file mode 100644 index 000000000..39165164b --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/RemoveProjectFilesRequest.java @@ -0,0 +1,67 @@ +// 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 remove files from a migration project. */ +@Generated +public class RemoveProjectFilesRequest { + /** + * The resource name of the project, in the format `projects/{project_id}`. For example, + * `projects/123`. + */ + @JsonIgnore private String name; + + /** + * The files to remove, by `ProjectFile.name`. For example, `projects/123/files/789`. Every file + * must belong to the project in `name`. An empty list changes nothing. Send at most 10 files per + * request, the default limit. Requests over a project's limit return `INVALID_PARAMETER_VALUE`. + */ + @JsonProperty("names") + private Collection names; + + public RemoveProjectFilesRequest setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + public RemoveProjectFilesRequest setNames(Collection names) { + this.names = names; + return this; + } + + public Collection getNames() { + return names; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + RemoveProjectFilesRequest that = (RemoveProjectFilesRequest) o; + return Objects.equals(name, that.name) && Objects.equals(names, that.names); + } + + @Override + public int hashCode() { + return Objects.hash(name, names); + } + + @Override + public String toString() { + return new ToStringer(RemoveProjectFilesRequest.class) + .add("name", name) + .add("names", names) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/RemoveProjectFilesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/RemoveProjectFilesResponse.java new file mode 100644 index 000000000..5d6061f8a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/RemoveProjectFilesResponse.java @@ -0,0 +1,47 @@ +// 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 a `RemoveProjectFiles` request. */ +@Generated +public class RemoveProjectFilesResponse { + /** + * The requested files, in request order. Each entry identifies a source file and has no + * conversion results. + */ + @JsonProperty("files") + private Collection files; + + public RemoveProjectFilesResponse 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; + RemoveProjectFilesResponse that = (RemoveProjectFilesResponse) o; + return Objects.equals(files, that.files); + } + + @Override + public int hashCode() { + return Objects.hash(files); + } + + @Override + public String toString() { + return new ToStringer(RemoveProjectFilesResponse.class).add("files", files).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ReviewProjectFilesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ReviewProjectFilesRequest.java new file mode 100644 index 000000000..b0b225701 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ReviewProjectFilesRequest.java @@ -0,0 +1,66 @@ +// 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 mark files of a migration project as reviewed. */ +@Generated +public class ReviewProjectFilesRequest { + /** + * The files to review: 1 to 100 distinct file resource names, in the format + * `projects/{project_id}/files/{file_id}`. For example, `projects/123/files/789`. + */ + @JsonProperty("names") + private Collection names; + + /** + * The resource name of the project, in the format `projects/{project_id}`. For example, + * `projects/123`. Every file in `names` must belong to this project. + */ + @JsonIgnore private String parent; + + public ReviewProjectFilesRequest setNames(Collection names) { + this.names = names; + return this; + } + + public Collection getNames() { + return names; + } + + public ReviewProjectFilesRequest setParent(String parent) { + this.parent = parent; + return this; + } + + public String getParent() { + return parent; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ReviewProjectFilesRequest that = (ReviewProjectFilesRequest) o; + return Objects.equals(names, that.names) && Objects.equals(parent, that.parent); + } + + @Override + public int hashCode() { + return Objects.hash(names, parent); + } + + @Override + public String toString() { + return new ToStringer(ReviewProjectFilesRequest.class) + .add("names", names) + .add("parent", parent) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ReviewProjectFilesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ReviewProjectFilesResponse.java new file mode 100644 index 000000000..efb1677ef --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/ReviewProjectFilesResponse.java @@ -0,0 +1,49 @@ +// 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; + +/** The files reviewed by `ReviewProjectFiles`, in request order. */ +@Generated +public class ReviewProjectFilesResponse { + /** + * The reviewed files, in request order. To read a file's changes, to-do items, blockers, and + * notes, call `GetProjectFile`. + */ + @JsonProperty("project_files") + private Collection projectFiles; + + public ReviewProjectFilesResponse setProjectFiles(Collection projectFiles) { + this.projectFiles = projectFiles; + return this; + } + + public Collection getProjectFiles() { + return projectFiles; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ReviewProjectFilesResponse that = (ReviewProjectFilesResponse) o; + return Objects.equals(projectFiles, that.projectFiles); + } + + @Override + public int hashCode() { + return Objects.hash(projectFiles); + } + + @Override + public String toString() { + return new ToStringer(ReviewProjectFilesResponse.class) + .add("projectFiles", projectFiles) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/SourceDialect.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/SourceDialect.java new file mode 100644 index 000000000..857f313d9 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/SourceDialect.java @@ -0,0 +1,19 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.geniemigrate; + +import com.databricks.sdk.support.Generated; + +/** Source dialect of the files in a migration project. */ +@Generated +public enum SourceDialect { + SOURCE_DIALECT_ALTERYX, + SOURCE_DIALECT_BIGQUERY, + SOURCE_DIALECT_INFORMATICA, + SOURCE_DIALECT_ORACLE, + SOURCE_DIALECT_REDSHIFT, + SOURCE_DIALECT_SNOWFLAKE, + SOURCE_DIALECT_SSIS, + SOURCE_DIALECT_TERADATA, + SOURCE_DIALECT_T_SQL, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/SourceFileRef.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/SourceFileRef.java new file mode 100644 index 000000000..b8949ca13 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/SourceFileRef.java @@ -0,0 +1,66 @@ +// 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 reference to a source file in the workspace. Set `workspace.path` or `workspace.object_id`. For + * example, `{"workspace": {"path": "/Workspace/Shared/migration/source.sql"}}`. + */ +@Generated +public class SourceFileRef { + /** + * The location of the asset that this file was derived from, if any. Used only by + * `AddProjectFiles`, and can't be changed after the file is added. + */ + @JsonProperty("derived_from") + private Location derivedFrom; + + /** The source file in the workspace. Must identify an existing file the caller can read. */ + @JsonProperty("workspace") + private WorkspaceLocation workspace; + + public SourceFileRef setDerivedFrom(Location derivedFrom) { + this.derivedFrom = derivedFrom; + return this; + } + + public Location getDerivedFrom() { + return derivedFrom; + } + + public SourceFileRef setWorkspace(WorkspaceLocation workspace) { + this.workspace = workspace; + return this; + } + + public WorkspaceLocation getWorkspace() { + return workspace; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + SourceFileRef that = (SourceFileRef) o; + return Objects.equals(derivedFrom, that.derivedFrom) + && Objects.equals(workspace, that.workspace); + } + + @Override + public int hashCode() { + return Objects.hash(derivedFrom, workspace); + } + + @Override + public String toString() { + return new ToStringer(SourceFileRef.class) + .add("derivedFrom", derivedFrom) + .add("workspace", workspace) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/TargetFramework.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/TargetFramework.java new file mode 100644 index 000000000..cd02fdb8d --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/TargetFramework.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; + +/** Output framework of the converted files in a migration project. */ +@Generated +public enum TargetFramework { + TARGET_FRAMEWORK_DESIGNER, + TARGET_FRAMEWORK_PYSPARK, + TARGET_FRAMEWORK_SPARK_DECLARATIVE_PIPELINES, + TARGET_FRAMEWORK_SQL, +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/UnreviewProjectFilesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/UnreviewProjectFilesRequest.java new file mode 100644 index 000000000..3829d9d0e --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/UnreviewProjectFilesRequest.java @@ -0,0 +1,66 @@ +// 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 remove the reviewed status from files of a migration project. */ +@Generated +public class UnreviewProjectFilesRequest { + /** + * The files to unreview: 1 to 100 distinct file resource names, in the format + * `projects/{project_id}/files/{file_id}`. For example, `projects/123/files/789`. + */ + @JsonProperty("names") + private Collection names; + + /** + * The resource name of the project, in the format `projects/{project_id}`. For example, + * `projects/123`. Every file in `names` must belong to this project. + */ + @JsonIgnore private String parent; + + public UnreviewProjectFilesRequest setNames(Collection names) { + this.names = names; + return this; + } + + public Collection getNames() { + return names; + } + + public UnreviewProjectFilesRequest setParent(String parent) { + this.parent = parent; + return this; + } + + public String getParent() { + return parent; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UnreviewProjectFilesRequest that = (UnreviewProjectFilesRequest) o; + return Objects.equals(names, that.names) && Objects.equals(parent, that.parent); + } + + @Override + public int hashCode() { + return Objects.hash(names, parent); + } + + @Override + public String toString() { + return new ToStringer(UnreviewProjectFilesRequest.class) + .add("names", names) + .add("parent", parent) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/UnreviewProjectFilesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/UnreviewProjectFilesResponse.java new file mode 100644 index 000000000..5428bbec5 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/UnreviewProjectFilesResponse.java @@ -0,0 +1,49 @@ +// 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; + +/** The files unreviewed by `UnreviewProjectFiles`, in request order. */ +@Generated +public class UnreviewProjectFilesResponse { + /** + * The unreviewed files, in request order. To read a file's changes, to-do items, blockers, and + * notes, call `GetProjectFile`. + */ + @JsonProperty("project_files") + private Collection projectFiles; + + public UnreviewProjectFilesResponse setProjectFiles(Collection projectFiles) { + this.projectFiles = projectFiles; + return this; + } + + public Collection getProjectFiles() { + return projectFiles; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UnreviewProjectFilesResponse that = (UnreviewProjectFilesResponse) o; + return Objects.equals(projectFiles, that.projectFiles); + } + + @Override + public int hashCode() { + return Objects.hash(projectFiles); + } + + @Override + public String toString() { + return new ToStringer(UnreviewProjectFilesResponse.class) + .add("projectFiles", projectFiles) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/UpdateProjectRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/UpdateProjectRequest.java new file mode 100644 index 000000000..4dbfbc2e5 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/UpdateProjectRequest.java @@ -0,0 +1,84 @@ +// 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.QueryParam; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.google.protobuf.FieldMask; +import java.util.Objects; + +@Generated +public class UpdateProjectRequest { + /** + * The resource name of the project, in the format `projects/{project_id}`. For example, + * `projects/123`. The server assigns it when the project is created. + */ + @JsonIgnore private String name; + + /** The project to update, identified by `name`. */ + @JsonProperty("project") + private Project project; + + /** + * The fields to update. Supported fields are `display_name`, `project_config.source_dialect`, + * `project_config.target_framework`, and `project_config.lineage_location`. `project_config` and + * `*` update all three `project_config` fields and can't be combined with `display_name`. + */ + @JsonIgnore + @QueryParam("update_mask") + private FieldMask updateMask; + + public UpdateProjectRequest setName(String name) { + this.name = name; + return this; + } + + public String getName() { + return name; + } + + public UpdateProjectRequest setProject(Project project) { + this.project = project; + return this; + } + + public Project getProject() { + return project; + } + + public UpdateProjectRequest setUpdateMask(FieldMask updateMask) { + this.updateMask = updateMask; + return this; + } + + public FieldMask getUpdateMask() { + return updateMask; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + UpdateProjectRequest that = (UpdateProjectRequest) o; + return Objects.equals(name, that.name) + && Objects.equals(project, that.project) + && Objects.equals(updateMask, that.updateMask); + } + + @Override + public int hashCode() { + return Objects.hash(name, project, updateMask); + } + + @Override + public String toString() { + return new ToStringer(UpdateProjectRequest.class) + .add("name", name) + .add("project", project) + .add("updateMask", updateMask) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/WorkspaceLocation.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/WorkspaceLocation.java new file mode 100644 index 000000000..e7fc7d342 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/geniemigrate/WorkspaceLocation.java @@ -0,0 +1,64 @@ +// 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 or folder in the workspace. On input, set `path` or `object_id`; if both are set, + * `object_id` is used. Responses set both when known. + */ +@Generated +public class WorkspaceLocation { + /** + * The workspace object ID, as returned in `object_id` by the Workspace API. For example, `12345`. + */ + @JsonProperty("object_id") + private Long objectId; + + /** The absolute workspace path. For example, `/Workspace/Shared/migration/source.sql`. */ + @JsonProperty("path") + private String path; + + public WorkspaceLocation setObjectId(Long objectId) { + this.objectId = objectId; + return this; + } + + public Long getObjectId() { + return objectId; + } + + public WorkspaceLocation setPath(String path) { + this.path = path; + return this; + } + + public String getPath() { + return path; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + WorkspaceLocation that = (WorkspaceLocation) o; + return Objects.equals(objectId, that.objectId) && Objects.equals(path, that.path); + } + + @Override + public int hashCode() { + return Objects.hash(objectId, path); + } + + @Override + public String toString() { + return new ToStringer(WorkspaceLocation.class) + .add("objectId", objectId) + .add("path", path) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/BaseRun.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/BaseRun.java index 60c414003..608facbf7 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/BaseRun.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/BaseRun.java @@ -145,7 +145,10 @@ public class BaseRun { @JsonProperty("job_id") private Long jobId; - /** Job-level parameters used in the run */ + /** + * Job-level parameters used in the run. Each entry carries the parameter's name, its default, and + * the value used in this run. + */ @JsonProperty("job_parameters") private Collection jobParameters; @@ -226,7 +229,7 @@ public class BaseRun { @JsonProperty("state") private RunState state; - /** */ + /** The current status of the run. Use this field instead of the deprecated `state` field. */ @JsonProperty("status") private RunStatus status; @@ -243,7 +246,10 @@ public class BaseRun { @JsonProperty("trigger") private TriggerType trigger; - /** */ + /** + * Additional details about the trigger that fired the run. The fields that are populated depend + * on the value of `trigger`. + */ @JsonProperty("trigger_info") private TriggerInfo triggerInfo; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CancelRun.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CancelRun.java index f33c7c5ab..43647c30d 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CancelRun.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/CancelRun.java @@ -9,7 +9,7 @@ @Generated public class CancelRun { - /** This field is required. */ + /** The canonical identifier of the run to cancel. */ @JsonProperty("run_id") private Long runId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobCompletionTriggerRunInfoDetails.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobCompletionTriggerRunInfoDetails.java index b6adb5d8c..17e188ee4 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobCompletionTriggerRunInfoDetails.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobCompletionTriggerRunInfoDetails.java @@ -14,7 +14,10 @@ */ @Generated public class JobCompletionTriggerRunInfoDetails { - /** */ + /** + * The upstream job completions that fired the trigger, in the order in which the jobs are + * configured on the trigger. + */ @JsonProperty("completed_jobs") private Collection completedJobs; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobCompletionTriggerStateMonitoredJobState.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobCompletionTriggerStateMonitoredJobState.java index 497ede6ed..6b1949da7 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobCompletionTriggerStateMonitoredJobState.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobCompletionTriggerStateMonitoredJobState.java @@ -22,7 +22,10 @@ public class JobCompletionTriggerStateMonitoredJobState { @JsonProperty("is_deleted") private Boolean isDeleted; - /** The ID of the upstream job. */ + /** + * The ID of the upstream job. For a job monitored by name, the ID of the job that the name last + * resolved to. Omitted until the name resolves to a job. + */ @JsonProperty("job_id") private String jobId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsAPI.java index d4125be6e..d8b394753 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsAPI.java @@ -149,7 +149,11 @@ public ExportRunOutput exportRun(long runId) { return exportRun(new ExportRunRequest().setRunId(runId)); } - /** Export and retrieve the job run task. */ + /** + * Export and retrieve the job run task. Only notebook task runs can be exported. For a multi-task + * job run, pass the `run_id` of the individual notebook task run rather than the ID of the job + * run. + */ public ExportRunOutput exportRun(ExportRunRequest request) { return impl.exportRun(request); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsService.java index fc317fde5..6626d0524 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsService.java @@ -49,7 +49,11 @@ public interface JobsService { /** Deletes a non-active run. Returns an error if the run is active. */ void deleteRun(DeleteRun deleteRun); - /** Export and retrieve the job run task. */ + /** + * Export and retrieve the job run task. Only notebook task runs can be exported. For a multi-task + * job run, pass the `run_id` of the individual notebook task run rather than the ID of the job + * run. + */ ExportRunOutput exportRun(ExportRunRequest exportRunRequest); /** diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRunsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRunsRequest.java index 46cae9c13..bffddd8dc 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRunsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ListRunsRequest.java @@ -41,7 +41,7 @@ public class ListRunsRequest { private Long jobId; /** - * The number of runs to return. This value must be greater than 0 and less than 25. The default + * The number of runs to return. This value must be greater than 0 and at most 25. The default * value is 20. If a request specifies a limit of 0, the service instead uses the maximum limit. */ @JsonIgnore diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RepairHistoryItem.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RepairHistoryItem.java index f52d4e92b..eaa49df49 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RepairHistoryItem.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RepairHistoryItem.java @@ -23,7 +23,10 @@ public class RepairHistoryItem { @JsonProperty("effective_performance_target") private PerformanceTarget effectivePerformanceTarget; - /** The end time of the (repaired) run. */ + /** + * The end time of this repair history item in epoch milliseconds (milliseconds since 1/1/1970 + * UTC). + */ @JsonProperty("end_time") private Long endTime; @@ -33,7 +36,10 @@ public class RepairHistoryItem { @JsonProperty("id") private Long id; - /** The start time of the (repaired) run. */ + /** + * The start time of this repair history item in epoch milliseconds (milliseconds since 1/1/1970 + * UTC). + */ @JsonProperty("start_time") private Long startTime; @@ -41,7 +47,10 @@ public class RepairHistoryItem { @JsonProperty("state") private RunState state; - /** */ + /** + * The status of the run at the end of this repair history item, or its current status for the + * latest item. Use this field instead of the deprecated `state` field. + */ @JsonProperty("status") private RunStatus status; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RepairRun.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RepairRun.java index d8e330145..413ee9401 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RepairRun.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RepairRun.java @@ -47,7 +47,7 @@ public class RepairRun { @JsonProperty("jar_params") private Collection jarParams; - /** Job-level parameters used in the run. for example `"param": "overriding_val"` */ + /** Job-level parameters used in the run, for example `"param": "overriding_val"`. */ @JsonProperty("job_parameters") private Map jobParameters; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedConditionTaskValues.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedConditionTaskValues.java index efdd63d20..037e8689d 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedConditionTaskValues.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedConditionTaskValues.java @@ -9,11 +9,17 @@ @Generated public class ResolvedConditionTaskValues { - /** */ + /** + * The left operand of the condition with dynamic value references replaced by their concrete + * values. + */ @JsonProperty("left") private String left; - /** */ + /** + * The right operand of the condition with dynamic value references replaced by their concrete + * values. + */ @JsonProperty("right") private String right; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedDbtTaskValues.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedDbtTaskValues.java index 30c913656..b1b477f0a 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedDbtTaskValues.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedDbtTaskValues.java @@ -10,7 +10,7 @@ @Generated public class ResolvedDbtTaskValues { - /** */ + /** The dbt commands with dynamic value references replaced by their concrete values. */ @JsonProperty("commands") private Collection commands; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedNotebookTaskValues.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedNotebookTaskValues.java index 19d6d72b3..c0aaae534 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedNotebookTaskValues.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedNotebookTaskValues.java @@ -10,7 +10,7 @@ @Generated public class ResolvedNotebookTaskValues { - /** */ + /** The notebook parameters with dynamic value references replaced by their concrete values. */ @JsonProperty("base_parameters") private Map baseParameters; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedParamPairValues.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedParamPairValues.java index 13b8dc6ea..59868b573 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedParamPairValues.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedParamPairValues.java @@ -10,7 +10,7 @@ @Generated public class ResolvedParamPairValues { - /** */ + /** The query parameters with dynamic value references replaced by their concrete values. */ @JsonProperty("parameters") private Map parameters; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedPythonWheelTaskValues.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedPythonWheelTaskValues.java index bb71e27b7..564f51af5 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedPythonWheelTaskValues.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedPythonWheelTaskValues.java @@ -11,11 +11,11 @@ @Generated public class ResolvedPythonWheelTaskValues { - /** */ + /** The named parameters with dynamic value references replaced by their concrete values. */ @JsonProperty("named_parameters") private Map namedParameters; - /** */ + /** The positional parameters with dynamic value references replaced by their concrete values. */ @JsonProperty("parameters") private Collection parameters; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedRunJobTaskValues.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedRunJobTaskValues.java index 508176877..6d2c28f0b 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedRunJobTaskValues.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedRunJobTaskValues.java @@ -10,7 +10,10 @@ @Generated public class ResolvedRunJobTaskValues { - /** */ + /** + * The job-level parameters passed to the triggered job with dynamic value references replaced by + * their concrete values. + */ @JsonProperty("job_parameters") private Map jobParameters; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedStringParamsValues.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedStringParamsValues.java index d4c45e29d..aaefa2d72 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedStringParamsValues.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedStringParamsValues.java @@ -10,7 +10,10 @@ @Generated public class ResolvedStringParamsValues { - /** */ + /** + * The parameters passed to the main class with dynamic value references replaced by their + * concrete values. + */ @JsonProperty("parameters") private Collection parameters; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedValues.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedValues.java index ecb7708e7..e5911ea25 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedValues.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/ResolvedValues.java @@ -23,27 +23,27 @@ public class ResolvedValues { @JsonProperty("ai_runtime_task") private ResolvedValuesAiRuntimeTaskResolvedValues aiRuntimeTask; - /** */ + /** Resolved operands of a condition task. */ @JsonProperty("condition_task") private ResolvedConditionTaskValues conditionTask; - /** */ + /** Resolved commands of a dbt task. */ @JsonProperty("dbt_task") private ResolvedDbtTaskValues dbtTask; - /** */ + /** Resolved parameters of a notebook task. */ @JsonProperty("notebook_task") private ResolvedNotebookTaskValues notebookTask; - /** */ + /** Resolved parameters of a pipeline task. */ @JsonProperty("pipeline_task") private ResolvedPipelineTaskValues pipelineTask; - /** */ + /** Resolved parameters of a Python wheel task. */ @JsonProperty("python_wheel_task") private ResolvedPythonWheelTaskValues pythonWheelTask; - /** */ + /** Resolved parameters of a Run Job task. */ @JsonProperty("run_job_task") private ResolvedRunJobTaskValues runJobTask; @@ -51,19 +51,19 @@ public class ResolvedValues { @JsonProperty("simulation_task") private ResolvedParamPairValues simulationTask; - /** */ + /** Resolved parameters of a JAR task. */ @JsonProperty("spark_jar_task") private ResolvedStringParamsValues sparkJarTask; - /** */ + /** Resolved parameters of a Python script task. */ @JsonProperty("spark_python_task") private ResolvedStringParamsValues sparkPythonTask; - /** */ + /** Resolved parameters of a spark-submit task. */ @JsonProperty("spark_submit_task") private ResolvedStringParamsValues sparkSubmitTask; - /** */ + /** Resolved parameters of a SQL task. */ @JsonProperty("sql_task") private ResolvedParamPairValues sqlTask; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Run.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Run.java index b270c24d7..40586abe7 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Run.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Run.java @@ -150,7 +150,10 @@ public class Run { @JsonProperty("job_id") private Long jobId; - /** Job-level parameters used in the run */ + /** + * Job-level parameters used in the run. Each entry carries the parameter's name, its default, and + * the value used in this run. + */ @JsonProperty("job_parameters") private Collection jobParameters; @@ -235,7 +238,7 @@ public class Run { @JsonProperty("state") private RunState state; - /** */ + /** The current status of the run. Use this field instead of the deprecated `state` field. */ @JsonProperty("status") private RunStatus status; @@ -252,7 +255,10 @@ public class Run { @JsonProperty("trigger") private TriggerType trigger; - /** */ + /** + * Additional details about the trigger that fired the run. The fields that are populated depend + * on the value of `trigger`. + */ @JsonProperty("trigger_info") private TriggerInfo triggerInfo; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java index b93b74d51..d190f0faf 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/RunTask.java @@ -302,7 +302,7 @@ public class RunTask { @JsonProperty("run_job_task") private RunJobTask runJobTask; - /** */ + /** The URL to the detail page of the task run. */ @JsonProperty("run_page_url") private String runPageUrl; @@ -351,7 +351,7 @@ public class RunTask { @JsonProperty("state") private RunState state; - /** */ + /** The current status of the task run. Use this field instead of the deprecated `state` field. */ @JsonProperty("status") private RunStatus status; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/lakewatch/Rule.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/lakewatch/Rule.java index 94b174901..3d0fd8ee0 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/lakewatch/Rule.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/lakewatch/Rule.java @@ -167,10 +167,13 @@ public class Rule { * create, the requester's own identity is used. An update whose mask does not include * `run_as_principal` keeps the current identity, and the requester must still be authorized to * delegate to it; an editor who is not must supply a run_as_principal they can delegate to (for - * example, their own identity), or clear it, either of which reassigns the rule. An update whose - * mask includes `run_as_principal` but supplies no value clears it: the rule then runs as the - * requester, exactly as when it is omitted on create. Reads return the value as supplied; the - * identity the rule runs as is reported in `effective_run_as_principal`. + * example, their own identity), or clear it, either of which reassigns the rule. An update that + * only enables or disables the rule (changes `schedule.enabled` and nothing else) does not + * require delegate permission and keeps the current identity. Enabling the rule still requires + * the current identity to have the access the rule needs to run, or the request is rejected. An + * update whose mask includes `run_as_principal` but supplies no value clears it: the rule then + * runs as the requester, exactly as when it is omitted on create. Reads return the value as + * supplied; the identity the rule runs as is reported in `effective_run_as_principal`. */ @JsonProperty("run_as_principal") private String runAsPrincipal; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AssetType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AssetType.java index 6e734b77e..b6276e481 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AssetType.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/AssetType.java @@ -6,11 +6,13 @@ @Generated public enum AssetType { + ASSET_TYPE_AGENT_SKILL, ASSET_TYPE_APP, ASSET_TYPE_DATA_TABLE, ASSET_TYPE_GIT_REPO, ASSET_TYPE_MCP, ASSET_TYPE_MEDIA, + ASSET_TYPE_METRIC_VIEW, ASSET_TYPE_MODEL, ASSET_TYPE_NOTEBOOK, ASSET_TYPE_PARTNER_INTEGRATION, diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java index 99c99915d..37cfa9030 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java @@ -57,8 +57,8 @@ public CreateLoggedModelResponse createLoggedModel(CreateLoggedModelRequest requ /** * Creates a new run within an experiment. A run is usually a single execution of a machine - * learning or data ETL pipeline. MLflow uses runs to track the `mlflowParam`, `mlflowMetric`, and - * `mlflowRunTag` associated with a single execution. + * learning or data ETL pipeline. MLflow uses runs to track the params, metrics, and tags + * associated with a single execution. */ public CreateRunResponse createRun(CreateRun request) { return impl.createRun(request); @@ -420,7 +420,7 @@ public SearchLoggedModelsResponse searchLoggedModels(SearchLoggedModelsRequest r /** * Searches for runs that satisfy expressions. * - *

Search expressions can use `mlflowMetric` and `mlflowParam` keys. + *

Search expressions can use metric, param, and tag keys. */ public Iterable searchRuns(SearchRuns request) { return Paginator.newTokenPagination( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsService.java index 611b4dfce..5c89c2746 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsService.java @@ -37,8 +37,8 @@ public interface ExperimentsService { /** * Creates a new run within an experiment. A run is usually a single execution of a machine - * learning or data ETL pipeline. MLflow uses runs to track the `mlflowParam`, `mlflowMetric`, and - * `mlflowRunTag` associated with a single execution. + * learning or data ETL pipeline. MLflow uses runs to track the params, metrics, and tags + * associated with a single execution. */ CreateRunResponse createRun(CreateRun createRun); @@ -250,7 +250,7 @@ SearchLoggedModelsResponse searchLoggedModels( /** * Searches for runs that satisfy expressions. * - *

Search expressions can use `mlflowMetric` and `mlflowParam` keys. + *

Search expressions can use metric, param, and tag keys. */ SearchRunsResponse searchRuns(SearchRuns searchRuns); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/MaterializationSet.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/MaterializationSet.java index 1e6dc36bb..e77fe624a 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/MaterializationSet.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/MaterializationSet.java @@ -23,14 +23,6 @@ public class MaterializationSet { @JsonProperty("materialized_features") private Collection materializedFeatures; - /** - * Notification configuration around the materialization job or pipeline lifecycle. They are - * applied to every job and pipeline that materializes a feature in this set. Features which are - * materialized in the same pipeline will share the same notification. - */ - @JsonProperty("notifications") - private MaterializationNotifications notifications; - public MaterializationSet setMaterializationSetId(String materializationSetId) { this.materializationSetId = materializationSetId; return this; @@ -50,28 +42,18 @@ public Collection getMaterializedFeatures() { return materializedFeatures; } - public MaterializationSet setNotifications(MaterializationNotifications notifications) { - this.notifications = notifications; - return this; - } - - public MaterializationNotifications getNotifications() { - return notifications; - } - @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MaterializationSet that = (MaterializationSet) o; return Objects.equals(materializationSetId, that.materializationSetId) - && Objects.equals(materializedFeatures, that.materializedFeatures) - && Objects.equals(notifications, that.notifications); + && Objects.equals(materializedFeatures, that.materializedFeatures); } @Override public int hashCode() { - return Objects.hash(materializationSetId, materializedFeatures, notifications); + return Objects.hash(materializationSetId, materializedFeatures); } @Override @@ -79,7 +61,6 @@ public String toString() { return new ToStringer(MaterializationSet.class) .add("materializationSetId", materializationSetId) .add("materializedFeatures", materializedFeatures) - .add("notifications", notifications) .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Metric.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Metric.java index 62e7340d9..83109a75d 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Metric.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Metric.java @@ -43,7 +43,7 @@ public class Metric { @JsonProperty("step") private Long step; - /** The timestamp at which the metric was recorded. */ + /** Time at which the metric was recorded, as a Unix timestamp in milliseconds. */ @JsonProperty("timestamp") private Long timestamp; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/RunInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/RunInfo.java index ee4b2f388..9b1f289d3 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/RunInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/RunInfo.java @@ -11,9 +11,8 @@ @Generated public class RunInfo { /** - * URI of the directory where artifacts should be uploaded. This can be a local path (starting - * with "/"), or a distributed file system (DFS) path, like ``s3://bucket/directory`` or - * ``dbfs:/my/directory``. If not set, the local ``./mlruns`` directory is chosen. + * URI of the directory where the run's artifacts are stored. MLflow sets it when the run is + * created, as the `artifact_location` of the run's experiment followed by `//artifacts`. */ @JsonProperty("artifact_uri") private String artifactUri; @@ -22,11 +21,11 @@ public class RunInfo { @JsonProperty("end_time") private Long endTime; - /** The experiment ID. */ + /** ID of the experiment that the run belongs to. */ @JsonProperty("experiment_id") private String experimentId; - /** Current life cycle stage of the experiment : OneOf("active", "deleted") */ + /** Current life cycle stage of the run: `active` or `deleted`. */ @JsonProperty("lifecycle_stage") private String lifecycleStage; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/RunInputs.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/RunInputs.java index 243593e6a..d029830f9 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/RunInputs.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/RunInputs.java @@ -11,7 +11,7 @@ /** Run inputs. */ @Generated public class RunInputs { - /** Run metrics. */ + /** Datasets used as inputs to the run. */ @JsonProperty("dataset_inputs") private Collection datasetInputs; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/ClonePipelineRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/ClonePipelineRequest.java index 40439fe85..dbb69a613 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/ClonePipelineRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/ClonePipelineRequest.java @@ -172,7 +172,10 @@ public class ClonePipelineRequest { @JsonProperty("serverless") private Boolean serverless; - /** Serverless compute ID specified by the user for serverless pipelines. */ + /** + * Serverless compute ID specified by the user for serverless pipelines. Use compute_policy_id + * instead. Only one of these fields may be set. + */ @JsonProperty("serverless_compute_id") private String serverlessComputeId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/CreatePipeline.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/CreatePipeline.java index be23b9aa4..ba21a8935 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/CreatePipeline.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/CreatePipeline.java @@ -184,7 +184,10 @@ public class CreatePipeline { @JsonProperty("serverless") private Boolean serverless; - /** Serverless compute ID specified by the user for serverless pipelines. */ + /** + * Serverless compute ID specified by the user for serverless pipelines. Use compute_policy_id + * instead. Only one of these fields may be set. + */ @JsonProperty("serverless_compute_id") private String serverlessComputeId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/EditPipeline.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/EditPipeline.java index e46f4ef0d..42bb1c363 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/EditPipeline.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/EditPipeline.java @@ -186,7 +186,10 @@ public class EditPipeline { @JsonProperty("serverless") private Boolean serverless; - /** Serverless compute ID specified by the user for serverless pipelines. */ + /** + * Serverless compute ID specified by the user for serverless pipelines. Use compute_policy_id + * instead. Only one of these fields may be set. + */ @JsonProperty("serverless_compute_id") private String serverlessComputeId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/GetPipelineResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/GetPipelineResponse.java index 048f2820c..6519a65cd 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/GetPipelineResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/GetPipelineResponse.java @@ -31,7 +31,10 @@ public class GetPipelineResponse { @JsonProperty("effective_publishing_mode") private PublishingMode effectivePublishingMode; - /** Serverless compute ID resolved for the pipeline. */ + /** + * Serverless compute ID resolved for the pipeline. For the equivalent compute policy ID, use + * effective_compute_policy_id. + */ @JsonProperty("effective_serverless_compute_id") private String effectiveServerlessComputeId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineSpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineSpec.java index a7b5ee1fc..c91af7b7d 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineSpec.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineSpec.java @@ -153,7 +153,10 @@ public class PipelineSpec { @JsonProperty("serverless") private Boolean serverless; - /** Serverless compute ID specified by the user for serverless pipelines. */ + /** + * Serverless compute ID specified by the user for serverless pipelines. Use compute_policy_id + * instead. Only one of these fields may be set. + */ @JsonProperty("serverless_compute_id") private String serverlessComputeId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NccEgressConfig.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NccEgressConfig.java index 1d5d18154..7d3292b32 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NccEgressConfig.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NccEgressConfig.java @@ -10,9 +10,8 @@ @Generated public class NccEgressConfig { /** - * The network connectivity rules that are applied by default without resource specific - * configurations. You can find the stable network information of your serverless compute - * resources here. + * Deprecated. This field is retained for compatibility with existing clients. Avoid using it in + * new integrations. */ @JsonProperty("default_rules") private NccEgressDefaultRules defaultRules; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NccEgressTargetRules.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NccEgressTargetRules.java index 2fd0903d6..2a12e4987 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NccEgressTargetRules.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NccEgressTargetRules.java @@ -11,12 +11,12 @@ /** Target rule controls the egress rules that are dedicated to specific resources. */ @Generated public class NccEgressTargetRules { - /** AWS private endpoint rule controls the AWS private endpoint based egress rules. */ + /** Deprecated. This field is not supported anymore and kept purely for interface stability. */ @JsonProperty("aws_private_endpoint_rules") private Collection awsPrivateEndpointRules; - /** */ + /** Deprecated. This field is not supported anymore and kept purely for interface stability. */ @JsonProperty("azure_private_endpoint_rules") private Collection azurePrivateEndpointRules; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateWarehouseRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateWarehouseRequest.java index 9101ae243..27e256b5c 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateWarehouseRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateWarehouseRequest.java @@ -41,7 +41,7 @@ public class CreateWarehouseRequest { @JsonProperty("creator_name") private String creatorName; - /** Compute version label for a REALTIME warehouse. This field is output only. */ + /** Compute version label for a Real-Time warehouse. This field is output only. */ @JsonProperty("customer_version_label") private String customerVersionLabel; @@ -62,8 +62,8 @@ public class CreateWarehouseRequest { private String instanceProfileArn; /** - * Maximum compute capacity of a real-time SQL warehouse, in DBU per hour. Must be at least the - * minimum DBU for the selected warehouse size and no greater than the configured DBU limit. + * Maximum autoscaling capacity of a Real-Time SQL warehouse, in DBU per hour. Must be at least + * the minimum DBU for the selected warehouse size and no greater than the configured DBU limit. * Actual capacity may be below this ceiling. */ @JsonProperty("max_dbu") @@ -138,8 +138,9 @@ public class CreateWarehouseRequest { private EndpointTags tags; /** - * Warehouse type: `PRO` or `CLASSIC`. If you want to use serverless compute, you must set to - * `PRO` and also set the field `enable_serverless_compute` to `true`. + * Warehouse type: `PRO`, `CLASSIC`, or `REALTIME`. For serverless compute, use `PRO` or + * `REALTIME` with `enable_serverless_compute=true`. `REALTIME` requires serverless compute and + * Photon; `enable_photon` defaults to `true`. */ @JsonProperty("warehouse_type") private CreateWarehouseRequestWarehouseType warehouseType; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditWarehouseRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditWarehouseRequest.java index 1934f567b..f26992f98 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditWarehouseRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditWarehouseRequest.java @@ -46,7 +46,7 @@ public class EditWarehouseRequest { @JsonProperty("creator_name") private String creatorName; - /** Compute version label for a REALTIME warehouse. This field is output only. */ + /** Compute version label for a Real-Time warehouse. This field is output only. */ @JsonProperty("customer_version_label") private String customerVersionLabel; @@ -70,8 +70,8 @@ public class EditWarehouseRequest { private String instanceProfileArn; /** - * Maximum compute capacity of a real-time SQL warehouse, in DBU per hour. Must be at least the - * minimum DBU for the selected warehouse size and no greater than the configured DBU limit. + * Maximum autoscaling capacity of a Real-Time SQL warehouse, in DBU per hour. Must be at least + * the minimum DBU for the selected warehouse size and no greater than the configured DBU limit. * Actual capacity may be below this ceiling. */ @JsonProperty("max_dbu") @@ -146,8 +146,9 @@ public class EditWarehouseRequest { private EndpointTags tags; /** - * Warehouse type: `PRO` or `CLASSIC`. If you want to use serverless compute, you must set to - * `PRO` and also set the field `enable_serverless_compute` to `true`. + * Warehouse type: `PRO`, `CLASSIC`, or `REALTIME`. For serverless compute, use `PRO` or + * `REALTIME` with `enable_serverless_compute=true`. `REALTIME` requires serverless compute and + * Photon; `enable_photon` defaults to `true`. */ @JsonProperty("warehouse_type") private EditWarehouseRequestWarehouseType warehouseType; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointInfo.java index f9b0d4eb2..27832822e 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointInfo.java @@ -40,7 +40,7 @@ public class EndpointInfo { @JsonProperty("creator_name") private String creatorName; - /** Compute version label for a REALTIME warehouse. This field is output only. */ + /** Compute version label for a Real-Time warehouse. This field is output only. */ @JsonProperty("customer_version_label") private String customerVersionLabel; @@ -73,8 +73,8 @@ public class EndpointInfo { private String jdbcUrl; /** - * Maximum compute capacity of a real-time SQL warehouse, in DBU per hour. Must be at least the - * minimum DBU for the selected warehouse size and no greater than the configured DBU limit. + * Maximum autoscaling capacity of a Real-Time SQL warehouse, in DBU per hour. Must be at least + * the minimum DBU for the selected warehouse size and no greater than the configured DBU limit. * Actual capacity may be below this ceiling. */ @JsonProperty("max_dbu") @@ -168,8 +168,9 @@ public class EndpointInfo { private EndpointTags tags; /** - * Warehouse type: `PRO` or `CLASSIC`. If you want to use serverless compute, you must set to - * `PRO` and also set the field `enable_serverless_compute` to `true`. + * Warehouse type: `PRO`, `CLASSIC`, or `REALTIME`. For serverless compute, use `PRO` or + * `REALTIME` with `enable_serverless_compute=true`. `REALTIME` requires serverless compute and + * Photon; `enable_photon` defaults to `true`. */ @JsonProperty("warehouse_type") private EndpointInfoWarehouseType warehouseType; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseResponse.java index 98cec6f35..d2d8d755a 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseResponse.java @@ -40,7 +40,7 @@ public class GetWarehouseResponse { @JsonProperty("creator_name") private String creatorName; - /** Compute version label for a REALTIME warehouse. This field is output only. */ + /** Compute version label for a Real-Time warehouse. This field is output only. */ @JsonProperty("customer_version_label") private String customerVersionLabel; @@ -73,8 +73,8 @@ public class GetWarehouseResponse { private String jdbcUrl; /** - * Maximum compute capacity of a real-time SQL warehouse, in DBU per hour. Must be at least the - * minimum DBU for the selected warehouse size and no greater than the configured DBU limit. + * Maximum autoscaling capacity of a Real-Time SQL warehouse, in DBU per hour. Must be at least + * the minimum DBU for the selected warehouse size and no greater than the configured DBU limit. * Actual capacity may be below this ceiling. */ @JsonProperty("max_dbu") @@ -168,8 +168,9 @@ public class GetWarehouseResponse { private EndpointTags tags; /** - * Warehouse type: `PRO` or `CLASSIC`. If you want to use serverless compute, you must set to - * `PRO` and also set the field `enable_serverless_compute` to `true`. + * Warehouse type: `PRO`, `CLASSIC`, or `REALTIME`. For serverless compute, use `PRO` or + * `REALTIME` with `enable_serverless_compute=true`. `REALTIME` requires serverless compute and + * Photon; `enable_photon` defaults to `true`. */ @JsonProperty("warehouse_type") private GetWarehouseResponseWarehouseType warehouseType; diff --git a/examples/docs/pom.xml b/examples/docs/pom.xml index 6b7434704..b103aace4 100644 --- a/examples/docs/pom.xml +++ b/examples/docs/pom.xml @@ -24,7 +24,7 @@ com.databricks databricks-sdk-java - 0.185.0 + 0.186.0 diff --git a/examples/spring-boot-oauth-u2m-demo/pom.xml b/examples/spring-boot-oauth-u2m-demo/pom.xml index 252aeed17..01951d3a4 100644 --- a/examples/spring-boot-oauth-u2m-demo/pom.xml +++ b/examples/spring-boot-oauth-u2m-demo/pom.xml @@ -40,7 +40,7 @@ com.databricks databricks-sdk-java - 0.185.0 + 0.186.0 diff --git a/lockfile.json b/lockfile.json index 16efe799c..77f1390ec 100644 --- a/lockfile.json +++ b/lockfile.json @@ -1,7 +1,7 @@ { "artifactId": "databricks-sdk-parent", "groupId": "com.databricks", - "version": "0.185.0", + "version": "0.186.0", "lockFileVersion": 1, "dependencies": [], "mavenPlugins": [], diff --git a/pom.xml b/pom.xml index a2350223d..c89417304 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.databricks databricks-sdk-parent - 0.185.0 + 0.186.0 pom Databricks SDK for Java The Databricks SDK for Java includes functionality to accelerate development with Java for diff --git a/shaded/pom.xml b/shaded/pom.xml index d4304bacd..3b51377fa 100644 --- a/shaded/pom.xml +++ b/shaded/pom.xml @@ -4,7 +4,7 @@ 4.0.0 - 0.185.0 + 0.186.0 com.databricks