databricks-sdk 0.58.0__py3-none-any.whl → 0.60.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 (34) hide show
  1. databricks/sdk/__init__.py +18 -10
  2. databricks/sdk/credentials_provider.py +2 -2
  3. databricks/sdk/mixins/files.py +43 -15
  4. databricks/sdk/mixins/open_ai_client.py +28 -7
  5. databricks/sdk/oidc.py +6 -2
  6. databricks/sdk/service/{aibuilder.py → agentbricks.py} +5 -132
  7. databricks/sdk/service/apps.py +52 -46
  8. databricks/sdk/service/billing.py +9 -200
  9. databricks/sdk/service/catalog.py +5501 -7697
  10. databricks/sdk/service/cleanrooms.py +24 -54
  11. databricks/sdk/service/compute.py +456 -2515
  12. databricks/sdk/service/dashboards.py +1 -177
  13. databricks/sdk/service/database.py +34 -53
  14. databricks/sdk/service/files.py +2 -218
  15. databricks/sdk/service/iam.py +16 -295
  16. databricks/sdk/service/jobs.py +108 -1171
  17. databricks/sdk/service/marketplace.py +0 -573
  18. databricks/sdk/service/ml.py +76 -2445
  19. databricks/sdk/service/oauth2.py +122 -237
  20. databricks/sdk/service/pipelines.py +180 -752
  21. databricks/sdk/service/provisioning.py +0 -603
  22. databricks/sdk/service/serving.py +5 -577
  23. databricks/sdk/service/settings.py +192 -1560
  24. databricks/sdk/service/sharing.py +5 -470
  25. databricks/sdk/service/sql.py +117 -1704
  26. databricks/sdk/service/vectorsearch.py +0 -391
  27. databricks/sdk/service/workspace.py +250 -721
  28. databricks/sdk/version.py +1 -1
  29. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/METADATA +1 -1
  30. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/RECORD +34 -34
  31. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/WHEEL +0 -0
  32. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/licenses/LICENSE +0 -0
  33. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/licenses/NOTICE +0 -0
  34. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/top_level.txt +0 -0
@@ -44,115 +44,6 @@ class ColumnInfo:
44
44
  return cls(name=d.get("name", None))
45
45
 
46
46
 
