databricks-sdk 0.46.0__py3-none-any.whl → 0.47.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of databricks-sdk might be problematic. Click here for more details.
- databricks/sdk/oauth.py +5 -3
- databricks/sdk/service/catalog.py +2 -0
- databricks/sdk/service/compute.py +376 -181
- databricks/sdk/service/dashboards.py +2 -0
- databricks/sdk/service/iam.py +12 -29
- databricks/sdk/service/jobs.py +1 -0
- databricks/sdk/service/marketplace.py +2 -0
- databricks/sdk/service/ml.py +20 -45
- databricks/sdk/service/oauth2.py +12 -0
- databricks/sdk/service/pipelines.py +25 -28
- databricks/sdk/service/serving.py +193 -0
- databricks/sdk/service/sharing.py +71 -71
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.46.0.dist-info → databricks_sdk-0.47.0.dist-info}/METADATA +4 -3
- {databricks_sdk-0.46.0.dist-info → databricks_sdk-0.47.0.dist-info}/RECORD +19 -19
- {databricks_sdk-0.46.0.dist-info → databricks_sdk-0.47.0.dist-info}/WHEEL +1 -1
- {databricks_sdk-0.46.0.dist-info → databricks_sdk-0.47.0.dist-info/licenses}/LICENSE +0 -0
- {databricks_sdk-0.46.0.dist-info → databricks_sdk-0.47.0.dist-info/licenses}/NOTICE +0 -0
- {databricks_sdk-0.46.0.dist-info → databricks_sdk-0.47.0.dist-info}/top_level.txt +0 -0
databricks/sdk/oauth.py
CHANGED
|
@@ -629,7 +629,11 @@ class OAuthClient:
|
|
|
629
629
|
):
|
|
630
630
|
|
|
631
631
|
if not scopes:
|
|
632
|
-
|
|
632
|
+
# all-apis ensures that the returned OAuth token can be used with all APIs, aside
|
|
633
|
+
# from direct-to-dataplane APIs.
|
|
634
|
+
# offline_access ensures that the response from the Authorization server includes
|
|
635
|
+
# a refresh token.
|
|
636
|
+
scopes = ["all-apis", "offline_access"]
|
|
633
637
|
|
|
634
638
|
self.redirect_url = redirect_url
|
|
635
639
|
self._client_id = client_id
|
|
@@ -654,8 +658,6 @@ class OAuthClient:
|
|
|
654
658
|
return lambda: {}
|
|
655
659
|
|
|
656
660
|
config = Config(host=host, credentials_strategy=noop_credentials)
|
|
657
|
-
if not scopes:
|
|
658
|
-
scopes = ["all-apis"]
|
|
659
661
|
oidc = config.oidc_endpoints
|
|
660
662
|
if not oidc:
|
|
661
663
|
raise ValueError(f"{host} does not support OAuth")
|