通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

@azure-rest/confidential-ledger package

接口

CollectionOutput
ConfidentialLedgerEnclavesOutput
ConfidentialLedgerErrorBodyOutput
ConfidentialLedgerErrorOutput
ConsortiumMemberOutput
ConsortiumOutput
ConstitutionOutput
CreateLedgerEntry200Headers
CreateLedgerEntry200Response

可以选择指定集合 ID。

CreateLedgerEntryBodyParam
CreateLedgerEntryMediaTypesParam
CreateLedgerEntryQueryParam
CreateLedgerEntryQueryParamProperties
CreateLedgerEntrydefaultResponse

可以选择指定集合 ID。

CreateOrUpdateUser200Response

为现有用户应用 JSON 合并修补程序

CreateOrUpdateUserBodyParam
CreateOrUpdateUserMediaTypesParam
CreateOrUpdateUserdefaultResponse

为现有用户应用 JSON 合并修补程序

DeleteUser
DeleteUser204Response

从机密账本中删除用户。

DeleteUserdefaultResponse

从机密账本中删除用户。

EnclaveQuoteOutput
GetConstitution
GetConstitution200Response

宪法是一个脚本,用于评估和应用联盟成员的建议。

GetConstitutiondefaultResponse

宪法是一个脚本,用于评估和应用联盟成员的建议。

GetCurrentLedgerEntry
GetCurrentLedgerEntry200Response

可以选择指定集合 ID。

GetCurrentLedgerEntryQueryParam
GetCurrentLedgerEntryQueryParamProperties
GetCurrentLedgerEntrydefaultResponse

可以选择指定集合 ID。

GetEnclaveQuotes
GetEnclaveQuotes200Response

引号是 SGX enclave 度量值,可用于验证节点及其 enclave 的有效性。

GetEnclaveQuotesdefaultResponse

引号是 SGX enclave 度量值,可用于验证节点及其 enclave 的有效性。

GetLedgerEntry
GetLedgerEntry200Response

若要返回较旧的账本条目,必须从磁盘读取并验证账本的相关部分。 为防止 enclave 内阻塞,响应将指示条目是否已准备就绪,以及响应的一部分,或者加载仍在进行中。

GetLedgerEntryQueryParam
GetLedgerEntryQueryParamProperties
GetLedgerEntrydefaultResponse

若要返回较旧的账本条目,必须从磁盘读取并验证账本的相关部分。 为防止 enclave 内阻塞,响应将指示条目是否已准备就绪,以及响应的一部分,或者加载仍在进行中。

GetReceipt
GetReceipt200Response

获取在特定事务 ID 上认证账本内容的收据。

GetReceiptdefaultResponse

获取在特定事务 ID 上认证账本内容的收据。

GetTransactionStatus
GetTransactionStatus200Response

获取由事务 ID 标识的条目的状态。

GetTransactionStatusdefaultResponse

获取由事务 ID 标识的条目的状态。

GetUser200Response

获取用户。

GetUserdefaultResponse

获取用户。

LedgerEntry
LedgerEntryOutput
LedgerIdentity
LedgerQueryResultOutput
LedgerUser
LedgerUserOutput
LedgerWriteResultOutput
ListCollections
ListCollections200Response

集合 ID 是用户创建的账本条目集合

ListCollectionsdefaultResponse

集合 ID 是用户创建的账本条目集合

ListConsortiumMembers
ListConsortiumMembers200Response

联盟成员可以管理机密账本。

ListConsortiumMembersdefaultResponse

联盟成员可以管理机密账本。

ListLedgerEntries
ListLedgerEntries200Response

可以选择指定集合 ID。 仅返回指定(或默认)集合中的条目。

ListLedgerEntriesQueryParam
ListLedgerEntriesQueryParamProperties
ListLedgerEntriesdefaultResponse

可以选择指定集合 ID。 仅返回指定(或默认)集合中的条目。

PagedCollectionsOutput
PagedLedgerEntriesOutput
PagingOptions

分页帮助程序的选项

ReceiptContentsOutput
ReceiptElementOutput
ReceiptLeafComponentsOutput
Routes
TransactionReceiptOutput
TransactionStatusOutput

类型别名

ConfidentialLedgerClient
CreateLedgerEntryParameters
CreateOrUpdateUserParameters
DeleteUserParameters
GetArrayType

用于提取数组类型的帮助程序类型

GetConstitutionParameters
GetCurrentLedgerEntryParameters
GetEnclaveQuotesParameters
GetLedgerEntryParameters
GetPage

自定义函数的类型,用于定义如何获取页面和指向下一个页面的链接(如果有)。

GetReceiptParameters
GetTransactionStatusParameters
GetUserParameters
ListCollectionsParameters
ListConsortiumMembersParameters
ListLedgerEntriesParameters
PaginateReturn

用于推断响应类型中分页元素的帮助程序类型。此类型基于特定于 itemName 属性的 x-ms-pageable 的 swagger 信息生成,该属性指示在其中找到页面项的响应的属性。 默认值为 value。 此类型将允许我们根据作为第二个参数获取的响应提供强类型迭代器

函数