47
- @dataclass
48
- class CreateEndpoint:
49
- name: str
50
- """Name of the vector search endpoint"""
51
-
52
- endpoint_type: EndpointType
53
- """Type of endpoint"""
54
-
55
- budget_policy_id: Optional[str] = None
56
- """The budget policy id to be applied"""
57
-
58
- def as_dict(self) -> dict:
59
- """Serializes the CreateEndpoint into a dictionary suitable for use as a JSON request body."""
60
- body = {}
61
- if self.budget_policy_id is not None:
62
- body["budget_policy_id"] = self.budget_policy_id
63
- if self.endpoint_type is not None:
64
- body["endpoint_type"] = self.endpoint_type.value
65
- if self.name is not None:
66
- body["name"] = self.name
67
- return body
68
-
69
- def as_shallow_dict(self) -> dict:
70
- """Serializes the CreateEndpoint into a shallow dictionary of its immediate attributes."""
71
- body = {}
72
- if self.budget_policy_id is not None:
73
- body["budget_policy_id"] = self.budget_policy_id
74
- if self.endpoint_type is not None:
75
- body["endpoint_type"] = self.endpoint_type
76
- if self.name is not None:
77
- body["name"] = self.name
78
- return body
79
-
80
- @classmethod
81
- def from_dict(cls, d: Dict[str, Any]) -> CreateEndpoint:
82
- """Deserializes the CreateEndpoint from a dictionary."""
83
- return cls(
84
- budget_policy_id=d.get("budget_policy_id", None),
85
- endpoint_type=_enum(d, "endpoint_type", EndpointType),
86
- name=d.get("name", None),
87
- )
88
-
89
-
90
- @dataclass
91
- class CreateVectorIndexRequest:
92
- name: str
93
- """Name of the index"""
94
-
95
- endpoint_name: str
96
- """Name of the endpoint to be used for serving the index"""
97
-
98
- primary_key: str
99
- """Primary key of the index"""
100
-
101
- index_type: VectorIndexType
102
-
103
- delta_sync_index_spec: Optional[DeltaSyncVectorIndexSpecRequest] = None
104
- """Specification for Delta Sync Index. Required if `index_type` is `DELTA_SYNC`."""
105
-
106
- direct_access_index_spec: Optional[DirectAccessVectorIndexSpec] = None
107
- """Specification for Direct Vector Access Index. Required if `index_type` is `DIRECT_ACCESS`."""
108
-
109
- def as_dict(self) -> dict:
110
- """Serializes the CreateVectorIndexRequest into a dictionary suitable for use as a JSON request body."""
111
- body = {}
112
- if self.delta_sync_index_spec:
113
- body["delta_sync_index_spec"] = self.delta_sync_index_spec.as_dict()
114
- if self.direct_access_index_spec:
115
- body["direct_access_index_spec"] = self.direct_access_index_spec.as_dict()
116
- if self.endpoint_name is not None:
117
- body["endpoint_name"] = self.endpoint_name
118
- if self.index_type is not None:
119
- body["index_type"] = self.index_type.value
120
- if self.name is not None:
121
- body["name"] = self.name
122
- if self.primary_key is not None:
123
- body["primary_key"] = self.primary_key
124
- return body
125
-
126
- def as_shallow_dict(self) -> dict:
127
- """Serializes the CreateVectorIndexRequest into a shallow dictionary of its immediate attributes."""
128
- body = {}
129
- if self.delta_sync_index_spec:
130
- body["delta_sync_index_spec"] = self.delta_sync_index_spec
131
- if self.direct_access_index_spec:
132
- body["direct_access_index_spec"] = self.direct_access_index_spec
133
- if self.endpoint_name is not None:
134
- body["endpoint_name"] = self.endpoint_name
135
- if self.index_type is not None:
136
- body["index_type"] = self.index_type
137
- if self.name is not None:
138
- body["name"] = self.name
139
- if self.primary_key is not None:
140
- body["primary_key"] = self.primary_key
141
- return body
142
-
143
- @classmethod
144
- def from_dict(cls, d: Dict[str, Any]) -> CreateVectorIndexRequest:
145
- """Deserializes the CreateVectorIndexRequest from a dictionary."""
146
- return cls(
147
- delta_sync_index_spec=_from_dict(d, "delta_sync_index_spec", DeltaSyncVectorIndexSpecRequest),
148
- direct_access_index_spec=_from_dict(d, "direct_access_index_spec", DirectAccessVectorIndexSpec),
149
- endpoint_name=d.get("endpoint_name", None),
150
- index_type=_enum(d, "index_type", VectorIndexType),
151
- name=d.get("name", None),
152
- primary_key=d.get("primary_key", None),
153
- )
154
-
155
-
156
47
  @dataclass
157
48
  class CustomTag:
158
49
  key: str
@@ -889,38 +780,6 @@ class MiniVectorIndex:
889
780
  )
890
781
 
891
782
 
892
- @dataclass
893
- class PatchEndpointBudgetPolicyRequest:
894
- budget_policy_id: str
895
- """The budget policy id to be applied"""
896
-
897
- endpoint_name: Optional[str] = None
898
- """Name of the vector search endpoint"""
899
-
900
- def as_dict(self) -> dict:
901
- """Serializes the PatchEndpointBudgetPolicyRequest into a dictionary suitable for use as a JSON request body."""
902
- body = {}
903
- if self.budget_policy_id is not None:
904
- body["budget_policy_id"] = self.budget_policy_id
905
- if self.endpoint_name is not None:
906
- body["endpoint_name"] = self.endpoint_name
907
- return body
908
-
909
- def as_shallow_dict(self) -> dict:
910
- """Serializes the PatchEndpointBudgetPolicyRequest into a shallow dictionary of its immediate attributes."""
911
- body = {}
912
- if self.budget_policy_id is not None:
913
- body["budget_policy_id"] = self.budget_policy_id
914
- if self.endpoint_name is not None:
915
- body["endpoint_name"] = self.endpoint_name
916
- return body
917
-
918
- @classmethod
919
- def from_dict(cls, d: Dict[str, Any]) -> PatchEndpointBudgetPolicyRequest:
920
- """Deserializes the PatchEndpointBudgetPolicyRequest from a dictionary."""
921
- return cls(budget_policy_id=d.get("budget_policy_id", None), endpoint_name=d.get("endpoint_name", None))
922
-
923
-
924
783
  @dataclass
