From f79b5b07527218a22f61837ac5f7d58fe38e1727 Mon Sep 17 00:00:00 2001 From: "databricks-ci-ghec-1[bot]" <184311507+databricks-ci-ghec-1[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 09:46:36 +0000 Subject: [PATCH] Update SDK to 44cbc832f1b070c47544ff470fd8498853d24cf3 --- .codegen/_openapi_sha | 2 +- NEXT_CHANGELOG.md | 3 ++- .../service/postgres/DeleteRoleOperation.java | 20 +++++++++---------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index 647e6ad82..528b0ddb0 100644 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -b5283a925ecf8929263b63f41b182246745d81a0 \ No newline at end of file +44cbc832f1b070c47544ff470fd8498853d24cf3 \ No newline at end of file diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index fb1e3184d..3540fbd3f 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -37,4 +37,5 @@ * Add `accessModes` and `storageLocation` fields for `com.databricks.sdk.service.sharing.Table`. * Add `command` and `envVars` fields for `com.databricks.sdk.service.apps.AppDeployment`. * Add `fullName` and `securableType` fields for `com.databricks.sdk.service.catalog.AccessRequestDestinations`. -* [Breaking] Change `deleteKafkaConfig()` method for `workspaceClient.featureEngineering()` service . Method path has changed. \ No newline at end of file +* [Breaking] Change `deleteKafkaConfig()` method for `workspaceClient.featureEngineering()` service . Method path has changed. +* [Breaking] Change long-running operation configuration for `workspaceClient.postgres().deleteRole()` method . Long running operation response type changed to `Void class`. \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteRoleOperation.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteRoleOperation.java index fd5c204e6..368527abd 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteRoleOperation.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteRoleOperation.java @@ -33,26 +33,26 @@ public DeleteRoleOperation(PostgresService impl, Operation operation) { } /** - * Wait for the operation to complete and return the resulting Role. Waits indefinitely if no - * timeout is specified. + * Wait for the operation to complete and return the resulting . Waits indefinitely if no timeout + * is specified. * - * @return the created Role + * @return the created * @throws TimeoutException if the operation doesn't complete within the timeout * @throws DatabricksException if the operation fails */ - public Role waitForCompletion() throws TimeoutException { - return waitForCompletion(Optional.empty()); + public void waitForCompletion() throws TimeoutException { + waitForCompletion(Optional.empty()); } /** - * Wait for the operation to complete and return the resulting Role. + * Wait for the operation to complete and return the resulting . * * @param options the options for configuring the wait behavior, can be empty for defaults - * @return the created Role + * @return the created * @throws TimeoutException if the operation doesn't complete within the timeout * @throws DatabricksException if the operation fails */ - public Role waitForCompletion(Optional options) throws TimeoutException { + public void waitForCompletion(Optional options) throws TimeoutException { Optional timeout = options.flatMap(LroOptions::getTimeout); long deadline = timeout.isPresent() @@ -88,9 +88,9 @@ public Role waitForCompletion(Optional options) throws TimeoutExcept try { JsonNode responseJson = objectMapper.valueToTree(operation.getResponse()); - return objectMapper.treeToValue(responseJson, Role.class); + objectMapper.treeToValue(responseJson, Void.class); } catch (JsonProcessingException e) { - throw new DatabricksException("Failed to unmarshal role response: " + e.getMessage(), e); + throw new DatabricksException("Failed to unmarshal response: " + e.getMessage(), e); } }