default(string, string, ClientOptions)
default(string, string, TokenCredential, ClientOptions)
getLedgerIdentity(string, string)
isUnexpected(GetConstitution200Response | GetConstitutiondefaultResponse)
isUnexpected(ListConsortiumMembers200Response | ListConsortiumMembersdefaultResponse)
isUnexpected(GetEnclaveQuotes200Response | GetEnclaveQuotesdefaultResponse)
isUnexpected(ListCollections200Response | ListCollectionsdefaultResponse)
isUnexpected(ListLedgerEntries200Response | ListLedgerEntriesdefaultResponse)
isUnexpected(CreateLedgerEntry200Response | CreateLedgerEntrydefaultResponse)
isUnexpected(GetLedgerEntry200Response | GetLedgerEntrydefaultResponse)
isUnexpected(GetReceipt200Response | GetReceiptdefaultResponse)
isUnexpected(GetTransactionStatus200Response | GetTransactionStatusdefaultResponse)
isUnexpected(GetCurrentLedgerEntry200Response | GetCurrentLedgerEntrydefaultResponse)
isUnexpected(DeleteUser204Response | DeleteUserdefaultResponse)
isUnexpected(GetUser200Response | GetUserdefaultResponse)
isUnexpected(CreateOrUpdateUser200Response | CreateOrUpdateUserdefaultResponse)
paginate<TResponse>(Client, TResponse, PagingOptions<TResponse>)

帮助程序根据 Autorest x-ms-pageable 扩展规范对初始响应的结果进行分页

函数详细信息

default(string, string, ClientOptions)

function default(ledgerEndpoint: string, ledgerIdentityCertificate: string, options?: ClientOptions): ConfidentialLedgerClient

参数

ledgerEndpoint

string

ledgerIdentityCertificate

string

options
ClientOptions

返回

default(string, string, TokenCredential, ClientOptions)

function default(ledgerEndpoint: string, ledgerIdentityCertificate: string, credentials: TokenCredential, options?: ClientOptions): ConfidentialLedgerClient

参数

ledgerEndpoint

string

ledgerIdentityCertificate

string

credentials
TokenCredential
options
ClientOptions

返回

getLedgerIdentity(string, string)

function getLedgerIdentity(ledgerId: string, identityServiceBaseUrl?: string): Promise<LedgerIdentity>

参数

ledgerId

string

identityServiceBaseUrl

string

返回

Promise<LedgerIdentity>

isUnexpected(GetConstitution200Response | GetConstitutiondefaultResponse)

function isUnexpected(response: GetConstitution200Response | GetConstitutiondefaultResponse): response

参数

返回

response

isUnexpected(ListConsortiumMembers200Response | ListConsortiumMembersdefaultResponse)

function isUnexpected(response: ListConsortiumMembers200Response | ListConsortiumMembersdefaultResponse): response

参数

返回

response

isUnexpected(GetEnclaveQuotes200Response | GetEnclaveQuotesdefaultResponse)

function isUnexpected(response: GetEnclaveQuotes200Response | GetEnclaveQuotesdefaultResponse): response

参数

返回

response

isUnexpected(ListCollections200Response | ListCollectionsdefaultResponse)

function isUnexpected(response: ListCollections200Response | ListCollectionsdefaultResponse): response

参数

返回

response

isUnexpected(ListLedgerEntries200Response | ListLedgerEntriesdefaultResponse)

function isUnexpected(response: ListLedgerEntries200Response | ListLedgerEntriesdefaultResponse): response

参数

返回

response

isUnexpected(CreateLedgerEntry200Response | CreateLedgerEntrydefaultResponse)

function isUnexpected(response: CreateLedgerEntry200Response | CreateLedgerEntrydefaultResponse): response

参数

返回

response

isUnexpected(GetLedgerEntry200Response | GetLedgerEntrydefaultResponse)

function isUnexpected(response: GetLedgerEntry200Response | GetLedgerEntrydefaultResponse): response

参数

返回

response

isUnexpected(GetReceipt200Response | GetReceiptdefaultResponse)

function isUnexpected(response: GetReceipt200Response | GetReceiptdefaultResponse): response

参数

返回

response

isUnexpected(GetTransactionStatus200Response | GetTransactionStatusdefaultResponse)

function isUnexpected(response: GetTransactionStatus200Response | GetTransactionStatusdefaultResponse): response

参数

返回

response

isUnexpected(GetCurrentLedgerEntry200Response | GetCurrentLedgerEntrydefaultResponse)

function isUnexpected(response: GetCurrentLedgerEntry200Response | GetCurrentLedgerEntrydefaultResponse): response

参数

返回

response

isUnexpected(DeleteUser204Response | DeleteUserdefaultResponse)

function isUnexpected(response: DeleteUser204Response | DeleteUserdefaultResponse): response

参数

返回

response

isUnexpected(GetUser200Response | GetUserdefaultResponse)

function isUnexpected(response: GetUser200Response | GetUserdefaultResponse): response

参数

返回

response

isUnexpected(CreateOrUpdateUser200Response | CreateOrUpdateUserdefaultResponse)

function isUnexpected(response: CreateOrUpdateUser200Response | CreateOrUpdateUserdefaultResponse): response

参数

返回

response

paginate<TResponse>(Client, TResponse, PagingOptions<TResponse>)

帮助程序根据 Autorest x-ms-pageable 扩展规范对初始响应的结果进行分页

function paginate<TResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>

参数

client
Client

用于发送下一页请求的客户端

initialResponse

TResponse

包含 nextLink 和元素当前页的初始响应

options

PagingOptions<TResponse>

返回

  • PagedAsyncIterableIterator 循环访问元素