925
784
  class PatchEndpointBudgetPolicyResponse:
926
785
  effective_budget_policy_id: Optional[str] = None
@@ -957,149 +816,6 @@ class PipelineType(Enum):
957
816
  TRIGGERED = "TRIGGERED"
958
817
 
959
818
 
960
- @dataclass
961
- class QueryVectorIndexNextPageRequest:
962
- """Request payload for getting next page of results."""
963
-
964
- endpoint_name: Optional[str] = None
965
- """Name of the endpoint."""
966
-
967
- index_name: Optional[str] = None
968
- """Name of the vector index to query."""
969
-
970
- page_token: Optional[str] = None
971
- """Page token returned from previous `QueryVectorIndex` or `QueryVectorIndexNextPage` API."""
972
-
973
- def as_dict(self) -> dict:
974
- """Serializes the QueryVectorIndexNextPageRequest into a dictionary suitable for use as a JSON request body."""
975
- body = {}
976
- if self.endpoint_name is not None:
977
- body["endpoint_name"] = self.endpoint_name
978
- if self.index_name is not None:
979
- body["index_name"] = self.index_name
980
- if self.page_token is not None:
981
- body["page_token"] = self.page_token
982
- return body
983
-
984
- def as_shallow_dict(self) -> dict:
985
- """Serializes the QueryVectorIndexNextPageRequest into a shallow dictionary of its immediate attributes."""
986
- body = {}
987
- if self.endpoint_name is not None:
988
- body["endpoint_name"] = self.endpoint_name
989
- if self.index_name is not None:
990
- body["index_name"] = self.index_name
991
- if self.page_token is not None:
992
- body["page_token"] = self.page_token
993
- return body
994
-
995
- @classmethod
996
- def from_dict(cls, d: Dict[str, Any]) -> QueryVectorIndexNextPageRequest:
997
- """Deserializes the QueryVectorIndexNextPageRequest from a dictionary."""
998
- return cls(
999
- endpoint_name=d.get("endpoint_name", None),
1000
- index_name=d.get("index_name", None),
1001
- page_token=d.get("page_token", None),
1002
- )
1003
-
1004
-
1005
- @dataclass
1006
- class QueryVectorIndexRequest:
1007
- columns: List[str]
1008
- """List of column names to include in the response."""
1009
-
1010
- columns_to_rerank: Optional[List[str]] = None
1011
- """Column names used to retrieve data to send to the reranker."""
1012
-
1013
- filters_json: Optional[str] = None
1014
- """JSON string representing query filters.
1015
-
1016
- Example filters:
1017
-
1018
- - `{"id <": 5}`: Filter for id less than 5. - `{"id >": 5}`: Filter for id greater than 5. -
1019
- `{"id <=": 5}`: Filter for id less than equal to 5. - `{"id >=": 5}`: Filter for id greater than
1020
- equal to 5. - `{"id": 5}`: Filter for id equal to 5."""
1021
-
1022
- index_name: Optional[str] = None
1023
- """Name of the vector index to query."""
1024
-
1025
- num_results: Optional[int] = None
1026
- """Number of results to return. Defaults to 10."""
1027
-
1028
- query_text: Optional[str] = None
1029
- """Query text. Required for Delta Sync Index using model endpoint."""
1030
-
1031
- query_type: Optional[str] = None
1032
- """The query type to use. Choices are `ANN` and `HYBRID`. Defaults to `ANN`."""
1033
-
1034
- query_vector: Optional[List[float]] = None
1035
- """Query vector. Required for Direct Vector Access Index and Delta Sync Index using self-managed
1036
- vectors."""
1037
-
1038
- score_threshold: Optional[float] = None
1039
- """Threshold for the approximate nearest neighbor search. Defaults to 0.0."""
1040
-
1041
- def as_dict(self) -> dict:
1042
- """Serializes the QueryVectorIndexRequest into a dictionary suitable for use as a JSON request body."""
1043
- body = {}
1044
- if self.columns:
1045
- body["columns"] = [v for v in self.columns]
1046
- if self.columns_to_rerank:
1047
- body["columns_to_rerank"] = [v for v in self.columns_to_rerank]
1048
- if self.filters_json is not None:
1049
- body["filters_json"] = self.filters_json
1050
- if self.index_name is not None:
1051
- body["index_name"] = self.index_name
1052
- if self.num_results is not None:
1053
- body["num_results"] = self.num_results
1054
- if self.query_text is not None:
1055
- body["query_text"] = self.query_text
1056
- if self.query_type is not None:
1057
- body["query_type"] = self.query_type
1058
- if self.query_vector:
1059
- body["query_vector"] = [v for v in self.query_vector]
1060
- if self.score_threshold is not None:
1061
- body["score_threshold"] = self.score_threshold
1062
- return body
1063
-
1064
- def as_shallow_dict(self) -> dict:
1065
- """Serializes the QueryVectorIndexRequest into a shallow dictionary of its immediate attributes."""
1066
- body = {}
1067
- if self.columns:
1068
- body["columns"] = self.columns
1069
- if self.columns_to_rerank:
1070
- body["columns_to_rerank"] = self.columns_to_rerank
1071
- if self.filters_json is not None:
1072
- body["filters_json"] = self.filters_json
1073
- if self.index_name is not None:
1074
- body["index_name"] = self.index_name
1075
- if self.num_results is not None:
1076
- body["num_results"] = self.num_results
1077
- if self.query_text is not None:
1078
- body["query_text"] = self.query_text
1079
- if self.query_type is not None:
1080
- body["query_type"] = self.query_type
1081
- if self.query_vector:
1082
- body["query_vector"] = self.query_vector
1083
- if self.score_threshold is not None:
1084
- body["score_threshold"] = self.score_threshold
1085
- return body
1086
-
1087
- @classmethod
1088
- def from_dict(cls, d: Dict[str, Any]) -> QueryVectorIndexRequest:
1089
- """Deserializes the QueryVectorIndexRequest from a dictionary."""
1090
- return cls(
1091
- columns=d.get("columns", None),
1092
- columns_to_rerank=d.get("columns_to_rerank", None),
1093
- filters_json=d.get("filters_json", None),
1094
- index_name=d.get("index_name", None),
1095
- num_results=d.get("num_results", None),
1096
- query_text=d.get("query_text", None),
1097
- query_type=d.get("query_type", None),
1098
- query_vector=d.get("query_vector", None),
1099
- score_threshold=d.get("score_threshold", None),
1100
- )
1101
-
1102
-
1103
819
  @dataclass
