Releases: databricks/databricks-sdk-go
v0.4.0
- Added
id
field to theNodeTypeRequest
for easier integration with Terraform's databricks_node_type data source (#325). - Don't load
~/.databrickscfg
ifazure-cli
auth is implicitly configured (#324). - Fixed newline in codegen comments (#326).
- Update from OpenAPI (#320, #328).
API changes:
- Renamed
deployment.AwsCredentials
todeployment.CreateCredentialAwsCredentials
. - Renamed
deployment.StsRole
todeployment.CreateCredentialStsRole
. - Removed schedules support from
sql.AlertsAPI
.
Dependency updates:
- Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (#318).
- Bump golang.org/x/mod from 0.6.0-dev.0.20220419223038-86c51ed26bb4 to 0.8.0 (#316).
- Bump golang.org/x/mod from 0.8.0 to 0.9.0 (#323).
- Bump golang.org/x/oauth2 from 0.5.0 to 0.6.0 (#322).
- Bump golang.org/x/time from 0.0.0-20210723032227-1f47c861a9ac to 0.3.0 (#317).
- Bump google.golang.org/api from 0.110.0 to 0.111.0 (#319).
v0.3.3
v0.3.2
v0.3.1
- Change APIError to use pointer receiver (#298).
- Drop duplicate prefix in randomized email (#299).
- Expand semver pattern to be compliant with https://semver.org (#302).
- Fix
apierr.APIError
pointer receivers (#307). - Skip loading config if auth is already explicitly configured directly (#306).
- Sync fixes for smallest node selection from Terraform (#301).
- Updated from OpenAPI spec (#305).
Dependency updates:
- Bump google.golang.org/api from 0.109.0 to 0.110.0 (#303).
v0.3.0
- Added support for GCP deployment APIs in Public Preview.
- Added new node type selector (#287).
- Added Azure MSI auth (#279).
- Added validation of strings in user agent package (#291).
- Added logging for error responses (#289).
- Update implementation of smallest node selection to match terraform's (#273).
- Added experimental OAuth support (#276, #266, #292).
- Fixed
google-credentials
to take precedence overgoogle-id
(#283). - Test with Go 1.20 (#295).
- Regenerate from OpenAPI (#293, #294, #296, #282, #269, #272).
- Added
replaceAll
andlowerFirst
template functions (#288, #277).
Dependency updates:
API changes:
- Renamed
clusters.CreateCluster
toclusters.BaseClusterInfo
. - Renamed
jobs.Job
tojobs.BaseJob
. - Renamed
jobs.Run
tojobs.BaseRun
. - Fixed
commands.Results
Schema
type from[][]any
to[]map[string]any
.
v0.2.0
- Added
DATABRICKS_AUTH_TYPE
environment variable (#248). - Added Policy Families API (#263).
- Added experimental
ErrCannotConfigureAuth
andErrNotAccountClient
(#237, #238). - Added DBFS file handle that supports both reading and writing (#261).
- Added
io.WriterTo
for DBFS file reader (#249). - Added
pflag.Value
interfaces for enums (#234). - Added support for adding custom HTTP visitors per request (#230).
- Added support for raw body as byte slice if requested (#247).
- Improved callbacks for polling the status of long-running operations (#258).
- Improved rendering of HTTP links in godoc (#229).
- Updated field types in the Jobs API from spec (#259).
- Multiple OpenAPI consistency passes (#254, #241, #243, #255, #236).
API changes:
- Renamed
IsAccountsClient
toIsAccountClient
(#231). w.ClusterPolicies.ListAll
now takesclusterpolicies.List
as an argument.github.com/databricks/databricks-sdk-go/service/dbsql
package is renamed togithub.com/databricks/databricks-sdk-go/service/sql
.w.DataSources.ListDataSources
is renamed tow.DataSources.List
.w.Queries.CreateQuery
is renamed tow.Queries.CreateQuery
.w.Queries.DeleteQueryByQueryId
is renamed tow.Queries.DeleteByQueryId
.w.Queries.GetQueryByQueryId
is renamed tow.Queries.GetByQueryId
.w.Queries.UpdateQuery
is renamed tow.Queries.Update
.w.Alerts.DeleteAlertByAlertId
is renamed tow.Alerts.DeleteByAlertId
.w.Alerts.UpdateAlert
is renamed tow.Alerts.Update
.w.Alerts.GetAlertByAlertId
is renamed tow.Alerts.GetByAlertId
.w.Alerts.ListAlerts
is renamed tow.Alerts.List
.w.Dashboards.CreateDashboard
is renamed tow.Dashboards.Create
.w.Dashboards.DeleteDashboardByDashboardId
is renamed tow.Dashboards.GetByDashboardId
.w.Dashboards.ListDashboardsAll
is renamed tow.Dashboards.ListAll
.w.Dashboards.DeleteDashboardByDashboardId
is renamed tow.Dashboards.DeleteByDashboardId
.w.Dashboards.RestoreDashboard
is renamed tow.Dashboards.Restore
.deployment.CreateCustomerManagedKeyRequest
now takesdeployment.KeyUseCase
enum.w.GlobalInitScripts.CreateScript
is renamed tow.GlobalInitScripts.Create
.w.GlobalInitScripts.DeleteScriptByScriptId
is renamed tow.GlobalInitScripts.DeleteByScriptId
.w.GlobalInitScripts.UpdateScript
is renamed tow.GlobalInitScripts.Update
.w.GlobalInitScripts.GetScriptByScriptId
is renamed tow.GlobalInitScripts.GetByScriptId
.w.GlobalInitScripts.ListScriptsAll
is renamed tow.GlobalInitScripts.ListAll
.jobs.ResetJob.NewSettings
is now required field.w.Pipelines.CreatePipeline
is renamed tow.Pipelines.Create
.w.Pipelines.DeletePipelineByPipelineId
is renamed tow.Pipelines.DeleteByPipelineId
.w.Pipelines.UpdatePipeline
is renamed tow.Pipelines.Update
.w.Pipelines.GetPipelineByPipelineId
is renamed tow.Pipelines.GetByPipelineId
.w.StorageCredentials.Update
now also returns an entity.w.ExternalLocations.Update
now also returns an entity.w.Metastores.Update
now also returns an entity.unitycatalog.CreateMetastoreAssignment.WorkspaceId
type changed fromint
toint64
.unitycatalog.UnassignRequest.WorkspaceId
type changed fromint
toint64
.w.Catalogs.Update
now also returns an entity.w.Schemas.Update
now also returns an entity.w.Providers.Update
now also returns an entity.w.Shares.Update
now also returns an entity.WarehousesAPI
service moved togithub.com/databricks/databricks-sdk-go/service/sql
package.w.Warehouses.CreateWarehouseAndWait
renamed tow.Warehouses.CreateAndWait
.w.Warehouses.DeleteWarehouseByIdAndWait
renamed tow.Warehouses.DeleteByIdAndWait
.w.Warehouses.EditWarehouse
renamed tow.Warehouses.Edit
.w.Warehouses.GetWarehouseById
renamed tow.Warehouses.GetById
.w.Warehouses.ListWarehousesAll
renamed tow.Warehouses.ListAll
.- Removed
w.Dbfs.Overwrite
in favor ofw.Dbfs.Open("....", dbfs.FileModeOverwrite|dbfs.FileModeWrite)
. - Added third required argument to
w.Dbfs.Open
.
Code generation:
- Added concept of
main
service for the package (#239). - Added entity primitives check (#242).
- Added helpers for CRUD generation (#246).
- Added more entity-generation utils (#257).
- Dynamically generate
.gitattributes
(#244). - Fixed required order fields (#245).
- Parse summary from descriptions (#228).
- Print error on formatter failure (#235).
- Update usage string in generator (#260).
- Fixed order of host completion (#233).
Dependency updates:
v0.1.1
v0.1.0
During the beta period, Databricks is actively working on stabilizing the Databricks SDK for Go's interfaces. API clients for all services are generated from specification files that are synchronized from the main platform. You are highly encouraged to pin the exact version in the go.mod
file and read the changelog where Databricks documents the changes. Some types of interfaces are more stable than others. For those interfaces that are not yet nightly tested, Databricks may have minor documented backward incompatible changes, such as fixing mapping correctness from int
to int64
or renaming the methods or some type names to bring more consistency.