@azure-rest/confidential-ledger package
接口
类型别名
| ConfidentialLedgerClient | |
| CreateLedgerEntryParameters | |
| CreateOrUpdateUserParameters | |
| DeleteUserParameters | |
| GetArrayType |
用于提取数组类型的帮助程序类型 |
| GetConstitutionParameters | |
| GetCurrentLedgerEntryParameters | |
| GetEnclaveQuotesParameters | |
| GetLedgerEntryParameters | |
| GetPage |
自定义函数的类型,用于定义如何获取页面和指向下一个页面的链接(如果有)。 |
| GetReceiptParameters | |
| GetTransactionStatusParameters | |
| GetUserParameters | |
| ListCollectionsParameters | |
| ListConsortiumMembersParameters | |
| ListLedgerEntriesParameters | |
| PaginateReturn |
用于推断响应类型中分页元素的帮助程序类型。此类型基于特定于 itemName 属性的 x-ms-pageable 的 swagger 信息生成,该属性指示在其中找到页面项的响应的属性。 默认值为 |
函数
函数详细信息
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
返回
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
返回
response
isUnexpected(GetUser200Response | GetUserdefaultResponse)
function isUnexpected(response: GetUser200Response | GetUserdefaultResponse): response
参数
- 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<PaginateReturn<TResponse>>
- PagedAsyncIterableIterator 循环访问元素