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

@@ -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
@@ -1236,7 +1245,7 @@ class CleanRoomAssetsAPI:
1236
1245
  res = self._api.do("POST", f"/api/2.0/clean-rooms/{clean_room_name}/assets", body=body, headers=headers)
1237
1246
  return CleanRoomAsset.from_dict(res)
1238
1247
 
1239
- def delete(self, clean_room_name: str, asset_type: CleanRoomAssetAssetType, asset_full_name: str):
1248
+ def delete(self, clean_room_name: str, asset_type: CleanRoomAssetAssetType, name: str):
1240
1249
  """Delete an asset.
1241
1250
 
1242
1251
  Delete a clean room asset - unshare/remove the asset from the clean room
@@ -1245,7 +1254,7 @@ class CleanRoomAssetsAPI:
1245
1254
  Name of the clean room.
1246
1255
  :param asset_type: :class:`CleanRoomAssetAssetType`
1247
1256
  The type of the asset.
1248
- :param asset_full_name: str
1257
+ :param name: str
1249
1258
  The fully qualified name of the asset, it is same as the name field in CleanRoomAsset.
1250
1259
 
1251
1260
 
@@ -1256,12 +1265,10 @@ class CleanRoomAssetsAPI:
1256
1265
  }
1257
1266
 
1258
1267
  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,
1268
+ "DELETE", f"/api/2.0/clean-rooms/{clean_room_name}/assets/{asset_type.value}/{name}", headers=headers
1262
1269
  )
1263
1270
 
1264
- def get(self, clean_room_name: str, asset_type: CleanRoomAssetAssetType, asset_full_name: str) -> CleanRoomAsset:
1271
+ def get(self, clean_room_name: str, asset_type: CleanRoomAssetAssetType, name: str) -> CleanRoomAsset:
1265
1272
  """Get an asset.
1266
1273
 
1267
1274
  Get the details of a clean room asset by its type and full name.
@@ -1270,7 +1277,7 @@ class CleanRoomAssetsAPI:
1270
1277
  Name of the clean room.
1271
1278
  :param asset_type: :class:`CleanRoomAssetAssetType`
1272
1279
  The type of the asset.
1273
- :param asset_full_name: str
1280
+ :param name: str
1274
1281
  The fully qualified name of the asset, it is same as the name field in CleanRoomAsset.
1275
1282
 
1276
1283
  :returns: :class:`CleanRoomAsset`
@@ -1281,9 +1288,7 @@ class CleanRoomAssetsAPI:
1281
1288
  }
1282
1289
 
1283
1290
  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,
1291
+ "GET", f"/api/2.0/clean-rooms/{clean_room_name}/assets/{asset_type.value}/{name}", headers=headers
1287
1292
  )
1288
1293
  return CleanRoomAsset.from_dict(res)
1289
1294
 
@@ -3528,16 +3528,10 @@ class CustomPolicyTag:
3528
3528
  key: str
