LUISAuthoringClient class
构造函数
| LUISAuthoring |
初始化 LUISAuthoringClient 类的新实例。 |
继承属性
| credentials | |
| endpoint |
继承的方法
| send |
发送使用提供的 OperationSpec 填充的 HTTP 请求。 |
| send |
发送提供的 httpRequest。 |
构造函数详细信息
LUISAuthoringClient(ServiceClientCredentials, string, ServiceClientOptions)
初始化 LUISAuthoringClient 类的新实例。
new LUISAuthoringClient(credentials: ServiceClientCredentials, endpoint: string, options?: ServiceClientOptions)
参数
- credentials
- ServiceClientCredentials
唯一标识客户端订阅的订阅凭据。
- endpoint
-
string
支持的认知服务终结点(协议和主机名,例如:https://westus.api.cognitive.microsoft.com)。
- options
- ServiceClientOptions
参数选项
属性详细信息
apps
azureAccounts
examples
features
model
pattern
settings
train
versions
继承属性详细信息
credentials
credentials: ServiceClientCredentials
属性值
endpoint
继承的方法详细信息
sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)
发送使用提供的 OperationSpec 填充的 HTTP 请求。
function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>): Promise<RestResponse>
参数
- operationArguments
- OperationArguments
将从中填充 HTTP 请求的模板化值的参数。
- operationSpec
- OperationSpec
用于填充 httpRequest 的 OperationSpec。
- callback
-
ServiceCallback<any>
收到响应时要调用的回调。
返回
Promise<RestResponse>
sendRequest(RequestPrepareOptions | WebResourceLike)
发送提供的 httpRequest。
function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>
参数
- options
返回
Promise<HttpOperationResponse>