databricks-sdk 0.61.0__py3-none-any.whl → 0.63.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/__init__.py +15 -2
- databricks/sdk/config.py +15 -2
- databricks/sdk/service/catalog.py +791 -22
- databricks/sdk/service/cleanrooms.py +21 -14
- databricks/sdk/service/compute.py +14 -0
- databricks/sdk/service/dashboards.py +8 -0
- databricks/sdk/service/database.py +214 -3
- databricks/sdk/service/jobs.py +104 -1
- databricks/sdk/service/ml.py +3 -4
- databricks/sdk/service/serving.py +102 -14
- databricks/sdk/service/settings.py +36 -1
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.61.0.dist-info → databricks_sdk-0.63.0.dist-info}/METADATA +1 -1
- {databricks_sdk-0.61.0.dist-info → databricks_sdk-0.63.0.dist-info}/RECORD +18 -18
- {databricks_sdk-0.61.0.dist-info → databricks_sdk-0.63.0.dist-info}/WHEEL +0 -0
- {databricks_sdk-0.61.0.dist-info → databricks_sdk-0.63.0.dist-info}/licenses/LICENSE +0 -0
- {databricks_sdk-0.61.0.dist-info → databricks_sdk-0.63.0.dist-info}/licenses/NOTICE +0 -0
- {databricks_sdk-0.61.0.dist-info → databricks_sdk-0.63.0.dist-info}/top_level.txt +0 -0
databricks/sdk/__init__.py
CHANGED
|
@@ -51,12 +51,13 @@ from databricks.sdk.service.catalog import (AccountMetastoreAssignmentsAPI,
|
|
|
51
51
|
ExternalMetadataAPI, FunctionsAPI,
|
|
52
52
|
GrantsAPI, MetastoresAPI,
|
|
53
53
|
ModelVersionsAPI, OnlineTablesAPI,
|
|
54
|
-
QualityMonitorsAPI,
|
|
54
|
+
PoliciesAPI, QualityMonitorsAPI,
|
|
55
55
|
RegisteredModelsAPI,
|
|
56
56
|
ResourceQuotasAPI, SchemasAPI,
|
|
57
57
|
StorageCredentialsAPI,
|
|
58
58
|
SystemSchemasAPI,
|
|
59
59
|
TableConstraintsAPI, TablesAPI,
|
|
60
|
+
TemporaryPathCredentialsAPI,
|
|
60
61
|
TemporaryTableCredentialsAPI,
|
|
61
62
|
VolumesAPI, WorkspaceBindingsAPI)
|
|
62
63
|
from databricks.sdk.service.cleanrooms import (CleanRoomAssetRevisionsAPI,
|
|
@@ -300,6 +301,7 @@ class WorkspaceClient:
|
|
|
300
301
|
self._permission_migration = pkg_iam.PermissionMigrationAPI(self._api_client)
|
|
301
302
|
self._permissions = pkg_iam.PermissionsAPI(self._api_client)
|
|
302
303
|
self._pipelines = pkg_pipelines.PipelinesAPI(self._api_client)
|
|
304
|
+
self._policies = pkg_catalog.PoliciesAPI(self._api_client)
|
|
303
305
|
self._policy_compliance_for_clusters = pkg_compute.PolicyComplianceForClustersAPI(self._api_client)
|
|
304
306
|
self._policy_compliance_for_jobs = pkg_jobs.PolicyComplianceForJobsAPI(self._api_client)
|
|
305
307
|
self._policy_families = pkg_compute.PolicyFamiliesAPI(self._api_client)
|
|
@@ -345,6 +347,7 @@ class WorkspaceClient:
|
|
|
345
347
|
self._system_schemas = pkg_catalog.SystemSchemasAPI(self._api_client)
|
|
346
348
|
self._table_constraints = pkg_catalog.TableConstraintsAPI(self._api_client)
|
|
347
349
|
self._tables = pkg_catalog.TablesAPI(self._api_client)
|
|
350
|
+
self._temporary_path_credentials = pkg_catalog.TemporaryPathCredentialsAPI(self._api_client)
|
|
348
351
|
self._temporary_table_credentials = pkg_catalog.TemporaryTableCredentialsAPI(self._api_client)
|
|
349
352
|
self._token_management = pkg_settings.TokenManagementAPI(self._api_client)
|
|
350
353
|
self._tokens = pkg_settings.TokensAPI(self._api_client)
|
|
@@ -670,6 +673,11 @@ class WorkspaceClient:
|
|
|
670
673
|
"""The Delta Live Tables API allows you to create, edit, delete, start, and view details about pipelines."""
|
|
671
674
|
return self._pipelines
|
|
672
675
|
|
|
676
|
+
@property
|
|
677
|
+
def policies(self) -> pkg_catalog.PoliciesAPI:
|
|
678
|
+
"""Attribute-Based Access Control (ABAC) provides high leverage governance for enforcing compliance policies in Unity Catalog."""
|
|
679
|
+
return self._policies
|
|
680
|
+
|
|
673
681
|
@property
|
|
674
682
|
def policy_compliance_for_clusters(self) -> pkg_compute.PolicyComplianceForClustersAPI:
|
|
675
683
|
"""The policy compliance APIs allow you to view and manage the policy compliance status of clusters in your workspace."""
|
|
@@ -860,9 +868,14 @@ class WorkspaceClient:
|
|
|
860
868
|
"""A table resides in the third layer of Unity Catalog’s three-level namespace."""
|
|
861
869
|
return self._tables
|
|
862
870
|
|
|
871
|
+
@property
|
|
872
|
+
def temporary_path_credentials(self) -> pkg_catalog.TemporaryPathCredentialsAPI:
|
|
873
|
+
"""Temporary Path Credentials refer to short-lived, downscoped credentials used to access external cloud storage locations registered in Databricks."""
|
|
874
|
+
return self._temporary_path_credentials
|
|
875
|
+
|
|
863
876
|
@property
|
|
864
877
|
def temporary_table_credentials(self) -> pkg_catalog.TemporaryTableCredentialsAPI:
|
|
865
|
-
"""Temporary Table Credentials refer to short-lived, downscoped credentials used to access cloud storage
|
|
878
|
+
"""Temporary Table Credentials refer to short-lived, downscoped credentials used to access cloud storage locations where table data is stored in Databricks."""
|
|
866
879
|
return self._temporary_table_credentials
|
|
867
880
|
|
|
868
881
|
@property
|
databricks/sdk/config.py
CHANGED
|
@@ -13,7 +13,8 @@ import requests
|
|
|
13
13
|
from . import useragent
|
|
14
14
|
from ._base_client import _fix_host_if_needed
|
|
15
15
|
from .clock import Clock, RealClock
|
|
16
|
-
from .credentials_provider import CredentialsStrategy, DefaultCredentials
|
|
16
|
+
from .credentials_provider import (CredentialsStrategy, DefaultCredentials,
|
|
17
|
+
OAuthCredentialsProvider)
|
|
17
18
|
from .environments import (ALL_ENVS, AzureEnvironment, Cloud,
|
|
18
19
|
DatabricksEnvironment, get_environment_for_hostname)
|
|
19
20
|
from .oauth import (OidcEndpoints, Token, get_account_endpoints,
|
|
@@ -200,7 +201,19 @@ class Config:
|
|
|
200
201
|
raise ValueError(message) from e
|
|
201
202
|
|
|
202
203
|
def oauth_token(self) -> Token:
|
|
203
|
-
|
|
204
|
+
"""Returns the OAuth token from the current credential provider.
|
|
205
|
+
|
|
206
|
+
This method only works when using OAuth-based authentication methods.
|
|
207
|
+
If the current credential provider is an OAuthCredentialsProvider, it reuses
|
|
208
|
+
the existing provider. Otherwise, it raises a ValueError indicating that
|
|
209
|
+
OAuth tokens are not available for the current authentication method.
|
|
210
|
+
"""
|
|
211
|
+
if isinstance(self._header_factory, OAuthCredentialsProvider):
|
|
212
|
+
return self._header_factory.oauth_token()
|
|
213
|
+
raise ValueError(
|
|
214
|
+
f"OAuth tokens are not available for {self.auth_type} authentication. "
|
|
215
|
+
f"Use an OAuth-based authentication method to access OAuth tokens."
|
|
216
|
+
)
|
|
204
217
|
|
|
205
218
|
def wrap_debug_info(self, message: str) -> str:
|
|
206
219
|
debug_string = self.debug_string()
|