3529
3529
  """The key of the tag. - Must be unique among all custom tags of the same policy - Cannot be
3530
3530
  “budget-policy-name”, “budget-policy-id” or "budget-policy-resolution-result" - these
3531
- tags are preserved.
3532
-
3533
- - Follows the regex pattern defined in cluster-common/conf/src/ClusterTagConstraints.scala
3534
- (https://src.dev.databricks.com/databricks/universe@1647196627c8dc7b4152ad098a94b86484b93a6c/-/blob/cluster-common/conf/src/ClusterTagConstraints.scala?L17)"""
3531
+ tags are preserved."""
3535
3532
 
3536
3533
  value: Optional[str] = None
3537
- """The value of the tag.
3538
-
3539
- - Follows the regex pattern defined in cluster-common/conf/src/ClusterTagConstraints.scala
3540
- (https://src.dev.databricks.com/databricks/universe@1647196627c8dc7b4152ad098a94b86484b93a6c/-/blob/cluster-common/conf/src/ClusterTagConstraints.scala?L24)"""
3534
+ """The value of the tag."""
3541
3535
 
3542
3536
  def as_dict(self) -> dict:
3543
3537
  """Serializes the CustomPolicyTag into a dictionary suitable for use as a JSON request body."""
@@ -4781,25 +4775,19 @@ class Environment:
4781
4775
  non-notebook task, and DLT's environment for classic and serverless pipelines. In this minimal
4782
4776
  environment spec, only pip dependencies are supported."""
4783
4777
 
4784
- client: str
4785
- """Client version used by the environment The client is the user-facing environment of the runtime.
4786
- Each client comes with a specific set of pre-installed libraries. The version is a string,
4787
- consisting of the major client version."""
4778
+ client: Optional[str] = None
4779
+ """Use `environment_version` instead."""
4788
4780
 
4789
4781
  dependencies: Optional[List[str]] = None
4790
4782
  """List of pip dependencies, as supported by the version of pip in this environment. Each
4791
- dependency is a pip requirement file line
4792
- https://pip.pypa.io/en/stable/reference/requirements-file-format/ Allowed dependency could be
4793
- <requirement specifier>, <archive url/path>, <local project path>(WSFS or Volumes in
4794
- Databricks), <vcs project url> E.g. dependencies: ["foo==0.0.1", "-r
4795
- /Workspace/test/requirements.txt"]"""
4783
+ dependency is a valid pip requirements file line per
4784
+ https://pip.pypa.io/en/stable/reference/requirements-file-format/. Allowed dependencies include
4785
+ a requirement specifier, an archive URL, a local project path (such as WSFS or UC Volumes in
4786
+ Databricks), or a VCS project URL."""
4796
4787
 
4797
4788
  environment_version: Optional[str] = None
4798
- """We renamed `client` to `environment_version` in notebook exports. This field is meant solely so
4799
- that imported notebooks with `environment_version` can be deserialized correctly, in a
4800
- backwards-compatible way (i.e. if `client` is specified instead of `environment_version`, it
4801
- will be deserialized correctly). Do NOT use this field for any other purpose, e.g. notebook
4802
- storage. This field is not yet exposed to customers (e.g. in the jobs API)."""
4789
+ """Required. Environment version used by the environment. Each version comes with a specific Python
4790
+ version and a set of Python packages. The version is a string, consisting of an integer."""
4803
4791
 
4804
4792
  jar_dependencies: Optional[List[str]] = None
4805
4793
  """List of jar dependencies, should be string representing volume paths. For example:
@@ -5038,6 +5026,7 @@ class EventType(Enum):
5038
5026
  AUTOSCALING_BACKOFF = "AUTOSCALING_BACKOFF"
5039
5027
  AUTOSCALING_FAILED = "AUTOSCALING_FAILED"
5040
5028
  AUTOSCALING_STATS_REPORT = "AUTOSCALING_STATS_REPORT"
5029
+ CLUSTER_MIGRATED = "CLUSTER_MIGRATED"
5041
5030
  CREATING = "CREATING"
5042
5031
  DBFS_DOWN = "DBFS_DOWN"
5043
5032
  DID_NOT_EXPAND_DISK = "DID_NOT_EXPAND_DISK"
@@ -9082,6 +9071,7 @@ class TerminationReasonCode(Enum):
9082
9071
  DRIVER_OUT_OF_MEMORY = "DRIVER_OUT_OF_MEMORY"
9083
9072
  DRIVER_POD_CREATION_FAILURE = "DRIVER_POD_CREATION_FAILURE"
9084
9073
  DRIVER_UNEXPECTED_FAILURE = "DRIVER_UNEXPECTED_FAILURE"
9074
+ DRIVER_UNHEALTHY = "DRIVER_UNHEALTHY"
9085
9075
  DRIVER_UNREACHABLE = "DRIVER_UNREACHABLE"
9086
9076
  DRIVER_UNRESPONSIVE = "DRIVER_UNRESPONSIVE"
9087
9077
  DYNAMIC_SPARK_CONF_SIZE_EXCEEDED = "DYNAMIC_SPARK_CONF_SIZE_EXCEEDED"