databricks-sdk 0.55.0__py3-none-any.whl → 0.57.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.

Files changed (31) hide show
  1. databricks/sdk/__init__.py +41 -24
  2. databricks/sdk/service/aibuilder.py +505 -0
  3. databricks/sdk/service/apps.py +14 -42
  4. databricks/sdk/service/billing.py +167 -220
  5. databricks/sdk/service/catalog.py +462 -1235
  6. databricks/sdk/service/cleanrooms.py +26 -43
  7. databricks/sdk/service/compute.py +75 -211
  8. databricks/sdk/service/dashboards.py +77 -511
  9. databricks/sdk/service/database.py +1271 -0
  10. databricks/sdk/service/files.py +20 -54
  11. databricks/sdk/service/iam.py +61 -171
  12. databricks/sdk/service/jobs.py +453 -68
  13. databricks/sdk/service/marketplace.py +46 -146
  14. databricks/sdk/service/ml.py +453 -477
  15. databricks/sdk/service/oauth2.py +17 -45
  16. databricks/sdk/service/pipelines.py +125 -40
  17. databricks/sdk/service/provisioning.py +30 -93
  18. databricks/sdk/service/qualitymonitorv2.py +265 -0
  19. databricks/sdk/service/serving.py +106 -46
  20. databricks/sdk/service/settings.py +1062 -390
  21. databricks/sdk/service/sharing.py +33 -88
  22. databricks/sdk/service/sql.py +292 -185
  23. databricks/sdk/service/vectorsearch.py +13 -43
  24. databricks/sdk/service/workspace.py +35 -105
  25. databricks/sdk/version.py +1 -1
  26. {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/METADATA +1 -1
  27. {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/RECORD +31 -28
  28. {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/WHEEL +0 -0
  29. {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/licenses/LICENSE +0 -0
  30. {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/licenses/NOTICE +0 -0
  31. {databricks_sdk-0.55.0.dist-info → databricks_sdk-0.57.0.dist-info}/top_level.txt +0 -0
@@ -138,6 +138,10 @@ class CleanRoomAsset:
138
138
  asset_type: Optional[CleanRoomAssetAssetType] = None
139
139
  """The type of the asset."""
140
140
 
141
+ clean_room_name: Optional[str] = None
142
+ """The name of the clean room this asset belongs to. This is an output-only field to ensure proper
143
+ resource identification."""
144
+
141
145
  foreign_table: Optional[CleanRoomAssetForeignTable] = None
142
146
  """Foreign table details available to all collaborators of the clean room. Present if and only if
143
147
  **asset_type** is **FOREIGN_TABLE**"""
@@ -192,6 +196,8 @@ class CleanRoomAsset:
192
196
  body["added_at"] = self.added_at
193
197
  if self.asset_type is not None:
194
198
  body["asset_type"] = self.asset_type.value
199
+ if self.clean_room_name is not None:
200
+ body["clean_room_name"] = self.clean_room_name
195
201
  if self.foreign_table:
196
202
  body["foreign_table"] = self.foreign_table.as_dict()
197
203
  if self.foreign_table_local_details:
@@ -223,6 +229,8 @@ class CleanRoomAsset:
223
229
  body["added_at"] = self.added_at
224
230
  if self.asset_type is not None:
225
231
  body["asset_type"] = self.asset_type
232
+ if self.clean_room_name is not None:
233
+ body["clean_room_name"] = self.clean_room_name
226
234
  if self.foreign_table:
227
235
  body["foreign_table"] = self.foreign_table
228
236
  if self.foreign_table_local_details:
@@ -253,6 +261,7 @@ class CleanRoomAsset:
253
261
  return cls(
254
262
  added_at=d.get("added_at", None),
255
263
  asset_type=_enum(d, "asset_type", CleanRoomAssetAssetType),
264
+ clean_room_name=d.get("clean_room_name", None),
256
265
  foreign_table=_from_dict(d, "foreign_table", CleanRoomAssetForeignTable),
257
266
  foreign_table_local_details=_from_dict(
258
267
  d, "foreign_table_local_details", CleanRoomAssetForeignTableLocalDetails
@@ -1213,9 +1222,7 @@ class CleanRoomAssetsAPI:
1213
1222
  self._api = api_client
1214
1223
 
1215
1224
  def create(self, clean_room_name: str, asset: CleanRoomAsset) -> CleanRoomAsset:
1216
- """Create an asset.
1217
-
1218
- Create a clean room asset —share an asset like a notebook or table into the clean room. For each UC
1225
+ """Create a clean room asset —share an asset like a notebook or table into the clean room. For each UC
1219
1226
  asset that is added through this method, the clean room owner must also have enough privilege on the
1220
1227
  asset to consume it. The privilege must be maintained indefinitely for the clean room to be able to
1221
1228
  access the asset. Typically, you should use a group as the clean room owner.
@@ -1236,16 +1243,14 @@ class CleanRoomAssetsAPI:
1236
1243
  res = self._api.do("POST", f"/api/2.0/clean-rooms/{clean_room_name}/assets", body=body, headers=headers)
1237
1244
  return CleanRoomAsset.from_dict(res)
1238
1245
 
1239
- def delete(self, clean_room_name: str, asset_type: CleanRoomAssetAssetType, asset_full_name: str):
1240
- """Delete an asset.
1241
-
1242
- Delete a clean room asset - unshare/remove the asset from the clean room
1246
+ def delete(self, clean_room_name: str, asset_type: CleanRoomAssetAssetType, name: str):
1247
+ """Delete a clean room asset - unshare/remove the asset from the clean room
1243
1248
 
1244
1249
  :param clean_room_name: str
1245
1250
  Name of the clean room.
1246
1251
  :param asset_type: :class:`CleanRoomAssetAssetType`
1247
1252
  The type of the asset.
1248
- :param asset_full_name: str
1253
+ :param name: str
1249
1254
  The fully qualified name of the asset, it is same as the name field in CleanRoomAsset.
1250
1255
 
1251
1256
 
@@ -1256,21 +1261,17 @@ class CleanRoomAssetsAPI:
1256
1261
  }
1257
1262
 
1258
1263
  self._api.do(
1259
- "DELETE",
1260
- f"/api/2.0/clean-rooms/{clean_room_name}/assets/{asset_type.value}/{asset_full_name}",
1261
- headers=headers,
1264
+ "DELETE", f"/api/2.0/clean-rooms/{clean_room_name}/assets/{asset_type.value}/{name}", headers=headers
1262
1265
  )
1263
1266
 
1264
- def get(self, clean_room_name: str, asset_type: CleanRoomAssetAssetType, asset_full_name: str) -> CleanRoomAsset:
1265
- """Get an asset.
1266
-
1267
- Get the details of a clean room asset by its type and full name.
1267
+ def get(self, clean_room_name: str, asset_type: CleanRoomAssetAssetType, name: str) -> CleanRoomAsset:
1268
+ """Get the details of a clean room asset by its type and full name.
1268
1269
 
1269
1270
  :param clean_room_name: str
1270
1271
  Name of the clean room.
1271
1272
  :param asset_type: :class:`CleanRoomAssetAssetType`
1272
1273
  The type of the asset.
1273
- :param asset_full_name: str
1274
+ :param name: str
1274
1275
  The fully qualified name of the asset, it is same as the name field in CleanRoomAsset.
1275
1276
 
1276
1277
  :returns: :class:`CleanRoomAsset`
@@ -1281,9 +1282,7 @@ class CleanRoomAssetsAPI:
1281
1282
  }
1282
1283
 
1283
1284
  res = self._api.do(
1284
- "GET",
1285
- f"/api/2.0/clean-rooms/{clean_room_name}/assets/{asset_type.value}/{asset_full_name}",
1286
- headers=headers,
1285
+ "GET", f"/api/2.0/clean-rooms/{clean_room_name}/assets/{asset_type.value}/{name}", headers=headers
1287
1286
  )
1288
1287
  return CleanRoomAsset.from_dict(res)
1289
1288
 
@@ -1317,9 +1316,7 @@ class CleanRoomAssetsAPI:
1317
1316
  def update(
1318
1317
  self, clean_room_name: str, asset_type: CleanRoomAssetAssetType, name: str, asset: CleanRoomAsset
1319
1318
  ) -> CleanRoomAsset:
1320
- """Update an asset.
1321
-
1322
- Update a clean room asset. For example, updating the content of a notebook; changing the shared
1319
+ """Update a clean room asset. For example, updating the content of a notebook; changing the shared
1323
1320
  partitions of a table; etc.
1324
1321
 
1325
1322
  :param clean_room_name: str
@@ -1368,9 +1365,7 @@ class CleanRoomTaskRunsAPI:
1368
1365
  page_size: Optional[int] = None,
1369
1366
  page_token: Optional[str] = None,
1370
1367
  ) -> Iterator[CleanRoomNotebookTaskRun]:
1371
- """List notebook task runs.
1372
-
1373
- List all the historical notebook task runs in a clean room.
1368
+ """List all the historical notebook task runs in a clean room.
1374
1369
 
1375
1370
  :param clean_room_name: str
1376
1371
  Name of the clean room.
@@ -1414,9 +1409,7 @@ class CleanRoomsAPI:
1414
1409
  self._api = api_client
1415
1410
 
1416
1411
  def create(self, clean_room: CleanRoom) -> CleanRoom:
1417
- """Create a clean room.
1418
-
1419
- Create a new clean room with the specified collaborators. This method is asynchronous; the returned
1412
+ """Create a new clean room with the specified collaborators. This method is asynchronous; the returned
1420
1413
  name field inside the clean_room field can be used to poll the clean room status, using the
1421
1414
  :method:cleanrooms/get method. When this method returns, the clean room will be in a PROVISIONING
1422
1415
  state, with only name, owner, comment, created_at and status populated. The clean room will be usable
@@ -1440,9 +1433,7 @@ class CleanRoomsAPI:
1440
1433
  def create_output_catalog(
1441
1434
  self, clean_room_name: str, output_catalog: CleanRoomOutputCatalog
1442
1435
  ) -> CreateCleanRoomOutputCatalogResponse:
1443
- """Create an output catalog.
1444
-
1445
- Create the output catalog of the clean room.
1436
+ """Create the output catalog of the clean room.
1446
1437
 
1447
1438
  :param clean_room_name: str
1448
1439
  Name of the clean room.
@@ -1462,9 +1453,7 @@ class CleanRoomsAPI:
1462
1453
  return CreateCleanRoomOutputCatalogResponse.from_dict(res)
1463
1454
 
1464
1455
  def delete(self, name: str):
1465
- """Delete a clean room.
1466
-
1467
- Delete a clean room. After deletion, the clean room will be removed from the metastore. If the other
1456
+ """Delete a clean room. After deletion, the clean room will be removed from the metastore. If the other
1468
1457
  collaborators have not deleted the clean room, they will still have the clean room in their metastore,
1469
1458
  but it will be in a DELETED state and no operations other than deletion can be performed on it.
1470
1459
 
@@ -1481,9 +1470,7 @@ class CleanRoomsAPI:
1481
1470
  self._api.do("DELETE", f"/api/2.0/clean-rooms/{name}", headers=headers)
1482
1471
 
1483
1472
  def get(self, name: str) -> CleanRoom:
1484
- """Get a clean room.
1485
-
1486
- Get the details of a clean room given its name.
1473
+ """Get the details of a clean room given its name.
1487
1474
 
1488
1475
  :param name: str
1489
1476
 
@@ -1498,9 +1485,7 @@ class CleanRoomsAPI:
1498
1485
  return CleanRoom.from_dict(res)
1499
1486
 
1500
1487
  def list(self, *, page_size: Optional[int] = None, page_token: Optional[str] = None) -> Iterator[CleanRoom]:
1501
- """List clean rooms.
1502
-
1503
- Get a list of all clean rooms of the metastore. Only clean rooms the caller has access to are
1488
+ """Get a list of all clean rooms of the metastore. Only clean rooms the caller has access to are
1504
1489
  returned.
1505
1490
 
1506
1491
  :param page_size: int (optional)
@@ -1530,9 +1515,7 @@ class CleanRoomsAPI:
1530
1515
  query["page_token"] = json["next_page_token"]
1531
1516
 
1532
1517
  def update(self, name: str, *, clean_room: Optional[CleanRoom] = None) -> CleanRoom:
1533
- """Update a clean room.
1534
-
1535
- Update a clean room. The caller must be the owner of the clean room, have **MODIFY_CLEAN_ROOM**
1518
+ """Update a clean room. The caller must be the owner of the clean room, have **MODIFY_CLEAN_ROOM**
1536
1519
  privilege, or be metastore admin.
1537
1520
 
1538
1521
  When the caller is a metastore admin, only the __owner__ field can be updated.