databricks-sdk 0.22.0__py3-none-any.whl → 0.23.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/service/catalog.py +40 -23
- databricks/sdk/service/serving.py +7 -1
- databricks/sdk/service/sharing.py +22 -3
- databricks/sdk/service/vectorsearch.py +8 -1
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.22.0.dist-info → databricks_sdk-0.23.0.dist-info}/METADATA +1 -1
- {databricks_sdk-0.22.0.dist-info → databricks_sdk-0.23.0.dist-info}/RECORD +11 -11
- {databricks_sdk-0.22.0.dist-info → databricks_sdk-0.23.0.dist-info}/LICENSE +0 -0
- {databricks_sdk-0.22.0.dist-info → databricks_sdk-0.23.0.dist-info}/NOTICE +0 -0
- {databricks_sdk-0.22.0.dist-info → databricks_sdk-0.23.0.dist-info}/WHEEL +0 -0
- {databricks_sdk-0.22.0.dist-info → databricks_sdk-0.23.0.dist-info}/top_level.txt +0 -0
|
@@ -275,7 +275,24 @@ class AssignResponse:
|
|
|
275
275
|
|
|
276
276
|
|
|
277
277
|
@dataclass
|
|
278
|
-
class
|
|
278
|
+
class AwsIamRoleRequest:
|
|
279
|
+
role_arn: str
|
|
280
|
+
"""The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access."""
|
|
281
|
+
|
|
282
|
+
def as_dict(self) -> dict:
|
|
283
|
+
"""Serializes the AwsIamRoleRequest into a dictionary suitable for use as a JSON request body."""
|
|
284
|
+
body = {}
|
|
285
|
+
if self.role_arn is not None: body['role_arn'] = self.role_arn
|
|
286
|
+
return body
|
|
287
|
+
|
|
288
|
+
@classmethod
|
|
289
|
+
def from_dict(cls, d: Dict[str, any]) -> AwsIamRoleRequest:
|
|
290
|
+
"""Deserializes the AwsIamRoleRequest from a dictionary."""
|
|
291
|
+
return cls(role_arn=d.get('role_arn', None))
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
@dataclass
|
|
295
|
+
class AwsIamRoleResponse:
|
|
279
296
|
role_arn: str
|
|
280
297
|
"""The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access."""
|
|
281
298
|
|
|
@@ -287,7 +304,7 @@ class AwsIamRole:
|
|
|
287
304
|
that is going to assume the AWS IAM role."""
|
|
288
305
|
|
|
289
306
|
def as_dict(self) -> dict:
|
|
290
|
-
"""Serializes the
|
|
307
|
+
"""Serializes the AwsIamRoleResponse into a dictionary suitable for use as a JSON request body."""
|
|
291
308
|
body = {}
|
|
292
309
|
if self.external_id is not None: body['external_id'] = self.external_id
|
|
293
310
|
if self.role_arn is not None: body['role_arn'] = self.role_arn
|
|
@@ -295,8 +312,8 @@ class AwsIamRole:
|
|
|
295
312
|
return body
|
|
296
313
|
|
|
297
314
|
@classmethod
|
|
298
|
-
def from_dict(cls, d: Dict[str, any]) ->
|
|
299
|
-
"""Deserializes the
|
|
315
|
+
def from_dict(cls, d: Dict[str, any]) -> AwsIamRoleResponse:
|
|
316
|
+
"""Deserializes the AwsIamRoleResponse from a dictionary."""
|
|
300
317
|
return cls(external_id=d.get('external_id', None),
|
|
301
318
|
role_arn=d.get('role_arn', None),
|
|
302
319
|
unity_catalog_iam_arn=d.get('unity_catalog_iam_arn', None))
|
|
@@ -1434,7 +1451,7 @@ class CreateStorageCredential:
|
|
|
1434
1451
|
name: str
|
|
1435
1452
|
"""The credential name. The name must be unique within the metastore."""
|
|
1436
1453
|
|
|
1437
|
-
aws_iam_role: Optional[
|
|
1454
|
+
aws_iam_role: Optional[AwsIamRoleRequest] = None
|
|
1438
1455
|
"""The AWS IAM role configuration."""
|
|
1439
1456
|
|
|
1440
1457
|
azure_managed_identity: Optional[AzureManagedIdentity] = None
|
|
@@ -1477,7 +1494,7 @@ class CreateStorageCredential:
|
|
|
1477
1494
|
@classmethod
|
|
1478
1495
|
def from_dict(cls, d: Dict[str, any]) -> CreateStorageCredential:
|
|
1479
1496
|
"""Deserializes the CreateStorageCredential from a dictionary."""
|
|
1480
|
-
return cls(aws_iam_role=_from_dict(d, 'aws_iam_role',
|
|
1497
|
+
return cls(aws_iam_role=_from_dict(d, 'aws_iam_role', AwsIamRoleRequest),
|
|
1481
1498
|
azure_managed_identity=_from_dict(d, 'azure_managed_identity', AzureManagedIdentity),
|
|
1482
1499
|
azure_service_principal=_from_dict(d, 'azure_service_principal', AzureServicePrincipal),
|
|
1483
1500
|
cloudflare_api_token=_from_dict(d, 'cloudflare_api_token', CloudflareApiToken),
|
|
@@ -4187,7 +4204,7 @@ class SseEncryptionDetailsAlgorithm(Enum):
|
|
|
4187
4204
|
|
|
4188
4205
|
@dataclass
|
|
4189
4206
|
class StorageCredentialInfo:
|
|
4190
|
-
aws_iam_role: Optional[
|
|
4207
|
+
aws_iam_role: Optional[AwsIamRoleResponse] = None
|
|
4191
4208
|
"""The AWS IAM role configuration."""
|
|
4192
4209
|
|
|
4193
4210
|
azure_managed_identity: Optional[AzureManagedIdentity] = None
|
|
@@ -4262,7 +4279,7 @@ class StorageCredentialInfo:
|
|
|
4262
4279
|
@classmethod
|
|
4263
4280
|
def from_dict(cls, d: Dict[str, any]) -> StorageCredentialInfo:
|
|
4264
4281
|
"""Deserializes the StorageCredentialInfo from a dictionary."""
|
|
4265
|
-
return cls(aws_iam_role=_from_dict(d, 'aws_iam_role',
|
|
4282
|
+
return cls(aws_iam_role=_from_dict(d, 'aws_iam_role', AwsIamRoleResponse),
|
|
4266
4283
|
azure_managed_identity=_from_dict(d, 'azure_managed_identity', AzureManagedIdentity),
|
|
4267
4284
|
azure_service_principal=_from_dict(d, 'azure_service_principal', AzureServicePrincipal),
|
|
4268
4285
|
cloudflare_api_token=_from_dict(d, 'cloudflare_api_token', CloudflareApiToken),
|
|
@@ -5160,7 +5177,7 @@ class UpdateSchema:
|
|
|
5160
5177
|
|
|
5161
5178
|
@dataclass
|
|
5162
5179
|
class UpdateStorageCredential:
|
|
5163
|
-
aws_iam_role: Optional[
|
|
5180
|
+
aws_iam_role: Optional[AwsIamRoleRequest] = None
|
|
5164
5181
|
"""The AWS IAM role configuration."""
|
|
5165
5182
|
|
|
5166
5183
|
azure_managed_identity: Optional[AzureManagedIdentity] = None
|
|
@@ -5218,7 +5235,7 @@ class UpdateStorageCredential:
|
|
|
5218
5235
|
@classmethod
|
|
5219
5236
|
def from_dict(cls, d: Dict[str, any]) -> UpdateStorageCredential:
|
|
5220
5237
|
"""Deserializes the UpdateStorageCredential from a dictionary."""
|
|
5221
|
-
return cls(aws_iam_role=_from_dict(d, 'aws_iam_role',
|
|
5238
|
+
return cls(aws_iam_role=_from_dict(d, 'aws_iam_role', AwsIamRoleRequest),
|
|
5222
5239
|
azure_managed_identity=_from_dict(d, 'azure_managed_identity', AzureManagedIdentity),
|
|
5223
5240
|
azure_service_principal=_from_dict(d, 'azure_service_principal', AzureServicePrincipal),
|
|
5224
5241
|
cloudflare_api_token=_from_dict(d, 'cloudflare_api_token', CloudflareApiToken),
|
|
@@ -5326,7 +5343,7 @@ class UpdateWorkspaceBindingsParameters:
|
|
|
5326
5343
|
|
|
5327
5344
|
@dataclass
|
|
5328
5345
|
class ValidateStorageCredential:
|
|
5329
|
-
aws_iam_role: Optional[
|
|
5346
|
+
aws_iam_role: Optional[AwsIamRoleRequest] = None
|
|
5330
5347
|
"""The AWS IAM role configuration."""
|
|
5331
5348
|
|
|
5332
5349
|
azure_managed_identity: Optional[AzureManagedIdentity] = None
|
|
@@ -5374,7 +5391,7 @@ class ValidateStorageCredential:
|
|
|
5374
5391
|
@classmethod
|
|
5375
5392
|
def from_dict(cls, d: Dict[str, any]) -> ValidateStorageCredential:
|
|
5376
5393
|
"""Deserializes the ValidateStorageCredential from a dictionary."""
|
|
5377
|
-
return cls(aws_iam_role=_from_dict(d, 'aws_iam_role',
|
|
5394
|
+
return cls(aws_iam_role=_from_dict(d, 'aws_iam_role', AwsIamRoleRequest),
|
|
5378
5395
|
azure_managed_identity=_from_dict(d, 'azure_managed_identity', AzureManagedIdentity),
|
|
5379
5396
|
azure_service_principal=_from_dict(d, 'azure_service_principal', AzureServicePrincipal),
|
|
5380
5397
|
cloudflare_api_token=_from_dict(d, 'cloudflare_api_token', CloudflareApiToken),
|
|
@@ -6903,7 +6920,7 @@ class LakehouseMonitorsAPI:
|
|
|
6903
6920
|
if schedule is not None: body['schedule'] = schedule.as_dict()
|
|
6904
6921
|
if skip_builtin_dashboard is not None: body['skip_builtin_dashboard'] = skip_builtin_dashboard
|
|
6905
6922
|
if slicing_exprs is not None: body['slicing_exprs'] = [v for v in slicing_exprs]
|
|
6906
|
-
if snapshot is not None: body['snapshot'] = snapshot
|
|
6923
|
+
if snapshot is not None: body['snapshot'] = snapshot.as_dict()
|
|
6907
6924
|
if time_series is not None: body['time_series'] = time_series.as_dict()
|
|
6908
6925
|
if warehouse_id is not None: body['warehouse_id'] = warehouse_id
|
|
6909
6926
|
headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
|
|
@@ -7108,7 +7125,7 @@ class LakehouseMonitorsAPI:
|
|
|
7108
7125
|
if output_schema_name is not None: body['output_schema_name'] = output_schema_name
|
|
7109
7126
|
if schedule is not None: body['schedule'] = schedule.as_dict()
|
|
7110
7127
|
if slicing_exprs is not None: body['slicing_exprs'] = [v for v in slicing_exprs]
|
|
7111
|
-
if snapshot is not None: body['snapshot'] = snapshot
|
|
7128
|
+
if snapshot is not None: body['snapshot'] = snapshot.as_dict()
|
|
7112
7129
|
if time_series is not None: body['time_series'] = time_series.as_dict()
|
|
7113
7130
|
headers = {'Accept': 'application/json', 'Content-Type': 'application/json', }
|
|
7114
7131
|
|
|
@@ -8061,7 +8078,7 @@ class StorageCredentialsAPI:
|
|
|
8061
8078
|
def create(self,
|
|
8062
8079
|
name: str,
|
|
8063
8080
|
*,
|
|
8064
|
-
aws_iam_role: Optional[
|
|
8081
|
+
aws_iam_role: Optional[AwsIamRoleRequest] = None,
|
|
8065
8082
|
azure_managed_identity: Optional[AzureManagedIdentity] = None,
|
|
8066
8083
|
azure_service_principal: Optional[AzureServicePrincipal] = None,
|
|
8067
8084
|
cloudflare_api_token: Optional[CloudflareApiToken] = None,
|
|
@@ -8075,7 +8092,7 @@ class StorageCredentialsAPI:
|
|
|
8075
8092
|
|
|
8076
8093
|
:param name: str
|
|
8077
8094
|
The credential name. The name must be unique within the metastore.
|
|
8078
|
-
:param aws_iam_role: :class:`
|
|
8095
|
+
:param aws_iam_role: :class:`AwsIamRoleRequest` (optional)
|
|
8079
8096
|
The AWS IAM role configuration.
|
|
8080
8097
|
:param azure_managed_identity: :class:`AzureManagedIdentity` (optional)
|
|
8081
8098
|
The Azure managed identity configuration.
|
|
@@ -8103,7 +8120,7 @@ class StorageCredentialsAPI:
|
|
|
8103
8120
|
if cloudflare_api_token is not None: body['cloudflare_api_token'] = cloudflare_api_token.as_dict()
|
|
8104
8121
|
if comment is not None: body['comment'] = comment
|
|
8105
8122
|
if databricks_gcp_service_account is not None:
|
|
8106
|
-
body['databricks_gcp_service_account'] = databricks_gcp_service_account
|
|
8123
|
+
body['databricks_gcp_service_account'] = databricks_gcp_service_account.as_dict()
|
|
8107
8124
|
if name is not None: body['name'] = name
|
|
8108
8125
|
if read_only is not None: body['read_only'] = read_only
|
|
8109
8126
|
if skip_validation is not None: body['skip_validation'] = skip_validation
|
|
@@ -8195,7 +8212,7 @@ class StorageCredentialsAPI:
|
|
|
8195
8212
|
def update(self,
|
|
8196
8213
|
name: str,
|
|
8197
8214
|
*,
|
|
8198
|
-
aws_iam_role: Optional[
|
|
8215
|
+
aws_iam_role: Optional[AwsIamRoleRequest] = None,
|
|
8199
8216
|
azure_managed_identity: Optional[AzureManagedIdentity] = None,
|
|
8200
8217
|
azure_service_principal: Optional[AzureServicePrincipal] = None,
|
|
8201
8218
|
cloudflare_api_token: Optional[CloudflareApiToken] = None,
|
|
@@ -8212,7 +8229,7 @@ class StorageCredentialsAPI:
|
|
|
8212
8229
|
|
|
8213
8230
|
:param name: str
|
|
8214
8231
|
Name of the storage credential.
|
|
8215
|
-
:param aws_iam_role: :class:`
|
|
8232
|
+
:param aws_iam_role: :class:`AwsIamRoleRequest` (optional)
|
|
8216
8233
|
The AWS IAM role configuration.
|
|
8217
8234
|
:param azure_managed_identity: :class:`AzureManagedIdentity` (optional)
|
|
8218
8235
|
The Azure managed identity configuration.
|
|
@@ -8246,7 +8263,7 @@ class StorageCredentialsAPI:
|
|
|
8246
8263
|
if cloudflare_api_token is not None: body['cloudflare_api_token'] = cloudflare_api_token.as_dict()
|
|
8247
8264
|
if comment is not None: body['comment'] = comment
|
|
8248
8265
|
if databricks_gcp_service_account is not None:
|
|
8249
|
-
body['databricks_gcp_service_account'] = databricks_gcp_service_account
|
|
8266
|
+
body['databricks_gcp_service_account'] = databricks_gcp_service_account.as_dict()
|
|
8250
8267
|
if force is not None: body['force'] = force
|
|
8251
8268
|
if new_name is not None: body['new_name'] = new_name
|
|
8252
8269
|
if owner is not None: body['owner'] = owner
|
|
@@ -8262,7 +8279,7 @@ class StorageCredentialsAPI:
|
|
|
8262
8279
|
|
|
8263
8280
|
def validate(self,
|
|
8264
8281
|
*,
|
|
8265
|
-
aws_iam_role: Optional[
|
|
8282
|
+
aws_iam_role: Optional[AwsIamRoleRequest] = None,
|
|
8266
8283
|
azure_managed_identity: Optional[AzureManagedIdentity] = None,
|
|
8267
8284
|
azure_service_principal: Optional[AzureServicePrincipal] = None,
|
|
8268
8285
|
cloudflare_api_token: Optional[CloudflareApiToken] = None,
|
|
@@ -8283,7 +8300,7 @@ class StorageCredentialsAPI:
|
|
|
8283
8300
|
The caller must be a metastore admin or the storage credential owner or have the
|
|
8284
8301
|
**CREATE_EXTERNAL_LOCATION** privilege on the metastore and the storage credential.
|
|
8285
8302
|
|
|
8286
|
-
:param aws_iam_role: :class:`
|
|
8303
|
+
:param aws_iam_role: :class:`AwsIamRoleRequest` (optional)
|
|
8287
8304
|
The AWS IAM role configuration.
|
|
8288
8305
|
:param azure_managed_identity: :class:`AzureManagedIdentity` (optional)
|
|
8289
8306
|
The Azure managed identity configuration.
|
|
@@ -8312,7 +8329,7 @@ class StorageCredentialsAPI:
|
|
|
8312
8329
|
body['azure_service_principal'] = azure_service_principal.as_dict()
|
|
8313
8330
|
if cloudflare_api_token is not None: body['cloudflare_api_token'] = cloudflare_api_token.as_dict()
|
|
8314
8331
|
if databricks_gcp_service_account is not None:
|
|
8315
|
-
body['databricks_gcp_service_account'] = databricks_gcp_service_account
|
|
8332
|
+
body['databricks_gcp_service_account'] = databricks_gcp_service_account.as_dict()
|
|
8316
8333
|
if external_location_name is not None: body['external_location_name'] = external_location_name
|
|
8317
8334
|
if read_only is not None: body['read_only'] = read_only
|
|
8318
8335
|
if storage_credential_name is not None: body['storage_credential_name'] = storage_credential_name
|
|
@@ -661,6 +661,10 @@ class EndpointCoreConfigSummary:
|
|
|
661
661
|
|
|
662
662
|
@dataclass
|
|
663
663
|
class EndpointPendingConfig:
|
|
664
|
+
auto_capture_config: Optional[AutoCaptureConfigOutput] = None
|
|
665
|
+
"""Configuration for Inference Tables which automatically logs requests and responses to Unity
|
|
666
|
+
Catalog."""
|
|
667
|
+
|
|
664
668
|
config_version: Optional[int] = None
|
|
665
669
|
"""The config version that the serving endpoint is currently serving."""
|
|
666
670
|
|
|
@@ -680,6 +684,7 @@ class EndpointPendingConfig:
|
|
|
680
684
|
def as_dict(self) -> dict:
|
|
681
685
|
"""Serializes the EndpointPendingConfig into a dictionary suitable for use as a JSON request body."""
|
|
682
686
|
body = {}
|
|
687
|
+
if self.auto_capture_config: body['auto_capture_config'] = self.auto_capture_config.as_dict()
|
|
683
688
|
if self.config_version is not None: body['config_version'] = self.config_version
|
|
684
689
|
if self.served_entities: body['served_entities'] = [v.as_dict() for v in self.served_entities]
|
|
685
690
|
if self.served_models: body['served_models'] = [v.as_dict() for v in self.served_models]
|
|
@@ -690,7 +695,8 @@ class EndpointPendingConfig:
|
|
|
690
695
|
@classmethod
|
|
691
696
|
def from_dict(cls, d: Dict[str, any]) -> EndpointPendingConfig:
|
|
692
697
|
"""Deserializes the EndpointPendingConfig from a dictionary."""
|
|
693
|
-
return cls(
|
|
698
|
+
return cls(auto_capture_config=_from_dict(d, 'auto_capture_config', AutoCaptureConfigOutput),
|
|
699
|
+
config_version=d.get('config_version', None),
|
|
694
700
|
served_entities=_repeated_dict(d, 'served_entities', ServedEntityOutput),
|
|
695
701
|
served_models=_repeated_dict(d, 'served_models', ServedModelOutput),
|
|
696
702
|
start_time=d.get('start_time', None),
|
|
@@ -1287,7 +1287,12 @@ class SharedDataObject:
|
|
|
1287
1287
|
comment: Optional[str] = None
|
|
1288
1288
|
"""A user-provided comment when adding the data object to the share. [Update:OPT]"""
|
|
1289
1289
|
|
|
1290
|
-
|
|
1290
|
+
content: Optional[str] = None
|
|
1291
|
+
"""The content of the notebook file when the data object type is NOTEBOOK_FILE. This should be
|
|
1292
|
+
base64 encoded. Required for adding a NOTEBOOK_FILE, optional for updating, ignored for other
|
|
1293
|
+
types."""
|
|
1294
|
+
|
|
1295
|
+
data_object_type: Optional[SharedDataObjectDataObjectType] = None
|
|
1291
1296
|
"""The type of the data object."""
|
|
1292
1297
|
|
|
1293
1298
|
history_data_sharing_status: Optional[SharedDataObjectHistoryDataSharingStatus] = None
|
|
@@ -1326,7 +1331,8 @@ class SharedDataObject:
|
|
|
1326
1331
|
if self.added_by is not None: body['added_by'] = self.added_by
|
|
1327
1332
|
if self.cdf_enabled is not None: body['cdf_enabled'] = self.cdf_enabled
|
|
1328
1333
|
if self.comment is not None: body['comment'] = self.comment
|
|
1329
|
-
if self.
|
|
1334
|
+
if self.content is not None: body['content'] = self.content
|
|
1335
|
+
if self.data_object_type is not None: body['data_object_type'] = self.data_object_type.value
|
|
1330
1336
|
if self.history_data_sharing_status is not None:
|
|
1331
1337
|
body['history_data_sharing_status'] = self.history_data_sharing_status.value
|
|
1332
1338
|
if self.name is not None: body['name'] = self.name
|
|
@@ -1344,7 +1350,8 @@ class SharedDataObject:
|
|
|
1344
1350
|
added_by=d.get('added_by', None),
|
|
1345
1351
|
cdf_enabled=d.get('cdf_enabled', None),
|
|
1346
1352
|
comment=d.get('comment', None),
|
|
1347
|
-
|
|
1353
|
+
content=d.get('content', None),
|
|
1354
|
+
data_object_type=_enum(d, 'data_object_type', SharedDataObjectDataObjectType),
|
|
1348
1355
|
history_data_sharing_status=_enum(d, 'history_data_sharing_status',
|
|
1349
1356
|
SharedDataObjectHistoryDataSharingStatus),
|
|
1350
1357
|
name=d.get('name', None),
|
|
@@ -1355,6 +1362,18 @@ class SharedDataObject:
|
|
|
1355
1362
|
string_shared_as=d.get('string_shared_as', None))
|
|
1356
1363
|
|
|
1357
1364
|
|
|
1365
|
+
class SharedDataObjectDataObjectType(Enum):
|
|
1366
|
+
"""The type of the data object."""
|
|
1367
|
+
|
|
1368
|
+
MATERIALIZED_VIEW = 'MATERIALIZED_VIEW'
|
|
1369
|
+
MODEL = 'MODEL'
|
|
1370
|
+
NOTEBOOK_FILE = 'NOTEBOOK_FILE'
|
|
1371
|
+
SCHEMA = 'SCHEMA'
|
|
1372
|
+
STREAMING_TABLE = 'STREAMING_TABLE'
|
|
1373
|
+
TABLE = 'TABLE'
|
|
1374
|
+
VIEW = 'VIEW'
|
|
1375
|
+
|
|
1376
|
+
|
|
1358
1377
|
class SharedDataObjectHistoryDataSharingStatus(Enum):
|
|
1359
1378
|
"""Whether to enable or disable sharing of data history. If not specified, the default is
|
|
1360
1379
|
**DISABLED**."""
|
|
@@ -320,6 +320,9 @@ class DeltaSyncVectorIndexSpecResponse:
|
|
|
320
320
|
|
|
321
321
|
@dataclass
|
|
322
322
|
class DirectAccessVectorIndexSpec:
|
|
323
|
+
embedding_source_columns: Optional[List[EmbeddingSourceColumn]] = None
|
|
324
|
+
"""Contains the optional model endpoint to use during query time."""
|
|
325
|
+
|
|
323
326
|
embedding_vector_columns: Optional[List[EmbeddingVectorColumn]] = None
|
|
324
327
|
|
|
325
328
|
schema_json: Optional[str] = None
|
|
@@ -333,6 +336,8 @@ class DirectAccessVectorIndexSpec:
|
|
|
333
336
|
def as_dict(self) -> dict:
|
|
334
337
|
"""Serializes the DirectAccessVectorIndexSpec into a dictionary suitable for use as a JSON request body."""
|
|
335
338
|
body = {}
|
|
339
|
+
if self.embedding_source_columns:
|
|
340
|
+
body['embedding_source_columns'] = [v.as_dict() for v in self.embedding_source_columns]
|
|
336
341
|
if self.embedding_vector_columns:
|
|
337
342
|
body['embedding_vector_columns'] = [v.as_dict() for v in self.embedding_vector_columns]
|
|
338
343
|
if self.schema_json is not None: body['schema_json'] = self.schema_json
|
|
@@ -341,7 +346,9 @@ class DirectAccessVectorIndexSpec:
|
|
|
341
346
|
@classmethod
|
|
342
347
|
def from_dict(cls, d: Dict[str, any]) -> DirectAccessVectorIndexSpec:
|
|
343
348
|
"""Deserializes the DirectAccessVectorIndexSpec from a dictionary."""
|
|
344
|
-
return cls(
|
|
349
|
+
return cls(embedding_source_columns=_repeated_dict(d, 'embedding_source_columns',
|
|
350
|
+
EmbeddingSourceColumn),
|
|
351
|
+
embedding_vector_columns=_repeated_dict(d, 'embedding_vector_columns',
|
|
345
352
|
EmbeddingVectorColumn),
|
|
346
353
|
schema_json=d.get('schema_json', None))
|
|
347
354
|
|
databricks/sdk/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '0.
|
|
1
|
+
__version__ = '0.23.0'
|
|
@@ -11,7 +11,7 @@ databricks/sdk/environments.py,sha256=gStDfgI07ECd6Pb82Rf-nRjf48NH6hOY3UfTXm4YNZ
|
|
|
11
11
|
databricks/sdk/oauth.py,sha256=jqe0yrrTUfRL8kpR21Odwn4R_X6Ns-hTLu3dKYDI1EM,18313
|
|
12
12
|
databricks/sdk/py.typed,sha256=pSvaHpbY1UPNEXyVFUjlgBhjPFZMmVC_UNrPC7eMOHI,74
|
|
13
13
|
databricks/sdk/retries.py,sha256=WgLh12bwdBc6fCQlaig3kKu18cVhPzFDGsspvq629Ew,2454
|
|
14
|
-
databricks/sdk/version.py,sha256=
|
|
14
|
+
databricks/sdk/version.py,sha256=pwluWaTPL8Xkb9G3PEN8_juXZgyuXodBFmQvwlw9pb4,23
|
|
15
15
|
databricks/sdk/_widgets/__init__.py,sha256=Qm3JB8LmdPgEn_-VgxKkodTO4gn6OdaDPwsYcDmeIRI,2667
|
|
16
16
|
databricks/sdk/_widgets/default_widgets_utils.py,sha256=Rk59AFzVYVpOektB_yC_7j-vSt5OdtZA85IlG0kw0xA,1202
|
|
17
17
|
databricks/sdk/_widgets/ipywidgets_utils.py,sha256=P-AyGeahPiX3S59mxpAMgffi4gyJ0irEOY7Ekkn9nQ0,2850
|
|
@@ -29,7 +29,7 @@ databricks/sdk/runtime/dbutils_stub.py,sha256=UFbRZF-bBcwxjbv_pxma00bjNtktLLaYpo
|
|
|
29
29
|
databricks/sdk/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
databricks/sdk/service/_internal.py,sha256=VvKT8sYgF8aVYp-nxS2s8QYc8GhhQvI3IcFJZJx1g50,1841
|
|
31
31
|
databricks/sdk/service/billing.py,sha256=Hbe5bMsBrpebuAl8yj-GwVRGktrzKwiZJj3gq1wUMaI,50625
|
|
32
|
-
databricks/sdk/service/catalog.py,sha256=
|
|
32
|
+
databricks/sdk/service/catalog.py,sha256=EytdKjPNqN6uhmUMRnQFJu5xaKP2xbQJ9GYsmnhRZLs,402330
|
|
33
33
|
databricks/sdk/service/compute.py,sha256=fEDhQfFiycLWpOBz6ALhLXGvnNYVFsZvMlPm0j0lXpU,395632
|
|
34
34
|
databricks/sdk/service/dashboards.py,sha256=9wsQNgrOxrZ3kBSyOfbWaWid9WJgozAu1qCVJ0H4YVM,15660
|
|
35
35
|
databricks/sdk/service/files.py,sha256=myqpOOxwIaGwcepukUgV7QDhhZ-pHJg-SDvHU4NFX30,37599
|
|
@@ -39,15 +39,15 @@ databricks/sdk/service/ml.py,sha256=vohBdESClI3EOpO-ZZ44W-CMz1alq5Tw4oJnWa99Z2M,
|
|
|
39
39
|
databricks/sdk/service/oauth2.py,sha256=zpEA7glY_EsPvMgkk-hmt4eVgrmtcSGgduI7XlShNUo,36215
|
|
40
40
|
databricks/sdk/service/pipelines.py,sha256=2Kum7q_4hVZcEaww2c0NLJj0Fbe9G0BGsF71JKDCvv8,101546
|
|
41
41
|
databricks/sdk/service/provisioning.py,sha256=DP4Df4X-p0JEUk4zAJQhjX_wxpMi673OKLXFhxl6YSE,142678
|
|
42
|
-
databricks/sdk/service/serving.py,sha256=
|
|
42
|
+
databricks/sdk/service/serving.py,sha256=kRwmGuLbUZnxUdEYIxMkS2q1iOd0kw2SV6gkdo4v1HY,130549
|
|
43
43
|
databricks/sdk/service/settings.py,sha256=7KITQbOPbaESxsCssckPdxLAS64auzfij1DLTRd9cQI,176630
|
|
44
|
-
databricks/sdk/service/sharing.py,sha256=
|
|
44
|
+
databricks/sdk/service/sharing.py,sha256=21BdjeHQTWvAfkoYfMBwj0hGYGOxRoGGYdz3M-20xV4,98520
|
|
45
45
|
databricks/sdk/service/sql.py,sha256=FMbmD7h1ZrH5-28-fxt7A0o5KZYphenYzFQbzS8vVEw,256266
|
|
46
|
-
databricks/sdk/service/vectorsearch.py,sha256=
|
|
46
|
+
databricks/sdk/service/vectorsearch.py,sha256=R5RACGGpM9w2yUylBTiV5Bk-YC6O2OorKlNUHqKFawg,51588
|
|
47
47
|
databricks/sdk/service/workspace.py,sha256=Cc_fgKbZ5phzdjg7ryM-6uoVQ_ug3h4rhzQJFyk0RBM,96837
|
|
48
|
-
databricks_sdk-0.
|
|
49
|
-
databricks_sdk-0.
|
|
50
|
-
databricks_sdk-0.
|
|
51
|
-
databricks_sdk-0.
|
|
52
|
-
databricks_sdk-0.
|
|
53
|
-
databricks_sdk-0.
|
|
48
|
+
databricks_sdk-0.23.0.dist-info/LICENSE,sha256=afBgTZo-JsYqj4VOjnejBetMuHKcFR30YobDdpVFkqY,11411
|
|
49
|
+
databricks_sdk-0.23.0.dist-info/METADATA,sha256=NSpDj9c0We0p3P5PtXyoQ_3H4KSyPIZZ6Qq54i-vark,34642
|
|
50
|
+
databricks_sdk-0.23.0.dist-info/NOTICE,sha256=Qnc0m8JjZNTDV80y0h1aJGvsr4GqM63m1nr2VTypg6E,963
|
|
51
|
+
databricks_sdk-0.23.0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
52
|
+
databricks_sdk-0.23.0.dist-info/top_level.txt,sha256=7kRdatoSgU0EUurRQJ_3F1Nv4EOSHWAr6ng25tJOJKU,11
|
|
53
|
+
databricks_sdk-0.23.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|