From aa83a032c6483eedf86e8b9cd8370e8ee7980ee3 Mon Sep 17 00:00:00 2001 From: Miles Yucht Date: Wed, 29 Nov 2023 13:54:54 +0100 Subject: [PATCH] Release v0.13.0 (#194) Bug fixes: * Fix databricks CLI authentication on Windows ([#192](https://github.com/databricks/databricks-sdk-java/pull/192)). * Fix SCIM pagination ([#193](https://github.com/databricks/databricks-sdk-java/pull/193)). Other changes: * Add more detailed error message on default credentials not found error ([#180](https://github.com/databricks/databricks-sdk-java/pull/180)). * Support custom scopes and redirectUrl for U2M OAuth flow ([#190](https://github.com/databricks/databricks-sdk-java/pull/190)). API Changes: * Removed `enableOptimization()` method for `workspaceClient.metastores()` service. * Added `pipelineId` field for `com.databricks.sdk.service.catalog.TableInfo`. * Added `enablePredictiveOptimization` field for `com.databricks.sdk.service.catalog.UpdateCatalog` and `com.databricks.sdk.service.catalog.UpdateSchema`. * Removed `com.databricks.sdk.service.catalog.UpdatePredictiveOptimization` and `com.databricks.sdk.service.catalog.UpdatePredictiveOptimizationResponse` class. * Added `description` field for `com.databricks.sdk.service.jobs.CreateJob` and `com.databricks.sdk.service.jobs.JobSettings`. * Added `listNetworkConnectivityConfigurations()` and `listPrivateEndpointRules()` methods for `accountClient.networkConnectivity()` service. * Added `com.databricks.sdk.service.settings.ListNccAzurePrivateEndpointRulesResponse`, `com.databricks.sdk.service.settings.ListNetworkConnectivityConfigurationsRequest`, `com.databricks.sdk.service.settings.ListNetworkConnectivityConfigurationsResponse`, and `com.databricks.sdk.service.settings.ListPrivateEndpointRulesRequest` classes. * Added `stringSharedAs` field for `com.databricks.sdk.service.sharing.SharedDataObject`. OpenAPI SHA: 22f09783eb8a84d52026f856be3b2068f9498db3, Date: 2023-11-23 --- .codegen/api.java.tmpl | 2 +- CHANGELOG.md | 25 +++++++++++++++++++ databricks-sdk-java/pom.xml | 2 +- .../com/databricks/sdk/core/UserAgent.java | 2 +- .../sdk/service/iam/AccountGroupsAPI.java | 2 +- .../iam/AccountServicePrincipalsAPI.java | 2 +- .../sdk/service/iam/AccountUsersAPI.java | 2 +- .../databricks/sdk/service/iam/GroupsAPI.java | 2 +- .../sdk/service/iam/ServicePrincipalsAPI.java | 2 +- .../databricks/sdk/service/iam/UsersAPI.java | 2 +- .../sdk/service/sql/ChannelName.java | 1 - pom.xml | 2 +- 12 files changed, 35 insertions(+), 11 deletions(-) diff --git a/.codegen/api.java.tmpl b/.codegen/api.java.tmpl index cf6cb9a81..fe678f897 100644 --- a/.codegen/api.java.tmpl +++ b/.codegen/api.java.tmpl @@ -140,7 +140,7 @@ public class {{.PascalName}}API { 0 {{- end}}L);{{end -}} {{if and .Pagination.Limit (contains .Path "/scim/v2/")}} - if (request.get{{.Pagination.Limit.PascalName}}() == 0L) { + if (request.get{{.Pagination.Limit.PascalName}}() == null) { request.set{{.Pagination.Limit.PascalName}}(100L); }{{end -}} return new Paginator<>(request, impl::{{template "java-name" .}}, {{template "type" .Response}}::get{{.Pagination.Results.PascalName}}, response -> { diff --git a/CHANGELOG.md b/CHANGELOG.md index 00a6270e1..dae3b9533 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # Version changelog +## 0.13.0 + +Bug fixes: + +* Fix databricks CLI authentication on Windows ([#192](https://github.com/databricks/databricks-sdk-java/pull/192)). +* Fix SCIM pagination ([#193](https://github.com/databricks/databricks-sdk-java/pull/193)). + +Other changes: + +* Add more detailed error message on default credentials not found error ([#180](https://github.com/databricks/databricks-sdk-java/pull/180)). +* Support custom scopes and redirectUrl for U2M OAuth flow ([#190](https://github.com/databricks/databricks-sdk-java/pull/190)). + +API Changes: + + * Removed `enableOptimization()` method for `workspaceClient.metastores()` service. + * Added `pipelineId` field for `com.databricks.sdk.service.catalog.TableInfo`. + * Added `enablePredictiveOptimization` field for `com.databricks.sdk.service.catalog.UpdateCatalog` and `com.databricks.sdk.service.catalog.UpdateSchema`. + * Removed `com.databricks.sdk.service.catalog.UpdatePredictiveOptimization` and `com.databricks.sdk.service.catalog.UpdatePredictiveOptimizationResponse` class. + * Added `description` field for `com.databricks.sdk.service.jobs.CreateJob` and `com.databricks.sdk.service.jobs.JobSettings`. + * Added `listNetworkConnectivityConfigurations()` and `listPrivateEndpointRules()` methods for `accountClient.networkConnectivity()` service. + * Added `com.databricks.sdk.service.settings.ListNccAzurePrivateEndpointRulesResponse`, `com.databricks.sdk.service.settings.ListNetworkConnectivityConfigurationsRequest`, `com.databricks.sdk.service.settings.ListNetworkConnectivityConfigurationsResponse`, and `com.databricks.sdk.service.settings.ListPrivateEndpointRulesRequest` classes. + * Added `stringSharedAs` field for `com.databricks.sdk.service.sharing.SharedDataObject`. + +OpenAPI SHA: 22f09783eb8a84d52026f856be3b2068f9498db3, Date: 2023-11-23 + ## 0.12.0 * Implemented notebook-native auth for the Java SDK ([#171](https://github.com/databricks/databricks-sdk-java/pull/171)). diff --git a/databricks-sdk-java/pom.xml b/databricks-sdk-java/pom.xml index cac65c687..b51fc5606 100644 --- a/databricks-sdk-java/pom.xml +++ b/databricks-sdk-java/pom.xml @@ -5,7 +5,7 @@ com.databricks databricks-sdk-parent - 0.12.0 + 0.13.0 databricks-sdk-java 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 c0d9dac12..b4abd8c9f 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 @@ -13,7 +13,7 @@ public class UserAgent { // 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.12.0"; + private static final String version = "0.13.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/iam/AccountGroupsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/AccountGroupsAPI.java index fb58f53b0..634e2397a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/AccountGroupsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/AccountGroupsAPI.java @@ -74,7 +74,7 @@ public Group get(GetAccountGroupRequest request) { */ public Iterable list(ListAccountGroupsRequest request) { request.setStartIndex(1L); - if (request.getCount() == 0L) { + if (request.getCount() == null) { request.setCount(100L); } return new Paginator<>( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/AccountServicePrincipalsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/AccountServicePrincipalsAPI.java index 359c1ed0a..ff6280873 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/AccountServicePrincipalsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/AccountServicePrincipalsAPI.java @@ -72,7 +72,7 @@ public ServicePrincipal get(GetAccountServicePrincipalRequest request) { */ public Iterable list(ListAccountServicePrincipalsRequest request) { request.setStartIndex(1L); - if (request.getCount() == 0L) { + if (request.getCount() == null) { request.setCount(100L); } return new Paginator<>( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/AccountUsersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/AccountUsersAPI.java index f3cccb028..b378db43c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/AccountUsersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/AccountUsersAPI.java @@ -78,7 +78,7 @@ public User get(GetAccountUserRequest request) { */ public Iterable list(ListAccountUsersRequest request) { request.setStartIndex(1L); - if (request.getCount() == 0L) { + if (request.getCount() == null) { request.setCount(100L); } return new Paginator<>( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GroupsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GroupsAPI.java index 8d89d9af3..01a61454b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GroupsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GroupsAPI.java @@ -74,7 +74,7 @@ public Group get(GetGroupRequest request) { */ public Iterable list(ListGroupsRequest request) { request.setStartIndex(1L); - if (request.getCount() == 0L) { + if (request.getCount() == null) { request.setCount(100L); } return new Paginator<>( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/ServicePrincipalsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/ServicePrincipalsAPI.java index 8aae052e8..28d5c5511 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/ServicePrincipalsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/ServicePrincipalsAPI.java @@ -72,7 +72,7 @@ public ServicePrincipal get(GetServicePrincipalRequest request) { */ public Iterable list(ListServicePrincipalsRequest request) { request.setStartIndex(1L); - if (request.getCount() == 0L) { + if (request.getCount() == null) { request.setCount(100L); } return new Paginator<>( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UsersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UsersAPI.java index f58f476b7..e2764fd02 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UsersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UsersAPI.java @@ -97,7 +97,7 @@ public PasswordPermissions getPermissions() { */ public Iterable list(ListUsersRequest request) { request.setStartIndex(1L); - if (request.getCount() == 0L) { + if (request.getCount() == null) { request.setCount(100L); } return new Paginator<>( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java index 8e0f647a1..3b9d4cbb0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java @@ -4,7 +4,6 @@ import com.databricks.sdk.support.Generated; -/** Name of the channel */ @Generated public enum ChannelName { CHANNEL_NAME_CURRENT, diff --git a/pom.xml b/pom.xml index 6d8120cc4..81f5abdf5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.databricks databricks-sdk-parent - 0.12.0 + 0.13.0 pom Databricks SDK for Java The Databricks SDK for Java includes functionality to accelerate development with Java for