From f7d3cbd78b72496d69164563b0c2443e3d01b256 Mon Sep 17 00:00:00 2001 From: Kartik Gupta <88345179+kartikgupta-db@users.noreply.github.com> Date: Wed, 20 Dec 2023 19:26:15 +0530 Subject: [PATCH] Release v0.15.0 (#203) * Better Java examples ([#200](https://github.com/databricks/databricks-sdk-java/pull/200)). API Changes: * Added `azureWorkspaceInfo` field for `com.databricks.sdk.service.provisioning.Workspace`. * Added `com.databricks.sdk.service.provisioning.AzureWorkspaceInfo` class. * Changed `updateConfig()` method for `workspaceClient.servingEndpoints()` service with new required argument order. * Changed `servedEntities` field for `com.databricks.sdk.service.serving.EndpointCoreConfigInput` to no longer be required. * Changed `create()` method for `accountClient.ipAccessLists()` service with new required argument order. * Changed `replace()` method for `accountClient.ipAccessLists()` service with new required argument order. * Changed `update()` method for `accountClient.ipAccessLists()` service with new required argument order. * Changed `create()` method for `workspaceClient.ipAccessLists()` service with new required argument order. * Changed `replace()` method for `workspaceClient.ipAccessLists()` service with new required argument order. * Changed `update()` method for `workspaceClient.ipAccessLists()` service with new required argument order. * Changed `ipAddresses` field for `com.databricks.sdk.service.settings.CreateIpAccessList` to no longer be required. * Changed `ipAddresses` field for `com.databricks.sdk.service.settings.ReplaceIpAccessList` to no longer be required. * Removed `listId` field for `com.databricks.sdk.service.settings.ReplaceIpAccessList`. * Changed `enabled` field for `com.databricks.sdk.service.settings.UpdateIpAccessList` to no longer be required. * Changed `ipAddresses` field for `com.databricks.sdk.service.settings.UpdateIpAccessList` to no longer be required. * Changed `label` field for `com.databricks.sdk.service.settings.UpdateIpAccessList` to no longer be required. * Removed `listId` field for `com.databricks.sdk.service.settings.UpdateIpAccessList`. * Changed `listType` field for `com.databricks.sdk.service.settings.UpdateIpAccessList` to no longer be required. OpenAPI SHA: d3853c8dee5806d04da2ae8910f273ffb35719a5, Date: 2023-12-14 --- .codegen/_openapi_sha | 2 +- .gitattributes | 1 + CHANGELOG.md | 28 +++++++++ databricks-sdk-java/pom.xml | 2 +- .../com/databricks/sdk/core/UserAgent.java | 2 +- .../sdk/service/iam/GetPermissionRequest.java | 8 ++- .../sdk/service/iam/PermissionsRequest.java | 8 ++- .../provisioning/AzureWorkspaceInfo.java | 59 +++++++++++++++++++ .../sdk/service/provisioning/Workspace.java | 16 +++++ .../service/serving/ServingEndpointsAPI.java | 7 +-- .../settings/AccountIpAccessListsAPI.java | 30 ++-------- .../settings/AccountIpAccessListsImpl.java | 1 + .../service/settings/CreateIpAccessList.java | 3 +- .../settings/CreateIpAccessListResponse.java | 3 +- .../DeleteAccountIpAccessListRequest.java | 2 +- .../settings/DeleteIpAccessListRequest.java | 2 +- .../settings/FetchIpAccessListResponse.java | 3 +- .../GetAccountIpAccessListRequest.java | 2 +- .../settings/GetIpAccessListRequest.java | 2 +- .../settings/GetIpAccessListResponse.java | 2 +- .../settings/GetIpAccessListsResponse.java | 1 + .../service/settings/IpAccessListInfo.java | 3 +- .../service/settings/IpAccessListsAPI.java | 30 ++-------- .../service/settings/IpAccessListsImpl.java | 1 + .../settings/ListIpAccessListResponse.java | 1 + .../service/settings/ReplaceIpAccessList.java | 22 ++----- .../service/settings/UpdateIpAccessList.java | 22 ++----- .../sdk/service/sql/AlertQuery.java | 7 ++- .../service/sql/CancelExecutionRequest.java | 5 +- .../sdk/service/sql/CreateWidget.java | 2 +- .../sdk/service/sql/DataSource.java | 7 ++- .../sql/DeleteDashboardWidgetRequest.java | 2 +- .../sql/DeleteQueryVisualizationRequest.java | 2 +- .../sdk/service/sql/GetStatementRequest.java | 5 +- .../sql/GetStatementResultChunkNRequest.java | 5 +- .../com/databricks/sdk/service/sql/Query.java | 7 ++- .../sdk/service/sql/QueryEditContent.java | 7 ++- .../sdk/service/sql/QueryPostContent.java | 7 ++- examples/docs/pom.xml | 2 +- examples/spring-boot-oauth-u2m-demo/pom.xml | 2 +- pom.xml | 2 +- 41 files changed, 204 insertions(+), 121 deletions(-) create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/AzureWorkspaceInfo.java diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index 0d79c490d..2c3fb6e13 100644 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -63caa3cb0c05045e81d3dcf2451fa990d8670f36 \ No newline at end of file +d3853c8dee5806d04da2ae8910f273ffb35719a5 \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index 4a0e275b6..75a37182c 100755 --- a/.gitattributes +++ b/.gitattributes @@ -1000,6 +1000,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/UpdateSta databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/UpdateStateInfoState.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/AwsCredentials.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/AwsKeyInfo.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/AzureWorkspaceInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/CloudResourceContainer.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/CreateAwsKeyInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/CreateCredentialAwsCredentials.java linguist-generated=true diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a78e4c9d..47330bff4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,33 @@ # Version changelog +## 0.15.0 + +* Better Java examples ([#200](https://github.com/databricks/databricks-sdk-java/pull/200)). + +API Changes: + + * Added `azureWorkspaceInfo` field for `com.databricks.sdk.service.provisioning.Workspace`. + * Added `com.databricks.sdk.service.provisioning.AzureWorkspaceInfo` class. + * Changed `updateConfig()` method for `workspaceClient.servingEndpoints()` service with new required argument order. + * Changed `servedEntities` field for `com.databricks.sdk.service.serving.EndpointCoreConfigInput` to no longer be required. + * Changed `create()` method for `accountClient.ipAccessLists()` service with new required argument order. + * Changed `replace()` method for `accountClient.ipAccessLists()` service with new required argument order. + * Changed `update()` method for `accountClient.ipAccessLists()` service with new required argument order. + * Changed `create()` method for `workspaceClient.ipAccessLists()` service with new required argument order. + * Changed `replace()` method for `workspaceClient.ipAccessLists()` service with new required argument order. + * Changed `update()` method for `workspaceClient.ipAccessLists()` service with new required argument order. + * Changed `ipAddresses` field for `com.databricks.sdk.service.settings.CreateIpAccessList` to no longer be required. + * Changed `ipAddresses` field for `com.databricks.sdk.service.settings.ReplaceIpAccessList` to no longer be required. + * Removed `listId` field for `com.databricks.sdk.service.settings.ReplaceIpAccessList`. + * Changed `enabled` field for `com.databricks.sdk.service.settings.UpdateIpAccessList` to no longer be required. + * Changed `ipAddresses` field for `com.databricks.sdk.service.settings.UpdateIpAccessList` to no longer be required. + * Changed `label` field for `com.databricks.sdk.service.settings.UpdateIpAccessList` to no longer be required. + * Removed `listId` field for `com.databricks.sdk.service.settings.UpdateIpAccessList`. + * Changed `listType` field for `com.databricks.sdk.service.settings.UpdateIpAccessList` to no longer be required. + +OpenAPI SHA: d3853c8dee5806d04da2ae8910f273ffb35719a5, Date: 2023-12-14 + + ## 0.14.0 Other changes: diff --git a/databricks-sdk-java/pom.xml b/databricks-sdk-java/pom.xml index 69e350de3..4ea346ca9 100644 --- a/databricks-sdk-java/pom.xml +++ b/databricks-sdk-java/pom.xml @@ -5,7 +5,7 @@ com.databricks databricks-sdk-parent - 0.14.0 + 0.15.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 ea176925f..99c8c3287 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.14.0"; + private static final String version = "0.15.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/GetPermissionRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java index a78e3fdfe..7a25723e7 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java @@ -9,10 +9,14 @@ /** Get object permissions */ @Generated public class GetPermissionRequest { - /** */ + /** The id of the request object. */ private String requestObjectId; - /** */ + /** + * The type of the request object. Can be one of the following: authorization, clusters, + * cluster-policies, directories, experiments, files, instance-pools, jobs, notebooks, pipelines, + * registered-models, repos, serving-endpoints, or sql-warehouses. + */ private String requestObjectType; public GetPermissionRequest setRequestObjectId(String requestObjectId) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java index 2cb98dc79..f559eb51d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java @@ -14,10 +14,14 @@ public class PermissionsRequest { @JsonProperty("access_control_list") private Collection accessControlList; - /** */ + /** The id of the request object. */ private String requestObjectId; - /** */ + /** + * The type of the request object. Can be one of the following: authorization, clusters, + * cluster-policies, directories, experiments, files, instance-pools, jobs, notebooks, pipelines, + * registered-models, repos, serving-endpoints, or sql-warehouses. + */ private String requestObjectType; public PermissionsRequest setAccessControlList( diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/AzureWorkspaceInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/AzureWorkspaceInfo.java new file mode 100755 index 000000000..949da641b --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/AzureWorkspaceInfo.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.provisioning; + +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 AzureWorkspaceInfo { + /** Azure Resource Group name */ + @JsonProperty("resource_group") + private String resourceGroup; + + /** Azure Subscription ID */ + @JsonProperty("subscription_id") + private String subscriptionId; + + public AzureWorkspaceInfo setResourceGroup(String resourceGroup) { + this.resourceGroup = resourceGroup; + return this; + } + + public String getResourceGroup() { + return resourceGroup; + } + + public AzureWorkspaceInfo setSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + public String getSubscriptionId() { + return subscriptionId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + AzureWorkspaceInfo that = (AzureWorkspaceInfo) o; + return Objects.equals(resourceGroup, that.resourceGroup) + && Objects.equals(subscriptionId, that.subscriptionId); + } + + @Override + public int hashCode() { + return Objects.hash(resourceGroup, subscriptionId); + } + + @Override + public String toString() { + return new ToStringer(AzureWorkspaceInfo.class) + .add("resourceGroup", resourceGroup) + .add("subscriptionId", subscriptionId) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/Workspace.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/Workspace.java index 34a109744..b6abc5a88 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/Workspace.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/provisioning/Workspace.java @@ -18,6 +18,10 @@ public class Workspace { @JsonProperty("aws_region") private String awsRegion; + /** */ + @JsonProperty("azure_workspace_info") + private AzureWorkspaceInfo azureWorkspaceInfo; + /** The cloud name. This field always has the value `gcp`. */ @JsonProperty("cloud") private String cloud; @@ -164,6 +168,15 @@ public String getAwsRegion() { return awsRegion; } + public Workspace setAzureWorkspaceInfo(AzureWorkspaceInfo azureWorkspaceInfo) { + this.azureWorkspaceInfo = azureWorkspaceInfo; + return this; + } + + public AzureWorkspaceInfo getAzureWorkspaceInfo() { + return azureWorkspaceInfo; + } + public Workspace setCloud(String cloud) { this.cloud = cloud; return this; @@ -343,6 +356,7 @@ public boolean equals(Object o) { Workspace that = (Workspace) o; return Objects.equals(accountId, that.accountId) && Objects.equals(awsRegion, that.awsRegion) + && Objects.equals(azureWorkspaceInfo, that.azureWorkspaceInfo) && Objects.equals(cloud, that.cloud) && Objects.equals(cloudResourceContainer, that.cloudResourceContainer) && Objects.equals(creationTime, that.creationTime) @@ -370,6 +384,7 @@ public int hashCode() { return Objects.hash( accountId, awsRegion, + azureWorkspaceInfo, cloud, cloudResourceContainer, creationTime, @@ -396,6 +411,7 @@ public String toString() { return new ToStringer(Workspace.class) .add("accountId", accountId) .add("awsRegion", awsRegion) + .add("azureWorkspaceInfo", azureWorkspaceInfo) .add("cloud", cloud) .add("cloudResourceContainer", cloudResourceContainer) .add("creationTime", creationTime) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsAPI.java index 58ee4a658..96e1a7548 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsAPI.java @@ -6,7 +6,6 @@ import com.databricks.sdk.support.Wait; import java.time.Duration; import java.util.Arrays; -import java.util.Collection; import java.util.concurrent.TimeoutException; import java.util.function.Consumer; import org.slf4j.Logger; @@ -252,10 +251,8 @@ public ServingEndpointPermissions setPermissions(ServingEndpointPermissionsReque return impl.setPermissions(request); } - public Wait updateConfig( - String name, Collection servedEntities) { - return updateConfig( - new EndpointCoreConfigInput().setName(name).setServedEntities(servedEntities)); + public Wait updateConfig(String name) { + return updateConfig(new EndpointCoreConfigInput().setName(name)); } /** diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AccountIpAccessListsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AccountIpAccessListsAPI.java index fb2e42b8b..44bdbf820 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AccountIpAccessListsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AccountIpAccessListsAPI.java @@ -3,7 +3,6 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; -import java.util.Collection; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -45,10 +44,8 @@ public AccountIpAccessListsAPI(AccountIpAccessListsService mock) { impl = mock; } - public CreateIpAccessListResponse create( - String label, ListType listType, Collection ipAddresses) { - return create( - new CreateIpAccessList().setLabel(label).setListType(listType).setIpAddresses(ipAddresses)); + public CreateIpAccessListResponse create(String label, ListType listType) { + return create(new CreateIpAccessList().setLabel(label).setListType(listType)); } /** @@ -107,18 +104,12 @@ public Iterable list() { return impl.list().getIpAccessLists(); } - public void replace( - String ipAccessListId, - String label, - ListType listType, - Collection ipAddresses, - boolean enabled) { + public void replace(String ipAccessListId, String label, ListType listType, boolean enabled) { replace( new ReplaceIpAccessList() .setIpAccessListId(ipAccessListId) .setLabel(label) .setListType(listType) - .setIpAddresses(ipAddresses) .setEnabled(enabled)); } @@ -139,19 +130,8 @@ public void replace(ReplaceIpAccessList request) { impl.replace(request); } - public void update( - String ipAccessListId, - String label, - ListType listType, - Collection ipAddresses, - boolean enabled) { - update( - new UpdateIpAccessList() - .setIpAccessListId(ipAccessListId) - .setLabel(label) - .setListType(listType) - .setIpAddresses(ipAddresses) - .setEnabled(enabled)); + public void update(String ipAccessListId) { + update(new UpdateIpAccessList().setIpAccessListId(ipAccessListId)); } /** diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AccountIpAccessListsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AccountIpAccessListsImpl.java index 4fab39ade..379700851 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AccountIpAccessListsImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/AccountIpAccessListsImpl.java @@ -32,6 +32,7 @@ public void delete(DeleteAccountIpAccessListRequest request) { "/api/2.0/accounts/%s/ip-access-lists/%s", apiClient.configuredAccountID(), request.getIpAccessListId()); Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); apiClient.DELETE(path, request, Void.class, headers); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CreateIpAccessList.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CreateIpAccessList.java index 17925edc6..0cfbedf56 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CreateIpAccessList.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CreateIpAccessList.java @@ -8,9 +8,10 @@ import java.util.Collection; import java.util.Objects; +/** Details required to configure a block list or allow list. */ @Generated public class CreateIpAccessList { - /** Array of IP addresses or CIDR values to be added to the IP access list. */ + /** */ @JsonProperty("ip_addresses") private Collection ipAddresses; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CreateIpAccessListResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CreateIpAccessListResponse.java index 9abce7770..dba141ff5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CreateIpAccessListResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/CreateIpAccessListResponse.java @@ -7,9 +7,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Objects; +/** An IP access list was successfully created. */ @Generated public class CreateIpAccessListResponse { - /** */ + /** Definition of an IP Access list */ @JsonProperty("ip_access_list") private IpAccessListInfo ipAccessList; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteAccountIpAccessListRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteAccountIpAccessListRequest.java index 28c4b653c..a101054b5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteAccountIpAccessListRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteAccountIpAccessListRequest.java @@ -9,7 +9,7 @@ /** Delete access list */ @Generated public class DeleteAccountIpAccessListRequest { - /** The ID for the corresponding IP access list. */ + /** */ private String ipAccessListId; public DeleteAccountIpAccessListRequest setIpAccessListId(String ipAccessListId) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteIpAccessListRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteIpAccessListRequest.java index e4f8ede80..9135f52a2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteIpAccessListRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/DeleteIpAccessListRequest.java @@ -9,7 +9,7 @@ /** Delete access list */ @Generated public class DeleteIpAccessListRequest { - /** The ID for the corresponding IP access list to modify. */ + /** The ID for the corresponding IP access list to modify */ private String ipAccessListId; public DeleteIpAccessListRequest setIpAccessListId(String ipAccessListId) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/FetchIpAccessListResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/FetchIpAccessListResponse.java index ac94f5c4e..45e0c9c3a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/FetchIpAccessListResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/FetchIpAccessListResponse.java @@ -7,9 +7,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Objects; +/** An IP access list was successfully returned. */ @Generated public class FetchIpAccessListResponse { - /** */ + /** Definition of an IP Access list */ @JsonProperty("ip_access_list") private IpAccessListInfo ipAccessList; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetAccountIpAccessListRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetAccountIpAccessListRequest.java index 35d817f3f..7d0820c04 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetAccountIpAccessListRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetAccountIpAccessListRequest.java @@ -9,7 +9,7 @@ /** Get IP access list */ @Generated public class GetAccountIpAccessListRequest { - /** The ID for the corresponding IP access list. */ + /** */ private String ipAccessListId; public GetAccountIpAccessListRequest setIpAccessListId(String ipAccessListId) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListRequest.java index 427bc3aac..54056fc88 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListRequest.java @@ -9,7 +9,7 @@ /** Get access list */ @Generated public class GetIpAccessListRequest { - /** The ID for the corresponding IP access list to modify. */ + /** The ID for the corresponding IP access list to modify */ private String ipAccessListId; public GetIpAccessListRequest setIpAccessListId(String ipAccessListId) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListResponse.java index 47925b4bd..88afa428f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListResponse.java @@ -9,7 +9,7 @@ @Generated public class GetIpAccessListResponse { - /** */ + /** Definition of an IP Access list */ @JsonProperty("ip_access_list") private IpAccessListInfo ipAccessList; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListsResponse.java index 03ef0616e..c82ac1638 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListsResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/GetIpAccessListsResponse.java @@ -8,6 +8,7 @@ import java.util.Collection; import java.util.Objects; +/** IP access lists were successfully returned. */ @Generated public class GetIpAccessListsResponse { /** */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListInfo.java index 4f94d3b47..c2ac51992 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListInfo.java @@ -8,6 +8,7 @@ import java.util.Collection; import java.util.Objects; +/** Definition of an IP Access list */ @Generated public class IpAccessListInfo { /** Total number of IP or CIDR values. */ @@ -26,7 +27,7 @@ public class IpAccessListInfo { @JsonProperty("enabled") private Boolean enabled; - /** Array of IP addresses or CIDR values to be added to the IP access list. */ + /** */ @JsonProperty("ip_addresses") private Collection ipAddresses; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsAPI.java index 463ba4523..b8a4c0ac0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsAPI.java @@ -3,7 +3,6 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; -import java.util.Collection; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -44,10 +43,8 @@ public IpAccessListsAPI(IpAccessListsService mock) { impl = mock; } - public CreateIpAccessListResponse create( - String label, ListType listType, Collection ipAddresses) { - return create( - new CreateIpAccessList().setLabel(label).setListType(listType).setIpAddresses(ipAddresses)); + public CreateIpAccessListResponse create(String label, ListType listType) { + return create(new CreateIpAccessList().setLabel(label).setListType(listType)); } /** @@ -107,18 +104,12 @@ public Iterable list() { return impl.list().getIpAccessLists(); } - public void replace( - String ipAccessListId, - String label, - ListType listType, - Collection ipAddresses, - boolean enabled) { + public void replace(String ipAccessListId, String label, ListType listType, boolean enabled) { replace( new ReplaceIpAccessList() .setIpAccessListId(ipAccessListId) .setLabel(label) .setListType(listType) - .setIpAddresses(ipAddresses) .setEnabled(enabled)); } @@ -140,19 +131,8 @@ public void replace(ReplaceIpAccessList request) { impl.replace(request); } - public void update( - String ipAccessListId, - String label, - ListType listType, - Collection ipAddresses, - boolean enabled) { - update( - new UpdateIpAccessList() - .setIpAccessListId(ipAccessListId) - .setLabel(label) - .setListType(listType) - .setIpAddresses(ipAddresses) - .setEnabled(enabled)); + public void update(String ipAccessListId) { + update(new UpdateIpAccessList().setIpAccessListId(ipAccessListId)); } /** diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsImpl.java index 54bf24590..d1b1b7fda 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsImpl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/IpAccessListsImpl.java @@ -28,6 +28,7 @@ public CreateIpAccessListResponse create(CreateIpAccessList request) { public void delete(DeleteIpAccessListRequest request) { String path = String.format("/api/2.0/ip-access-lists/%s", request.getIpAccessListId()); Map headers = new HashMap<>(); + headers.put("Accept", "application/json"); apiClient.DELETE(path, request, Void.class, headers); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/ListIpAccessListResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/ListIpAccessListResponse.java index 9f31d07f0..955a0efcc 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/ListIpAccessListResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/ListIpAccessListResponse.java @@ -8,6 +8,7 @@ import java.util.Collection; import java.util.Objects; +/** IP access lists were successfully returned. */ @Generated public class ListIpAccessListResponse { /** */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/ReplaceIpAccessList.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/ReplaceIpAccessList.java index 737c0d9ee..ac6fa8392 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/ReplaceIpAccessList.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/ReplaceIpAccessList.java @@ -8,16 +8,17 @@ import java.util.Collection; import java.util.Objects; +/** Details required to replace an IP access list. */ @Generated public class ReplaceIpAccessList { /** Specifies whether this IP access list is enabled. */ @JsonProperty("enabled") private Boolean enabled; - /** The ID for the corresponding IP access list to modify. */ + /** The ID for the corresponding IP access list to modify */ private String ipAccessListId; - /** Array of IP addresses or CIDR values to be added to the IP access list. */ + /** */ @JsonProperty("ip_addresses") private Collection ipAddresses; @@ -25,10 +26,6 @@ public class ReplaceIpAccessList { @JsonProperty("label") private String label; - /** Universally unique identifier (UUID) of the IP access list. */ - @JsonProperty("list_id") - private String listId; - /** * Type of IP access list. Valid values are as follows and are case-sensitive: * @@ -75,15 +72,6 @@ public String getLabel() { return label; } - public ReplaceIpAccessList setListId(String listId) { - this.listId = listId; - return this; - } - - public String getListId() { - return listId; - } - public ReplaceIpAccessList setListType(ListType listType) { this.listType = listType; return this; @@ -102,13 +90,12 @@ public boolean equals(Object o) { && Objects.equals(ipAccessListId, that.ipAccessListId) && Objects.equals(ipAddresses, that.ipAddresses) && Objects.equals(label, that.label) - && Objects.equals(listId, that.listId) && Objects.equals(listType, that.listType); } @Override public int hashCode() { - return Objects.hash(enabled, ipAccessListId, ipAddresses, label, listId, listType); + return Objects.hash(enabled, ipAccessListId, ipAddresses, label, listType); } @Override @@ -118,7 +105,6 @@ public String toString() { .add("ipAccessListId", ipAccessListId) .add("ipAddresses", ipAddresses) .add("label", label) - .add("listId", listId) .add("listType", listType) .toString(); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/UpdateIpAccessList.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/UpdateIpAccessList.java index 48827e763..32586c1ef 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/UpdateIpAccessList.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/UpdateIpAccessList.java @@ -8,16 +8,17 @@ import java.util.Collection; import java.util.Objects; +/** Details required to update an IP access list. */ @Generated public class UpdateIpAccessList { /** Specifies whether this IP access list is enabled. */ @JsonProperty("enabled") private Boolean enabled; - /** The ID for the corresponding IP access list to modify. */ + /** The ID for the corresponding IP access list to modify */ private String ipAccessListId; - /** Array of IP addresses or CIDR values to be added to the IP access list. */ + /** */ @JsonProperty("ip_addresses") private Collection ipAddresses; @@ -25,10 +26,6 @@ public class UpdateIpAccessList { @JsonProperty("label") private String label; - /** Universally unique identifier (UUID) of the IP access list. */ - @JsonProperty("list_id") - private String listId; - /** * Type of IP access list. Valid values are as follows and are case-sensitive: * @@ -75,15 +72,6 @@ public String getLabel() { return label; } - public UpdateIpAccessList setListId(String listId) { - this.listId = listId; - return this; - } - - public String getListId() { - return listId; - } - public UpdateIpAccessList setListType(ListType listType) { this.listType = listType; return this; @@ -102,13 +90,12 @@ public boolean equals(Object o) { && Objects.equals(ipAccessListId, that.ipAccessListId) && Objects.equals(ipAddresses, that.ipAddresses) && Objects.equals(label, that.label) - && Objects.equals(listId, that.listId) && Objects.equals(listType, that.listType); } @Override public int hashCode() { - return Objects.hash(enabled, ipAccessListId, ipAddresses, label, listId, listType); + return Objects.hash(enabled, ipAccessListId, ipAddresses, label, listType); } @Override @@ -118,7 +105,6 @@ public String toString() { .add("ipAccessListId", ipAccessListId) .add("ipAddresses", ipAddresses) .add("label", label) - .add("listId", listId) .add("listType", listType) .toString(); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertQuery.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertQuery.java index 77ba47529..627aa8edc 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertQuery.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertQuery.java @@ -14,7 +14,12 @@ public class AlertQuery { @JsonProperty("created_at") private String createdAt; - /** Data source ID. */ + /** + * Data source ID maps to the ID of the data source used by the resource and is distinct from the + * warehouse ID. [Learn more]. + * + *

[Learn more]: https://docs.databricks.com/api/workspace/datasources/list + */ @JsonProperty("data_source_id") private String dataSourceId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CancelExecutionRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CancelExecutionRequest.java index 420d13114..028e4f79b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CancelExecutionRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CancelExecutionRequest.java @@ -9,7 +9,10 @@ /** Cancel statement execution */ @Generated public class CancelExecutionRequest { - /** */ + /** + * The statement ID is returned upon successfully submitting a SQL statement, and is a required + * reference for all subsequent calls. + */ private String statementId; public CancelExecutionRequest setStatementId(String statementId) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateWidget.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateWidget.java index 9f2f4bc88..d0e6a4e0f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateWidget.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateWidget.java @@ -13,7 +13,7 @@ public class CreateWidget { @JsonProperty("dashboard_id") private String dashboardId; - /** */ + /** Widget ID returned by :method:dashboardwidgets/create */ private String id; /** */ diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSource.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSource.java index fde5b7718..d4355ae9c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSource.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSource.java @@ -10,7 +10,12 @@ /** A JSON object representing a DBSQL data source / SQL warehouse. */ @Generated public class DataSource { - /** Data source ID. */ + /** + * Data source ID maps to the ID of the data source used by the resource and is distinct from the + * warehouse ID. [Learn more]. + * + *

[Learn more]: https://docs.databricks.com/api/workspace/datasources/list + */ @JsonProperty("id") private String id; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteDashboardWidgetRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteDashboardWidgetRequest.java index 47a3d1f79..72a6471c7 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteDashboardWidgetRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteDashboardWidgetRequest.java @@ -9,7 +9,7 @@ /** Remove widget */ @Generated public class DeleteDashboardWidgetRequest { - /** */ + /** Widget ID returned by :method:dashboardwidgets/create */ private String id; public DeleteDashboardWidgetRequest setId(String id) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteQueryVisualizationRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteQueryVisualizationRequest.java index 77b7f093a..f37aa10f0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteQueryVisualizationRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DeleteQueryVisualizationRequest.java @@ -9,7 +9,7 @@ /** Remove visualization */ @Generated public class DeleteQueryVisualizationRequest { - /** */ + /** Widget ID returned by :method:queryvizualisations/create */ private String id; public DeleteQueryVisualizationRequest setId(String id) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetStatementRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetStatementRequest.java index 652126e5e..e3812909c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetStatementRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetStatementRequest.java @@ -9,7 +9,10 @@ /** Get status, manifest, and result first chunk */ @Generated public class GetStatementRequest { - /** */ + /** + * The statement ID is returned upon successfully submitting a SQL statement, and is a required + * reference for all subsequent calls. + */ private String statementId; public GetStatementRequest setStatementId(String statementId) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetStatementResultChunkNRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetStatementResultChunkNRequest.java index 8982019d5..57df3e8e4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetStatementResultChunkNRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetStatementResultChunkNRequest.java @@ -12,7 +12,10 @@ public class GetStatementResultChunkNRequest { /** */ private Long chunkIndex; - /** */ + /** + * The statement ID is returned upon successfully submitting a SQL statement, and is a required + * reference for all subsequent calls. + */ private String statementId; public GetStatementResultChunkNRequest setChunkIndex(Long chunkIndex) { diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Query.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Query.java index f01813446..6f0bdc83f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Query.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Query.java @@ -18,7 +18,12 @@ public class Query { @JsonProperty("created_at") private String createdAt; - /** Data source ID. */ + /** + * Data source ID maps to the ID of the data source used by the resource and is distinct from the + * warehouse ID. [Learn more]. + * + *

[Learn more]: https://docs.databricks.com/api/workspace/datasources/list + */ @JsonProperty("data_source_id") private String dataSourceId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryEditContent.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryEditContent.java index ed3c2e397..1ad78a27d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryEditContent.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryEditContent.java @@ -9,7 +9,12 @@ @Generated public class QueryEditContent { - /** Data source ID. */ + /** + * Data source ID maps to the ID of the data source used by the resource and is distinct from the + * warehouse ID. [Learn more]. + * + *

[Learn more]: https://docs.databricks.com/api/workspace/datasources/list + */ @JsonProperty("data_source_id") private String dataSourceId; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryPostContent.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryPostContent.java index 494a422aa..bfe4e17ce 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryPostContent.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryPostContent.java @@ -9,7 +9,12 @@ @Generated public class QueryPostContent { - /** Data source ID. */ + /** + * Data source ID maps to the ID of the data source used by the resource and is distinct from the + * warehouse ID. [Learn more]. + * + *

[Learn more]: https://docs.databricks.com/api/workspace/datasources/list + */ @JsonProperty("data_source_id") private String dataSourceId; diff --git a/examples/docs/pom.xml b/examples/docs/pom.xml index b39db991d..269a1c763 100644 --- a/examples/docs/pom.xml +++ b/examples/docs/pom.xml @@ -24,7 +24,7 @@ com.databricks databricks-sdk-java - 0.14.0 + 0.15.0 diff --git a/examples/spring-boot-oauth-u2m-demo/pom.xml b/examples/spring-boot-oauth-u2m-demo/pom.xml index 9e0a0c016..a8cee7dca 100644 --- a/examples/spring-boot-oauth-u2m-demo/pom.xml +++ b/examples/spring-boot-oauth-u2m-demo/pom.xml @@ -37,7 +37,7 @@ com.databricks databricks-sdk-java - 0.14.0 + 0.15.0 com.fasterxml.jackson.datatype diff --git a/pom.xml b/pom.xml index 69e35d620..7d9e8b531 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.databricks databricks-sdk-parent - 0.14.0 + 0.15.0 pom Databricks SDK for Java The Databricks SDK for Java includes functionality to accelerate development with Java for