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

EndpointSettings class

表示 EndpointSettings 的类。

构造函数

EndpointSettings(QnAMakerClientContext)

创建 EndpointSettings。

方法

getSettings(RequestOptionsBase)
getSettings(RequestOptionsBase, ServiceCallback<EndpointSettingsDTO>)
getSettings(ServiceCallback<EndpointSettingsDTO>)
updateSettings(EndpointSettingsDTO, RequestOptionsBase)
updateSettings(EndpointSettingsDTO, RequestOptionsBase, ServiceCallback<void>)
updateSettings(EndpointSettingsDTO, ServiceCallback<void>)

构造函数详细信息

EndpointSettings(QnAMakerClientContext)

创建 EndpointSettings。

new EndpointSettings(client: QnAMakerClientContext)

参数

client
QnAMakerClientContext

对服务客户端的引用。

方法详细信息

getSettings(RequestOptionsBase)

function getSettings(options?: RequestOptionsBase): Promise<EndpointSettingsGetSettingsResponse>

参数

options
RequestOptionsBase

可选参数

返回

Promise<Models.EndpointSettingsGetSettingsResponse>

getSettings(RequestOptionsBase, ServiceCallback<EndpointSettingsDTO>)

function getSettings(options: RequestOptionsBase, callback: ServiceCallback<EndpointSettingsDTO>)

参数

options
RequestOptionsBase

可选参数

getSettings(ServiceCallback<EndpointSettingsDTO>)

function getSettings(callback: ServiceCallback<EndpointSettingsDTO>)

参数

updateSettings(EndpointSettingsDTO, RequestOptionsBase)

function updateSettings(endpointSettingsPayload: EndpointSettingsDTO, options?: RequestOptionsBase): Promise<RestResponse>

参数

endpointSettingsPayload
EndpointSettingsDTO

发布请求正文。

options
RequestOptionsBase

可选参数

返回

Promise<RestResponse>

Promise<msRest.RestResponse>

updateSettings(EndpointSettingsDTO, RequestOptionsBase, ServiceCallback<void>)

function updateSettings(endpointSettingsPayload: EndpointSettingsDTO, options: RequestOptionsBase, callback: ServiceCallback<void>)

参数

endpointSettingsPayload
EndpointSettingsDTO

发布请求正文。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

updateSettings(EndpointSettingsDTO, ServiceCallback<void>)

function updateSettings(endpointSettingsPayload: EndpointSettingsDTO, callback: ServiceCallback<void>)

参数

endpointSettingsPayload
EndpointSettingsDTO

发布请求正文。

callback

ServiceCallback<void>

回调