Skip to content

Commit

Permalink
Merge branch 'main' into jobs-api-integration-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudhartert-db authored Sep 11, 2024
2 parents 8523a9e + ab39312 commit 6a699e5
Show file tree
Hide file tree
Showing 184 changed files with 4,803 additions and 471 deletions.
2 changes: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cde487f4948666f7eff0f7566cd0d2704bb2e2fa
d05898328669a3f8ab0c2ecee37db2673d3ea3f7
2 changes: 1 addition & 1 deletion .codegen/api.java.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public class {{.PascalName}}API {
{{- else if .Pagination.Token -}}
{
String token = response.get{{.Pagination.Token.Bind.PascalName}}();
if (token == null) {
if (token == null || token.isEmpty()) {
return null;
}
return request.set{{.Pagination.Token.PollField.PascalName}}(token);
Expand Down
46 changes: 44 additions & 2 deletions .gitattributes

Large diffs are not rendered by default.

103 changes: 103 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,108 @@
# Version changelog

## [Release] Release v0.31.0

### New Features and Improvements

* Add a way to provide non proxy hosts ([#331](https://github.com/databricks/databricks-sdk-java/pull/331)).
* Add support for discovery URL ([#336](https://github.com/databricks/databricks-sdk-java/pull/336)).
* Provide SSLSocketFactory in HttpClient ([#333](https://github.com/databricks/databricks-sdk-java/pull/333)).


### Bug Fixes

* DatabricksConfig: newWithWorkspaceHost should retain authType ([#338](https://github.com/databricks/databricks-sdk-java/pull/338)).
* Handle login.html incorrect validation for private link ([#340](https://github.com/databricks/databricks-sdk-java/pull/340)).


### Internal Changes

* Fix nightly test failure ([#339](https://github.com/databricks/databricks-sdk-java/pull/339)).


### API Changes:

* Added `regenerateDashboard()` method for `workspaceClient.qualityMonitors()` service.
* Added `com.databricks.sdk.service.catalog.RegenerateDashboardRequest` and `com.databricks.sdk.service.catalog.RegenerateDashboardResponse` classes.
* Added `com.databricks.sdk.service.jobs.QueueDetails`, `com.databricks.sdk.service.jobs.QueueDetailsCodeCode`, `com.databricks.sdk.service.jobs.RunLifecycleStateV2State`, `com.databricks.sdk.service.jobs.RunStatus`, `com.databricks.sdk.service.jobs.TerminationCodeCode`, `com.databricks.sdk.service.jobs.TerminationDetails` and `com.databricks.sdk.service.jobs.TerminationTypeType` classes.
* Added `status` field for `com.databricks.sdk.service.jobs.BaseRun`.
* Added `status` field for `com.databricks.sdk.service.jobs.RepairHistoryItem`.
* Added `status` field for `com.databricks.sdk.service.jobs.Run`.
* Added `status` field for `com.databricks.sdk.service.jobs.RunTask`.
* Added `maxProvisionedThroughput` and `minProvisionedThroughput` fields for `com.databricks.sdk.service.serving.ServedModelInput`.
* Added `columnsToSync` field for `com.databricks.sdk.service.vectorsearch.DeltaSyncVectorIndexSpecRequest`.
* Changed `workloadSize` field for `com.databricks.sdk.service.serving.ServedModelInput` to no longer be required.

OpenAPI SHA: d05898328669a3f8ab0c2ecee37db2673d3ea3f7, Date: 2024-09-04


## [Release] Release v0.30.0

### API Changes:

* Added `workspaceClient.policyComplianceForClusters()` service.
* Added `workspaceClient.policyComplianceForJobs()` service.
* Added `workspaceClient.resourceQuotas()` service.
* Added `com.databricks.sdk.service.catalog.GetQuotaRequest`, `com.databricks.sdk.service.catalog.GetQuotaResponse`, `com.databricks.sdk.service.catalog.ListQuotasRequest`, `com.databricks.sdk.service.catalog.ListQuotasResponse` and `com.databricks.sdk.service.catalog.QuotaInfo` classes.
* Added `com.databricks.sdk.service.compute.ClusterCompliance`, `com.databricks.sdk.service.compute.ClusterSettingsChange`, `com.databricks.sdk.service.compute.EnforceClusterComplianceRequest`, `com.databricks.sdk.service.compute.EnforceClusterComplianceResponse`, `com.databricks.sdk.service.compute.GetClusterComplianceRequest`, `com.databricks.sdk.service.compute.GetClusterComplianceResponse`, `com.databricks.sdk.service.compute.ListClusterCompliancesRequest` and `com.databricks.sdk.service.compute.ListClusterCompliancesResponse` classes.
* Added `com.databricks.sdk.service.jobs.EnforcePolicyComplianceForJobResponseJobClusterSettingsChange`, `com.databricks.sdk.service.jobs.EnforcePolicyComplianceRequest`, `com.databricks.sdk.service.jobs.EnforcePolicyComplianceResponse`, `com.databricks.sdk.service.jobs.GetPolicyComplianceRequest`, `com.databricks.sdk.service.jobs.GetPolicyComplianceResponse`, `com.databricks.sdk.service.jobs.JobCompliance`, `com.databricks.sdk.service.jobs.ListJobComplianceForPolicyResponse` and `com.databricks.sdk.service.jobs.ListJobComplianceRequest` classes.
* Added `fallback` field for `com.databricks.sdk.service.catalog.CreateExternalLocation`.
* Added `fallback` field for `com.databricks.sdk.service.catalog.ExternalLocationInfo`.
* Added `fallback` field for `com.databricks.sdk.service.catalog.UpdateExternalLocation`.
* Added `jobRunId` field for `com.databricks.sdk.service.jobs.BaseRun`.
* Added `jobRunId` field for `com.databricks.sdk.service.jobs.Run`.
* Added `includeMetrics` field for `com.databricks.sdk.service.sql.ListQueryHistoryRequest`.
* Added `statementIds` field for `com.databricks.sdk.service.sql.QueryFilter`.
* Removed `com.databricks.sdk.service.sql.ContextFilter` class.
* Removed `contextFilter` field for `com.databricks.sdk.service.sql.QueryFilter`.
* Removed `pipelineId` and `pipelineUpdateId` fields for `com.databricks.sdk.service.sql.QuerySource`.

OpenAPI SHA: 3eae49b444cac5a0118a3503e5b7ecef7f96527a, Date: 2024-08-21


## [Release] Release v0.29.0

### Internal Changes

* Test that Jobs API endpoints are pinned to 2.1 ([#319](https://github.com/databricks/databricks-sdk-java/pull/319)).


### API Changes:

* Added `update()` method for `workspaceClient.clusters()` service.
* Added `com.databricks.sdk.service.compute.UpdateCluster`, `com.databricks.sdk.service.compute.UpdateClusterResource` and `Object` classes.
* Added `com.databricks.sdk.service.pipelines.IngestionPipelineDefinition` class.
* Added `maxResults` and `pageToken` fields for `com.databricks.sdk.service.catalog.GetBindingsRequest`.
* Added `includeAliases` field for `com.databricks.sdk.service.catalog.GetByAliasRequest`.
* Added `includeAliases` field for `com.databricks.sdk.service.catalog.GetModelVersionRequest`.
* Added `includeAliases` field for `com.databricks.sdk.service.catalog.GetRegisteredModelRequest`.
* Added `maxResults` and `pageToken` fields for `com.databricks.sdk.service.catalog.ListSystemSchemasRequest`.
* Added `nextPageToken` field for `com.databricks.sdk.service.catalog.ListSystemSchemasResponse`.
* Added `aliases` field for `com.databricks.sdk.service.catalog.ModelVersionInfo`.
* Added `nextPageToken` field for `com.databricks.sdk.service.catalog.WorkspaceBindingsResponse`.
* Added `version` field for `com.databricks.sdk.service.compute.GetPolicyFamilyRequest`.
* Added `id` field for `com.databricks.sdk.service.dashboards.QueryAttachment`.
* Added `id` field for `com.databricks.sdk.service.dashboards.TextAttachment`.
* Added `expirationTime` field for `com.databricks.sdk.service.sharing.CreateRecipient`.
* Added `expirationTime` field for `com.databricks.sdk.service.sharing.UpdateRecipient`.
* Changed `create()` and `edit()` methods for `workspaceClient.clusterPolicies()` service with new required argument order.
* Changed `get()` method for `workspaceClient.modelVersions()` service to return `com.databricks.sdk.service.catalog.ModelVersionInfo` class.
* Changed `name` field for `com.databricks.sdk.service.compute.CreatePolicy` to no longer be required.
* Changed `name` field for `com.databricks.sdk.service.compute.EditPolicy` to no longer be required.
* Changed `policyFamilyId` field for `com.databricks.sdk.service.compute.GetPolicyFamilyRequest` to `String` class.
* Changed `policyFamilies` field for `com.databricks.sdk.service.compute.ListPolicyFamiliesResponse` to no longer be required.
* Changed `definition`, `description`, `name` and `policyFamilyId` fields for `com.databricks.sdk.service.compute.PolicyFamily` to no longer be required.
* Changed `accessControlList` field for `com.databricks.sdk.service.jobs.CreateJob` to `com.databricks.sdk.service.jobs.JobAccessControlRequestList` class.
* Changed `accessControlList` field for `com.databricks.sdk.service.jobs.SubmitRun` to `com.databricks.sdk.service.jobs.JobAccessControlRequestList` class.
* Changed `ingestionDefinition` field for `com.databricks.sdk.service.pipelines.CreatePipeline` to `com.databricks.sdk.service.pipelines.IngestionPipelineDefinition` class.
* Changed `ingestionDefinition` field for `com.databricks.sdk.service.pipelines.EditPipeline` to `com.databricks.sdk.service.pipelines.IngestionPipelineDefinition` class.
* Changed `ingestionDefinition` field for `com.databricks.sdk.service.pipelines.PipelineSpec` to `com.databricks.sdk.service.pipelines.IngestionPipelineDefinition` class.
* Removed `com.databricks.sdk.service.pipelines.ManagedIngestionPipelineDefinition` class.
* Removed `com.databricks.sdk.service.compute.PolicyFamilyId` class.

OpenAPI SHA: f98c07f9c71f579de65d2587bb0292f83d10e55d, Date: 2024-08-12


## [Release] Release v0.28.0

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion databricks-sdk-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.databricks</groupId>
<artifactId>databricks-sdk-parent</artifactId>
<version>0.28.0</version>
<version>0.31.0</version>
</parent>
<artifactId>databricks-sdk-java</artifactId>
<properties>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6a699e5

Please sign in to comment.