Releases: databricks/databricks-sdk-go
Releases · databricks/databricks-sdk-go
v0.10.1
v0.10.0
- Added log level support to SimpleLogger. Default logger now prints only
INFO
level messages. To replicate more verbose behavior from the previous versions, set theDEBUG
level inSimpleLogger
explicitly (#426). - Added
Upload
andDownload
methods where applicable (#423). - Added auth tests for a databrickscfg file with an empty DEFAULT profile (#496).
- Added more integration tests and examples (#503).
- Added preview level functions for services and methods to OpenAPI code (#497).
- Added IsAllRequiredFieldsPrimitive helper function (#404).
- Added isCrudCreate method (#416).
- Added retries for getting refreshable token (#500).
- Added type update when entity fields are updated (#411).
- Don't panic but return error from NewAccountClient (#422).
- Error when opening a DBFS directory for reading (#415).
- Fixed cleanup logic in SQL warehouse integration test (#400).
- Fixed error handling in cluster utility function (#399).
- Fixed example in README.md (#494).
- Fixed nondeterminism in workspace filesystem integration test (#401).
- Improve command execution interface (#410).
- Introduce waiters as top-level methods (#408).
- Regenerate examples if configured (#518).
- Respect limit field passed in ListRequests (#407).
- Updated from OpenAPI spec (#412, #413, #421, #519, #424).
- Updated API test template with page tokens (#417).
- Use constants instead of hardcoding strings (#402).
- Use
x-databricks-is-accounts
flag to determine whether a service is an account level service (#420).
API Changes:
github.com/databricks/databricks-sdk-go/service/serving
- (*ServingEndpointsAPI).Create: changed from func(context.Context, CreateServingEndpoint) (*ServingEndpointDetailed, error) to func(context.Context, CreateServingEndpoint) (*WaitGetServingEndpointNotUpdating[ServingEndpointDetailed], error)
- (*ServingEndpointsAPI).List: removed
- (*ServingEndpointsAPI).UpdateConfig: changed from func(context.Context, EndpointCoreConfigInput) (*ServingEndpointDetailed, error) to func(context.Context, EndpointCoreConfigInput) (*WaitGetServingEndpointNotUpdating[ServingEndpointDetailed], error)
Compatible changes: - (*ServingEndpointsAPI).ListAll: added
- (*ServingEndpointsAPI).WaitGetServingEndpointNotUpdating: added
- WaitGetServingEndpointNotUpdating: added
github.com/databricks/databricks-sdk-go
- WorkspaceClient.CommandExecutor: removed
- WorkspaceClient.CommandExecution: added
- WorkspaceClient.Connections: added
- WorkspaceClient.Files: added
- WorkspaceClient.SystemSchemas: added
github.com/databricks/databricks-sdk-go/service/sql
- (*WarehousesAPI).Create: changed from func(context.Context, CreateWarehouseRequest) (*CreateWarehouseResponse, error) to func(context.Context, CreateWarehouseRequest) (*WaitGetWarehouseRunning[CreateWarehouseResponse], error)
- (*WarehousesAPI).DeleteAndWait: removed
- (*WarehousesAPI).DeleteByIdAndWait: removed
- (*WarehousesAPI).Edit: changed from func(context.Context, EditWarehouseRequest) error to func(context.Context, EditWarehouseRequest) (*WaitGetWarehouseRunning[any], error)
- (*WarehousesAPI).GetAndWait: removed
- (*WarehousesAPI).GetByIdAndWait: removed
- (*WarehousesAPI).Start: changed from func(context.Context, StartRequest) error to func(context.Context, StartRequest) (*WaitGetWarehouseRunning[any], error)
- (*WarehousesAPI).Stop: changed from func(context.Context, StopRequest) error to func(context.Context, StopRequest) (*WaitGetWarehouseStopped[any], error)
- (*StatementExecutionAPI).ExecuteAndWait: added
- (*WarehousesAPI).WaitGetWarehouseRunning: added
- (*WarehousesAPI).WaitGetWarehouseStopped: added
- FormatCsv: added
- WaitGetWarehouseRunning: added
- WaitGetWarehouseStopped: added
github.com/databricks/databricks-sdk-go/service/jobs
- (*JobsAPI).CancelRun: changed from func(context.Context, CancelRun) error to func(context.Context, CancelRun) (*WaitGetRunJobTerminatedOrSkipped[any], error)
- (*JobsAPI).GetRunAndWait: removed
- (*JobsAPI).RepairRun: changed from func(context.Context, RepairRun) (*RepairRunResponse, error) to func(context.Context, RepairRun) (*WaitGetRunJobTerminatedOrSkipped[RepairRunResponse], error)
- (*JobsAPI).RunNow: changed from func(context.Context, RunNow) (*RunNowResponse, error) to func(context.Context, RunNow) (*WaitGetRunJobTerminatedOrSkipped[RunNowResponse], error)
- (*JobsAPI).Submit: changed from func(context.Context, SubmitRun) (*SubmitRunResponse, error) to func(context.Context, SubmitRun) (*WaitGetRunJobTerminatedOrSkipped[SubmitRunResponse], error)
- (*JobsAPI).WaitGetRunJobTerminatedOrSkipped: added
- CreateJob.RunAs: added
- JobRunAs: added
- JobSettings.RunAs: added
- WaitGetRunJobTerminatedOrSkipped: added
github.com/databricks/databricks-sdk-go/service/compute
- (*ClustersAPI).Create: changed from func(context.Context, CreateCluster) (*CreateClusterResponse, error) to func(context.Context, CreateCluster) (*WaitGetClusterRunning[CreateClusterResponse], error)
- (*ClustersAPI).Delete: changed from func(context.Context, DeleteCluster) error to func(context.Context, DeleteCluster) (*WaitGetClusterTerminated[any], error)
- (*ClustersAPI).Edit: changed from func(context.Context, EditCluster) error to func(context.Context, EditCluster) (*WaitGetClusterRunning[any], error)
- (*ClustersAPI).GetAndWait: removed
- (*ClustersAPI).GetByClusterIdAndWait: removed
- (*ClustersAPI).Resize: changed from func(context.Context, ResizeCluster) error to func(context.Context, ResizeCluster) (*WaitGetClusterRunning[any], error)
- (*ClustersAPI).Restart: changed from func(context.Context, RestartCluster) error to func(context.Context, RestartCluster) (*WaitGetClusterRunning[any], error)
- (*ClustersAPI).Start: changed from func(context.Context, StartCluster) error to func(context.Context, StartCluster) (*WaitGetClusterRunning[any], error)
- (*CommandExecutionAPI).Cancel: changed from func(context.Context, CancelCommand) error to func(context.Context, CancelCommand) (*WaitCommandStatusCommandExecutionCancelled[any], error)
- (*CommandExecutionAPI).Create: changed from func(context.Context, CreateContext) (*Created, error) to func(context.Context, CreateContext) (*WaitContextStatusCommandExecutionRunning[Created], error)
- (*CommandExecutionAPI).Execute: changed from func(context.Context, Command) (*Created, error) to func(context.Context, Command) (*WaitCommandStatusCommandExecutionFinishedOrError[Created], error)
- (*ClustersAPI).WaitGetClusterRunning: added
- (*ClustersAPI).WaitGetClusterTerminated: added
- (*CommandExecutionAPI).Start: added
- (*CommandExecutionAPI).WaitCommandStatusCommandExecutionCancelled: added
- (*CommandExecutionAPI).WaitCommandStatusCommandExecutionFinishedOrError: added
- (*CommandExecutionAPI).WaitContextStatusCommandExecutionRunning: added
- BaseClusterInfo.DataSecurityMode: added
- BaseClusterInfo.DockerImage: added
- BaseClusterInfo.SingleUserName: added
- ClusterAttributes.DataSecurityMode: added
- ClusterAttributes.DockerImage: added
- ClusterAttributes.SingleUserName: added
- ClusterInfo.DockerImage: added
- CommandExecutorV2: added
- EditCluster.DataSecurityMode: added
- EditCluster.DockerImage: added
- EditCluster.SingleUserName: added
- WaitCommandStatusCommandExecutionCancelled: added
- WaitCommandStatusCommandExecutionFinishedOrError: added
- WaitContextStatusCommandExecutionRunning: added
- WaitGetClusterRunning: added
- WaitGetClusterTerminated: added
github.com/databricks/databricks-sdk-go/service/pipelines
- (*PipelinesAPI).GetAndWait: removed
- (*PipelinesAPI).GetByPipelineIdAndWait: removed
- (*PipelinesAPI).Reset: changed from func(context.Context, ResetRequest) error to func(context.Context, ResetRequest) (*WaitGetPipelineRunning[any], error)
- (*PipelinesAPI).Stop: changed from func(context.Context, StopRequest) error to func(context.Context, StopRequest) (*WaitGetPipelineIdle[any], error)
- (*PipelinesAPI).WaitGetPipelineIdle: added
- (*PipelinesAPI).WaitGetPipelineRunning: added
- WaitGetPipelineIdle: added
- WaitGetPipelineRunning: added
github.com/databricks/databricks-sdk-go/service/sharing
- (*Provid...
v0.9.0
v0.8.1
- Added
in
codegen function (#387). - Fixed mlflow acceptance tests (#378).
- Fixed MLflow integration test and removed workaround for
DELETE
query parameter (#380). - Make clusters acceptance tests robust to duplicate cluster names (#381).
- Remove dead code from apierr/errors.go (#376).
- Serialize params to request body on delete (#383).
Dependency updates:
v0.8.0
- Added more code generation utilities (#369).
- Body logger for non-JSON payload as well (#365).
- Cleanup ephemeral groups in integration tests (#368).
- Fixed external entity generation (#372).
- Skip loading default profile if host is already configured (#363).
- Update debug messages in config loader to display correct path (#362).
Dependency updates:
- Bump golang.org/x/oauth2 from 0.6.0 to 0.7.0 (#364).
- Bump google.golang.org/api from 0.115.0 to 0.116.0 (#361).
- Bump google.golang.org/api from 0.116.0 to 0.118.0 (#367).
API changes:
- Moved
clusterpolicies
APIs tocompute
package. - Moved
clusters
APIs tocompute
package. - Moved
commands
APIs tocompute
package. - Moved
globalinitscripts
APIs tocompute
package. - Moved
instancepools
APIs tocompute
package. - Moved
scim
APIs toiam
package. - Moved
permissions
APIs toiam
package. - Moved
ipaccesslists
APIs tosettings
package. - Moved
tokenmanagement
APIs tosettings
package. - Moved
tokens
APIs tosettings
package. - Moved
workspaceconf
APIs tosettings
package. - Moved
gitcredentials
APIs toworkspace
package. - Moved
repos
APIs toworkspace
package. - Moved
secrets
APIs toworkspace
package. - Split
unitcatalog
package tocatalog
andsharing
. - Renamed
mlflow
package toml
. - Renamed
dbfs
package tofiles
. - Renamed
deployment
package toprovisioning
. - Renamed
endpoints
package toserving
. - Renamed
clusters.List
type tocompute.ListClustersRequest
. - Renamed
jobs.ListRuns
type tojobs.ListRunsRequest
. - Renamed
jobs.ExportRun
type tojobs.ExportRunRequest
. - Renamed
clusterpolicies.List
type tocompute.ListClusterPoliciesRequest
. - Renamed
jobs.List
type tojobs.ListJobsRequest
. - Renamed
permissions.GetPermissionLevels
type toiam.GetPermissionLevelsRequest
. - Renamed
pipelines.ListPipelineEvents
type topipelines.ListPipelineEventsRequest
. - Renamed
pipelines.ListPipelines
type topipelines.ListPipelinesRequest
. - Renamed
workspaceconf.GetStatus
type tosettings.GetStatusRequest
. - Renamed
repos.List
type toworkspace.ListReposRequest
. - Renamed
tokenmanagement.List
type tosettings.ListTokenManagementRequest
. - Renamed
workspace.Export
type toworkspace.ExportRequest
. - Renamed
workspace.List
type toworkspace.ListWorkspaceRequest
.
v0.7.0
v0.6.0
v0.5.0
- Added Delta Live Tables events method to
pipelines.PipelinesAPI
(#339). - Added
id
field to theSparkVersionRequest
for easier integration with Terraform's databricks_spark_version data source (#335). - Improve auth fixture capturing (#336, #337).
- Make logger context-aware and add examples of usage together with
zerolog
andslog
(#333). - Update from OpenAPI spec and added new APIs (#338).
Dependency updates:
- Bump google.golang.org/api from 0.111.0 to 0.112.0 (#334).
v0.4.1
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).