databricks-sdk 0.57.0__py3-none-any.whl → 0.59.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 -9
- databricks/sdk/service/aibuilder.py +0 -163
- databricks/sdk/service/apps.py +53 -49
- databricks/sdk/service/billing.py +62 -223
- databricks/sdk/service/catalog.py +3052 -3707
- databricks/sdk/service/cleanrooms.py +5 -54
- databricks/sdk/service/compute.py +579 -2715
- databricks/sdk/service/dashboards.py +108 -317
- databricks/sdk/service/database.py +603 -122
- databricks/sdk/service/files.py +2 -218
- databricks/sdk/service/iam.py +19 -298
- databricks/sdk/service/jobs.py +77 -1263
- databricks/sdk/service/marketplace.py +3 -575
- databricks/sdk/service/ml.py +816 -2734
- databricks/sdk/service/oauth2.py +122 -238
- databricks/sdk/service/pipelines.py +133 -724
- databricks/sdk/service/provisioning.py +36 -757
- databricks/sdk/service/qualitymonitorv2.py +0 -18
- databricks/sdk/service/serving.py +37 -583
- databricks/sdk/service/settings.py +282 -1768
- databricks/sdk/service/sharing.py +6 -478
- databricks/sdk/service/sql.py +129 -1696
- databricks/sdk/service/vectorsearch.py +0 -410
- databricks/sdk/service/workspace.py +252 -727
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/METADATA +1 -1
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/RECORD +31 -31
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/WHEEL +0 -0
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/licenses/LICENSE +0 -0
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/licenses/NOTICE +0 -0
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/top_level.txt +0 -0
|
@@ -44,120 +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
|
-
"""There are 2 types of Vector Search indexes: - `DELTA_SYNC`: An index that automatically syncs
|
|
103
|
-
with a source Delta Table, automatically and incrementally updating the index as the underlying
|
|
104
|
-
data in the Delta Table changes. - `DIRECT_ACCESS`: An index that supports direct read and write
|
|
105
|
-
of vectors and metadata through our REST and SDK APIs. With this model, the user manages index
|
|
106
|
-
updates."""
|
|
107
|
-
|
|
108
|
-
delta_sync_index_spec: Optional[DeltaSyncVectorIndexSpecRequest] = None
|
|
109
|
-
"""Specification for Delta Sync Index. Required if `index_type` is `DELTA_SYNC`."""
|
|
110
|
-
|
|
111
|
-
direct_access_index_spec: Optional[DirectAccessVectorIndexSpec] = None
|
|
112
|
-
"""Specification for Direct Vector Access Index. Required if `index_type` is `DIRECT_ACCESS`."""
|
|
113
|
-
|
|
114
|
-
def as_dict(self) -> dict:
|
|
115
|
-
"""Serializes the CreateVectorIndexRequest into a dictionary suitable for use as a JSON request body."""
|
|
116
|
-
body = {}
|
|
117
|
-
if self.delta_sync_index_spec:
|
|
118
|
-
body["delta_sync_index_spec"] = self.delta_sync_index_spec.as_dict()
|
|
119
|
-
if self.direct_access_index_spec:
|
|
120
|
-
body["direct_access_index_spec"] = self.direct_access_index_spec.as_dict()
|
|
121
|
-
if self.endpoint_name is not None:
|
|
122
|
-
body["endpoint_name"] = self.endpoint_name
|
|
123
|
-
if self.index_type is not None:
|
|
124
|
-
body["index_type"] = self.index_type.value
|
|
125
|
-
if self.name is not None:
|
|
126
|
-
body["name"] = self.name
|
|
127
|
-
if self.primary_key is not None:
|
|
128
|
-
body["primary_key"] = self.primary_key
|
|
129
|
-
return body
|
|
130
|
-
|
|
131
|
-
def as_shallow_dict(self) -> dict:
|
|
132
|
-
"""Serializes the CreateVectorIndexRequest into a shallow dictionary of its immediate attributes."""
|
|
133
|
-
body = {}
|
|
134
|
-
if self.delta_sync_index_spec:
|
|
135
|
-
body["delta_sync_index_spec"] = self.delta_sync_index_spec
|
|
136
|
-
if self.direct_access_index_spec:
|
|
137
|
-
body["direct_access_index_spec"] = self.direct_access_index_spec
|
|
138
|
-
if self.endpoint_name is not None:
|
|
139
|
-
body["endpoint_name"] = self.endpoint_name
|
|
140
|
-
if self.index_type is not None:
|
|
141
|
-
body["index_type"] = self.index_type
|
|
142
|
-
if self.name is not None:
|
|
143
|
-
body["name"] = self.name
|
|
144
|
-
if self.primary_key is not None:
|
|
145
|
-
body["primary_key"] = self.primary_key
|
|
146
|
-
return body
|
|
147
|
-
|
|
148
|
-
@classmethod
|
|
149
|
-
def from_dict(cls, d: Dict[str, Any]) -> CreateVectorIndexRequest:
|
|
150
|
-
"""Deserializes the CreateVectorIndexRequest from a dictionary."""
|
|
151
|
-
return cls(
|
|
152
|
-
delta_sync_index_spec=_from_dict(d, "delta_sync_index_spec", DeltaSyncVectorIndexSpecRequest),
|
|
153
|
-
direct_access_index_spec=_from_dict(d, "direct_access_index_spec", DirectAccessVectorIndexSpec),
|
|
154
|
-
endpoint_name=d.get("endpoint_name", None),
|
|
155
|
-
index_type=_enum(d, "index_type", VectorIndexType),
|
|
156
|
-
name=d.get("name", None),
|
|
157
|
-
primary_key=d.get("primary_key", None),
|
|
158
|
-
)
|
|
159
|
-
|
|
160
|
-
|
|
161
47
|
@dataclass
|
|
162
48
|
class CustomTag:
|
|
163
49
|
key: str
|
|
@@ -845,11 +731,6 @@ class MiniVectorIndex:
|
|
|
845
731
|
"""Name of the endpoint associated with the index"""
|
|
846
732
|
|
|
847
733
|
index_type: Optional[VectorIndexType] = None
|
|
848
|
-
"""There are 2 types of Vector Search indexes: - `DELTA_SYNC`: An index that automatically syncs
|
|
849
|
-
with a source Delta Table, automatically and incrementally updating the index as the underlying
|
|
850
|
-
data in the Delta Table changes. - `DIRECT_ACCESS`: An index that supports direct read and write
|
|
851
|
-
of vectors and metadata through our REST and SDK APIs. With this model, the user manages index
|
|
852
|
-
updates."""
|
|
853
734
|
|
|
854
735
|
name: Optional[str] = None
|
|
855
736
|
"""Name of the index"""
|
|
@@ -899,38 +780,6 @@ class MiniVectorIndex:
|
|
|
899
780
|
)
|
|
900
781
|
|
|
901
782
|
|
|
902
|
-
@dataclass
|
|
903
|
-
class PatchEndpointBudgetPolicyRequest:
|
|
904
|
-
budget_policy_id: str
|
|
905
|
-
"""The budget policy id to be applied"""
|
|
906
|
-
|
|
907
|
-
endpoint_name: Optional[str] = None
|
|
908
|
-
"""Name of the vector search endpoint"""
|
|
909
|
-
|
|
910
|
-
def as_dict(self) -> dict:
|
|
911
|
-
"""Serializes the PatchEndpointBudgetPolicyRequest into a dictionary suitable for use as a JSON request body."""
|
|
912
|
-
body = {}
|
|
913
|
-
if self.budget_policy_id is not None:
|
|
914
|
-
body["budget_policy_id"] = self.budget_policy_id
|
|
915
|
-
if self.endpoint_name is not None:
|
|
916
|
-
body["endpoint_name"] = self.endpoint_name
|
|
917
|
-
return body
|
|
918
|
-
|
|
919
|
-
def as_shallow_dict(self) -> dict:
|
|
920
|
-
"""Serializes the PatchEndpointBudgetPolicyRequest into a shallow dictionary of its immediate attributes."""
|
|
921
|
-
body = {}
|
|
922
|
-
if self.budget_policy_id is not None:
|
|
923
|
-
body["budget_policy_id"] = self.budget_policy_id
|
|
924
|
-
if self.endpoint_name is not None:
|
|
925
|
-
body["endpoint_name"] = self.endpoint_name
|
|
926
|
-
return body
|
|
927
|
-
|
|
928
|
-
@classmethod
|
|
929
|
-
def from_dict(cls, d: Dict[str, Any]) -> PatchEndpointBudgetPolicyRequest:
|
|
930
|
-
"""Deserializes the PatchEndpointBudgetPolicyRequest from a dictionary."""
|
|
931
|
-
return cls(budget_policy_id=d.get("budget_policy_id", None), endpoint_name=d.get("endpoint_name", None))
|
|
932
|
-
|
|
933
|
-
|
|
934
783
|
@dataclass
|
|
935
784
|
class PatchEndpointBudgetPolicyResponse:
|
|
936
785
|
effective_budget_policy_id: Optional[str] = None
|
|
@@ -967,149 +816,6 @@ class PipelineType(Enum):
|
|
|
967
816
|
TRIGGERED = "TRIGGERED"
|
|
968
817
|
|
|
969
818
|
|
|
970
|
-
@dataclass
|
|
971
|
-
class QueryVectorIndexNextPageRequest:
|
|
972
|
-
"""Request payload for getting next page of results."""
|
|
973
|
-
|
|
974
|
-
endpoint_name: Optional[str] = None
|
|
975
|
-
"""Name of the endpoint."""
|
|
976
|
-
|
|
977
|
-
index_name: Optional[str] = None
|
|
978
|
-
"""Name of the vector index to query."""
|
|
979
|
-
|
|
980
|
-
page_token: Optional[str] = None
|
|
981
|
-
"""Page token returned from previous `QueryVectorIndex` or `QueryVectorIndexNextPage` API."""
|
|
982
|
-
|
|
983
|
-
def as_dict(self) -> dict:
|
|
984
|
-
"""Serializes the QueryVectorIndexNextPageRequest into a dictionary suitable for use as a JSON request body."""
|
|
985
|
-
body = {}
|
|
986
|
-
if self.endpoint_name is not None:
|
|
987
|
-
body["endpoint_name"] = self.endpoint_name
|
|
988
|
-
if self.index_name is not None:
|
|
989
|
-
body["index_name"] = self.index_name
|
|
990
|
-
if self.page_token is not None:
|
|
991
|
-
body["page_token"] = self.page_token
|
|
992
|
-
return body
|
|
993
|
-
|
|
994
|
-
def as_shallow_dict(self) -> dict:
|
|
995
|
-
"""Serializes the QueryVectorIndexNextPageRequest into a shallow dictionary of its immediate attributes."""
|
|
996
|
-
body = {}
|
|
997
|
-
if self.endpoint_name is not None:
|
|
998
|
-
body["endpoint_name"] = self.endpoint_name
|
|
999
|
-
if self.index_name is not None:
|
|
1000
|
-
body["index_name"] = self.index_name
|
|
1001
|
-
if self.page_token is not None:
|
|
1002
|
-
body["page_token"] = self.page_token
|
|
1003
|
-
return body
|
|
1004
|
-
|
|
1005
|
-
@classmethod
|
|
1006
|
-
def from_dict(cls, d: Dict[str, Any]) -> QueryVectorIndexNextPageRequest:
|
|
1007
|
-
"""Deserializes the QueryVectorIndexNextPageRequest from a dictionary."""
|
|
1008
|
-
return cls(
|
|
1009
|
-
endpoint_name=d.get("endpoint_name", None),
|
|
1010
|
-
index_name=d.get("index_name", None),
|
|
1011
|
-
page_token=d.get("page_token", None),
|
|
1012
|
-
)
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
@dataclass
|
|
1016
|
-
class QueryVectorIndexRequest:
|
|
1017
|
-
columns: List[str]
|
|
1018
|
-
"""List of column names to include in the response."""
|
|
1019
|
-
|
|
1020
|
-
columns_to_rerank: Optional[List[str]] = None
|
|
1021
|
-
"""Column names used to retrieve data to send to the reranker."""
|
|
1022
|
-
|
|
1023
|
-
filters_json: Optional[str] = None
|
|
1024
|
-
"""JSON string representing query filters.
|
|
1025
|
-
|
|
1026
|
-
Example filters:
|
|
1027
|
-
|
|
1028
|
-
- `{"id <": 5}`: Filter for id less than 5. - `{"id >": 5}`: Filter for id greater than 5. -
|
|
1029
|
-
`{"id <=": 5}`: Filter for id less than equal to 5. - `{"id >=": 5}`: Filter for id greater than
|
|
1030
|
-
equal to 5. - `{"id": 5}`: Filter for id equal to 5."""
|
|
1031
|
-
|
|
1032
|
-
index_name: Optional[str] = None
|
|
1033
|
-
"""Name of the vector index to query."""
|
|
1034
|
-
|
|
1035
|
-
num_results: Optional[int] = None
|
|
1036
|
-
"""Number of results to return. Defaults to 10."""
|
|
1037
|
-
|
|
1038
|
-
query_text: Optional[str] = None
|
|
1039
|
-
"""Query text. Required for Delta Sync Index using model endpoint."""
|
|
1040
|
-
|
|
1041
|
-
query_type: Optional[str] = None
|
|
1042
|
-
"""The query type to use. Choices are `ANN` and `HYBRID`. Defaults to `ANN`."""
|
|
1043
|
-
|
|
1044
|
-
query_vector: Optional[List[float]] = None
|
|
1045
|
-
"""Query vector. Required for Direct Vector Access Index and Delta Sync Index using self-managed
|
|
1046
|
-
vectors."""
|
|
1047
|
-
|
|
1048
|
-
score_threshold: Optional[float] = None
|
|
1049
|
-
"""Threshold for the approximate nearest neighbor search. Defaults to 0.0."""
|
|
1050
|
-
|
|
1051
|
-
def as_dict(self) -> dict:
|
|
1052
|
-
"""Serializes the QueryVectorIndexRequest into a dictionary suitable for use as a JSON request body."""
|
|
1053
|
-
body = {}
|
|
1054
|
-
if self.columns:
|
|
1055
|
-
body["columns"] = [v for v in self.columns]
|
|
1056
|
-
if self.columns_to_rerank:
|
|
1057
|
-
body["columns_to_rerank"] = [v for v in self.columns_to_rerank]
|
|
1058
|
-
if self.filters_json is not None:
|
|
1059
|
-
body["filters_json"] = self.filters_json
|
|
1060
|
-
if self.index_name is not None:
|
|
1061
|
-
body["index_name"] = self.index_name
|
|
1062
|
-
if self.num_results is not None:
|
|
1063
|
-
body["num_results"] = self.num_results
|
|
1064
|
-
if self.query_text is not None:
|
|
1065
|
-
body["query_text"] = self.query_text
|
|
1066
|
-
if self.query_type is not None:
|
|
1067
|
-
body["query_type"] = self.query_type
|
|
1068
|
-
if self.query_vector:
|
|
1069
|
-
body["query_vector"] = [v for v in self.query_vector]
|
|
1070
|
-
if self.score_threshold is not None:
|
|
1071
|
-
body["score_threshold"] = self.score_threshold
|
|
1072
|
-
return body
|
|
1073
|
-
|
|
1074
|
-
def as_shallow_dict(self) -> dict:
|
|
1075
|
-
"""Serializes the QueryVectorIndexRequest into a shallow dictionary of its immediate attributes."""
|
|
1076
|
-
body = {}
|
|
1077
|
-
if self.columns:
|
|
1078
|
-
body["columns"] = self.columns
|
|
1079
|
-
if self.columns_to_rerank:
|
|
1080
|
-
body["columns_to_rerank"] = self.columns_to_rerank
|
|
1081
|
-
if self.filters_json is not None:
|
|
1082
|
-
body["filters_json"] = self.filters_json
|
|
1083
|
-
if self.index_name is not None:
|
|
1084
|
-
body["index_name"] = self.index_name
|
|
1085
|
-
if self.num_results is not None:
|
|
1086
|
-
body["num_results"] = self.num_results
|
|
1087
|
-
if self.query_text is not None:
|
|
1088
|
-
body["query_text"] = self.query_text
|
|
1089
|
-
if self.query_type is not None:
|
|
1090
|
-
body["query_type"] = self.query_type
|
|
1091
|
-
if self.query_vector:
|
|
1092
|
-
body["query_vector"] = self.query_vector
|
|
1093
|
-
if self.score_threshold is not None:
|
|
1094
|
-
body["score_threshold"] = self.score_threshold
|
|
1095
|
-
return body
|
|
1096
|
-
|
|
1097
|
-
@classmethod
|
|
1098
|
-
def from_dict(cls, d: Dict[str, Any]) -> QueryVectorIndexRequest:
|
|
1099
|
-
"""Deserializes the QueryVectorIndexRequest from a dictionary."""
|
|
1100
|
-
return cls(
|
|
1101
|
-
columns=d.get("columns", None),
|
|
1102
|
-
columns_to_rerank=d.get("columns_to_rerank", None),
|
|
1103
|
-
filters_json=d.get("filters_json", None),
|
|
1104
|
-
index_name=d.get("index_name", None),
|
|
1105
|
-
num_results=d.get("num_results", None),
|
|
1106
|
-
query_text=d.get("query_text", None),
|
|
1107
|
-
query_type=d.get("query_type", None),
|
|
1108
|
-
query_vector=d.get("query_vector", None),
|
|
1109
|
-
score_threshold=d.get("score_threshold", None),
|
|
1110
|
-
)
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
819
|
@dataclass
|
|
1114
820
|
class QueryVectorIndexResponse:
|
|
1115
821
|
manifest: Optional[ResultManifest] = None
|
|
@@ -1223,49 +929,6 @@ class ResultManifest:
|
|
|
1223
929
|
return cls(column_count=d.get("column_count", None), columns=_repeated_dict(d, "columns", ColumnInfo))
|
|
1224
930
|
|
|
1225
931
|
|
|
1226
|
-
@dataclass
|
|
1227
|
-
class ScanVectorIndexRequest:
|
|
1228
|
-
index_name: Optional[str] = None
|
|
1229
|
-
"""Name of the vector index to scan."""
|
|
1230
|
-
|
|
1231
|
-
last_primary_key: Optional[str] = None
|
|
1232
|
-
"""Primary key of the last entry returned in the previous scan."""
|
|
1233
|
-
|
|
1234
|
-
num_results: Optional[int] = None
|
|
1235
|
-
"""Number of results to return. Defaults to 10."""
|
|
1236
|
-
|
|
1237
|
-
def as_dict(self) -> dict:
|
|
1238
|
-
"""Serializes the ScanVectorIndexRequest into a dictionary suitable for use as a JSON request body."""
|
|
1239
|
-
body = {}
|
|
1240
|
-
if self.index_name is not None:
|
|
1241
|
-
body["index_name"] = self.index_name
|
|
1242
|
-
if self.last_primary_key is not None:
|
|
1243
|
-
body["last_primary_key"] = self.last_primary_key
|
|
1244
|
-
if self.num_results is not None:
|
|
1245
|
-
body["num_results"] = self.num_results
|
|
1246
|
-
return body
|
|
1247
|
-
|
|
1248
|
-
def as_shallow_dict(self) -> dict:
|
|
1249
|
-
"""Serializes the ScanVectorIndexRequest into a shallow dictionary of its immediate attributes."""
|
|
1250
|
-
body = {}
|
|
1251
|
-
if self.index_name is not None:
|
|
1252
|
-
body["index_name"] = self.index_name
|
|
1253
|
-
if self.last_primary_key is not None:
|
|
1254
|
-
body["last_primary_key"] = self.last_primary_key
|
|
1255
|
-
if self.num_results is not None:
|
|
1256
|
-
body["num_results"] = self.num_results
|
|
1257
|
-
return body
|
|
1258
|
-
|
|
1259
|
-
@classmethod
|
|
1260
|
-
def from_dict(cls, d: Dict[str, Any]) -> ScanVectorIndexRequest:
|
|
1261
|
-
"""Deserializes the ScanVectorIndexRequest from a dictionary."""
|
|
1262
|
-
return cls(
|
|
1263
|
-
index_name=d.get("index_name", None),
|
|
1264
|
-
last_primary_key=d.get("last_primary_key", None),
|
|
1265
|
-
num_results=d.get("num_results", None),
|
|
1266
|
-
)
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
932
|
@dataclass
|
|
1270
933
|
class ScanVectorIndexResponse:
|
|
1271
934
|
"""Response to a scan vector index request."""
|
|
@@ -1343,38 +1006,6 @@ class SyncIndexResponse:
|
|
|
1343
1006
|
return cls()
|
|
1344
1007
|
|
|
1345
1008
|
|
|
1346
|
-
@dataclass
|
|
1347
|
-
class UpdateEndpointCustomTagsRequest:
|
|
1348
|
-
custom_tags: List[CustomTag]
|
|
1349
|
-
"""The new custom tags for the vector search endpoint"""
|
|
1350
|
-
|
|
1351
|
-
endpoint_name: Optional[str] = None
|
|
1352
|
-
"""Name of the vector search endpoint"""
|
|
1353
|
-
|
|
1354
|
-
def as_dict(self) -> dict:
|
|
1355
|
-
"""Serializes the UpdateEndpointCustomTagsRequest into a dictionary suitable for use as a JSON request body."""
|
|
1356
|
-
body = {}
|
|
1357
|
-
if self.custom_tags:
|
|
1358
|
-
body["custom_tags"] = [v.as_dict() for v in self.custom_tags]
|
|
1359
|
-
if self.endpoint_name is not None:
|
|
1360
|
-
body["endpoint_name"] = self.endpoint_name
|
|
1361
|
-
return body
|
|
1362
|
-
|
|
1363
|
-
def as_shallow_dict(self) -> dict:
|
|
1364
|
-
"""Serializes the UpdateEndpointCustomTagsRequest into a shallow dictionary of its immediate attributes."""
|
|
1365
|
-
body = {}
|
|
1366
|
-
if self.custom_tags:
|
|
1367
|
-
body["custom_tags"] = self.custom_tags
|
|
1368
|
-
if self.endpoint_name is not None:
|
|
1369
|
-
body["endpoint_name"] = self.endpoint_name
|
|
1370
|
-
return body
|
|
1371
|
-
|
|
1372
|
-
@classmethod
|
|
1373
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpdateEndpointCustomTagsRequest:
|
|
1374
|
-
"""Deserializes the UpdateEndpointCustomTagsRequest from a dictionary."""
|
|
1375
|
-
return cls(custom_tags=_repeated_dict(d, "custom_tags", CustomTag), endpoint_name=d.get("endpoint_name", None))
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
1009
|
@dataclass
|
|
1379
1010
|
class UpdateEndpointCustomTagsResponse:
|
|
1380
1011
|
custom_tags: Optional[List[CustomTag]] = None
|
|
@@ -1448,38 +1079,6 @@ class UpsertDataStatus(Enum):
|
|
|
1448
1079
|
SUCCESS = "SUCCESS"
|
|
1449
1080
|
|
|
1450
1081
|
|
|
1451
|
-
@dataclass
|
|
1452
|
-
class UpsertDataVectorIndexRequest:
|
|
1453
|
-
inputs_json: str
|
|
1454
|
-
"""JSON string representing the data to be upserted."""
|
|
1455
|
-
|
|
1456
|
-
index_name: Optional[str] = None
|
|
1457
|
-
"""Name of the vector index where data is to be upserted. Must be a Direct Vector Access Index."""
|
|
1458
|
-
|
|
1459
|
-
def as_dict(self) -> dict:
|
|
1460
|
-
"""Serializes the UpsertDataVectorIndexRequest into a dictionary suitable for use as a JSON request body."""
|
|
1461
|
-
body = {}
|
|
1462
|
-
if self.index_name is not None:
|
|
1463
|
-
body["index_name"] = self.index_name
|
|
1464
|
-
if self.inputs_json is not None:
|
|
1465
|
-
body["inputs_json"] = self.inputs_json
|
|
1466
|
-
return body
|
|
1467
|
-
|
|
1468
|
-
def as_shallow_dict(self) -> dict:
|
|
1469
|
-
"""Serializes the UpsertDataVectorIndexRequest into a shallow dictionary of its immediate attributes."""
|
|
1470
|
-
body = {}
|
|
1471
|
-
if self.index_name is not None:
|
|
1472
|
-
body["index_name"] = self.index_name
|
|
1473
|
-
if self.inputs_json is not None:
|
|
1474
|
-
body["inputs_json"] = self.inputs_json
|
|
1475
|
-
return body
|
|
1476
|
-
|
|
1477
|
-
@classmethod
|
|
1478
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpsertDataVectorIndexRequest:
|
|
1479
|
-
"""Deserializes the UpsertDataVectorIndexRequest from a dictionary."""
|
|
1480
|
-
return cls(index_name=d.get("index_name", None), inputs_json=d.get("inputs_json", None))
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
1082
|
@dataclass
|
|
1484
1083
|
class UpsertDataVectorIndexResponse:
|
|
1485
1084
|
result: Optional[UpsertDataResult] = None
|
|
@@ -1579,11 +1178,6 @@ class VectorIndex:
|
|
|
1579
1178
|
"""Name of the endpoint associated with the index"""
|
|
1580
1179
|
|
|
1581
1180
|
index_type: Optional[VectorIndexType] = None
|
|
1582
|
-
"""There are 2 types of Vector Search indexes: - `DELTA_SYNC`: An index that automatically syncs
|
|
1583
|
-
with a source Delta Table, automatically and incrementally updating the index as the underlying
|
|
1584
|
-
data in the Delta Table changes. - `DIRECT_ACCESS`: An index that supports direct read and write
|
|
1585
|
-
of vectors and metadata through our REST and SDK APIs. With this model, the user manages index
|
|
1586
|
-
updates."""
|
|
1587
1181
|
|
|
1588
1182
|
name: Optional[str] = None
|
|
1589
1183
|
"""Name of the index"""
|
|
@@ -1937,10 +1531,6 @@ class VectorSearchIndexesAPI:
|
|
|
1937
1531
|
:param primary_key: str
|
|
1938
1532
|
Primary key of the index
|
|
1939
1533
|
:param index_type: :class:`VectorIndexType`
|
|
1940
|
-
There are 2 types of Vector Search indexes: - `DELTA_SYNC`: An index that automatically syncs with a
|
|
1941
|
-
source Delta Table, automatically and incrementally updating the index as the underlying data in the
|
|
1942
|
-
Delta Table changes. - `DIRECT_ACCESS`: An index that supports direct read and write of vectors and
|
|
1943
|
-
metadata through our REST and SDK APIs. With this model, the user manages index updates.
|
|
1944
1534
|
:param delta_sync_index_spec: :class:`DeltaSyncVectorIndexSpecRequest` (optional)
|
|
1945
1535
|
Specification for Delta Sync Index. Required if `index_type` is `DELTA_SYNC`.
|
|
1946
1536
|
:param direct_access_index_spec: :class:`DirectAccessVectorIndexSpec` (optional)
|