Skip to content

Commit 65c026b

Browse files
Update SDK API to 44cbc832f1b070c47544ff470fd8498853d24cf3 (#602)
This PR updates the SDK to the latest API changes. NO_CHANGELOG=true Co-authored-by: databricks-ci-ghec-1[bot] <184311507+databricks-ci-ghec-1[bot]@users.noreply.github.com>
1 parent b778de3 commit 65c026b

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b5283a925ecf8929263b63f41b182246745d81a0
1+
44cbc832f1b070c47544ff470fd8498853d24cf3

NEXT_CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@
3737
* Add `accessModes` and `storageLocation` fields for `com.databricks.sdk.service.sharing.Table`.
3838
* Add `command` and `envVars` fields for `com.databricks.sdk.service.apps.AppDeployment`.
3939
* Add `fullName` and `securableType` fields for `com.databricks.sdk.service.catalog.AccessRequestDestinations`.
40-
* [Breaking] Change `deleteKafkaConfig()` method for `workspaceClient.featureEngineering()` service . Method path has changed.
40+
* [Breaking] Change `deleteKafkaConfig()` method for `workspaceClient.featureEngineering()` service . Method path has changed.
41+
* [Breaking] Change long-running operation configuration for `workspaceClient.postgres().deleteRole()` method . Long running operation response type changed to `Void class`.

databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteRoleOperation.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,26 @@ public DeleteRoleOperation(PostgresService impl, Operation operation) {
3333
}
3434

3535
/**
36-
* Wait for the operation to complete and return the resulting Role. Waits indefinitely if no
37-
* timeout is specified.
36+
* Wait for the operation to complete and return the resulting . Waits indefinitely if no timeout
37+
* is specified.
3838
*
39-
* @return the created Role
39+
* @return the created
4040
* @throws TimeoutException if the operation doesn't complete within the timeout
4141
* @throws DatabricksException if the operation fails
4242
*/
43-
public Role waitForCompletion() throws TimeoutException {
44-
return waitForCompletion(Optional.empty());
43+
public void waitForCompletion() throws TimeoutException {
44+
waitForCompletion(Optional.empty());
4545
}
4646

4747
/**
48-
* Wait for the operation to complete and return the resulting Role.
48+
* Wait for the operation to complete and return the resulting .
4949
*
5050
* @param options the options for configuring the wait behavior, can be empty for defaults
51-
* @return the created Role
51+
* @return the created
5252
* @throws TimeoutException if the operation doesn't complete within the timeout
5353
* @throws DatabricksException if the operation fails
5454
*/
55-
public Role waitForCompletion(Optional<LroOptions> options) throws TimeoutException {
55+
public void waitForCompletion(Optional<LroOptions> options) throws TimeoutException {
5656
Optional<Duration> timeout = options.flatMap(LroOptions::getTimeout);
5757
long deadline =
5858
timeout.isPresent()
@@ -88,9 +88,9 @@ public Role waitForCompletion(Optional<LroOptions> options) throws TimeoutExcept
8888

8989
try {
9090
JsonNode responseJson = objectMapper.valueToTree(operation.getResponse());
91-
return objectMapper.treeToValue(responseJson, Role.class);
91+
objectMapper.treeToValue(responseJson, Void.class);
9292
} catch (JsonProcessingException e) {
93-
throw new DatabricksException("Failed to unmarshal role response: " + e.getMessage(), e);
93+
throw new DatabricksException("Failed to unmarshal response: " + e.getMessage(), e);
9494
}
9595
}
9696

0 commit comments

Comments
 (0)