AzureBotService class
构造函数
| Azure |
初始化 AzureBotService 类的新实例。 |
属性
| $host | |
| api |
|
| bot |
|
| bots | |
| channels | |
| direct |
|
| host |
|
| operation |
|
| operations | |
| private |
|
| private |
|
| qn |
|
| subscription |
继承属性
| pipeline | 此客户端用于发出请求的管道 |
继承的方法
| send |
发送使用提供的 OperationSpec 填充的 HTTP 请求。 |
| send |
发送提供的 httpRequest。 |
构造函数详细信息
AzureBotService(TokenCredential, string, AzureBotServiceOptionalParams)
初始化 AzureBotService 类的新实例。
new AzureBotService(credentials: TokenCredential, subscriptionId: string, options?: AzureBotServiceOptionalParams)
参数
- credentials
- TokenCredential
唯一标识客户端订阅的订阅凭据。
- subscriptionId
-
string
Azure 订阅 ID。
- options
- AzureBotServiceOptionalParams
参数选项
属性详细信息
$host
$host: string
属性值
string
apiVersion
apiVersion: string
属性值
string
botConnection
bots
channels
directLine
hostSettings
operationResults
operations
privateEndpointConnections
privateLinkResources
qnAMakerEndpointKeys
subscriptionId
subscriptionId: string
属性值
string
继承属性详细信息
pipeline
继承的方法详细信息
sendOperationRequest<T>(OperationArguments, OperationSpec)
发送使用提供的 OperationSpec 填充的 HTTP 请求。
function sendOperationRequest<T>(operationArguments: OperationArguments, operationSpec: OperationSpec): Promise<T>
参数
- operationArguments
- OperationArguments
将从中填充 HTTP 请求的模板化值的参数。
- operationSpec
- OperationSpec
用于填充 httpRequest 的 OperationSpec。
返回
Promise<T>
继承自 coreClient.ServiceClient.sendOperationRequest
sendRequest(PipelineRequest)
发送提供的 httpRequest。
function sendRequest(request: PipelineRequest): Promise<PipelineResponse>
参数
- request
- PipelineRequest
返回
Promise<PipelineResponse>
继承自 coreClient.ServiceClient.sendRequest