Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e1ea3f5ba0bc5b53be94f56535a67ba701a52a52
ce43ec527aafe429c802818fe3eff78ae8a66240
7 changes: 7 additions & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@
### Internal Changes

### API Changes
* Add `effective_usage_policy_id` and `usage_policy_id` fields for `databricks.sdk.service.apps.App`.
* Add `external_access_enabled` field for `databricks.sdk.service.catalog.CreateAccountsMetastore`.
* Add `external_access_enabled` field for `databricks.sdk.service.catalog.CreateMetastore`.
* Add `external_access_enabled` field for `databricks.sdk.service.catalog.UpdateAccountsMetastore`.
* Add `external_access_enabled` field for `databricks.sdk.service.catalog.UpdateMetastore`.
* Add `control_plane_connection_failure` and `control_plane_connection_failure_due_to_misconfig` enum values for `databricks.sdk.service.compute.TerminationReasonCode`.
* Add `control_plane_connection_failure` and `control_plane_connection_failure_due_to_misconfig` enum values for `databricks.sdk.service.sql.TerminationReasonCode`.
14 changes: 14 additions & 0 deletions databricks/sdk/service/apps.py

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

44 changes: 40 additions & 4 deletions databricks/sdk/service/catalog.py

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

2 changes: 2 additions & 0 deletions databricks/sdk/service/compute.py

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

2 changes: 2 additions & 0 deletions databricks/sdk/service/sql.py

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

3 changes: 1 addition & 2 deletions databricks/sdk/service/vectorsearch.py

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

4 changes: 2 additions & 2 deletions docs/account/iam/workspace_assignment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@

a = AccountClient()

workspace_id = os.environ["TEST_WORKSPACE_ID"]
workspace_id = os.environ["DUMMY_WORKSPACE_ID"]

all = a.workspace_assignment.list(list=workspace_id)
all = a.workspace_assignment.list(workspace_id=workspace_id)

Get the permission assignments for the specified Databricks account and Databricks workspace.

Expand Down
6 changes: 5 additions & 1 deletion docs/account/provisioning/storage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

.. code-block::

import os
import time

from databricks.sdk import AccountClient
Expand All @@ -25,8 +26,11 @@

storage = a.storage.create(
storage_configuration_name=f"sdk-{time.time_ns()}",
root_bucket_info=provisioning.RootBucketInfo(bucket_name=f"sdk-{time.time_ns()}"),
root_bucket_info=provisioning.RootBucketInfo(bucket_name=os.environ["TEST_ROOT_BUCKET"]),
)

# cleanup
a.storage.delete(storage_configuration_id=storage.storage_configuration_id)

Creates a Databricks storage configuration for an account.

Expand Down
4 changes: 2 additions & 2 deletions docs/dbdataclasses/catalog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ These dataclasses are used in the SDK to represent API requests and responses fo

.. py:class:: ConnectionType

Next Id: 51
Next Id: 52

.. py:attribute:: BIGQUERY
:value: "BIGQUERY"
Expand Down Expand Up @@ -1497,7 +1497,7 @@ These dataclasses are used in the SDK to represent API requests and responses fo

.. py:class:: SecurableKind

Latest kind: CONNECTION_CROWDSTRIKE_EVENT_STREAM_M2M = 281; Next id: 282
Latest kind: CONNECTION_WORKDAY_ACTIVITY_LOGGING_OAUTH_REFRESH_TOKEN = 282; Next id:283

.. py:attribute:: TABLE_DB_STORAGE
:value: "TABLE_DB_STORAGE"
Expand Down
6 changes: 6 additions & 0 deletions docs/dbdataclasses/compute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,12 @@ These dataclasses are used in the SDK to represent API requests and responses fo
.. py:attribute:: CONTAINER_LAUNCH_FAILURE
:value: "CONTAINER_LAUNCH_FAILURE"

.. py:attribute:: CONTROL_PLANE_CONNECTION_FAILURE
:value: "CONTROL_PLANE_CONNECTION_FAILURE"

.. py:attribute:: CONTROL_PLANE_CONNECTION_FAILURE_DUE_TO_MISCONFIG
:value: "CONTROL_PLANE_CONNECTION_FAILURE_DUE_TO_MISCONFIG"

.. py:attribute:: CONTROL_PLANE_REQUEST_FAILURE
:value: "CONTROL_PLANE_REQUEST_FAILURE"

Expand Down
6 changes: 6 additions & 0 deletions docs/dbdataclasses/sql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,12 @@ These dataclasses are used in the SDK to represent API requests and responses fo
.. py:attribute:: CONTAINER_LAUNCH_FAILURE
:value: "CONTAINER_LAUNCH_FAILURE"

.. py:attribute:: CONTROL_PLANE_CONNECTION_FAILURE
:value: "CONTROL_PLANE_CONNECTION_FAILURE"

.. py:attribute:: CONTROL_PLANE_CONNECTION_FAILURE_DUE_TO_MISCONFIG
:value: "CONTROL_PLANE_CONNECTION_FAILURE_DUE_TO_MISCONFIG"

.. py:attribute:: CONTROL_PLANE_REQUEST_FAILURE
:value: "CONTROL_PLANE_REQUEST_FAILURE"

Expand Down
4 changes: 2 additions & 2 deletions docs/workspace/catalog/catalogs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@

w = WorkspaceClient()

created_catalog = w.catalogs.create(name=f"sdk-{time.time_ns()}")
created = w.catalogs.create(name=f"sdk-{time.time_ns()}")

# cleanup
w.catalogs.delete(name=created_catalog.name, force=True)
w.catalogs.delete(name=created.name, force=True)

Creates a new catalog instance in the parent metastore if the caller is a metastore admin or has the
**CREATE_CATALOG** privilege.
Expand Down
Loading
Loading