1104
820
  class QueryVectorIndexResponse:
1105
821
  manifest: Optional[ResultManifest] = None
@@ -1213,49 +929,6 @@ class ResultManifest:
1213
929
  return cls(column_count=d.get("column_count", None), columns=_repeated_dict(d, "columns", ColumnInfo))
1214
930
 
1215
931
 
1216
- @dataclass
1217
- class ScanVectorIndexRequest:
1218
- index_name: Optional[str] = None
1219
- """Name of the vector index to scan."""
1220
-
1221
- last_primary_key: Optional[str] = None
1222
- """Primary key of the last entry returned in the previous scan."""
1223
-
1224
- num_results: Optional[int] = None
1225
- """Number of results to return. Defaults to 10."""
1226
-
1227
- def as_dict(self) -> dict:
1228
- """Serializes the ScanVectorIndexRequest into a dictionary suitable for use as a JSON request body."""
1229
- body = {}
1230
- if self.index_name is not None:
1231
- body["index_name"] = self.index_name
1232
- if self.last_primary_key is not None:
1233
- body["last_primary_key"] = self.last_primary_key
1234
- if self.num_results is not None:
1235
- body["num_results"] = self.num_results
1236
- return body
1237
-
1238
- def as_shallow_dict(self) -> dict:
1239
- """Serializes the ScanVectorIndexRequest into a shallow dictionary of its immediate attributes."""
1240
- body = {}
1241
- if self.index_name is not None:
1242
- body["index_name"] = self.index_name
1243
- if self.last_primary_key is not None:
1244
- body["last_primary_key"] = self.last_primary_key
1245
- if self.num_results is not None:
1246
- body["num_results"] = self.num_results
1247
- return body
1248
-
1249
- @classmethod
1250
- def from_dict(cls, d: Dict[str, Any]) -> ScanVectorIndexRequest:
1251
- """Deserializes the ScanVectorIndexRequest from a dictionary."""
1252
- return cls(
1253
- index_name=d.get("index_name", None),
1254
- last_primary_key=d.get("last_primary_key", None),
1255
- num_results=d.get("num_results", None),
1256
- )
1257
-
1258
-
1259
932
  @dataclass
