AlternateKeyInfo 类

Dataverse 表的备用键元数据。

构造函数

AlternateKeyInfo(metadata_id: str = '', schema_name: str = '', key_attributes: ~typing.List[str] = <factory>, status: str = '')

参数

名称 说明
metadata_id
必需
str

密钥元数据 GUID。

schema_name
必需
str

密钥架构名称。

key_attributes

构成键的列逻辑名称列表。

默认值: <factory>
status
必需
str

索引创建状态("Active"、、"InProgress""Pending""Failed")。

方法

from_api_response

从原始 EntityKeyMetadata API 响应创建。

from_api_response

从原始 EntityKeyMetadata API 响应创建。

from_api_response(response_data: Dict[str, Any]) -> AlternateKeyInfo

参数

名称 说明
response_data
必需

Web API 中的原始密钥元数据字典。

返回

类型 说明

属性

key_attributes

key_attributes: List[str]

metadata_id

metadata_id: str = ''

schema_name

schema_name: str = ''

status

status: str = ''