Skip to content

Commit 1fea8de

Browse files
committed
fix conflict
2 parents 81ee478 + d854b9c commit 1fea8de

File tree

12 files changed

+95
-8
lines changed

12 files changed

+95
-8
lines changed

.release_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"timestamp": "2025-04-22 12:07:45+0000"
2+
"timestamp": "2025-04-24 18:23:33+0000"
33
}

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Version changelog
22

3+
## Release v0.47.0
4+
5+
### API Changes
6+
* Added `updateEndpointBudgetPolicy()` and `updateEndpointCustomTags()` methods for `workspaceClient.vectorSearchEndpoints()` service.
7+
* Added `nodeTypeFlexibility` field for `com.databricks.sdk.service.compute.EditInstancePool`.
8+
* Added `pageSize` and `pageToken` fields for `com.databricks.sdk.service.compute.GetEvents`.
9+
* Added `nextPageToken` and `prevPageToken` fields for `com.databricks.sdk.service.compute.GetEventsResponse`.
10+
* Added `nodeTypeFlexibility` field for `com.databricks.sdk.service.compute.GetInstancePool`.
11+
* Added `nodeTypeFlexibility` field for `com.databricks.sdk.service.compute.InstancePoolAndStats`.
12+
* Added `effectivePerformanceTarget` field for `com.databricks.sdk.service.jobs.RepairHistoryItem`.
13+
* Added `performanceTarget` field for `com.databricks.sdk.service.jobs.RepairRun`.
14+
* Added `budgetPolicyId` field for `com.databricks.sdk.service.vectorsearch.CreateEndpoint`.
15+
* Added `customTags` and `effectiveBudgetPolicyId` fields for `com.databricks.sdk.service.vectorsearch.EndpointInfo`.
16+
* Added `DISABLED` enum value for `com.databricks.sdk.service.jobs.TerminationCodeCode`.
17+
* [Breaking] Changed `createIndex()` method for `workspaceClient.vectorSearchIndexes()` service to return `com.databricks.sdk.service.vectorsearch.VectorIndex` class.
18+
* [Breaking] Changed `deleteDataVectorIndex()` method for `workspaceClient.vectorSearchIndexes()` service . HTTP method/verb has changed.
19+
* [Breaking] Changed `deleteDataVectorIndex()` method for `workspaceClient.vectorSearchIndexes()` service with new required argument order.
20+
* [Breaking] Changed `dataArray` field for `com.databricks.sdk.service.vectorsearch.ResultData` to type `com.databricks.sdk.service.vectorsearch.ListValueList` class.
21+
* [Breaking] Changed waiter for `workspaceClient.vectorSearchEndpoints().createEndpoint()` method.
22+
* [Breaking] Removed `nullValue` field for `com.databricks.sdk.service.vectorsearch.Value`.
23+
24+
325
## Release v0.46.0
426

527
### New Features and Improvements

NEXT_CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NEXT CHANGELOG
22

3-
## Release v0.47.0
3+
## Release v0.48.0
44

55
### New Features and Improvements
66

databricks-sdk-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.databricks</groupId>
77
<artifactId>databricks-sdk-parent</artifactId>
8-
<version>0.46.0</version>
8+
<version>0.47.0</version>
99
</parent>
1010
<artifactId>databricks-sdk-java</artifactId>
1111
<properties>

databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public String getValue() {
3636
// TODO: check if reading from
3737
// /META-INF/maven/com.databricks/databrics-sdk-java/pom.properties
3838
// or getClass().getPackage().getImplementationVersion() is enough.
39-
private static final String version = "0.46.0";
39+
private static final String version = "0.47.0";
4040

4141
public static void withProduct(String product, String productVersion) {
4242
UserAgent.product = product;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.databricks.sdk.core.oauth;
2+
3+
/**
4+
* Represents an ID Token provided by an identity provider from an OAuth flow. This token can later
5+
* be exchanged for an access token.
6+
*/
7+
public class IDToken {
8+
// The string value of the ID Token
9+
private final String value;
10+
11+
/**
12+
* Constructs an IDToken with a value.
13+
*
14+
* @param value The ID Token string.
15+
*/
16+
public IDToken(String value) {
17+
if (value == null || value.isEmpty()) {
18+
throw new IllegalArgumentException("ID Token value cannot be null or empty");
19+
}
20+
this.value = value;
21+
}
22+
23+
/**
24+
* Returns the value of the ID Token.
25+
*
26+
* @return The string representation of the ID Token.
27+
*/
28+
public String getValue() {
29+
return value;
30+
}
31+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.databricks.sdk.core.oauth;
2+
3+
/** IDTokenSource is anything that returns an IDToken given an audience. */
4+
public interface IDTokenSource {
5+
/**
6+
* Retrieves an ID Token for the specified audience.
7+
*
8+
* @param audience The intended recipient of the ID Token.
9+
* @return An {@link IDToken} containing the token value.
10+
*/
11+
IDToken getIDToken(String audience);
12+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.databricks.sdk.core.oauth;
2+
3+
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
import static org.junit.jupiter.api.Assertions.assertThrows;
5+
6+
import org.junit.jupiter.api.Test;
7+
8+
public class IDTokenTest {
9+
10+
private static final String accessToken = "testIdToken";
11+
12+
@Test
13+
void testIDTokenWithValue() {
14+
IDToken idToken = new IDToken(accessToken);
15+
assertEquals(accessToken, idToken.getValue());
16+
}
17+
18+
@Test
19+
void testIDTokenWithNullValue() {
20+
assertThrows(IllegalArgumentException.class, () -> new IDToken(null));
21+
}
22+
}

examples/docs/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<dependency>
2525
<groupId>com.databricks</groupId>
2626
<artifactId>databricks-sdk-java</artifactId>
27-
<version>0.46.0</version>
27+
<version>0.47.0</version>
2828
</dependency>
2929
</dependencies>
3030
</project>

examples/spring-boot-oauth-u2m-demo/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<dependency>
3838
<groupId>com.databricks</groupId>
3939
<artifactId>databricks-sdk-java</artifactId>
40-
<version>0.46.0</version>
40+
<version>0.47.0</version>
4141
</dependency>
4242
<dependency>
4343
<groupId>com.fasterxml.jackson.datatype</groupId>

0 commit comments

Comments
 (0)