databricks-sdk 0.53.0__py3-none-any.whl → 0.54.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 +31 -3
- databricks/sdk/errors/base.py +1 -30
- databricks/sdk/service/apps.py +58 -0
- databricks/sdk/service/catalog.py +1198 -181
- databricks/sdk/service/cleanrooms.py +116 -1
- databricks/sdk/service/compute.py +33 -68
- databricks/sdk/service/dashboards.py +7 -0
- databricks/sdk/service/iam.py +167 -103
- databricks/sdk/service/jobs.py +7 -6
- databricks/sdk/service/ml.py +1230 -55
- databricks/sdk/service/oauth2.py +17 -0
- databricks/sdk/service/pipelines.py +105 -0
- databricks/sdk/service/serving.py +314 -0
- databricks/sdk/service/settings.py +1284 -59
- databricks/sdk/service/sharing.py +388 -2
- databricks/sdk/service/sql.py +53 -84
- databricks/sdk/service/vectorsearch.py +0 -28
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.53.0.dist-info → databricks_sdk-0.54.0.dist-info}/METADATA +1 -1
- {databricks_sdk-0.53.0.dist-info → databricks_sdk-0.54.0.dist-info}/RECORD +24 -24
- {databricks_sdk-0.53.0.dist-info → databricks_sdk-0.54.0.dist-info}/WHEEL +1 -1
- {databricks_sdk-0.53.0.dist-info → databricks_sdk-0.54.0.dist-info}/licenses/LICENSE +0 -0
- {databricks_sdk-0.53.0.dist-info → databricks_sdk-0.54.0.dist-info}/licenses/NOTICE +0 -0
- {databricks_sdk-0.53.0.dist-info → databricks_sdk-0.54.0.dist-info}/top_level.txt +0 -0
databricks/sdk/__init__.py
CHANGED
|
@@ -23,6 +23,7 @@ from databricks.sdk.service.catalog import (AccountMetastoreAssignmentsAPI,
|
|
|
23
23
|
AccountStorageCredentialsAPI,
|
|
24
24
|
ArtifactAllowlistsAPI, CatalogsAPI,
|
|
25
25
|
ConnectionsAPI, CredentialsAPI,
|
|
26
|
+
DatabaseInstancesAPI,
|
|
26
27
|
ExternalLocationsAPI, FunctionsAPI,
|
|
27
28
|
GrantsAPI, MetastoresAPI,
|
|
28
29
|
ModelVersionsAPI, OnlineTablesAPI,
|
|
@@ -89,12 +90,15 @@ from databricks.sdk.service.settings import (
|
|
|
89
90
|
DisableLegacyDbfsAPI, DisableLegacyFeaturesAPI, EnableExportNotebookAPI,
|
|
90
91
|
EnableIpAccessListsAPI, EnableNotebookTableClipboardAPI,
|
|
91
92
|
EnableResultsDownloadingAPI, EnhancedSecurityMonitoringAPI,
|
|
92
|
-
EsmEnablementAccountAPI, IpAccessListsAPI,
|
|
93
|
-
|
|
93
|
+
EsmEnablementAccountAPI, IpAccessListsAPI,
|
|
94
|
+
LlmProxyPartnerPoweredAccountAPI, LlmProxyPartnerPoweredEnforceAPI,
|
|
95
|
+
LlmProxyPartnerPoweredWorkspaceAPI, NetworkConnectivityAPI,
|
|
96
|
+
NetworkPoliciesAPI, NotificationDestinationsAPI, PersonalComputeAPI,
|
|
94
97
|
RestrictWorkspaceAdminsAPI, SettingsAPI, TokenManagementAPI, TokensAPI,
|
|
95
|
-
WorkspaceConfAPI)
|
|
98
|
+
WorkspaceConfAPI, WorkspaceNetworkConfigurationAPI)
|
|
96
99
|
from databricks.sdk.service.sharing import (ProvidersAPI,
|
|
97
100
|
RecipientActivationAPI,
|
|
101
|
+
RecipientFederationPoliciesAPI,
|
|
98
102
|
RecipientsAPI, SharesAPI)
|
|
99
103
|
from databricks.sdk.service.sql import (AlertsAPI, AlertsLegacyAPI,
|
|
100
104
|
AlertsV2API, DashboardsAPI,
|
|
@@ -233,6 +237,7 @@ class WorkspaceClient:
|
|
|
233
237
|
self._dashboard_widgets = service.sql.DashboardWidgetsAPI(self._api_client)
|
|
234
238
|
self._dashboards = service.sql.DashboardsAPI(self._api_client)
|
|
235
239
|
self._data_sources = service.sql.DataSourcesAPI(self._api_client)
|
|
240
|
+
self._database_instances = service.catalog.DatabaseInstancesAPI(self._api_client)
|
|
236
241
|
self._dbfs = DbfsExt(self._api_client)
|
|
237
242
|
self._dbsql_permissions = service.sql.DbsqlPermissionsAPI(self._api_client)
|
|
238
243
|
self._experiments = service.ml.ExperimentsAPI(self._api_client)
|
|
@@ -282,6 +287,7 @@ class WorkspaceClient:
|
|
|
282
287
|
self._query_visualizations = service.sql.QueryVisualizationsAPI(self._api_client)
|
|
283
288
|
self._query_visualizations_legacy = service.sql.QueryVisualizationsLegacyAPI(self._api_client)
|
|
284
289
|
self._recipient_activation = service.sharing.RecipientActivationAPI(self._api_client)
|
|
290
|
+
self._recipient_federation_policies = service.sharing.RecipientFederationPoliciesAPI(self._api_client)
|
|
285
291
|
self._recipients = service.sharing.RecipientsAPI(self._api_client)
|
|
286
292
|
self._redash_config = service.sql.RedashConfigAPI(self._api_client)
|
|
287
293
|
self._registered_models = service.catalog.RegisteredModelsAPI(self._api_client)
|
|
@@ -459,6 +465,11 @@ class WorkspaceClient:
|
|
|
459
465
|
"""This API is provided to assist you in making new query objects."""
|
|
460
466
|
return self._data_sources
|
|
461
467
|
|
|
468
|
+
@property
|
|
469
|
+
def database_instances(self) -> service.catalog.DatabaseInstancesAPI:
|
|
470
|
+
"""Database Instances provide access to a database via REST API or direct SQL."""
|
|
471
|
+
return self._database_instances
|
|
472
|
+
|
|
462
473
|
@property
|
|
463
474
|
def dbfs(self) -> DbfsExt:
|
|
464
475
|
"""DBFS API makes it simple to interact with various data sources without having to include a users credentials every time to read a file."""
|
|
@@ -684,6 +695,11 @@ class WorkspaceClient:
|
|
|
684
695
|
"""The Recipient Activation API is only applicable in the open sharing model where the recipient object has the authentication type of `TOKEN`."""
|
|
685
696
|
return self._recipient_activation
|
|
686
697
|
|
|
698
|
+
@property
|
|
699
|
+
def recipient_federation_policies(self) -> service.sharing.RecipientFederationPoliciesAPI:
|
|
700
|
+
"""The Recipient Federation Policies APIs are only applicable in the open sharing model where the recipient object has the authentication type of `OIDC_RECIPIENT`, enabling data sharing from Databricks to non-Databricks recipients."""
|
|
701
|
+
return self._recipient_federation_policies
|
|
702
|
+
|
|
687
703
|
@property
|
|
688
704
|
def recipients(self) -> service.sharing.RecipientsAPI:
|
|
689
705
|
"""A recipient is an object you create using :method:recipients/create to represent an organization which you want to allow access shares."""
|
|
@@ -916,6 +932,7 @@ class AccountClient:
|
|
|
916
932
|
self._metastore_assignments = service.catalog.AccountMetastoreAssignmentsAPI(self._api_client)
|
|
917
933
|
self._metastores = service.catalog.AccountMetastoresAPI(self._api_client)
|
|
918
934
|
self._network_connectivity = service.settings.NetworkConnectivityAPI(self._api_client)
|
|
935
|
+
self._network_policies = service.settings.NetworkPoliciesAPI(self._api_client)
|
|
919
936
|
self._networks = service.provisioning.NetworksAPI(self._api_client)
|
|
920
937
|
self._o_auth_published_apps = service.oauth2.OAuthPublishedAppsAPI(self._api_client)
|
|
921
938
|
self._private_access = service.provisioning.PrivateAccessAPI(self._api_client)
|
|
@@ -930,6 +947,7 @@ class AccountClient:
|
|
|
930
947
|
self._users = service.iam.AccountUsersAPI(self._api_client)
|
|
931
948
|
self._vpc_endpoints = service.provisioning.VpcEndpointsAPI(self._api_client)
|
|
932
949
|
self._workspace_assignment = service.iam.WorkspaceAssignmentAPI(self._api_client)
|
|
950
|
+
self._workspace_network_configuration = service.settings.WorkspaceNetworkConfigurationAPI(self._api_client)
|
|
933
951
|
self._workspaces = service.provisioning.WorkspacesAPI(self._api_client)
|
|
934
952
|
self._budgets = service.billing.BudgetsAPI(self._api_client)
|
|
935
953
|
|
|
@@ -1006,6 +1024,11 @@ class AccountClient:
|
|
|
1006
1024
|
"""These APIs provide configurations for the network connectivity of your workspaces for serverless compute resources."""
|
|
1007
1025
|
return self._network_connectivity
|
|
1008
1026
|
|
|
1027
|
+
@property
|
|
1028
|
+
def network_policies(self) -> service.settings.NetworkPoliciesAPI:
|
|
1029
|
+
"""These APIs manage network policies for this account."""
|
|
1030
|
+
return self._network_policies
|
|
1031
|
+
|
|
1009
1032
|
@property
|
|
1010
1033
|
def networks(self) -> service.provisioning.NetworksAPI:
|
|
1011
1034
|
"""These APIs manage network configurations for customer-managed VPCs (optional)."""
|
|
@@ -1076,6 +1099,11 @@ class AccountClient:
|
|
|
1076
1099
|
"""The Workspace Permission Assignment API allows you to manage workspace permissions for principals in your account."""
|
|
1077
1100
|
return self._workspace_assignment
|
|
1078
1101
|
|
|
1102
|
+
@property
|
|
1103
|
+
def workspace_network_configuration(self) -> service.settings.WorkspaceNetworkConfigurationAPI:
|
|
1104
|
+
"""These APIs allow configuration of network settings for Databricks workspaces."""
|
|
1105
|
+
return self._workspace_network_configuration
|
|
1106
|
+
|
|
1079
1107
|
@property
|
|
1080
1108
|
def workspaces(self) -> service.provisioning.WorkspacesAPI:
|
|
1081
1109
|
"""These APIs manage workspaces for this account."""
|
databricks/sdk/errors/base.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import re
|
|
2
|
-
import warnings
|
|
3
2
|
from dataclasses import dataclass
|
|
4
3
|
from typing import Any, Dict, List, Optional
|
|
5
4
|
|
|
@@ -62,31 +61,6 @@ class DatabricksError(IOError):
|
|
|
62
61
|
:param details:
|
|
63
62
|
:param kwargs:
|
|
64
63
|
"""
|
|
65
|
-
# SCIM-specific parameters are deprecated.
|
|
66
|
-
if detail:
|
|
67
|
-
warnings.warn(
|
|
68
|
-
"The 'detail' parameter of DatabricksError is deprecated and will be removed in a future version."
|
|
69
|
-
)
|
|
70
|
-
if scimType:
|
|
71
|
-
warnings.warn(
|
|
72
|
-
"The 'scimType' parameter of DatabricksError is deprecated and will be removed in a future version."
|
|
73
|
-
)
|
|
74
|
-
if status:
|
|
75
|
-
warnings.warn(
|
|
76
|
-
"The 'status' parameter of DatabricksError is deprecated and will be removed in a future version."
|
|
77
|
-
)
|
|
78
|
-
|
|
79
|
-
# API 1.2-specific parameters are deprecated.
|
|
80
|
-
if error:
|
|
81
|
-
warnings.warn(
|
|
82
|
-
"The 'error' parameter of DatabricksError is deprecated and will be removed in a future version."
|
|
83
|
-
)
|
|
84
|
-
|
|
85
|
-
# Retry-after is deprecated.
|
|
86
|
-
if retry_after_secs:
|
|
87
|
-
warnings.warn(
|
|
88
|
-
"The 'retry_after_secs' parameter of DatabricksError is deprecated and will be removed in a future version."
|
|
89
|
-
)
|
|
90
64
|
|
|
91
65
|
if detail:
|
|
92
66
|
# Handle SCIM error message details
|
|
@@ -114,12 +88,9 @@ class DatabricksError(IOError):
|
|
|
114
88
|
self.details.append(ErrorDetail.from_dict(d))
|
|
115
89
|
|
|
116
90
|
def get_error_info(self) -> List[ErrorDetail]:
|
|
117
|
-
return self._get_details_by_type(errdetails._ERROR_INFO_TYPE)
|
|
118
|
-
|
|
119
|
-
def _get_details_by_type(self, error_type) -> List[ErrorDetail]:
|
|
120
91
|
if self.details is None:
|
|
121
92
|
return []
|
|
122
|
-
return [detail for detail in self.details if detail.type ==
|
|
93
|
+
return [detail for detail in self.details if detail.type == errdetails._ERROR_INFO_TYPE]
|
|
123
94
|
|
|
124
95
|
def get_error_details(self) -> errdetails.ErrorDetails:
|
|
125
96
|
return self._error_details
|
databricks/sdk/service/apps.py
CHANGED
|
@@ -655,6 +655,8 @@ class AppResource:
|
|
|
655
655
|
|
|
656
656
|
sql_warehouse: Optional[AppResourceSqlWarehouse] = None
|
|
657
657
|
|
|
658
|
+
uc_securable: Optional[AppResourceUcSecurable] = None
|
|
659
|
+
|
|
658
660
|
def as_dict(self) -> dict:
|
|
659
661
|
"""Serializes the AppResource into a dictionary suitable for use as a JSON request body."""
|
|
660
662
|
body = {}
|
|
@@ -670,6 +672,8 @@ class AppResource:
|
|
|
670
672
|
body["serving_endpoint"] = self.serving_endpoint.as_dict()
|
|
671
673
|
if self.sql_warehouse:
|
|
672
674
|
body["sql_warehouse"] = self.sql_warehouse.as_dict()
|
|
675
|
+
if self.uc_securable:
|
|
676
|
+
body["uc_securable"] = self.uc_securable.as_dict()
|
|
673
677
|
return body
|
|
674
678
|
|
|
675
679
|
def as_shallow_dict(self) -> dict:
|
|
@@ -687,6 +691,8 @@ class AppResource:
|
|
|
687
691
|
body["serving_endpoint"] = self.serving_endpoint
|
|
688
692
|
if self.sql_warehouse:
|
|
689
693
|
body["sql_warehouse"] = self.sql_warehouse
|
|
694
|
+
if self.uc_securable:
|
|
695
|
+
body["uc_securable"] = self.uc_securable
|
|
690
696
|
return body
|
|
691
697
|
|
|
692
698
|
@classmethod
|
|
@@ -699,6 +705,7 @@ class AppResource:
|
|
|
699
705
|
secret=_from_dict(d, "secret", AppResourceSecret),
|
|
700
706
|
serving_endpoint=_from_dict(d, "serving_endpoint", AppResourceServingEndpoint),
|
|
701
707
|
sql_warehouse=_from_dict(d, "sql_warehouse", AppResourceSqlWarehouse),
|
|
708
|
+
uc_securable=_from_dict(d, "uc_securable", AppResourceUcSecurable),
|
|
702
709
|
)
|
|
703
710
|
|
|
704
711
|
|
|
@@ -880,6 +887,57 @@ class AppResourceSqlWarehouseSqlWarehousePermission(Enum):
|
|
|
880
887
|
IS_OWNER = "IS_OWNER"
|
|
881
888
|
|
|
882
889
|
|
|
890
|
+
@dataclass
|
|
891
|
+
class AppResourceUcSecurable:
|
|
892
|
+
securable_full_name: str
|
|
893
|
+
|
|
894
|
+
securable_type: AppResourceUcSecurableUcSecurableType
|
|
895
|
+
|
|
896
|
+
permission: AppResourceUcSecurableUcSecurablePermission
|
|
897
|
+
|
|
898
|
+
def as_dict(self) -> dict:
|
|
899
|
+
"""Serializes the AppResourceUcSecurable into a dictionary suitable for use as a JSON request body."""
|
|
900
|
+
body = {}
|
|
901
|
+
if self.permission is not None:
|
|
902
|
+
body["permission"] = self.permission.value
|
|
903
|
+
if self.securable_full_name is not None:
|
|
904
|
+
body["securable_full_name"] = self.securable_full_name
|
|
905
|
+
if self.securable_type is not None:
|
|
906
|
+
body["securable_type"] = self.securable_type.value
|
|
907
|
+
return body
|
|
908
|
+
|
|
909
|
+
def as_shallow_dict(self) -> dict:
|
|
910
|
+
"""Serializes the AppResourceUcSecurable into a shallow dictionary of its immediate attributes."""
|
|
911
|
+
body = {}
|
|
912
|
+
if self.permission is not None:
|
|
913
|
+
body["permission"] = self.permission
|
|
914
|
+
if self.securable_full_name is not None:
|
|
915
|
+
body["securable_full_name"] = self.securable_full_name
|
|
916
|
+
if self.securable_type is not None:
|
|
917
|
+
body["securable_type"] = self.securable_type
|
|
918
|
+
return body
|
|
919
|
+
|
|
920
|
+
@classmethod
|
|
921
|
+
def from_dict(cls, d: Dict[str, Any]) -> AppResourceUcSecurable:
|
|
922
|
+
"""Deserializes the AppResourceUcSecurable from a dictionary."""
|
|
923
|
+
return cls(
|
|
924
|
+
permission=_enum(d, "permission", AppResourceUcSecurableUcSecurablePermission),
|
|
925
|
+
securable_full_name=d.get("securable_full_name", None),
|
|
926
|
+
securable_type=_enum(d, "securable_type", AppResourceUcSecurableUcSecurableType),
|
|
927
|
+
)
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
class AppResourceUcSecurableUcSecurablePermission(Enum):
|
|
931
|
+
|
|
932
|
+
READ_VOLUME = "READ_VOLUME"
|
|
933
|
+
WRITE_VOLUME = "WRITE_VOLUME"
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
class AppResourceUcSecurableUcSecurableType(Enum):
|
|
937
|
+
|
|
938
|
+
VOLUME = "VOLUME"
|
|
939
|
+
|
|
940
|
+
|
|
883
941
|
class ApplicationState(Enum):
|
|
884
942
|
|
|
885
943
|
CRASHED = "CRASHED"
|