1260
933
  class ScanVectorIndexResponse:
1261
934
  """Response to a scan vector index request."""
@@ -1333,38 +1006,6 @@ class SyncIndexResponse:
1333
1006
  return cls()
1334
1007
 
1335
1008
 
1336
- @dataclass
1337
- class UpdateEndpointCustomTagsRequest:
1338
- custom_tags: List[CustomTag]
1339
- """The new custom tags for the vector search endpoint"""
1340
-
1341
- endpoint_name: Optional[str] = None
1342
- """Name of the vector search endpoint"""
1343
-
1344
- def as_dict(self) -> dict:
1345
- """Serializes the UpdateEndpointCustomTagsRequest into a dictionary suitable for use as a JSON request body."""
1346
- body = {}
1347
- if self.custom_tags:
1348
- body["custom_tags"] = [v.as_dict() for v in self.custom_tags]
1349
- if self.endpoint_name is not None:
1350
- body["endpoint_name"] = self.endpoint_name
1351
- return body
1352
-
1353
- def as_shallow_dict(self) -> dict:
1354
- """Serializes the UpdateEndpointCustomTagsRequest into a shallow dictionary of its immediate attributes."""
1355
- body = {}
1356
- if self.custom_tags:
1357
- body["custom_tags"] = self.custom_tags
1358
- if self.endpoint_name is not None:
1359
- body["endpoint_name"] = self.endpoint_name
1360
- return body
1361
-
1362
- @classmethod
1363
- def from_dict(cls, d: Dict[str, Any]) -> UpdateEndpointCustomTagsRequest:
1364
- """Deserializes the UpdateEndpointCustomTagsRequest from a dictionary."""
1365
- return cls(custom_tags=_repeated_dict(d, "custom_tags", CustomTag), endpoint_name=d.get("endpoint_name", None))
1366
-
1367
-
1368
1009
  @dataclass
1369
1010
  class UpdateEndpointCustomTagsResponse:
1370
1011
  custom_tags: Optional[List[CustomTag]] = None
@@ -1438,38 +1079,6 @@ class UpsertDataStatus(Enum):
1438
1079
  SUCCESS = "SUCCESS"
1439
1080
 
1440
1081
 
1441
- @dataclass
1442
- class UpsertDataVectorIndexRequest:
1443
- inputs_json: str
1444
- """JSON string representing the data to be upserted."""
1445
-
1446
- index_name: Optional[str] = None
1447
- """Name of the vector index where data is to be upserted. Must be a Direct Vector Access Index."""
1448
-
1449
- def as_dict(self) -> dict:
1450
- """Serializes the UpsertDataVectorIndexRequest into a dictionary suitable for use as a JSON request body."""
1451
- body = {}
1452
- if self.index_name is not None:
1453
- body["index_name"] = self.index_name
1454
- if self.inputs_json is not None:
1455
- body["inputs_json"] = self.inputs_json
1456
- return body
1457
-
1458
- def as_shallow_dict(self) -> dict:
1459
- """Serializes the UpsertDataVectorIndexRequest into a shallow dictionary of its immediate attributes."""
1460
- body = {}
1461
- if self.index_name is not None:
1462
- body["index_name"] = self.index_name
1463
- if self.inputs_json is not None:
1464
- body["inputs_json"] = self.inputs_json
1465
- return body
1466
-
1467
- @classmethod
1468
- def from_dict(cls, d: Dict[str, Any]) -> UpsertDataVectorIndexRequest:
1469
- """Deserializes the UpsertDataVectorIndexRequest from a dictionary."""
1470
- return cls(index_name=d.get("index_name", None), inputs_json=d.get("inputs_json", None))
1471
-
1472
-
1473
1082
  @dataclass
1474
1083
  class UpsertDataVectorIndexResponse:
1475
1084
  result: Optional[UpsertDataResult] = None