databricks-sdk 0.56.0__py3-none-any.whl → 0.58.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 +38 -11
- databricks/sdk/service/aibuilder.py +122 -17
- databricks/sdk/service/apps.py +15 -45
- databricks/sdk/service/billing.py +70 -74
- databricks/sdk/service/catalog.py +1898 -557
- databricks/sdk/service/cleanrooms.py +14 -55
- databricks/sdk/service/compute.py +305 -508
- databricks/sdk/service/dashboards.py +148 -223
- databricks/sdk/service/database.py +657 -127
- databricks/sdk/service/files.py +18 -54
- databricks/sdk/service/iam.py +55 -165
- databricks/sdk/service/jobs.py +238 -214
- databricks/sdk/service/marketplace.py +47 -146
- databricks/sdk/service/ml.py +1137 -447
- databricks/sdk/service/oauth2.py +17 -46
- databricks/sdk/service/pipelines.py +93 -69
- databricks/sdk/service/provisioning.py +34 -212
- databricks/sdk/service/qualitymonitorv2.py +5 -33
- databricks/sdk/service/serving.py +69 -55
- databricks/sdk/service/settings.py +106 -434
- databricks/sdk/service/sharing.py +33 -95
- databricks/sdk/service/sql.py +164 -254
- databricks/sdk/service/vectorsearch.py +13 -62
- databricks/sdk/service/workspace.py +36 -110
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.58.0.dist-info}/METADATA +1 -1
- {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.58.0.dist-info}/RECORD +31 -31
- {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.58.0.dist-info}/WHEEL +0 -0
- {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.58.0.dist-info}/licenses/LICENSE +0 -0
- {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.58.0.dist-info}/licenses/NOTICE +0 -0
- {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.58.0.dist-info}/top_level.txt +0 -0
|
@@ -851,7 +851,6 @@ class CleanRoomRemoteDetail:
|
|
|
851
851
|
2. Its invite_recipient_email is empty."""
|
|
852
852
|
|
|
853
853
|
compliance_security_profile: Optional[ComplianceSecurityProfile] = None
|
|
854
|
-
"""The compliance security profile used to process regulated data following compliance standards."""
|
|
855
854
|
|
|
856
855
|
creator: Optional[CleanRoomCollaborator] = None
|
|
857
856
|
"""Collaborator who creates the clean room."""
|
|
@@ -1063,24 +1062,6 @@ class DeleteCleanRoomAssetResponse:
|
|
|
1063
1062
|
return cls()
|
|
1064
1063
|
|
|
1065
1064
|
|
|
1066
|
-
@dataclass
|
|
1067
|
-
class DeleteResponse:
|
|
1068
|
-
def as_dict(self) -> dict:
|
|
1069
|
-
"""Serializes the DeleteResponse into a dictionary suitable for use as a JSON request body."""
|
|
1070
|
-
body = {}
|
|
1071
|
-
return body
|
|
1072
|
-
|
|
1073
|
-
def as_shallow_dict(self) -> dict:
|
|
1074
|
-
"""Serializes the DeleteResponse into a shallow dictionary of its immediate attributes."""
|
|
1075
|
-
body = {}
|
|
1076
|
-
return body
|
|
1077
|
-
|
|
1078
|
-
@classmethod
|
|
1079
|
-
def from_dict(cls, d: Dict[str, Any]) -> DeleteResponse:
|
|
1080
|
-
"""Deserializes the DeleteResponse from a dictionary."""
|
|
1081
|
-
return cls()
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
1065
|
@dataclass
|
|
1085
1066
|
class ListCleanRoomAssetsResponse:
|
|
1086
1067
|
assets: Optional[List[CleanRoomAsset]] = None
|
|
@@ -1222,9 +1203,7 @@ class CleanRoomAssetsAPI:
|
|
|
1222
1203
|
self._api = api_client
|
|
1223
1204
|
|
|
1224
1205
|
def create(self, clean_room_name: str, asset: CleanRoomAsset) -> CleanRoomAsset:
|
|
1225
|
-
"""Create an asset.
|
|
1226
|
-
|
|
1227
|
-
Create a clean room asset —share an asset like a notebook or table into the clean room. For each UC
|
|
1206
|
+
"""Create a clean room asset —share an asset like a notebook or table into the clean room. For each UC
|
|
1228
1207
|
asset that is added through this method, the clean room owner must also have enough privilege on the
|
|
1229
1208
|
asset to consume it. The privilege must be maintained indefinitely for the clean room to be able to
|
|
1230
1209
|
access the asset. Typically, you should use a group as the clean room owner.
|
|
@@ -1232,7 +1211,6 @@ class CleanRoomAssetsAPI:
|
|
|
1232
1211
|
:param clean_room_name: str
|
|
1233
1212
|
Name of the clean room.
|
|
1234
1213
|
:param asset: :class:`CleanRoomAsset`
|
|
1235
|
-
Metadata of the clean room asset
|
|
1236
1214
|
|
|
1237
1215
|
:returns: :class:`CleanRoomAsset`
|
|
1238
1216
|
"""
|
|
@@ -1246,9 +1224,7 @@ class CleanRoomAssetsAPI:
|
|
|
1246
1224
|
return CleanRoomAsset.from_dict(res)
|
|
1247
1225
|
|
|
1248
1226
|
def delete(self, clean_room_name: str, asset_type: CleanRoomAssetAssetType, name: str):
|
|
1249
|
-
"""Delete
|
|
1250
|
-
|
|
1251
|
-
Delete a clean room asset - unshare/remove the asset from the clean room
|
|
1227
|
+
"""Delete a clean room asset - unshare/remove the asset from the clean room
|
|
1252
1228
|
|
|
1253
1229
|
:param clean_room_name: str
|
|
1254
1230
|
Name of the clean room.
|
|
@@ -1269,9 +1245,7 @@ class CleanRoomAssetsAPI:
|
|
|
1269
1245
|
)
|
|
1270
1246
|
|
|
1271
1247
|
def get(self, clean_room_name: str, asset_type: CleanRoomAssetAssetType, name: str) -> CleanRoomAsset:
|
|
1272
|
-
"""Get
|
|
1273
|
-
|
|
1274
|
-
Get the details of a clean room asset by its type and full name.
|
|
1248
|
+
"""Get the details of a clean room asset by its type and full name.
|
|
1275
1249
|
|
|
1276
1250
|
:param clean_room_name: str
|
|
1277
1251
|
Name of the clean room.
|
|
@@ -1322,9 +1296,7 @@ class CleanRoomAssetsAPI:
|
|
|
1322
1296
|
def update(
|
|
1323
1297
|
self, clean_room_name: str, asset_type: CleanRoomAssetAssetType, name: str, asset: CleanRoomAsset
|
|
1324
1298
|
) -> CleanRoomAsset:
|
|
1325
|
-
"""Update
|
|
1326
|
-
|
|
1327
|
-
Update a clean room asset. For example, updating the content of a notebook; changing the shared
|
|
1299
|
+
"""Update a clean room asset. For example, updating the content of a notebook; changing the shared
|
|
1328
1300
|
partitions of a table; etc.
|
|
1329
1301
|
|
|
1330
1302
|
:param clean_room_name: str
|
|
@@ -1340,7 +1312,8 @@ class CleanRoomAssetsAPI:
|
|
|
1340
1312
|
|
|
1341
1313
|
For notebooks, the name is the notebook file name.
|
|
1342
1314
|
:param asset: :class:`CleanRoomAsset`
|
|
1343
|
-
|
|
1315
|
+
The asset to update. The asset's `name` and `asset_type` fields are used to identify the asset to
|
|
1316
|
+
update.
|
|
1344
1317
|
|
|
1345
1318
|
:returns: :class:`CleanRoomAsset`
|
|
1346
1319
|
"""
|
|
@@ -1373,9 +1346,7 @@ class CleanRoomTaskRunsAPI:
|
|
|
1373
1346
|
page_size: Optional[int] = None,
|
|
1374
1347
|
page_token: Optional[str] = None,
|
|
1375
1348
|
) -> Iterator[CleanRoomNotebookTaskRun]:
|
|
1376
|
-
"""List notebook task runs.
|
|
1377
|
-
|
|
1378
|
-
List all the historical notebook task runs in a clean room.
|
|
1349
|
+
"""List all the historical notebook task runs in a clean room.
|
|
1379
1350
|
|
|
1380
1351
|
:param clean_room_name: str
|
|
1381
1352
|
Name of the clean room.
|
|
@@ -1413,15 +1384,13 @@ class CleanRoomTaskRunsAPI:
|
|
|
1413
1384
|
class CleanRoomsAPI:
|
|
1414
1385
|
"""A clean room uses Delta Sharing and serverless compute to provide a secure and privacy-protecting
|
|
1415
1386
|
environment where multiple parties can work together on sensitive enterprise data without direct access to
|
|
1416
|
-
each other
|
|
1387
|
+
each other's data."""
|
|
1417
1388
|
|
|
1418
1389
|
def __init__(self, api_client):
|
|
1419
1390
|
self._api = api_client
|
|
1420
1391
|
|
|
1421
1392
|
def create(self, clean_room: CleanRoom) -> CleanRoom:
|
|
1422
|
-
"""Create a clean room.
|
|
1423
|
-
|
|
1424
|
-
Create a new clean room with the specified collaborators. This method is asynchronous; the returned
|
|
1393
|
+
"""Create a new clean room with the specified collaborators. This method is asynchronous; the returned
|
|
1425
1394
|
name field inside the clean_room field can be used to poll the clean room status, using the
|
|
1426
1395
|
:method:cleanrooms/get method. When this method returns, the clean room will be in a PROVISIONING
|
|
1427
1396
|
state, with only name, owner, comment, created_at and status populated. The clean room will be usable
|
|
@@ -1445,9 +1414,7 @@ class CleanRoomsAPI:
|
|
|
1445
1414
|
def create_output_catalog(
|
|
1446
1415
|
self, clean_room_name: str, output_catalog: CleanRoomOutputCatalog
|
|
1447
1416
|
) -> CreateCleanRoomOutputCatalogResponse:
|
|
1448
|
-
"""Create
|
|
1449
|
-
|
|
1450
|
-
Create the output catalog of the clean room.
|
|
1417
|
+
"""Create the output catalog of the clean room.
|
|
1451
1418
|
|
|
1452
1419
|
:param clean_room_name: str
|
|
1453
1420
|
Name of the clean room.
|
|
@@ -1467,9 +1434,7 @@ class CleanRoomsAPI:
|
|
|
1467
1434
|
return CreateCleanRoomOutputCatalogResponse.from_dict(res)
|
|
1468
1435
|
|
|
1469
1436
|
def delete(self, name: str):
|
|
1470
|
-
"""Delete a clean room.
|
|
1471
|
-
|
|
1472
|
-
Delete a clean room. After deletion, the clean room will be removed from the metastore. If the other
|
|
1437
|
+
"""Delete a clean room. After deletion, the clean room will be removed from the metastore. If the other
|
|
1473
1438
|
collaborators have not deleted the clean room, they will still have the clean room in their metastore,
|
|
1474
1439
|
but it will be in a DELETED state and no operations other than deletion can be performed on it.
|
|
1475
1440
|
|
|
@@ -1486,9 +1451,7 @@ class CleanRoomsAPI:
|
|
|
1486
1451
|
self._api.do("DELETE", f"/api/2.0/clean-rooms/{name}", headers=headers)
|
|
1487
1452
|
|
|
1488
1453
|
def get(self, name: str) -> CleanRoom:
|
|
1489
|
-
"""Get a clean room.
|
|
1490
|
-
|
|
1491
|
-
Get the details of a clean room given its name.
|
|
1454
|
+
"""Get the details of a clean room given its name.
|
|
1492
1455
|
|
|
1493
1456
|
:param name: str
|
|
1494
1457
|
|
|
@@ -1503,9 +1466,7 @@ class CleanRoomsAPI:
|
|
|
1503
1466
|
return CleanRoom.from_dict(res)
|
|
1504
1467
|
|
|
1505
1468
|
def list(self, *, page_size: Optional[int] = None, page_token: Optional[str] = None) -> Iterator[CleanRoom]:
|
|
1506
|
-
"""
|
|
1507
|
-
|
|
1508
|
-
Get a list of all clean rooms of the metastore. Only clean rooms the caller has access to are
|
|
1469
|
+
"""Get a list of all clean rooms of the metastore. Only clean rooms the caller has access to are
|
|
1509
1470
|
returned.
|
|
1510
1471
|
|
|
1511
1472
|
:param page_size: int (optional)
|
|
@@ -1535,9 +1496,7 @@ class CleanRoomsAPI:
|
|
|
1535
1496
|
query["page_token"] = json["next_page_token"]
|
|
1536
1497
|
|
|
1537
1498
|
def update(self, name: str, *, clean_room: Optional[CleanRoom] = None) -> CleanRoom:
|
|
1538
|
-
"""Update a clean room.
|
|
1539
|
-
|
|
1540
|
-
Update a clean room. The caller must be the owner of the clean room, have **MODIFY_CLEAN_ROOM**
|
|
1499
|
+
"""Update a clean room. The caller must be the owner of the clean room, have **MODIFY_CLEAN_ROOM**
|
|
1541
1500
|
privilege, or be metastore admin.
|
|
1542
1501
|
|
|
1543
1502
|
When the caller is a metastore admin, only the __owner__ field can be updated.
|