Releases: databricks/databricks-sdk-go
Releases · databricks/databricks-sdk-go
v0.38.0
Behavior Changes
- Override INVALID_PARAMETER_VALUE on fetching non-existent job/cluster (#864). The error returned when fetching a non-existent job or cluster has been changed from
INVALID_PARAMETER_VALUE
toRESOURCE_DOES_NOT_EXIST
. Update your error handling code to check fordatabricks.ErrResourceDoesNotExist
instead ofdatabricks.ErrInvalidParameterValue
. For example, if you are using theJobs.GetById
method, you should update your error handling code to:
_, err := w.Jobs.GetById(ctx, "id")
if errors.Is(err, databricks.ErrResourceDoesNotExist) {
// handle the error
}
Note that the original error code is still accessible in the ErrorCode
field of APIError
.
Other Improvements
- Do not leak secondary authorization tokens in debug logs (#882).
- Fix logging of request bodies containing percent characters. (#881).
- Added clientId and clientSecret to oauth-m2m auth_types (#885).
Internal Changes
- Support custom AuthVisitors (#874).
API Changes:
- Replaced catalog.AzureManagedIdentity with catalog.AzureManagedIdentityRequest and catalog.AzureManagedIdentityResponse.
- Renamed
FullName
field toTableName
for catalog.CancelRefreshRequest, catalog.CreateMonitor, catalog.DeleteLakehouseMonitorRequest, catalog.GetLakehouseMonitorRequest, catalog.GetRefreshRequest, catalog.ListRefreshesRequest. - Changed
CustomMetrics
field for catalog.CreateMonitor to catalog.MonitorMetricList. - Changed
InferenceLog
field for catalog.CreateMonitor to catalog.MonitorInferenceLog. - Changed
Notifications
field for catalog.CreateMonitor to catalog.MonitorNotifications. - Changed
Snapshot
field for catalog.CreateMonitor toany
. - Changed
TimeSeries
field for catalog.CreateMonitor to catalog.MonitorTimeSeries. - Changed
QuartzCronExpression
field for catalog.MonitorCronSchedule to be required. - Changed
TimezoneId
field for catalog.MonitorCronSchedule to be required. - Renamed catalog.MonitorCustomMetric to catalog.MonitorMetric.
- Renamed catalog.MonitorCustomMetricType to catalog.MonitorMetricType.
- Renamed catalog.MonitorDestinations to catalog.MonitorDestination.
- Renamed catalog.MonitorInferenceLogProfileType to catalog.MonitorInferenceLog.
- Renamed catalog.MonitorInferenceLogProfileTypeProblemType to catalog.MonitorInferenceLogProblemType.
- Renamed catalog.MonitorNotificationsConfig to catalog.MonitorNotifications.
- Changed
CustomMetrics
field for catalog.MonitorInfo to catalog.MonitorMetricList. - Changed
DriftMetricsTableName
field for catalog.MonitorInfo to be required. - Changed
InferenceLog
field for catalog.MonitorInfo to catalog.MonitorInferenceLog. - Changed
MonitorVersion
field for catalog.MonitorInfo to be required. - Changed
Notifications
field for catalog.MonitorInfo to catalog.MonitorNotifications. - Changed
ProfileMetricsTableName
field for catalog.MonitorInfo to be required. - Changed
Snapshot
field for catalog.MonitorInfo toany
. - Changed
Status
field for catalog.MonitorInfo to be required. - Changed
TableName
field for catalog.MonitorInfo to be required. - Changed
TimeSeries
field for catalog.MonitorInfo to catalog.MonitorTimeSeries. - Changed
RefreshId
field for catalog.MonitorRefreshInfo to be required. - Changed
StartTimeMs
field for catalog.MonitorRefreshInfo to be required. - Changed
State
field for catalog.MonitorRefreshInfo to be required. - Added
Trigger
field for catalog.MonitorRefreshInfo. - Removed catalog.MonitorTimeSeriesProfileType.
- Removed
FullName
field for catalog.RunRefreshRequest. - Added
TableName
field for catalog.RunRefreshRequest. - Changed
AzureManagedIdentity
field for catalog.StorageCredentialInfo to . - Removed
Name
field for catalog.TableRowFilter. - Added
FunctionName
field for catalog.TableRowFilter. - Changed
CustomMetrics
field for catalog.UpdateMonitor to catalog.MonitorMetricList. - Removed
FullName
field for [catalog.UpdateMonitor](https://pkg.go.dev/github...
v0.37.0
Internal Changes:
- Fix integration test naming for UC Files (#868).
API Changes:
- Added
Migrate
andUnpublish
methods for w.Lakeview workspace-level service. - Added dashboards.MigrateDashboardRequest.
- Added dashboards.UnpublishDashboardRequest.
- Added
Description
,QueueDuration
andRepairHistory
fields for jobs.BaseRun. - Added
ComputeKey
andJobClusterKey
fields for jobs.ClusterSpec. - Changed
Left
,Op
andRight
fields for jobs.ConditionTask to be required. - Changed
EditMode
field for jobs.CreateJob to jobs.JobEditMode. - Replaced jobs.CreateJobEditMode to jobs.JobEditMode.
- Changed
Url
field for jobs.FileArrivalTriggerConfiguration to be required. - Changed
ErrorMessageStats
field for jobs.ForEachStats to jobs.ForEachTaskErrorMessageStatsList. - Changed
NewCluster
field for jobs.JobCluster to be required. - Changed
EditMode
field for jobs.JobSettings to jobs.JobEditMode. - Replaced jobs.JobSettingsEditMode by jobs.JobEditMode.
- Changed
Metric
,Op
andValue
fields for jobs.JobsHealthRule to be required. - Changed
RunType
field for jobs.ListRunsRequest to jobs.RunType. - Removed jobs.ListRunsRunType.
- Removed jobs.ParamPairs.
- Changed
PipelineId
field for jobs.PipelineTask to be required. - Changed
EntryPoint
andPackageName
fields for jobs.PythonWheelTask to be required. - Changed
JobParameters
field for jobs.RepairRun to map[string]string
. - Changed
BaseParameters
field for jobs.ResolvedNotebookTaskValues to map[string]string
. - Changed
Parameters
field for jobs.ResolvedParamPairValues to map[string]string
. - Changed
NamedParameters
field for jobs.ResolvedPythonWheelTaskValues to map[string]string
. - Removed
NamedParameters
field for jobs.ResolvedRunJobTaskValues. - Changed
Parameters
field for jobs.ResolvedRunJobTaskValues to map[string]string
. - Added
JobParameters
field for jobs.ResolvedRunJobTaskValues. - Added
Description
field for jobs.Run. - Added
QueueDuration
field for jobs.Run. - Changed
Op
field for jobs.RunConditionTask to jobs.ConditionTaskOp. - Removed jobs.RunConditionTaskOp.
- Changed
Inputs
andTask
fields for jobs.RunForEachTask to be required. - Changed
JobParameters
field for jobs.RunJobTask to map[string]string
. - Added
DbtCommands
,JarParams
,NotebookParams
,PipelineParams
,PythonNamedParams
,PythonParams
,SparkSubmitParams
andSqlParams
fields for jobs.RunJobTask. - Changed
JobParameters
field for jobs.RunNow to map[string]string
. - Added
Info
field for jobs.RunOutput. - Removed
JobParameters
field for jobs.RunParameters. - Changed
TaskKey
field for jobs.RunTask to be required. - Added
ComputeKey
,EmailNotifications
,JobClusterKey
,NotificatioSettings
,RunDuration
,RunPageUrl
,TimeoutSeconds
andWebhookNotifications
fields for jobs.RunTask. - Added
EndpointId
field for jobs.SqlQueryOutput. - Added
ConditionTask
field for jobs.SubmitRun. - Added
DbtCommands
,JarParams
,NotebookParams
,PipelineParams
,PythonNamedParams
,PythonParams
,SparkSubmitParams
andSqlParams
field for jobs.SubmitRun. - Added
Description
field for jobs.SubmitTask. - Added
DisableAutoOptimization
field for jobs.Task. - Added
NoAlertForSkippedRuns
field for jobs.TaskEmailNotifications. - Added
TableUpdate
field for jobs.TriggerSettings. - Changed
Id
field for jobs.Webhook to be required. - Changed
OnDurationWarningThresholdExceeded
field for jobs.WebhookNotifications to jobs.WebhookList. - Removed jobs.WebhookNotificationsOnDurationWarningThresholdExceededItem.
- Added jobs.JobEditMode.
- Removed serving.AwsBedrockConfig.
- Removed serving.AwsBedrockConfigBedrockProvider.
- Removed
AwsBedrockConfig
field for serving.ExternalModel. - Added
AmazonBedrockConfig
field for serving.ExternalModel. - Added serving.AmazonBedrockConfig.
- Added serving.AmazonBedrockConfigBedrockProvider.
- Changed
Get
method for [w.IpAccessLists](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/se...
v0.36.0
API Changes:
- Changed
Get
method for w.Lakeview workspace-level service . New request type is dashboards.GetDashboardRequest. - Changed
GetPublished
method for w.Lakeview workspace-level service . New request type is dashboards.GetPublishedDashboardRequest. - Changed
Trash
method for w.Lakeview workspace-level service . New request type is dashboards.TrashDashboardRequest. - Removed dashboards.GetLakeviewRequest.
- Removed dashboards.GetPublishedRequest.
- Removed dashboards.TrashRequest.
- Added dashboards.GetDashboardRequest.
- Added dashboards.GetPublishedDashboardRequest.
- Added dashboards.TrashDashboardRequest.
- Added
AutoCaptureConfig
field for serving.EndpointPendingConfig. - Changed
Get
method for w.AutomaticClusterUpdate workspace-level service . New request type is settings.GetAutomaticClusterUpdateSettingRequest. - Changed
Get
method for w.CspEnablement workspace-level service . New request type is settings.GetCspEnablementSettingRequest. - Changed
Get
method for a.CspEnablementAccount account-level service . New request type is settings.GetCspEnablementAccountSettingRequest. - Changed
Delete
method for w.DefaultNamespace workspace-level service . New request type is settings.DeleteDefaultNamespaceSettingRequest. - Changed
Get
method for w.DefaultNamespace workspace-level service . New request type is settings.GetDefaultNamespaceSettingRequest. - Changed
Get
method for w.EsmEnablement workspace-level service . New request type is settings.GetEsmEnablementSettingRequest. - Changed
Get
method for a.EsmEnablementAccount account-level service . New request type is settings.GetEsmEnablementAccountSettingRequest. - Changed
Get
method for w.IpAccessLists workspace-level service . New request type is settings.GetIpAccessList. - Changed
Delete
method for a.PersonalCompute account-level service . New request type is settings.DeletePersonalComputeSettingRequest. - Changed
Get
method for a.PersonalCompute account-level service . New request type is settings.GetPersonalComputeSettingRequest. - Changed
Delete
method for w.RestrictWorkspaceAdmins workspace-level service . New request type is settings.DeleteRestrictWorkspaceAdminsSettingRequest. - Changed
Get
method for w.RestrictWorkspaceAdmins workspace-level service . New request type is settings.GetRestrictWorkspaceAdminsSettingRequest. - Removed settings.DeleteDefaultNamespaceRequest.
- Removed settings.DeletePersonalComputeRequest.
- Removed settings.DeleteRestrictWorkspaceAdminRequest.
- Removed settings.GetAutomaticClusterUpdateRequest.
- Removed settings.GetCspEnablementAccountRequest.
- Removed settings.GetCspEnablementRequest.
- Removed settings.GetDefaultNamespaceRequest.
- Removed settings.GetEsmEnablementAccountRequest.
- Removed settings.GetEsmEnablementRequest.
- Removed settings.GetIpAccessListRequest.
- Removed settings.GetPersonalComputeRequest.
- Removed settings.GetRestrictWorkspaceAdminRequest.
- Added settings.DeleteDefaultNamespaceSettingRequest.
- Added settings.DeletePersonalComputeSettingRequest.
- Added settings.DeleteRestrictWorkspaceAdminsSettingRequest.
- Added settings.GetAutomaticClusterUpdateSettingRequest.
- Added settings.GetCspEnablementAccountSettingRequest.
- Added settings.GetCspEnablementSettingRequest.
- Added settings.GetDefaultNamespaceSettingRequest.
- Added settings.GetEsmEnablementAccountSettingRequest.
- Added settings.GetEsmEnablementSettingRequest.
- Added settings.GetIpAccessList.
- Added settings.GetPersonalComputeSettingRequest.
- Added...
v0.35.0
- Added Config.GetAuthDetails (#838).
- Support DATABRICKS_SDK_UPSTREAM and DATABRICKS_SDK_UPSTREAM_VERSION (#854).
Internal Changes
- Add telemetry for SDK usage from DBR (#851).
Test Fixes
- Fix TestUcAccShares (#858).
API Changes:
- Changed
List
method for w.Catalogs workspace-level service to require request of catalog.ListCatalogsRequest. - Changed
Create
method for w.OnlineTables workspace-level service . New request type is catalog.CreateOnlineTableRequest. - Removed catalog.AwsIamRole.
- Changed
AwsIamRole
field for catalog.CreateStorageCredential to catalog.AwsIamRoleRequest. - Changed
AwsIamRole
field for catalog.StorageCredentialInfo to catalog.AwsIamRoleResponse. - Changed
AwsIamRole
field for catalog.UpdateStorageCredential to catalog.AwsIamRoleRequest. - Changed
AwsIamRole
field for catalog.ValidateStorageCredential to catalog.AwsIamRoleRequest. - Changed
Notifications
field for catalog.CreateMonitor to catalog.MonitorNotificationsConfig. - Changed
Notifications
field for catalog.UpdateMonitor to catalog.MonitorNotificationsConfig. - Changed
Notifications
field for catalog.MonitorInfo to catalog.MonitorNotificationsConfig. - Added
IncludeBrowse
field for catalog.GetCatalogRequest, catalog.GetExternalLocationRequest, catalog.GetFunctionRequest, catalog.GetModelVersionRequest, catalog.GetRegisteredModelRequest, catalog.GetSchemaRequest, catalog.GetTableRequest, catalog.ListExternalLocationsRequest, catalog.ListFunctionsRequest, catalog.ListModelVersionsRequest, catalog.ListRegisteredModelsRequest, catalog.ListSchemasRequest, catalog.ListTablesRequest, catalog.ListVolumesRequest, and catalog.ReadVolumeRequest. - Added
BrowseOnly
field for catalog.ExternalLocationInfo, catalog.FunctionInfo, catalog.ModelVersionInfo, catalog.RegisteredModelInfo, catalog.SchemaInfo, catalog.TableInfo, and catalog.VolumeInfo. - Removed catalog.ViewData.
- Added catalog.AwsIamRoleRequest.
- Added catalog.AwsIamRoleResponse.
- Added catalog.CreateOnlineTableRequest.
- Added catalog.ListCatalogsRequest.
- Changed
Publish
method for w.Lakeview workspace-level service to return dashboards.PublishedDashboard. - Added
Create
method for w.Lakeview workspace-level service. - Added
Get
method for w.Lakeview workspace-level service. - Added
GetPublished
method for w.Lakeview workspace-level service. - Added
Trash
method for w.Lakeview workspace-level service. - Added
Update
method for w.Lakeview workspace-level service. - Added dashboards.CreateDashboardRequest.
- Added dashboards.Dashboard.
- Added dashboards.GetLakeviewRequest.
- Added dashboards.GetPublishedRequest.
- Added dashboards.LifecycleState.
- Added dashboards.PublishedDashboard.
- Added dashboards.TrashRequest.
- Added dashboards.UpdateDashboardRequest.
- Added
ScoreThreshold
field for vectorsearch.QueryVectorIndexRequest.
OpenAPI SHA: 3821dc51952c5cf1c276dd84967da011b191e64a, Date: 2024-03-19
Dependency updates:
- Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 in /examples/zerolog (#855).
- Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 in /examples/slog (#856).
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#857).
- Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#840).
- Bump golang.org/x/mod from 0.15.0 to 0.16.0 (#843).
- Bump golang.org/x/oauth2 from 0.17.0 to 0.18.0 ([#845](https://github.com/...
v0.34.0
New Features and Improvements
- Fixed GetWorkspaceClient for GCP (#803).
- Adaptive request timeouts (#837).
- Added HTTP proxy example (#825).
- Note: Backwards incompatible changes - Settings are now nested, please see the API changes below.
API Changes:
- Added:
- w.PermissionMigration workspace-level service.
- iam.PermissionMigrationRequest.
- iam.PermissionMigrationResponse.
- w.Settings.AutomaticClusterUpdate workspace-level service.
- w.Settings.CspEnablement workspace-level service.
- a.Settings.CspEnablementAccount account-level service.
- w.Settings.DefaultNamespace workspace-level service.
- w.Settings.EsmEnablement workspace-level service.
- a.Settings.EsmEnablementAccount account-level service.
- a.Settings.PersonalCompute account-level service.
- w.Settings.RestrictWorkspaceAdmins workspace-level service.
AwsStableIpRule
field for settings.NccEgressDefaultRules.- settings.AutomaticClusterUpdateSetting.
- settings.ClusterAutoRestartMessage.
- settings.ClusterAutoRestartMessageEnablementDetails.
- settings.ClusterAutoRestartMessageMaintenanceWindow.
- settings.ClusterAutoRestartMessageMaintenanceWindowDayOfWeek.
- settings.ClusterAutoRestartMessageMaintenanceWindowWeekDayBasedSchedule.
- settings.ClusterAutoRestartMessageMaintenanceWindowWeekDayFrequency.
- settings.ClusterAutoRestartMessageMaintenanceWindowWindowStartTime.
- settings.ComplianceStandard.
- settings.CspEnablement.
- settings.CspEnablementAccount.
- settings.CspEnablementAccountSetting.
- settings.CspEnablementSetting.
- settings.DeleteDefaultNamespaceRequest.
- settings.DeletePersonalComputeRequest.
- settings.DeleteRestrictWorkspaceAdminRequest.
- settings.EsmEnablement.
- settings.EsmEnablementAccount.
- settings.EsmEnablementAccountSetting.
- settings.EsmEnablementSetting.
- settings.GetAutomaticClusterUpdateRequest.
- settings.GetCspEnablementAccountRequest.
- settings.GetCspEnablementRequest.
- settings.GetDefaultNamespaceRequest.
- settings.GetEsmEnablementAccountRequest.
- settings.GetEsmEnablementRequest.
- settings.GetPersonalComputeRequest.
- settings.GetRestrictWorkspaceAdminRequest.
- settings.NccAwsStableIpRule.
- settings.UpdateAutomaticClusterUpdateSettingRequest.
- settings.UpdateCspEnablementAccountSettingRequest.
- settings.UpdateCspEnablementSettingRequest.
- settings.UpdateEsmEnablementAccountSettingRequest.
- settings.UpdateEsmEnablementSettingRequest.
IndexName
field for vectorsearch.DeleteDataVectorIndexRequest.EmbeddingModelEndpointName
field for vectorsearch.EmbeddingSourceColumn.IndexName
field for vectorsearch.UpsertDataVectorIndexRequest.DeltaSyncIndexSpec
field for vectorsearch.VectorIndex.DirectAccessIndexSpec
field for vectorsearch.VectorIndex.
- Changed:
Version
field for serving.AppManifest to serving.AnyValue.DeleteEndpoint
method for w.VectorSearchEndpoints workspace-level service with new required argument order.CreateIndex
method for w.VectorSearchIndexes workspace-level service with new required argument order.DeleteDataVectorIndex
method for w.VectorSearchIndexes workspace-level service with new required argument order.UpsertDataVectorIndex
method for w.VectorSearchIndexes workspace-level service with new required argument order.EndpointName
field for vectorsearch.CreateVectorIndexRequest to be required.
- Removed:
DeletePersonalComputeSetting
method for [a.Accoun...
v0.33.0
Internal Changes:
API Changes:
- Changed
Update
method for w.LakehouseMonitors workspace-level service with new required argument order. - Added w.OnlineTables workspace-level service.
- Removed
AssetsDir
field for catalog.UpdateMonitor. - Added catalog.ContinuousUpdateStatus.
- Added catalog.DeleteOnlineTableRequest.
- Added catalog.FailedStatus.
- Added catalog.GetOnlineTableRequest.
- Added catalog.OnlineTable.
- Added catalog.OnlineTableSpec.
- Added catalog.OnlineTableState.
- Added catalog.OnlineTableStatus.
- Added catalog.PipelineProgress.
- Added catalog.ProvisioningStatus.
- Added catalog.TriggeredUpdateStatus.
- Added catalog.ViewData.
- Added
ContentLength
field for files.DownloadResponse. - Added
ContentType
field for files.DownloadResponse. - Added
LastModified
field for files.DownloadResponse. - Changed
LastModified
field for files.GetMetadataResponse to files.LastModifiedHttpDate. - Added files.LastModifiedHttpDate.
- Removed
Config
field for serving.ExternalModel. - Added
Ai21labsConfig
field for serving.ExternalModel. - Added
AnthropicConfig
field for serving.ExternalModel. - Added
AwsBedrockConfig
field for serving.ExternalModel. - Added
CohereConfig
field for serving.ExternalModel. - Added
DatabricksModelServingConfig
field for serving.ExternalModel. - Added
OpenaiConfig
field for serving.ExternalModel. - Added
PalmConfig
field for serving.ExternalModel. - Removed serving.ExternalModelConfig.
- Added
MaxProvisionedThroughput
field for serving.ServedEntityInput. - Added
MinProvisionedThroughput
field for serving.ServedEntityInput. - Added
MaxProvisionedThroughput
field for serving.ServedEntityOutput. - Added
MinProvisionedThroughput
field for serving.ServedEntityOutput.
v0.32.0
Major Changes:
- Generate fields for headers in responses (#812).
Other Changes:
Internal Changes:
- Do not generate erroneous "r" and "w" samples (#811).
API Changes:
- Changed
Delete
method for w.Connections workspace-level service with new required argument order. - Changed
Get
method for w.Connections workspace-level service with new required argument order. - Changed
Update
method for w.Connections workspace-level service with new required argument order. - Changed
Delete
method for w.Volumes workspace-level service with new required argument order. - Changed
Read
method for w.Volumes workspace-level service with new required argument order. - Changed
Update
method for w.Volumes workspace-level service with new required argument order. - Removed
NameArg
field for catalog.DeleteConnectionRequest. - Added
Name
field for catalog.DeleteConnectionRequest. - Removed
FullNameArg
field for catalog.DeleteVolumeRequest. - Added
Name
field for catalog.DeleteVolumeRequest. - Removed
NameArg
field for catalog.GetConnectionRequest. - Added
Name
field for catalog.GetConnectionRequest. - Added
MaxResults
field for catalog.ListVolumesRequest. - Added
PageToken
field for catalog.ListVolumesRequest. - Added
NextPageToken
field for catalog.ListVolumesResponseContent. - Removed
FullNameArg
field for catalog.ReadVolumeRequest. - Added
Name
field for catalog.ReadVolumeRequest. - Removed
NameArg
field for catalog.UpdateConnection. - Added
Name
field for catalog.UpdateConnection. - Removed
FullNameArg
field for catalog.UpdateVolumeRequestContent. - Added
Name
field for catalog.UpdateVolumeRequestContent. - Removed
GetStatus
method for w.Files workspace-level service. - Added
GetDirectoryMetadata
method for w.Files workspace-level service. - Added
GetMetadata
method for w.Files workspace-level service. - Added files.FileSize.
- Added files.GetDirectoryMetadataRequest.
- Added files.GetMetadataRequest.
- Added files.GetMetadataResponse.
- Removed
TriggerHistory
field for jobs.Job. - Removed jobs.TriggerEvaluation.
- Removed jobs.TriggerHistory.
- Added
Table
field for jobs.TriggerSettings. - Added jobs.Condition.
- Added jobs.TableTriggerConfiguration.
- Changed
Delete
method for w.CleanRooms workspace-level service with new required argument order. - Changed
Get
method for w.CleanRooms workspace-level service with new required argument order. - Changed
Update
method for w.CleanRooms workspace-level service with new required argument order. - Removed
NameArg
field for sharing.DeleteCleanRoomRequest. - Added
Name
field for sharing.DeleteCleanRoomRequest. - Removed
NameArg
field for sharing.GetCleanRoomRequest. - Added
Name
field for sharing.GetCleanRoomRequest. - Removed
NameArg
field for sharing.UpdateCleanRoom. - Added
Name
field for sharing.UpdateCleanRoom. - Added
EnumOptions
field for sql.Parameter. - Added
MultiValuesOptions
field for sql.Parameter. - Added
QueryId
field for sql.Parameter. - Added sql.MultiValuesOptions.
OpenAPI SHA: c40670f5a2055c92cf0a6aac92a5bccebfb80866, Date: 2024-02-14
v0.31.0
- Support creating a new workspace client from an account client (#792). Please see the example:
// GetWorkspaceClient returns a WorkspaceClient for the given workspace. The
// workspace can be fetched by calling w.Workspaces.Get() or w.Workspaces.List().
//
// The config used for the workspace is identical to that used for the account,
// except that the host is set to the workspace host, and the account ID is
// not set.
a, err := databricks.NewAccountClient()
if err != nil {
panic(err)
}
ctx := context.Background()
workspaces, err := a.Workspaces.List(ctx)
if err != nil {
panic(err)
}
w, err := a.GetWorkspaceClient(workspaces[0])
if err != nil {
panic(err)
}
me, err := w.CurrentUser.Me(ctx)
- Added support to select Spark version with Photon (#799). Please Note: Photon selection is disabled by default. To enable it, please use
Photon: true
in request. Example:
version, err := sparkVersions.Select(compute.SparkVersionRequest{
Photon: true,
})
API Changes:
Additions:
- Added the following Requests:
- catalog.CancelRefreshRequest.
- catalog.GetRefreshRequest.
- catalog.ListRefreshesRequest.
- settings.DeleteRestrictWorkspaceAdminsSettingRequest.
- settings.GetDefaultNamespaceSettingRequest.
- settings.GetPersonalComputeSettingRequest.
- settings.GetRestrictWorkspaceAdminsSettingRequest.
- settings.UpdateDefaultNamespaceSettingRequest.
- settings.UpdateRestrictWorkspaceAdminsSettingRequest.
- catalog.RunRefreshRequest.
- settings.DeleteDefaultNamespaceSettingRequest.
- files.CreateDirectoryRequest.
- files.DeleteDirectoryRequest.
- files.ListDirectoryContentsRequest.
- Added the following Responses:
- Added
CancelRefresh
,GetRefresh
,ListRefreshes
andRunRefresh
method for w.LakehouseMonitors workspace-level service. - Added
Abfss
andGcs
field for compute.InitScriptInfo. - Added
CreateDirectory
,DeleteDirectory
andListDirectoryContents
method for w.Files workspace-level service. - Added
Source
field for jobs.DbtTask and jobs.SqlTaskFile. - Added settings.RestrictWorkspaceAdminsMessage.
- Jobs:
- Pipelines:
- Settings:
- Catalog:
- Added
GetPersonalComputeSetting
method for a.AccountSettings account-level service. - Added the following fields:
DeltaSyncIndexSpec
for vectorsearch.CreateVectorIndexRequest.FileType
for workspace.ExportResponse.ResourceId
for workspace.ObjectInfo.
- Added
ZoneId
field for compute.GcpAttributes. - Added
ForEachTask
field for jobs.RunTask, jobs.SubmitTask and jobs.Task. - Added
DeleteDefaultNamespaceSetting
,DeleteRestrictWorkspaceAdminsSetting
,GetDefaultNamespaceSetting
,GetRestrictWorkspaceAdminsSetting
,UpdateDefaultNamespaceSetting
andUpdateRestrictWorkspaceAdminsSetting
method for w.Settings workspace-level service. - Added
FieldMask
field for settings.UpdatePersonalComputeSettingRequest. - Added
UsePreemptibleExecutors
field for compute.GcpAttributes. - Misc:
Changes:
- Changed
MaxWorkers
andMinWorkers
field for compute.AutoScale to no longer be required. - Changed
Destination
field for compute.LocalFileInfo, compute.S3StorageInfo, compute.VolumesStorageInfo, compute.WorkspaceStorageInfo to be required. - Changed
Destination
field for compute.DbfsStorageInfo to be required. - Changed
Clients
field for compute.WorkloadType to be required. - Changed
Autoscale
field for [pipelines.PipelineCluster](https://pkg.go.dev/github.com/databricks/datab...
v0.30.1
v0.30.0
Other changes:
- Added RequiredPositionalArguments method for codegen (#773).
- Support locking in integration tests (#776).
- Update OpenAPI spec and fix incompatible changes (#778).
API Changes:
- Added
Exists
method for w.Tables workspace-level service. - Added w.LakehouseMonitors workspace-level service.
- Added catalog.CreateMonitor, catalog.DeleteLakehouseMonitorRequest, catalog.ExistsRequest, catalog.GetLakehouseMonitorRequest, catalog.MonitorCronSchedule, catalog.MonitorCronSchedulePauseStatus, catalog.MonitorCustomMetric, catalog.MonitorCustomMetricType, catalog.MonitorDataClassificationConfig, catalog.MonitorDestinations, catalog.MonitorInferenceLogProfileType, catalog.MonitorInferenceLogProfileTypeProblemType, catalog.MonitorInfo, catalog.MonitorInfoStatus, catalog.MonitorNotificationsConfig, catalog.MonitorTimeSeriesProfileType, catalog.TableExistsResponse and catalog.UpdateMonitor.
- Added
InitScripts
field for pipelines.PipelineCluster. - Added
ValidateOnly
field for pipelines.StartUpdate. - Added
ValidateOnly
field for pipelines.UpdateInfo. - Changed
CreateOboToken
method for w.TokenManagement workspace-level service with new required argument order. - Changed
Get
method for w.TokenManagement workspace-level service to return settings.GetTokenResponse. - Changed
LifetimeSeconds
field for settings.CreateOboTokenRequest to no longer be required. - Added settings.GetTokenResponse.
- Changed
Create
method for w.Dashboards workspace-level service . New request type is sql.DashboardPostContent. - Added
Update
method for w.Dashboards workspace-level service. - Removed sql.CreateDashboardRequest.
- Added
HttpHeaders
field for sql.ExternalLink. - Added
RunAsRole
field for sql.QueryEditContent. - Added sql.DashboardEditContent.
- Added sql.DashboardPostContent.
OpenAPI SHA: e05401ed5dd4974c5333d737ec308a7d451f749f, Date: 2024-01-23