Skip to content

Commit 8bfb49d

Browse files
Update SDK API to ed8b5e7ec1f143395503eebae9fbc74cf8c309bc (#1213)
This PR updates the SDK to the latest API changes. NO_CHANGELOG=true Co-authored-by: databricks-ci-ghec-2[bot] <184307802+databricks-ci-ghec-2[bot]@users.noreply.github.com>
1 parent 8dfda55 commit 8bfb49d

32 files changed

Lines changed: 640 additions & 127 deletions

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
27f7ea11e6b9d14b29e0881406a7a64bff9905b3
1+
ed8b5e7ec1f143395503eebae9fbc74cf8c309bc

.github/workflows/tagging.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
name: tagging
33

44
on:
5+
# Manual dispatch.
56
workflow_dispatch:
6-
# Enable for automatic tagging
7-
#schedule:
8-
# - cron: '0 0 * * TUE'
7+
# No inputs are required for the manual dispatch.
8+
9+
# Runs at 8:00 UTC on Tuesday, Wednesday, and Thursday. To enable automated
10+
# tagging for a repository, simply add it to the if block of the tag job.
11+
schedule:
12+
- cron: '0 8 * * TUE,WED,THU'
913

1014
# Ensure that only a single instance of the workflow is running at a time.
1115
concurrency:
@@ -14,6 +18,14 @@ concurrency:
1418

1519
jobs:
1620
tag:
21+
# Only run the tag job if the trigger is manual (workflow_dispatch) or
22+
# the repository has been approved for automated releases.
23+
#
24+
# To disable release for a repository, simply exclude it from the if
25+
# condition.
26+
if: >-
27+
github.event_name == 'workflow_dispatch' ||
28+
github.repository == 'databricks/databricks-sdk-go'
1729
environment: "release-is"
1830
runs-on:
1931
group: databricks-deco-testing-runner-group

NEXT_CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,15 @@
4444
* [Breaking] Change `project_id` field for `databricks.sdk.service.postgres.CreateProjectRequest` to be required.
4545
* [Breaking] Remove `default` field for `databricks.sdk.service.postgres.BranchSpec`.
4646
* [Breaking] Remove `settings` field for `databricks.sdk.service.postgres.ProjectSpec`.
47-
* [Breaking] Remove `settings` field for `databricks.sdk.service.postgres.ProjectStatus`.
47+
* [Breaking] Remove `settings` field for `databricks.sdk.service.postgres.ProjectStatus`.
48+
* Add `generate_database_credential()` method for [w.postgres](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/postgres/postgres.html) workspace-level service.
49+
* Add `get_public_account_user_preference()`, `list_account_user_preferences_metadata()` and `patch_public_account_user_preference()` methods for [a.account_settings_v2](https://databricks-sdk-py.readthedocs.io/en/latest/account/settingsv2/account_settings_v2.html) account-level service.
50+
* Add `stderr` field for `databricks.sdk.service.compute.InitScriptInfoAndExecutionDetails`.
51+
* Add `no_expiry` field for `databricks.sdk.service.postgres.BranchSpec`.
52+
* Add `outputs` field for `databricks.sdk.service.serving.QueryEndpointResponse`.
53+
* Add `session_id` field for `databricks.sdk.service.sql.QueryInfo`.
54+
* Add `principal_id` field for `databricks.sdk.service.workspace.CreateCredentialsRequest`.
55+
* Add `principal_id` field for `databricks.sdk.service.workspace.DeleteCredentialsRequest`.
56+
* Add `principal_id` field for `databricks.sdk.service.workspace.GetCredentialsRequest`.
57+
* Add `principal_id` field for `databricks.sdk.service.workspace.ListCredentialsRequest`.
58+
* Add `principal_id` field for `databricks.sdk.service.workspace.UpdateCredentialsRequest`.

databricks/sdk/mixins/files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ def _upload_stream_consumer(
16451645
cloud_provider_session = self._create_cloud_provider_session()
16461646
while not aborted.is_set():
16471647
try:
1648-
(part, content) = task_queue.get(block=False, timeout=0.1)
1648+
part, content = task_queue.get(block=False, timeout=0.1)
16491649
except Empty:
16501650
if all_produced.is_set():
16511651
break # No more parts will be produced and the queue is empty

databricks/sdk/service/catalog.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/service/compute.py

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)