Releases: databricks/databricks-sdk-py
Releases · databricks/databricks-sdk-py
v0.38.0
New Features and Improvements
- Read streams by 1MB chunks by default. (#817).
Bug Fixes
- Rewind seekable streams before retrying (#821).
- Properly serialize nested data classes.
Internal Changes
- Reformat SDK with YAPF 0.43. (#822).
- Update Jobs GetRun API to support paginated responses for jobs and ForEach tasks (#819).
API Changes:
- Added
service_principal_client_id
field fordatabricks.sdk.service.apps.App
. - Added
azure_service_principal
,gcp_service_account_key
andread_only
fields fordatabricks.sdk.service.catalog.CreateCredentialRequest
. - Added
azure_service_principal
,read_only
andused_for_managed_storage
fields fordatabricks.sdk.service.catalog.CredentialInfo
. - Added
omit_username
field fordatabricks.sdk.service.catalog.ListTablesRequest
. - Added
azure_service_principal
andread_only
fields fordatabricks.sdk.service.catalog.UpdateCredentialRequest
. - Added
external_location_name
,read_only
andurl
fields fordatabricks.sdk.service.catalog.ValidateCredentialRequest
. - Added
is_dir
field fordatabricks.sdk.service.catalog.ValidateCredentialResponse
. - Added
only
field fordatabricks.sdk.service.jobs.RunNow
. - Added
restart_window
field fordatabricks.sdk.service.pipelines.CreatePipeline
. - Added
restart_window
field fordatabricks.sdk.service.pipelines.EditPipeline
. - Added
restart_window
field fordatabricks.sdk.service.pipelines.PipelineSpec
. - Added
private_access_settings_id
field fordatabricks.sdk.service.provisioning.UpdateWorkspaceRequest
. - Changed
create_credential()
andgenerate_temporary_service_credential()
methods for w.credentials workspace-level service with new required argument order. - Changed
access_connector_id
field fordatabricks.sdk.service.catalog.AzureManagedIdentity
to be required. - Changed
access_connector_id
field fordatabricks.sdk.service.catalog.AzureManagedIdentity
to be required. - Changed
name
field fordatabricks.sdk.service.catalog.CreateCredentialRequest
to be required. - Changed
credential_name
field fordatabricks.sdk.service.catalog.GenerateTemporaryServiceCredentialRequest
to be required.
OpenAPI SHA: f2385add116e3716c8a90a0b68e204deb40f996c, Date: 2024-11-15
v0.37.0
Bug Fixes
- Correctly generate classes with nested body fields (#808).
Internal Changes
- Add
cleanrooms
package (#806). - Add test instructions for external contributors (#804).
- Always write message for manual test execution (#811).
- Automatically trigger integration tests on PR (#800).
- Better isolate ML serving auth unit tests (#803).
- Move templates in the code generator (#809).
API Changes:
- Added w.aibi_dashboard_embedding_access_policy workspace-level service and
w.aibi_dashboard_embedding_approved_domains workspace-level service. - Added w.credentials workspace-level service.
- Added
app_deployment
field fordatabricks.sdk.service.apps.CreateAppDeploymentRequest
. - Added
app
field fordatabricks.sdk.service.apps.CreateAppRequest
. - Added
app
field fordatabricks.sdk.service.apps.UpdateAppRequest
. - Added
table
field fordatabricks.sdk.service.catalog.CreateOnlineTableRequest
. - Added
azure_aad
field fordatabricks.sdk.service.catalog.GenerateTemporaryTableCredentialResponse
. - Added
full_name
field fordatabricks.sdk.service.catalog.StorageCredentialInfo
. - Added
dashboard
field fordatabricks.sdk.service.dashboards.CreateDashboardRequest
. - Added
schedule
field fordatabricks.sdk.service.dashboards.CreateScheduleRequest
. - Added
subscription
field fordatabricks.sdk.service.dashboards.CreateSubscriptionRequest
. - Added
warehouse_id
field fordatabricks.sdk.service.dashboards.Schedule
. - Added
dashboard
field fordatabricks.sdk.service.dashboards.UpdateDashboardRequest
. - Added
schedule
field fordatabricks.sdk.service.dashboards.UpdateScheduleRequest
. - Added
page_token
field fordatabricks.sdk.service.oauth2.ListServicePrincipalSecretsRequest
. - Added
next_page_token
field fordatabricks.sdk.service.oauth2.ListServicePrincipalSecretsResponse
. - Added
connection_name
field fordatabricks.sdk.service.pipelines.IngestionGatewayPipelineDefinition
. - Added
is_no_public_ip_enabled
field fordatabricks.sdk.service.provisioning.CreateWorkspaceRequest
. - Added
external_customer_info
andis_no_public_ip_enabled
fields fordatabricks.sdk.service.provisioning.Workspace
. - Added
last_used_day
field fordatabricks.sdk.service.settings.TokenInfo
. - Changed
create()
method for w.apps workspace-level service with new required argument order. - Changed
execute_message_query()
method for w.genie workspace-level service . New request type isdatabricks.sdk.service.dashboards.GenieExecuteMessageQueryRequest
dataclass. - Changed
execute_message_query()
method for w.genie workspace-level service to typeexecute_message_query()
method for w.genie workspace-level service. - Changed
create()
,create_schedule()
,create_subscription()
andupdate_schedule()
methods for w.lakeview workspace-level service with new required argument order. - Removed w.clean_rooms workspace-level service.
- Removed
prev_page_token
field fordatabricks.sdk.service.jobs.Run
.
The following fields are now nested in the request:
- Removed
deployment_id
,mode
andsource_code_path
fields fordatabricks.sdk.service.apps.CreateAppDeploymentRequest
. - Removed
description
,name
andresources
fields fordatabricks.sdk.service.apps.CreateAppRequest
. - Removed
description
andresources
fields fordatabricks.sdk.service.apps.UpdateAppRequest
. - Removed
name
andspec
fields fordatabricks.sdk.service.catalog.CreateOnlineTableRequest
. - Removed
display_name
,parent_path
,serialized_dashboard
andwarehouse_id
fields fordatabricks.sdk.service.dashboards.CreateDashboardRequest
. - Removed
cron_schedule
,display_name
andpause_status
fields fordatabricks.sdk.service.dashboards.CreateScheduleRequest
. - Removed
subscriber
field fordatabricks.sdk.service.dashboards.CreateSubscriptionRequest
. - Removed
display_name
,etag
,serialized_dashboard
andwarehouse_id
fields fordatabricks.sdk.service.dashboards.UpdateDashboardRequest
. - Removed
cron_schedule
,display_name
,etag
andpause_status
fields fordatabricks.sdk.service.dashboards.UpdateScheduleRequest
.
OpenAPI SHA: 5285ce76f81314f342c1702d5c2ad4ef42488781, Date: 2024-11-04
v0.36.0
Breaking Changes
external_browser
now uses thedatabricks-cli
app instead of the third-party "6128a518-99a9-425b-8333-4cc94f04cacd" application when performing the U2M login flow for Azure workspaces when a client ID is not otherwise specified. This matches the AWS behavior.- The signatures of several OAuth-related constructors have changed to support U2M OAuth with Azure Entra ID application registrations. See https://github.com/databricks/databricks-sdk-py/blob/main/examples/flask_app_with_oauth.py for examples of how to use these classes.
OAuthClient()
: renamed toOAuthClient.from_host()
SessionCredentials()
andSessionCredentials.from_dict()
: now acceptstoken_endpoint
,client_id
,client_secret
, andrefresh_url
as parameters, rather than accepting theOAuthClient
.TokenCache()
: now acceptshost
,token_endpoint
,client_id
,client_secret
, andrefresh_url
as parameters, rather than accepting theOAuthClient
.
Bug Fixes
- Decouple OAuth functionality from
Config
(#784).
Release
- Release v0.35.0 (#793).
v0.35.0
New Features and Improvements
- Open AI Client Mixin (#779).
Bug Fixes
- Update Serving Endpoint mixing template and docs generation logic (#792).
API Changes:
- Added
databricks.sdk.service.pipelines.ReportSpec
dataclass. - Added
unity_catalog_provisioning_state
field fordatabricks.sdk.service.catalog.OnlineTable
. - Added
is_truncated
field fordatabricks.sdk.service.dashboards.Result
. - Added
effective_budget_policy_id
field fordatabricks.sdk.service.jobs.BaseJob
. - Added
budget_policy_id
field fordatabricks.sdk.service.jobs.CreateJob
. - Added
effective_budget_policy_id
field fordatabricks.sdk.service.jobs.Job
. - Added
budget_policy_id
field fordatabricks.sdk.service.jobs.JobSettings
. - Added
budget_policy_id
field fordatabricks.sdk.service.jobs.SubmitRun
. - Added
report
field fordatabricks.sdk.service.pipelines.IngestionConfig
. - Added
sequence_by
field fordatabricks.sdk.service.pipelines.TableSpecificConfig
. - Added
notify_on_ok
field fordatabricks.sdk.service.sql.Alert
. - Added
notify_on_ok
field fordatabricks.sdk.service.sql.CreateAlertRequestAlert
. - Added
notify_on_ok
field fordatabricks.sdk.service.sql.ListAlertsResponseAlert
. - Added
notify_on_ok
field fordatabricks.sdk.service.sql.UpdateAlertRequestAlert
.
OpenAPI SHA: cf9c61453990df0f9453670f2fe68e1b128647a2, Date: 2024-10-14
v0.34.0
Bug Fixes
- Fix Model Serving Test (#781).
- Include package name for external types when deserializing responses (#786).
Internal Changes
- Refactor ApiClient into
_BaseClient
andApiClient
(#785). - Update to latest OpenAPI spec (#787).
- revert Support Models in
dbutils.fs
operations (#750) (#778).
API Changes:
- Added w.disable_legacy_dbfs workspace-level service.
- Added
default_source_code_path
andresources
fields fordatabricks.sdk.service.apps.App
. - Added
resources
field fordatabricks.sdk.service.apps.CreateAppRequest
. - Added
resources
field fordatabricks.sdk.service.apps.UpdateAppRequest
.
OpenAPI SHA: bc17b474818138f19b78a7bea0675707dead2b87, Date: 2024-10-07
v0.33.0
Release v0.33.0
Internal Changes
API Changes:
- Added w.disable_legacy_access workspace-level service and a.disable_legacy_features account-level service.
- Added w.temporary_table_credentials workspace-level service.
- Added
put_ai_gateway()
method for w.serving_endpoints workspace-level service. - Added
databricks.sdk.service.apps.ApplicationState
,databricks.sdk.service.apps.ApplicationStatus
,databricks.sdk.service.apps.ComputeState
anddatabricks.sdk.service.apps.ComputeStatus
dataclasses. - Added
databricks.sdk.service.catalog.AwsCredentials
,databricks.sdk.service.catalog.AzureUserDelegationSas
,databricks.sdk.service.catalog.GcpOauthToken
,databricks.sdk.service.catalog.GenerateTemporaryTableCredentialRequest
,databricks.sdk.service.catalog.GenerateTemporaryTableCredentialResponse
,databricks.sdk.service.catalog.R2Credentials
anddatabricks.sdk.service.catalog.TableOperation
dataclasses. - Added
databricks.sdk.service.serving.AiGatewayConfig
,databricks.sdk.service.serving.AiGatewayGuardrailParameters
,databricks.sdk.service.serving.AiGatewayGuardrailPiiBehavior
,databricks.sdk.service.serving.AiGatewayGuardrailPiiBehaviorBehavior
,databricks.sdk.service.serving.AiGatewayGuardrails
,databricks.sdk.service.serving.AiGatewayInferenceTableConfig
,databricks.sdk.service.serving.AiGatewayRateLimit
,databricks.sdk.service.serving.AiGatewayRateLimitKey
,databricks.sdk.service.serving.AiGatewayRateLimitRenewalPeriod
,databricks.sdk.service.serving.AiGatewayUsageTrackingConfig
,databricks.sdk.service.serving.PutAiGatewayRequest
anddatabricks.sdk.service.serving.PutAiGatewayResponse
dataclasses. - Added
databricks.sdk.service.settings.BooleanMessage
,databricks.sdk.service.settings.DeleteDisableLegacyAccessRequest
,databricks.sdk.service.settings.DeleteDisableLegacyAccessResponse
,databricks.sdk.service.settings.DeleteDisableLegacyFeaturesRequest
,databricks.sdk.service.settings.DeleteDisableLegacyFeaturesResponse
,databricks.sdk.service.settings.DisableLegacyAccess
,databricks.sdk.service.settings.DisableLegacyFeatures
,databricks.sdk.service.settings.GetDisableLegacyAccessRequest
,databricks.sdk.service.settings.GetDisableLegacyFeaturesRequest
,databricks.sdk.service.settings.UpdateDisableLegacyAccessRequest
anddatabricks.sdk.service.settings.UpdateDisableLegacyFeaturesRequest
dataclasses. - Added
databricks.sdk.service.workspace.CreateCredentialsRequest
,databricks.sdk.service.workspace.CreateRepoRequest
,databricks.sdk.service.workspace.CreateRepoResponse
,databricks.sdk.service.workspace.DeleteCredentialsRequest
,any
,any
,databricks.sdk.service.workspace.GetCredentialsRequest
,databricks.sdk.service.workspace.GetRepoResponse
,databricks.sdk.service.workspace.ListCredentialsResponse
,databricks.sdk.service.workspace.UpdateCredentialsRequest
,any
,databricks.sdk.service.workspace.UpdateRepoRequest
andany
dataclasses. - Added
app_status
andcompute_status
fields fordatabricks.sdk.service.apps.App
. - Added
deployment_id
field fordatabricks.sdk.service.apps.CreateAppDeploymentRequest
. - Added
external_access_enabled
field fordatabricks.sdk.service.catalog.GetMetastoreSummaryResponse
. - Added
include_manifest_capabilities
field fordatabricks.sdk.service.catalog.GetTableRequest
. - Added
include_manifest_capabilities
field fordatabricks.sdk.service.catalog.ListSummariesRequest
. - Added
include_manifest_capabilities
field fordatabricks.sdk.service.catalog.ListTablesRequest
. - Added
external_access_enabled
field fordatabricks.sdk.service.catalog.MetastoreInfo
. - Added
budget_policy_id
andschema
fields fordatabricks.sdk.service.pipelines.CreatePipeline
. - Added
budget_policy_id
andschema
fields fordatabricks.sdk.service.pipelines.EditPipeline
. - Added
effective_budget_policy_id
field fordatabricks.sdk.service.pipelines.GetPipelineResponse
. - Added
budget_policy_id
andschema
fields fordatabricks.sdk.service.pipelines.PipelineSpec
. - Added
ai_gateway
field fordatabricks.sdk.service.serving.CreateServingEndpoint
. - Added
ai_gateway
field fordatabricks.sdk.service.serving.ServingEndpoint
. - Added
ai_gateway
field fordatabricks.sdk.service.serving.ServingEndpointDetailed
. - Added
workspace_id
field fordatabricks.sdk.service.settings.TokenInfo
. - Added
credential_id
,git_provider
andgit_username
fields fordatabricks.sdk.service.workspace.GetCredentialsResponse
. - Changed
delete()
,start()
andstop()
methods for w.apps workspace-level service to returndatabricks.sdk.service.apps.App
dataclass. - Changed
deploy()
method for w.apps workspace-level service with new required argument order. - Changed
create()
method for w.git_credentials workspace-level service . New request type isdatabricks.sdk.service.workspace.CreateCredentialsRequest
dataclass. - Changed
delete()
method for w.git_credentials workspace-level service . New request type isdatabricks.sdk.service.workspace.DeleteCredentialsRequest
dataclass. - Changed
delete()
method for w.git_credentials workspace-level service to returnany
dataclass. - Changed
get()
method for w.git_credentials workspace-level service . New request type isdatabricks.sdk.service.workspace.GetCredentialsRequest
dataclass. - Changed
get()
method for w.git_credentials workspace-level service to returndatabricks.sdk.service.workspace.GetCredentialsResponse
dataclass. - Changed
list()
method for w.git_credentials workspace-level service to returndatabricks.sdk.service.workspace.ListCredentialsResponse
dataclass. - Changed
update()
method for w.git_credentials workspace-level service . New request type isdatabricks.sdk.service.workspace.UpdateCredentialsRequest
dataclass. - Changed
update()
method for w.git_credentials workspace-level service to returnany
dataclass. - Changed
create()
method for w.repos workspace-level service to returndatabricks.sdk.service.workspace.CreateRepoResponse
dataclass. - Changed
create()
method for w.repos workspace-level service . New request type isdatabricks.sdk.service.workspace.CreateRepoRequest
dataclass. - Changed
delete()
method for w.repos workspace-level service to returnany
dataclass. - Changed
get()
method for w.repos workspace-level service to returndatabricks.sdk.service.workspace.GetRepoResponse
dataclass. - Changed
update()
method for w.repos workspace-level service to returnany
dataclass. - Changed
update()
method for w.repos workspace-level service . New request type isdatabricks.sdk.service.workspace.UpdateRepoRequest
dataclass. - Changed
source_code_path
field fordatabricks.sdk.service.apps.AppDeployment
to no longer be required. - Changed
source_code_path
field fordatabricks.sdk.service.apps.CreateAppDeploymentRequest
to no longer be required. - Changed
return_params
androutine_dependencies
fields fordatabricks.sdk.service.catalog.CreateFunction
to no longer be required. - Changed
credential_id
andgit_provider
fields fordatabricks.sdk.service.workspace.CreateCredentialsResponse
to be required. - Changed
credential_id
field fordatabricks.sdk.service.workspace.CredentialInfo
to be required. - Changed
patterns
field fordatabricks.sdk.service.workspace.SparseCheckout
todatabricks.sdk.service.workspace.List
dataclass. - Changed
patterns
field fordatabricks.sdk.service.workspace.SparseCheckoutUpdate
todatabricks.sdk.service.workspace.List
dataclass. - Removed
databricks.sdk.service.apps.AppState
,databricks.sdk.service.apps.AppStatus
,any
andany
dataclasses. - Removed
databricks.sdk.service.sql.ClientCallContext
,databricks.sdk.service.sql.EncodedText
,databricks.sdk.service.sql.EncodedTextEncoding
,databricks.sdk.service.sql.QuerySource
,databricks.sdk.service.sql.QuerySourceDriverInfo
,databricks.sdk.service.sql.QuerySourceEntryPoint
, `databricks.sdk.service.sql.Q...
v0.32.3
v0.32.2
v0.32.1
v0.32.0
Bug Fixes
- Handle non-JSON errors gracefully (#741).
Documentation
- Add Data Plane access documentation (#732).
Internal Changes
- Fix test_iam::test_scim_error_unmarshall integration test (#743).
API Changes:
- Added
regenerate_dashboard()
method for w.quality_monitors workspace-level service. - Added
databricks.sdk.service.catalog.RegenerateDashboardRequest
anddatabricks.sdk.service.catalog.RegenerateDashboardResponse
dataclasses. - Added
databricks.sdk.service.jobs.QueueDetails
,databricks.sdk.service.jobs.QueueDetailsCodeCode
,databricks.sdk.service.jobs.RunLifecycleStateV2State
,databricks.sdk.service.jobs.RunStatus
,databricks.sdk.service.jobs.TerminationCodeCode
,databricks.sdk.service.jobs.TerminationDetails
anddatabricks.sdk.service.jobs.TerminationTypeType
dataclasses. - Added
status
field fordatabricks.sdk.service.jobs.BaseRun
. - Added
status
field fordatabricks.sdk.service.jobs.RepairHistoryItem
. - Added
status
field fordatabricks.sdk.service.jobs.Run
. - Added
status
field fordatabricks.sdk.service.jobs.RunTask
. - Added
max_provisioned_throughput
andmin_provisioned_throughput
fields fordatabricks.sdk.service.serving.ServedModelInput
. - Added
columns_to_sync
field fordatabricks.sdk.service.vectorsearch.DeltaSyncVectorIndexSpecRequest
. - Changed
workload_size
field fordatabricks.sdk.service.serving.ServedModelInput
to no longer be required.
OpenAPI SHA: d05898328669a3f8ab0c2ecee37db2673d3ea3f7, Date: 2024-09-04