databricks-sdk 0.70.0__py3-none-any.whl → 0.72.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 +25 -25
- databricks/sdk/mixins/files.py +51 -15
- databricks/sdk/service/agentbricks.py +2 -0
- databricks/sdk/service/apps.py +10 -0
- databricks/sdk/service/billing.py +13 -3
- databricks/sdk/service/catalog.py +149 -46
- databricks/sdk/service/cleanrooms.py +11 -3
- databricks/sdk/service/compute.py +55 -0
- databricks/sdk/service/dashboards.py +11 -0
- databricks/sdk/service/database.py +12 -0
- databricks/sdk/service/dataquality.py +4 -0
- databricks/sdk/service/files.py +7 -72
- databricks/sdk/service/iam.py +26 -36
- databricks/sdk/service/iamv2.py +6 -0
- databricks/sdk/service/jobs.py +22 -122
- databricks/sdk/service/marketplace.py +18 -0
- databricks/sdk/service/ml.py +321 -17
- databricks/sdk/service/oauth2.py +10 -18
- databricks/sdk/service/pipelines.py +44 -13
- databricks/sdk/service/provisioning.py +9 -0
- databricks/sdk/service/qualitymonitorv2.py +2 -0
- databricks/sdk/service/serving.py +16 -21
- databricks/sdk/service/settings.py +43 -72
- databricks/sdk/service/settingsv2.py +2 -0
- databricks/sdk/service/sharing.py +23 -31
- databricks/sdk/service/sql.py +48 -24
- databricks/sdk/service/tags.py +2 -0
- databricks/sdk/service/vectorsearch.py +11 -1
- databricks/sdk/service/workspace.py +18 -91
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.72.0.dist-info}/METADATA +1 -1
- {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.72.0.dist-info}/RECORD +36 -36
- {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.72.0.dist-info}/WHEEL +0 -0
- {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.72.0.dist-info}/licenses/LICENSE +0 -0
- {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.72.0.dist-info}/licenses/NOTICE +0 -0
- {databricks_sdk-0.70.0.dist-info → databricks_sdk-0.72.0.dist-info}/top_level.txt +0 -0
databricks/sdk/service/sql.py
CHANGED
|
@@ -331,6 +331,12 @@ class AlertEvaluationState(Enum):
|
|
|
331
331
|
UNKNOWN = "UNKNOWN"
|
|
332
332
|
|
|
333
333
|
|
|
334
|
+
class AlertLifecycleState(Enum):
|
|
335
|
+
|
|
336
|
+
ACTIVE = "ACTIVE"
|
|
337
|
+
DELETED = "DELETED"
|
|
338
|
+
|
|
339
|
+
|
|
334
340
|
@dataclass
|
|
335
341
|
class AlertOperandColumn:
|
|
336
342
|
name: Optional[str] = None
|
|
@@ -665,7 +671,7 @@ class AlertV2:
|
|
|
665
671
|
id: Optional[str] = None
|
|
666
672
|
"""UUID identifying the alert."""
|
|
667
673
|
|
|
668
|
-
lifecycle_state: Optional[
|
|
674
|
+
lifecycle_state: Optional[AlertLifecycleState] = None
|
|
669
675
|
"""Indicates whether the query is trashed."""
|
|
670
676
|
|
|
671
677
|
owner_user_name: Optional[str] = None
|
|
@@ -776,7 +782,7 @@ class AlertV2:
|
|
|
776
782
|
effective_run_as=_from_dict(d, "effective_run_as", AlertV2RunAs),
|
|
777
783
|
evaluation=_from_dict(d, "evaluation", AlertV2Evaluation),
|
|
778
784
|
id=d.get("id", None),
|
|
779
|
-
lifecycle_state=_enum(d, "lifecycle_state",
|
|
785
|
+
lifecycle_state=_enum(d, "lifecycle_state", AlertLifecycleState),
|
|
780
786
|
owner_user_name=d.get("owner_user_name", None),
|
|
781
787
|
parent_path=d.get("parent_path", None),
|
|
782
788
|
query_text=d.get("query_text", None),
|
|
@@ -1132,24 +1138,6 @@ class BaseChunkInfo:
|
|
|
1132
1138
|
)
|
|
1133
1139
|
|
|
1134
1140
|
|
|
1135
|
-
@dataclass
|
|
1136
|
-
class CancelExecutionResponse:
|
|
1137
|
-
def as_dict(self) -> dict:
|
|
1138
|
-
"""Serializes the CancelExecutionResponse into a dictionary suitable for use as a JSON request body."""
|
|
1139
|
-
body = {}
|
|
1140
|
-
return body
|
|
1141
|
-
|
|
1142
|
-
def as_shallow_dict(self) -> dict:
|
|
1143
|
-
"""Serializes the CancelExecutionResponse into a shallow dictionary of its immediate attributes."""
|
|
1144
|
-
body = {}
|
|
1145
|
-
return body
|
|
1146
|
-
|
|
1147
|
-
@classmethod
|
|
1148
|
-
def from_dict(cls, d: Dict[str, Any]) -> CancelExecutionResponse:
|
|
1149
|
-
"""Deserializes the CancelExecutionResponse from a dictionary."""
|
|
1150
|
-
return cls()
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
1141
|
@dataclass
|
|
1154
1142
|
class Channel:
|
|
1155
1143
|
"""Configures the channel name and DBSQL version of the warehouse. CHANNEL_NAME_CUSTOM should be
|
|
@@ -5111,7 +5099,7 @@ class QueryMetrics:
|
|
|
5111
5099
|
queue."""
|
|
5112
5100
|
|
|
5113
5101
|
pruned_bytes: Optional[int] = None
|
|
5114
|
-
"""Total number of bytes in all tables not read due to pruning"""
|
|
5102
|
+
"""Total number of file bytes in all tables not read due to pruning"""
|
|
5115
5103
|
|
|
5116
5104
|
pruned_files_count: Optional[int] = None
|
|
5117
5105
|
"""Total number of files from all tables not read due to pruning"""
|
|
@@ -5125,6 +5113,9 @@ class QueryMetrics:
|
|
|
5125
5113
|
read_cache_bytes: Optional[int] = None
|
|
5126
5114
|
"""Size of persistent data read from the cache, in bytes."""
|
|
5127
5115
|
|
|
5116
|
+
read_files_bytes: Optional[int] = None
|
|
5117
|
+
"""Total number of file bytes in all tables read"""
|
|
5118
|
+
|
|
5128
5119
|
read_files_count: Optional[int] = None
|
|
5129
5120
|
"""Number of files read after pruning"""
|
|
5130
5121
|
|
|
@@ -5204,6 +5195,8 @@ class QueryMetrics:
|
|
|
5204
5195
|
body["read_bytes"] = self.read_bytes
|
|
5205
5196
|
if self.read_cache_bytes is not None:
|
|
5206
5197
|
body["read_cache_bytes"] = self.read_cache_bytes
|
|
5198
|
+
if self.read_files_bytes is not None:
|
|
5199
|
+
body["read_files_bytes"] = self.read_files_bytes
|
|
5207
5200
|
if self.read_files_count is not None:
|
|
5208
5201
|
body["read_files_count"] = self.read_files_count
|
|
5209
5202
|
if self.read_partitions_count is not None:
|
|
@@ -5265,6 +5258,8 @@ class QueryMetrics:
|
|
|
5265
5258
|
body["read_bytes"] = self.read_bytes
|
|
5266
5259
|
if self.read_cache_bytes is not None:
|
|
5267
5260
|
body["read_cache_bytes"] = self.read_cache_bytes
|
|
5261
|
+
if self.read_files_bytes is not None:
|
|
5262
|
+
body["read_files_bytes"] = self.read_files_bytes
|
|
5268
5263
|
if self.read_files_count is not None:
|
|
5269
5264
|
body["read_files_count"] = self.read_files_count
|
|
5270
5265
|
if self.read_partitions_count is not None:
|
|
@@ -5314,6 +5309,7 @@ class QueryMetrics:
|
|
|
5314
5309
|
query_compilation_start_timestamp=d.get("query_compilation_start_timestamp", None),
|
|
5315
5310
|
read_bytes=d.get("read_bytes", None),
|
|
5316
5311
|
read_cache_bytes=d.get("read_cache_bytes", None),
|
|
5312
|
+
read_files_bytes=d.get("read_files_bytes", None),
|
|
5317
5313
|
read_files_count=d.get("read_files_count", None),
|
|
5318
5314
|
read_partitions_count=d.get("read_partitions_count", None),
|
|
5319
5315
|
read_remote_bytes=d.get("read_remote_bytes", None),
|
|
@@ -6299,6 +6295,7 @@ class TerminationReasonCode(Enum):
|
|
|
6299
6295
|
DATABASE_CONNECTION_FAILURE = "DATABASE_CONNECTION_FAILURE"
|
|
6300
6296
|
DATA_ACCESS_CONFIG_CHANGED = "DATA_ACCESS_CONFIG_CHANGED"
|
|
6301
6297
|
DBFS_COMPONENT_UNHEALTHY = "DBFS_COMPONENT_UNHEALTHY"
|
|
6298
|
+
DBR_IMAGE_RESOLUTION_FAILURE = "DBR_IMAGE_RESOLUTION_FAILURE"
|
|
6302
6299
|
DISASTER_RECOVERY_REPLICATION = "DISASTER_RECOVERY_REPLICATION"
|
|
6303
6300
|
DNS_RESOLUTION_ERROR = "DNS_RESOLUTION_ERROR"
|
|
6304
6301
|
DOCKER_CONTAINER_CREATION_EXCEPTION = "DOCKER_CONTAINER_CREATION_EXCEPTION"
|
|
@@ -7399,6 +7396,7 @@ class AlertsAPI:
|
|
|
7399
7396
|
|
|
7400
7397
|
:returns: :class:`Alert`
|
|
7401
7398
|
"""
|
|
7399
|
+
|
|
7402
7400
|
body = {}
|
|
7403
7401
|
if alert is not None:
|
|
7404
7402
|
body["alert"] = alert.as_dict()
|
|
@@ -7501,6 +7499,7 @@ class AlertsAPI:
|
|
|
7501
7499
|
|
|
7502
7500
|
:returns: :class:`Alert`
|
|
7503
7501
|
"""
|
|
7502
|
+
|
|
7504
7503
|
body = {}
|
|
7505
7504
|
if alert is not None:
|
|
7506
7505
|
body["alert"] = alert.as_dict()
|
|
@@ -7562,6 +7561,7 @@ class AlertsLegacyAPI:
|
|
|
7562
7561
|
|
|
7563
7562
|
:returns: :class:`LegacyAlert`
|
|
7564
7563
|
"""
|
|
7564
|
+
|
|
7565
7565
|
body = {}
|
|
7566
7566
|
if name is not None:
|
|
7567
7567
|
body["name"] = name
|
|
@@ -7661,6 +7661,7 @@ class AlertsLegacyAPI:
|
|
|
7661
7661
|
|
|
7662
7662
|
|
|
7663
7663
|
"""
|
|
7664
|
+
|
|
7664
7665
|
body = {}
|
|
7665
7666
|
if name is not None:
|
|
7666
7667
|
body["name"] = name
|
|
@@ -7691,6 +7692,7 @@ class AlertsV2API:
|
|
|
7691
7692
|
|
|
7692
7693
|
:returns: :class:`AlertV2`
|
|
7693
7694
|
"""
|
|
7695
|
+
|
|
7694
7696
|
body = alert.as_dict()
|
|
7695
7697
|
headers = {
|
|
7696
7698
|
"Accept": "application/json",
|
|
@@ -7777,6 +7779,7 @@ class AlertsV2API:
|
|
|
7777
7779
|
|
|
7778
7780
|
:returns: :class:`AlertV2`
|
|
7779
7781
|
"""
|
|
7782
|
+
|
|
7780
7783
|
body = alert.as_dict()
|
|
7781
7784
|
query = {}
|
|
7782
7785
|
if update_mask is not None:
|
|
@@ -7821,6 +7824,7 @@ class DashboardWidgetsAPI:
|
|
|
7821
7824
|
|
|
7822
7825
|
:returns: :class:`Widget`
|
|
7823
7826
|
"""
|
|
7827
|
+
|
|
7824
7828
|
body = {}
|
|
7825
7829
|
if dashboard_id is not None:
|
|
7826
7830
|
body["dashboard_id"] = dashboard_id
|
|
@@ -7882,6 +7886,7 @@ class DashboardWidgetsAPI:
|
|
|
7882
7886
|
|
|
7883
7887
|
:returns: :class:`Widget`
|
|
7884
7888
|
"""
|
|
7889
|
+
|
|
7885
7890
|
body = {}
|
|
7886
7891
|
if dashboard_id is not None:
|
|
7887
7892
|
body["dashboard_id"] = dashboard_id
|
|
@@ -8027,6 +8032,7 @@ class DashboardsAPI:
|
|
|
8027
8032
|
|
|
8028
8033
|
:returns: :class:`Dashboard`
|
|
8029
8034
|
"""
|
|
8035
|
+
|
|
8030
8036
|
body = {}
|
|
8031
8037
|
if name is not None:
|
|
8032
8038
|
body["name"] = name
|
|
@@ -8147,6 +8153,7 @@ class DbsqlPermissionsAPI:
|
|
|
8147
8153
|
|
|
8148
8154
|
:returns: :class:`SetResponse`
|
|
8149
8155
|
"""
|
|
8156
|
+
|
|
8150
8157
|
body = {}
|
|
8151
8158
|
if access_control_list is not None:
|
|
8152
8159
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
|
@@ -8179,6 +8186,7 @@ class DbsqlPermissionsAPI:
|
|
|
8179
8186
|
|
|
8180
8187
|
:returns: :class:`Success`
|
|
8181
8188
|
"""
|
|
8189
|
+
|
|
8182
8190
|
body = {}
|
|
8183
8191
|
if new_owner is not None:
|
|
8184
8192
|
body["new_owner"] = new_owner
|
|
@@ -8216,6 +8224,7 @@ class QueriesAPI:
|
|
|
8216
8224
|
|
|
8217
8225
|
:returns: :class:`Query`
|
|
8218
8226
|
"""
|
|
8227
|
+
|
|
8219
8228
|
body = {}
|
|
8220
8229
|
if auto_resolve_display_name is not None:
|
|
8221
8230
|
body["auto_resolve_display_name"] = auto_resolve_display_name
|
|
@@ -8348,6 +8357,7 @@ class QueriesAPI:
|
|
|
8348
8357
|
|
|
8349
8358
|
:returns: :class:`Query`
|
|
8350
8359
|
"""
|
|
8360
|
+
|
|
8351
8361
|
body = {}
|
|
8352
8362
|
if auto_resolve_display_name is not None:
|
|
8353
8363
|
body["auto_resolve_display_name"] = auto_resolve_display_name
|
|
@@ -8427,6 +8437,7 @@ class QueriesLegacyAPI:
|
|
|
8427
8437
|
|
|
8428
8438
|
:returns: :class:`LegacyQuery`
|
|
8429
8439
|
"""
|
|
8440
|
+
|
|
8430
8441
|
body = {}
|
|
8431
8442
|
if data_source_id is not None:
|
|
8432
8443
|
body["data_source_id"] = data_source_id
|
|
@@ -8622,6 +8633,7 @@ class QueriesLegacyAPI:
|
|
|
8622
8633
|
|
|
8623
8634
|
:returns: :class:`LegacyQuery`
|
|
8624
8635
|
"""
|
|
8636
|
+
|
|
8625
8637
|
body = {}
|
|
8626
8638
|
if data_source_id is not None:
|
|
8627
8639
|
body["data_source_id"] = data_source_id
|
|
@@ -8715,6 +8727,7 @@ class QueryVisualizationsAPI:
|
|
|
8715
8727
|
|
|
8716
8728
|
:returns: :class:`Visualization`
|
|
8717
8729
|
"""
|
|
8730
|
+
|
|
8718
8731
|
body = {}
|
|
8719
8732
|
if visualization is not None:
|
|
8720
8733
|
body["visualization"] = visualization.as_dict()
|
|
@@ -8760,6 +8773,7 @@ class QueryVisualizationsAPI:
|
|
|
8760
8773
|
|
|
8761
8774
|
:returns: :class:`Visualization`
|
|
8762
8775
|
"""
|
|
8776
|
+
|
|
8763
8777
|
body = {}
|
|
8764
8778
|
if update_mask is not None:
|
|
8765
8779
|
body["update_mask"] = update_mask
|
|
@@ -8810,6 +8824,7 @@ class QueryVisualizationsLegacyAPI:
|
|
|
8810
8824
|
|
|
8811
8825
|
:returns: :class:`LegacyVisualization`
|
|
8812
8826
|
"""
|
|
8827
|
+
|
|
8813
8828
|
body = {}
|
|
8814
8829
|
if description is not None:
|
|
8815
8830
|
body["description"] = description
|
|
@@ -8851,10 +8866,10 @@ class QueryVisualizationsLegacyAPI:
|
|
|
8851
8866
|
|
|
8852
8867
|
def update(
|
|
8853
8868
|
self,
|
|
8854
|
-
id: str,
|
|
8855
8869
|
*,
|
|
8856
8870
|
created_at: Optional[str] = None,
|
|
8857
8871
|
description: Optional[str] = None,
|
|
8872
|
+
id: Optional[str] = None,
|
|
8858
8873
|
name: Optional[str] = None,
|
|
8859
8874
|
options: Optional[Any] = None,
|
|
8860
8875
|
query: Optional[LegacyQuery] = None,
|
|
@@ -8868,11 +8883,11 @@ class QueryVisualizationsLegacyAPI:
|
|
|
8868
8883
|
|
|
8869
8884
|
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
|
|
8870
8885
|
|
|
8871
|
-
:param id: str
|
|
8872
|
-
The UUID for this visualization.
|
|
8873
8886
|
:param created_at: str (optional)
|
|
8874
8887
|
:param description: str (optional)
|
|
8875
8888
|
A short description of this visualization. This is not displayed in the UI.
|
|
8889
|
+
:param id: str (optional)
|
|
8890
|
+
The UUID for this visualization.
|
|
8876
8891
|
:param name: str (optional)
|
|
8877
8892
|
The name of the visualization that appears on dashboards and the query screen.
|
|
8878
8893
|
:param options: Any (optional)
|
|
@@ -8885,11 +8900,14 @@ class QueryVisualizationsLegacyAPI:
|
|
|
8885
8900
|
|
|
8886
8901
|
:returns: :class:`LegacyVisualization`
|
|
8887
8902
|
"""
|
|
8903
|
+
|
|
8888
8904
|
body = {}
|
|
8889
8905
|
if created_at is not None:
|
|
8890
8906
|
body["created_at"] = created_at
|
|
8891
8907
|
if description is not None:
|
|
8892
8908
|
body["description"] = description
|
|
8909
|
+
if id is not None:
|
|
8910
|
+
body["id"] = id
|
|
8893
8911
|
if name is not None:
|
|
8894
8912
|
body["name"] = name
|
|
8895
8913
|
if options is not None:
|
|
@@ -9223,6 +9241,7 @@ class StatementExecutionAPI:
|
|
|
9223
9241
|
|
|
9224
9242
|
:returns: :class:`StatementResponse`
|
|
9225
9243
|
"""
|
|
9244
|
+
|
|
9226
9245
|
body = {}
|
|
9227
9246
|
if byte_limit is not None:
|
|
9228
9247
|
body["byte_limit"] = byte_limit
|
|
@@ -9451,6 +9470,7 @@ class WarehousesAPI:
|
|
|
9451
9470
|
Long-running operation waiter for :class:`GetWarehouseResponse`.
|
|
9452
9471
|
See :method:wait_get_warehouse_running for more details.
|
|
9453
9472
|
"""
|
|
9473
|
+
|
|
9454
9474
|
body = {}
|
|
9455
9475
|
if auto_stop_mins is not None:
|
|
9456
9476
|
body["auto_stop_mins"] = auto_stop_mins
|
|
@@ -9620,6 +9640,7 @@ class WarehousesAPI:
|
|
|
9620
9640
|
Long-running operation waiter for :class:`GetWarehouseResponse`.
|
|
9621
9641
|
See :method:wait_get_warehouse_running for more details.
|
|
9622
9642
|
"""
|
|
9643
|
+
|
|
9623
9644
|
body = {}
|
|
9624
9645
|
if auto_stop_mins is not None:
|
|
9625
9646
|
body["auto_stop_mins"] = auto_stop_mins
|
|
@@ -9806,6 +9827,7 @@ class WarehousesAPI:
|
|
|
9806
9827
|
|
|
9807
9828
|
:returns: :class:`WarehousePermissions`
|
|
9808
9829
|
"""
|
|
9830
|
+
|
|
9809
9831
|
body = {}
|
|
9810
9832
|
if access_control_list is not None:
|
|
9811
9833
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
|
@@ -9861,6 +9883,7 @@ class WarehousesAPI:
|
|
|
9861
9883
|
|
|
9862
9884
|
|
|
9863
9885
|
"""
|
|
9886
|
+
|
|
9864
9887
|
body = {}
|
|
9865
9888
|
if channel is not None:
|
|
9866
9889
|
body["channel"] = channel.as_dict()
|
|
@@ -9943,6 +9966,7 @@ class WarehousesAPI:
|
|
|
9943
9966
|
|
|
9944
9967
|
:returns: :class:`WarehousePermissions`
|
|
9945
9968
|
"""
|
|
9969
|
+
|
|
9946
9970
|
body = {}
|
|
9947
9971
|
if access_control_list is not None:
|
|
9948
9972
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
databricks/sdk/service/tags.py
CHANGED
|
@@ -149,6 +149,7 @@ class TagPoliciesAPI:
|
|
|
149
149
|
|
|
150
150
|
:returns: :class:`TagPolicy`
|
|
151
151
|
"""
|
|
152
|
+
|
|
152
153
|
body = tag_policy.as_dict()
|
|
153
154
|
headers = {
|
|
154
155
|
"Accept": "application/json",
|
|
@@ -238,6 +239,7 @@ class TagPoliciesAPI:
|
|
|
238
239
|
|
|
239
240
|
:returns: :class:`TagPolicy`
|
|
240
241
|
"""
|
|
242
|
+
|
|
241
243
|
body = tag_policy.as_dict()
|
|
242
244
|
query = {}
|
|
243
245
|
if update_mask is not None:
|
|
@@ -598,6 +598,8 @@ class EndpointStatusState(Enum):
|
|
|
598
598
|
OFFLINE = "OFFLINE"
|
|
599
599
|
ONLINE = "ONLINE"
|
|
600
600
|
PROVISIONING = "PROVISIONING"
|
|
601
|
+
RED_STATE = "RED_STATE"
|
|
602
|
+
YELLOW_STATE = "YELLOW_STATE"
|
|
601
603
|
|
|
602
604
|
|
|
603
605
|
class EndpointType(Enum):
|
|
@@ -1429,6 +1431,7 @@ class VectorSearchEndpointsAPI:
|
|
|
1429
1431
|
Long-running operation waiter for :class:`EndpointInfo`.
|
|
1430
1432
|
See :method:wait_get_endpoint_vector_search_endpoint_online for more details.
|
|
1431
1433
|
"""
|
|
1434
|
+
|
|
1432
1435
|
body = {}
|
|
1433
1436
|
if budget_policy_id is not None:
|
|
1434
1437
|
body["budget_policy_id"] = budget_policy_id
|
|
@@ -1529,6 +1532,7 @@ class VectorSearchEndpointsAPI:
|
|
|
1529
1532
|
|
|
1530
1533
|
:returns: :class:`PatchEndpointBudgetPolicyResponse`
|
|
1531
1534
|
"""
|
|
1535
|
+
|
|
1532
1536
|
body = {}
|
|
1533
1537
|
if budget_policy_id is not None:
|
|
1534
1538
|
body["budget_policy_id"] = budget_policy_id
|
|
@@ -1554,6 +1558,7 @@ class VectorSearchEndpointsAPI:
|
|
|
1554
1558
|
|
|
1555
1559
|
:returns: :class:`UpdateEndpointCustomTagsResponse`
|
|
1556
1560
|
"""
|
|
1561
|
+
|
|
1557
1562
|
body = {}
|
|
1558
1563
|
if custom_tags is not None:
|
|
1559
1564
|
body["custom_tags"] = [v.as_dict() for v in custom_tags]
|
|
@@ -1606,6 +1611,7 @@ class VectorSearchIndexesAPI:
|
|
|
1606
1611
|
|
|
1607
1612
|
:returns: :class:`VectorIndex`
|
|
1608
1613
|
"""
|
|
1614
|
+
|
|
1609
1615
|
body = {}
|
|
1610
1616
|
if delta_sync_index_spec is not None:
|
|
1611
1617
|
body["delta_sync_index_spec"] = delta_sync_index_spec.as_dict()
|
|
@@ -1752,7 +1758,7 @@ class VectorSearchIndexesAPI:
|
|
|
1752
1758
|
:param query_text: str (optional)
|
|
1753
1759
|
Query text. Required for Delta Sync Index using model endpoint.
|
|
1754
1760
|
:param query_type: str (optional)
|
|
1755
|
-
The query type to use. Choices are `ANN` and `HYBRID`. Defaults to `ANN`.
|
|
1761
|
+
The query type to use. Choices are `ANN` and `HYBRID` and `FULL_TEXT`. Defaults to `ANN`.
|
|
1756
1762
|
:param query_vector: List[float] (optional)
|
|
1757
1763
|
Query vector. Required for Direct Vector Access Index and Delta Sync Index using self-managed
|
|
1758
1764
|
vectors.
|
|
@@ -1762,6 +1768,7 @@ class VectorSearchIndexesAPI:
|
|
|
1762
1768
|
|
|
1763
1769
|
:returns: :class:`QueryVectorIndexResponse`
|
|
1764
1770
|
"""
|
|
1771
|
+
|
|
1765
1772
|
body = {}
|
|
1766
1773
|
if columns is not None:
|
|
1767
1774
|
body["columns"] = [v for v in columns]
|
|
@@ -1804,6 +1811,7 @@ class VectorSearchIndexesAPI:
|
|
|
1804
1811
|
|
|
1805
1812
|
:returns: :class:`QueryVectorIndexResponse`
|
|
1806
1813
|
"""
|
|
1814
|
+
|
|
1807
1815
|
body = {}
|
|
1808
1816
|
if endpoint_name is not None:
|
|
1809
1817
|
body["endpoint_name"] = endpoint_name
|
|
@@ -1834,6 +1842,7 @@ class VectorSearchIndexesAPI:
|
|
|
1834
1842
|
|
|
1835
1843
|
:returns: :class:`ScanVectorIndexResponse`
|
|
1836
1844
|
"""
|
|
1845
|
+
|
|
1837
1846
|
body = {}
|
|
1838
1847
|
if last_primary_key is not None:
|
|
1839
1848
|
body["last_primary_key"] = last_primary_key
|
|
@@ -1872,6 +1881,7 @@ class VectorSearchIndexesAPI:
|
|
|
1872
1881
|
|
|
1873
1882
|
:returns: :class:`UpsertDataVectorIndexResponse`
|
|
1874
1883
|
"""
|
|
1884
|
+
|
|
1875
1885
|
body = {}
|
|
1876
1886
|
if inputs_json is not None:
|
|
1877
1887
|
body["inputs_json"] = inputs_json
|
|
@@ -240,24 +240,6 @@ class CreateRepoResponse:
|
|
|
240
240
|
)
|
|
241
241
|
|
|
242
242
|
|
|
243
|
-
@dataclass
|
|
244
|
-
class CreateScopeResponse:
|
|
245
|
-
def as_dict(self) -> dict:
|
|
246
|
-
"""Serializes the CreateScopeResponse into a dictionary suitable for use as a JSON request body."""
|
|
247
|
-
body = {}
|
|
248
|
-
return body
|
|
249
|
-
|
|
250
|
-
def as_shallow_dict(self) -> dict:
|
|
251
|
-
"""Serializes the CreateScopeResponse into a shallow dictionary of its immediate attributes."""
|
|
252
|
-
body = {}
|
|
253
|
-
return body
|
|
254
|
-
|
|
255
|
-
@classmethod
|
|
256
|
-
def from_dict(cls, d: Dict[str, Any]) -> CreateScopeResponse:
|
|
257
|
-
"""Deserializes the CreateScopeResponse from a dictionary."""
|
|
258
|
-
return cls()
|
|
259
|
-
|
|
260
|
-
|
|
261
243
|
@dataclass
|
|
262
244
|
class CredentialInfo:
|
|
263
245
|
credential_id: int
|
|
@@ -331,24 +313,6 @@ class CredentialInfo:
|
|
|
331
313
|
)
|
|
332
314
|
|
|
333
315
|
|
|
334
|
-
@dataclass
|
|
335
|
-
class DeleteAclResponse:
|
|
336
|
-
def as_dict(self) -> dict:
|
|
337
|
-
"""Serializes the DeleteAclResponse into a dictionary suitable for use as a JSON request body."""
|
|
338
|
-
body = {}
|
|
339
|
-
return body
|
|
340
|
-
|
|
341
|
-
def as_shallow_dict(self) -> dict:
|
|
342
|
-
"""Serializes the DeleteAclResponse into a shallow dictionary of its immediate attributes."""
|
|
343
|
-
body = {}
|
|
344
|
-
return body
|
|
345
|
-
|
|
346
|
-
@classmethod
|
|
347
|
-
def from_dict(cls, d: Dict[str, Any]) -> DeleteAclResponse:
|
|
348
|
-
"""Deserializes the DeleteAclResponse from a dictionary."""
|
|
349
|
-
return cls()
|
|
350
|
-
|
|
351
|
-
|
|
352
316
|
@dataclass
|
|
353
317
|
class DeleteCredentialsResponse:
|
|
354
318
|
def as_dict(self) -> dict:
|
|
@@ -403,24 +367,6 @@ class DeleteResponse:
|
|
|
403
367
|
return cls()
|
|
404
368
|
|
|
405
369
|
|
|
406
|
-
@dataclass
|
|
407
|
-
class DeleteScopeResponse:
|
|
408
|
-
def as_dict(self) -> dict:
|
|
409
|
-
"""Serializes the DeleteScopeResponse into a dictionary suitable for use as a JSON request body."""
|
|
410
|
-
body = {}
|
|
411
|
-
return body
|
|
412
|
-
|
|
413
|
-
def as_shallow_dict(self) -> dict:
|
|
414
|
-
"""Serializes the DeleteScopeResponse into a shallow dictionary of its immediate attributes."""
|
|
415
|
-
body = {}
|
|
416
|
-
return body
|
|
417
|
-
|
|
418
|
-
@classmethod
|
|
419
|
-
def from_dict(cls, d: Dict[str, Any]) -> DeleteScopeResponse:
|
|
420
|
-
"""Deserializes the DeleteScopeResponse from a dictionary."""
|
|
421
|
-
return cls()
|
|
422
|
-
|
|
423
|
-
|
|
424
370
|
@dataclass
|
|
425
371
|
class DeleteSecretResponse:
|
|
426
372
|
def as_dict(self) -> dict:
|
|
@@ -1032,42 +978,6 @@ class ObjectType(Enum):
|
|
|
1032
978
|
REPO = "REPO"
|
|
1033
979
|
|
|
1034
980
|
|
|
1035
|
-
@dataclass
|
|
1036
|
-
class PutAclResponse:
|
|
1037
|
-
def as_dict(self) -> dict:
|
|
1038
|
-
"""Serializes the PutAclResponse into a dictionary suitable for use as a JSON request body."""
|
|
1039
|
-
body = {}
|
|
1040
|
-
return body
|
|
1041
|
-
|
|
1042
|
-
def as_shallow_dict(self) -> dict:
|
|
1043
|
-
"""Serializes the PutAclResponse into a shallow dictionary of its immediate attributes."""
|
|
1044
|
-
body = {}
|
|
1045
|
-
return body
|
|
1046
|
-
|
|
1047
|
-
@classmethod
|
|
1048
|
-
def from_dict(cls, d: Dict[str, Any]) -> PutAclResponse:
|
|
1049
|
-
"""Deserializes the PutAclResponse from a dictionary."""
|
|
1050
|
-
return cls()
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
@dataclass
|
|
1054
|
-
class PutSecretResponse:
|
|
1055
|
-
def as_dict(self) -> dict:
|
|
1056
|
-
"""Serializes the PutSecretResponse into a dictionary suitable for use as a JSON request body."""
|
|
1057
|
-
body = {}
|
|
1058
|
-
return body
|
|
1059
|
-
|
|
1060
|
-
def as_shallow_dict(self) -> dict:
|
|
1061
|
-
"""Serializes the PutSecretResponse into a shallow dictionary of its immediate attributes."""
|
|
1062
|
-
body = {}
|
|
1063
|
-
return body
|
|
1064
|
-
|
|
1065
|
-
@classmethod
|
|
1066
|
-
def from_dict(cls, d: Dict[str, Any]) -> PutSecretResponse:
|
|
1067
|
-
"""Deserializes the PutSecretResponse from a dictionary."""
|
|
1068
|
-
return cls()
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
981
|
@dataclass
|
|
1072
982
|
class RepoAccessControlRequest:
|
|
1073
983
|
group_name: Optional[str] = None
|
|
@@ -1840,6 +1750,7 @@ class GitCredentialsAPI:
|
|
|
1840
1750
|
|
|
1841
1751
|
:returns: :class:`CreateCredentialsResponse`
|
|
1842
1752
|
"""
|
|
1753
|
+
|
|
1843
1754
|
body = {}
|
|
1844
1755
|
if git_email is not None:
|
|
1845
1756
|
body["git_email"] = git_email
|
|
@@ -1948,6 +1859,7 @@ class GitCredentialsAPI:
|
|
|
1948
1859
|
|
|
1949
1860
|
|
|
1950
1861
|
"""
|
|
1862
|
+
|
|
1951
1863
|
body = {}
|
|
1952
1864
|
if git_email is not None:
|
|
1953
1865
|
body["git_email"] = git_email
|
|
@@ -2004,6 +1916,7 @@ class ReposAPI:
|
|
|
2004
1916
|
|
|
2005
1917
|
:returns: :class:`CreateRepoResponse`
|
|
2006
1918
|
"""
|
|
1919
|
+
|
|
2007
1920
|
body = {}
|
|
2008
1921
|
if path is not None:
|
|
2009
1922
|
body["path"] = path
|
|
@@ -2129,6 +2042,7 @@ class ReposAPI:
|
|
|
2129
2042
|
|
|
2130
2043
|
:returns: :class:`RepoPermissions`
|
|
2131
2044
|
"""
|
|
2045
|
+
|
|
2132
2046
|
body = {}
|
|
2133
2047
|
if access_control_list is not None:
|
|
2134
2048
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
|
@@ -2165,6 +2079,7 @@ class ReposAPI:
|
|
|
2165
2079
|
|
|
2166
2080
|
|
|
2167
2081
|
"""
|
|
2082
|
+
|
|
2168
2083
|
body = {}
|
|
2169
2084
|
if branch is not None:
|
|
2170
2085
|
body["branch"] = branch
|
|
@@ -2190,6 +2105,7 @@ class ReposAPI:
|
|
|
2190
2105
|
|
|
2191
2106
|
:returns: :class:`RepoPermissions`
|
|
2192
2107
|
"""
|
|
2108
|
+
|
|
2193
2109
|
body = {}
|
|
2194
2110
|
if access_control_list is not None:
|
|
2195
2111
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
|
@@ -2268,6 +2184,7 @@ class SecretsAPI:
|
|
|
2268
2184
|
|
|
2269
2185
|
|
|
2270
2186
|
"""
|
|
2187
|
+
|
|
2271
2188
|
body = {}
|
|
2272
2189
|
if backend_azure_keyvault is not None:
|
|
2273
2190
|
body["backend_azure_keyvault"] = backend_azure_keyvault.as_dict()
|
|
@@ -2305,6 +2222,7 @@ class SecretsAPI:
|
|
|
2305
2222
|
|
|
2306
2223
|
|
|
2307
2224
|
"""
|
|
2225
|
+
|
|
2308
2226
|
body = {}
|
|
2309
2227
|
if principal is not None:
|
|
2310
2228
|
body["principal"] = principal
|
|
@@ -2334,6 +2252,7 @@ class SecretsAPI:
|
|
|
2334
2252
|
|
|
2335
2253
|
|
|
2336
2254
|
"""
|
|
2255
|
+
|
|
2337
2256
|
body = {}
|
|
2338
2257
|
if scope is not None:
|
|
2339
2258
|
body["scope"] = scope
|
|
@@ -2365,6 +2284,7 @@ class SecretsAPI:
|
|
|
2365
2284
|
|
|
2366
2285
|
|
|
2367
2286
|
"""
|
|
2287
|
+
|
|
2368
2288
|
body = {}
|
|
2369
2289
|
if key is not None:
|
|
2370
2290
|
body["key"] = key
|
|
@@ -2586,6 +2506,7 @@ class SecretsAPI:
|
|
|
2586
2506
|
|
|
2587
2507
|
|
|
2588
2508
|
"""
|
|
2509
|
+
|
|
2589
2510
|
body = {}
|
|
2590
2511
|
if permission is not None:
|
|
2591
2512
|
body["permission"] = permission.value
|
|
@@ -2637,6 +2558,7 @@ class SecretsAPI:
|
|
|
2637
2558
|
|
|
2638
2559
|
|
|
2639
2560
|
"""
|
|
2561
|
+
|
|
2640
2562
|
body = {}
|
|
2641
2563
|
if bytes_value is not None:
|
|
2642
2564
|
body["bytes_value"] = bytes_value
|
|
@@ -2679,6 +2601,7 @@ class WorkspaceAPI:
|
|
|
2679
2601
|
|
|
2680
2602
|
|
|
2681
2603
|
"""
|
|
2604
|
+
|
|
2682
2605
|
body = {}
|
|
2683
2606
|
if path is not None:
|
|
2684
2607
|
body["path"] = path
|
|
@@ -2807,7 +2730,7 @@ class WorkspaceAPI:
|
|
|
2807
2730
|
If `path` already exists and `overwrite` is set to `false`, this call returns an error
|
|
2808
2731
|
`RESOURCE_ALREADY_EXISTS`. To import a directory, you can use either the `DBC` format or the `SOURCE`
|
|
2809
2732
|
format with the `language` field unset. To import a single file as `SOURCE`, you must set the
|
|
2810
|
-
`language` field.
|
|
2733
|
+
`language` field. Zip files within directories are not supported.
|
|
2811
2734
|
|
|
2812
2735
|
:param path: str
|
|
2813
2736
|
The absolute path of the object or directory. Importing a directory is only supported for the `DBC`
|
|
@@ -2836,6 +2759,7 @@ class WorkspaceAPI:
|
|
|
2836
2759
|
|
|
2837
2760
|
|
|
2838
2761
|
"""
|
|
2762
|
+
|
|
2839
2763
|
body = {}
|
|
2840
2764
|
if content is not None:
|
|
2841
2765
|
body["content"] = content
|
|
@@ -2893,6 +2817,7 @@ class WorkspaceAPI:
|
|
|
2893
2817
|
|
|
2894
2818
|
|
|
2895
2819
|
"""
|
|
2820
|
+
|
|
2896
2821
|
body = {}
|
|
2897
2822
|
if path is not None:
|
|
2898
2823
|
body["path"] = path
|
|
@@ -2922,6 +2847,7 @@ class WorkspaceAPI:
|
|
|
2922
2847
|
|
|
2923
2848
|
:returns: :class:`WorkspaceObjectPermissions`
|
|
2924
2849
|
"""
|
|
2850
|
+
|
|
2925
2851
|
body = {}
|
|
2926
2852
|
if access_control_list is not None:
|
|
2927
2853
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
|
@@ -2953,6 +2879,7 @@ class WorkspaceAPI:
|
|
|
2953
2879
|
|
|
2954
2880
|
:returns: :class:`WorkspaceObjectPermissions`
|
|
2955
2881
|
"""
|
|
2882
|
+
|
|
2956
2883
|
body = {}
|
|
2957
2884
|
if access_control_list is not None:
|
|
2958
2885
|
body["access_control_list"] = [v.as_dict() for v in access_control_list]
|
databricks/sdk/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.72.0"
|