Skip to content

Commit ecb9f01

Browse files
author
Alexander
authored
Merge branch 'main' into add-nested-field
2 parents 720f725 + 5576d32 commit ecb9f01

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+18160
-678
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f2385add116e3716c8a90a0b68e204deb40f996c
1+
58905570a9928fc9ed31fba14a2edaf9a7c55b08

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ databricks/sdk/errors/platform.py linguist-generated=true
44
databricks/sdk/service/apps.py linguist-generated=true
55
databricks/sdk/service/billing.py linguist-generated=true
66
databricks/sdk/service/catalog.py linguist-generated=true
7+
databricks/sdk/service/cleanrooms.py linguist-generated=true
78
databricks/sdk/service/compute.py linguist-generated=true
89
databricks/sdk/service/dashboards.py linguist-generated=true
910
databricks/sdk/service/files.py linguist-generated=true

.github/workflows/external-message.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ on:
1313

1414
jobs:
1515
comment-on-pr:
16-
runs-on: ubuntu-latest
16+
runs-on:
17+
group: databricks-deco-testing-runner-group
18+
labels: ubuntu-latest-deco
19+
1720
permissions:
1821
pull-requests: write
1922

@@ -44,13 +47,13 @@ jobs:
4447
gh pr comment ${{ github.event.pull_request.number }} --body \
4548
"<!-- INTEGRATION_TESTS_MANUAL -->
4649
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:
47-
50+
4851
Trigger:
4952
[go/deco-tests-run/sdk-py](https://go/deco-tests-run/sdk-py)
5053
5154
Inputs:
5255
* PR number: ${{github.event.pull_request.number}}
5356
* Commit SHA: \`${{ env.COMMIT_SHA }}\`
54-
57+
5558
Checks will be approved automatically on success.
5659
"

.github/workflows/integration-tests.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ on:
66
types: [opened, synchronize]
77

88
merge_group:
9-
9+
1010

1111
jobs:
1212
check-token:
1313
name: Check secrets access
14-
runs-on: ubuntu-latest
14+
15+
runs-on:
16+
group: databricks-deco-testing-runner-group
17+
labels: ubuntu-latest-deco
18+
1519
environment: "test-trigger-is"
1620
outputs:
1721
has_token: ${{ steps.set-token-status.outputs.has_token }}
@@ -26,14 +30,18 @@ jobs:
2630
echo "DECO_WORKFLOW_TRIGGER_APP_ID is set. User has access to secrets."
2731
echo "::set-output name=has_token::true"
2832
fi
29-
33+
3034
trigger-tests:
3135
name: Trigger Tests
32-
runs-on: ubuntu-latest
36+
37+
runs-on:
38+
group: databricks-deco-testing-runner-group
39+
labels: ubuntu-latest-deco
40+
3341
needs: check-token
3442
if: github.event_name == 'pull_request' && needs.check-token.outputs.has_token == 'true'
3543
environment: "test-trigger-is"
36-
44+
3745
steps:
3846
- uses: actions/checkout@v3
3947

@@ -45,26 +53,30 @@ jobs:
4553
private-key: ${{ secrets.DECO_WORKFLOW_TRIGGER_PRIVATE_KEY }}
4654
owner: ${{ secrets.ORG_NAME }}
4755
repositories: ${{secrets.REPO_NAME}}
48-
56+
4957
- name: Trigger Workflow in Another Repo
5058
env:
5159
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
5260
run: |
5361
gh workflow run sdk-py-isolated-pr.yml -R ${{ secrets.ORG_NAME }}/${{secrets.REPO_NAME}} \
5462
--ref main \
5563
-f pull_request_number=${{ github.event.pull_request.number }} \
56-
-f commit_sha=${{ github.event.pull_request.head.sha }}
64+
-f commit_sha=${{ github.event.pull_request.head.sha }}
5765
58-
# Statuses and checks apply to specific commits (by hash).
66+
# Statuses and checks apply to specific commits (by hash).
5967
# Enforcement of required checks is done both at the PR level and the merge queue level.
60-
# In case of multiple commits in a single PR, the hash of the squashed commit
68+
# In case of multiple commits in a single PR, the hash of the squashed commit
6169
# will not match the one for the latest (approved) commit in the PR.
6270
# We auto approve the check for the merge queue for two reasons:
6371
# * Queue times out due to duration of tests.
6472
# * Avoid running integration tests twice, since it was already run at the tip of the branch before squashing.
6573
auto-approve:
6674
if: github.event_name == 'merge_group'
67-
runs-on: ubuntu-latest
75+
76+
runs-on:
77+
group: databricks-deco-testing-runner-group
78+
labels: ubuntu-latest-deco
79+
6880
steps:
6981
- name: Mark Check
7082
env:
@@ -75,4 +87,4 @@ jobs:
7587
-H "X-GitHub-Api-Version: 2022-11-28" \
7688
/repos/${{ github.repository }}/statuses/${{ github.sha }} \
7789
-f 'state=success' \
78-
-f 'context=Integration Tests Check'
90+
-f 'context=Integration Tests Check'

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
pyVersion: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
15+
pyVersion: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
1616
with:
1717
os: ubuntu-latest
1818
pyVersion: ${{ matrix.pyVersion }}

.github/workflows/release-test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ on:
55

66
jobs:
77
publish:
8-
runs-on: ubuntu-latest
8+
runs-on:
9+
group: databricks-deco-testing-runner-group
10+
labels: ubuntu-latest-deco
11+
912
environment: release-test
13+
1014
permissions:
1115
id-token: write
16+
1217
steps:
1318
- uses: actions/checkout@v3
1419

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ on:
77

88
jobs:
99
publish:
10-
runs-on: ubuntu-latest
10+
runs-on:
11+
group: databricks-deco-testing-runner-group
12+
labels: ubuntu-latest-deco
13+
1114
environment: release
15+
1216
permissions:
1317
contents: write
1418
id-token: write
19+
1520
steps:
1621
- uses: actions/checkout@v3
1722

CHANGELOG.md

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,115 @@
11
# Version changelog
22

3+
## [Release] Release v0.41.0
4+
5+
### New Features and Improvements
6+
7+
* Add `serving.http_request` to call external functions. ([#857](https://github.com/databricks/databricks-sdk-py/pull/857)).
8+
* Files API client: recover on download failures ([#844](https://github.com/databricks/databricks-sdk-py/pull/844)) ([#845](https://github.com/databricks/databricks-sdk-py/pull/845)).
9+
10+
11+
### Bug Fixes
12+
13+
* Properly pass query parameters in apps and oauth2 ([#862](https://github.com/databricks/databricks-sdk-py/pull/862)).
14+
15+
16+
### Internal Changes
17+
18+
* Add unit tests for external-browser authentication ([#863](https://github.com/databricks/databricks-sdk-py/pull/863)).
19+
* Decouple oauth2 and serving ([#855](https://github.com/databricks/databricks-sdk-py/pull/855)).
20+
* Migrate workflows that need write access to use hosted runners ([#850](https://github.com/databricks/databricks-sdk-py/pull/850)).
21+
* Stop testing Python 3.7 on Ubuntu ([#858](https://github.com/databricks/databricks-sdk-py/pull/858)).
22+
23+
24+
### API Changes:
25+
26+
* Added [w.access_control](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/access_control.html) workspace-level service.
27+
* Added `http_request()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html) workspace-level service.
28+
* Added `no_compute` field for `databricks.sdk.service.apps.CreateAppRequest`.
29+
* Added `has_more` field for `databricks.sdk.service.jobs.BaseJob`.
30+
* Added `has_more` field for `databricks.sdk.service.jobs.BaseRun`.
31+
* Added `page_token` field for `databricks.sdk.service.jobs.GetJobRequest`.
32+
* Added `has_more` and `next_page_token` fields for `databricks.sdk.service.jobs.Job`.
33+
* Added `has_more` field for `databricks.sdk.service.jobs.Run`.
34+
* Added `clean_rooms_notebook_output` field for `databricks.sdk.service.jobs.RunOutput`.
35+
* Added `scopes` field for `databricks.sdk.service.oauth2.UpdateCustomAppIntegration`.
36+
* Added `run_as` field for `databricks.sdk.service.pipelines.CreatePipeline`.
37+
* Added `run_as` field for `databricks.sdk.service.pipelines.EditPipeline`.
38+
* Added `authorization_details` and `endpoint_url` fields for `databricks.sdk.service.serving.DataPlaneInfo`.
39+
* Added `contents` field for `databricks.sdk.service.serving.GetOpenApiResponse`.
40+
* Added `activated`, `activation_url`, `authentication_type`, `cloud`, `comment`, `created_at`, `created_by`, `data_recipient_global_metastore_id`, `ip_access_list`, `metastore_id`, `name`, `owner`, `properties_kvpairs`, `region`, `sharing_code`, `tokens`, `updated_at` and `updated_by` fields for `databricks.sdk.service.sharing.RecipientInfo`.
41+
* Added `expiration_time` field for `databricks.sdk.service.sharing.RecipientInfo`.
42+
* Changed `update()` method for [a.account_federation_policy](https://databricks-sdk-py.readthedocs.io/en/latest/account/account_federation_policy.html) account-level service with new required argument order.
43+
* Changed `update()` method for [a.service_principal_federation_policy](https://databricks-sdk-py.readthedocs.io/en/latest/account/service_principal_federation_policy.html) account-level service with new required argument order.
44+
* Changed `update()` method for [w.recipients](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/recipients.html) workspace-level service to return `databricks.sdk.service.sharing.RecipientInfo` dataclass.
45+
* Changed `update()` method for [w.recipients](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/recipients.html) workspace-level service return type to become non-empty.
46+
* Changed `update()` method for [w.recipients](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/recipients.html) workspace-level service to type `update()` method for [w.recipients](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/recipients.html) workspace-level service.
47+
* Changed `get_open_api()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html) workspace-level service return type to become non-empty.
48+
* Changed `patch()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html) workspace-level service to type `patch()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html) workspace-level service.
49+
* Changed `patch()` method for [w.serving_endpoints](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving_endpoints.html) workspace-level service to return `databricks.sdk.service.serving.EndpointTags` dataclass.
50+
* Changed `databricks.sdk.service.serving.EndpointTagList` dataclass to.
51+
* Changed `collaborator_alias` field for `databricks.sdk.service.cleanrooms.CleanRoomCollaborator` to be required.
52+
* Changed `collaborator_alias` field for `databricks.sdk.service.cleanrooms.CleanRoomCollaborator` to be required.
53+
* Changed `update_mask` field for `databricks.sdk.service.oauth2.UpdateAccountFederationPolicyRequest` to no longer be required.
54+
* Changed `update_mask` field for `databricks.sdk.service.oauth2.UpdateServicePrincipalFederationPolicyRequest` to no longer be required.
55+
* Changed `days_of_week` field for `databricks.sdk.service.pipelines.RestartWindow` to type `databricks.sdk.service.pipelines.DayOfWeekList` dataclass.
56+
* Changed `behavior` field for `databricks.sdk.service.serving.AiGatewayGuardrailPiiBehavior` to no longer be required.
57+
* Changed `behavior` field for `databricks.sdk.service.serving.AiGatewayGuardrailPiiBehavior` to no longer be required.
58+
* Changed `project_id` and `region` fields for `databricks.sdk.service.serving.GoogleCloudVertexAiConfig` to be required.
59+
* Changed `project_id` and `region` fields for `databricks.sdk.service.serving.GoogleCloudVertexAiConfig` to be required.
60+
* Changed `workload_type` field for `databricks.sdk.service.serving.ServedEntityInput` to type `databricks.sdk.service.serving.ServingModelWorkloadType` dataclass.
61+
* Changed `workload_type` field for `databricks.sdk.service.serving.ServedEntityOutput` to type `databricks.sdk.service.serving.ServingModelWorkloadType` dataclass.
62+
* Changed `workload_type` field for `databricks.sdk.service.serving.ServedModelOutput` to type `databricks.sdk.service.serving.ServingModelWorkloadType` dataclass.
63+
64+
OpenAPI SHA: 58905570a9928fc9ed31fba14a2edaf9a7c55b08, Date: 2025-01-20
65+
66+
## [Release] Release v0.40.0
67+
68+
### API Changes:
69+
70+
* Added [a.account_federation_policy](https://databricks-sdk-py.readthedocs.io/en/latest/account/account_federation_policy.html) account-level service and [a.service_principal_federation_policy](https://databricks-sdk-py.readthedocs.io/en/latest/account/service_principal_federation_policy.html) account-level service.
71+
* Added `is_single_node`, `kind` and `use_ml_runtime` fields for `databricks.sdk.service.compute.ClusterAttributes`.
72+
* Added `is_single_node`, `kind` and `use_ml_runtime` fields for `databricks.sdk.service.compute.ClusterDetails`.
73+
* Added `is_single_node`, `kind` and `use_ml_runtime` fields for `databricks.sdk.service.compute.ClusterSpec`.
74+
* Added `is_single_node`, `kind` and `use_ml_runtime` fields for `databricks.sdk.service.compute.CreateCluster`.
75+
* Added `is_single_node`, `kind` and `use_ml_runtime` fields for `databricks.sdk.service.compute.EditCluster`.
76+
* Added `is_single_node`, `kind` and `use_ml_runtime` fields for `databricks.sdk.service.compute.UpdateClusterResource`.
77+
* Added `update_parameter_syntax` field for `databricks.sdk.service.dashboards.MigrateDashboardRequest`.
78+
* Added `clean_rooms_notebook_task` field for `databricks.sdk.service.jobs.RunTask`.
79+
* Added `clean_rooms_notebook_task` field for `databricks.sdk.service.jobs.SubmitTask`.
80+
* Added `clean_rooms_notebook_task` field for `databricks.sdk.service.jobs.Task`.
81+
* Changed `days_of_week` field for `databricks.sdk.service.pipelines.RestartWindow` to type `databricks.sdk.service.pipelines.RestartWindowDaysOfWeekList` dataclass.
82+
83+
OpenAPI SHA: a6a317df8327c9b1e5cb59a03a42ffa2aabeef6d, Date: 2024-12-16
84+
85+
## [Release] Release v0.39.0
86+
87+
### Bug Fixes
88+
89+
* Update Changelog file ([#830](https://github.com/databricks/databricks-sdk-py/pull/830)).
90+
91+
92+
### Internal Changes
93+
94+
* Fix a couple of typos in open_ai_client.py ([#829](https://github.com/databricks/databricks-sdk-py/pull/829)).
95+
* Update SDK to OpenAPI spec ([#834](https://github.com/databricks/databricks-sdk-py/pull/834)).
96+
97+
98+
### API Changes:
99+
100+
* Added `databricks.sdk.service.cleanrooms` package.
101+
* Added `delete()` method for [w.aibi_dashboard_embedding_access_policy](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/settings/aibi_dashboard_embedding_access_policy.html) workspace-level service.
102+
* Added `delete()` method for [w.aibi_dashboard_embedding_approved_domains](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/settings/aibi_dashboard_embedding_approved_domains.html) workspace-level service.
103+
* Added `databricks_gcp_service_account` field for `databricks.sdk.service.catalog.CreateCredentialRequest`.
104+
* Added `databricks_gcp_service_account` field for `databricks.sdk.service.catalog.CredentialInfo`.
105+
* Added `gcp_options` field for `databricks.sdk.service.catalog.GenerateTemporaryServiceCredentialRequest`.
106+
* Added `databricks_gcp_service_account` field for `databricks.sdk.service.catalog.UpdateCredentialRequest`.
107+
* Added `cached_query_schema` field for `databricks.sdk.service.dashboards.QueryAttachment`.
108+
* Added .
109+
* Removed `gcp_service_account_key` field for `databricks.sdk.service.catalog.CreateCredentialRequest`.
110+
111+
OpenAPI SHA: 7016dcbf2e011459416cf408ce21143bcc4b3a25, Date: 2024-12-05
112+
3113
## [Release] Release v0.38.0
4114

5115
### New Features and Improvements

0 commit comments

Comments
 (0)