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

Versions class

表示版本的类。

构造函数

Versions(LUISAuthoringClientContext)

创建版本。

方法

clone(string, string, TaskUpdateObject, RequestOptionsBase)

从所选版本创建新版本。

clone(string, string, TaskUpdateObject, RequestOptionsBase, ServiceCallback<string>)
clone(string, string, TaskUpdateObject, ServiceCallback<string>)
deleteMethod(string, string, RequestOptionsBase)

删除应用程序版本。

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<OperationStatus>)
deleteMethod(string, string, ServiceCallback<OperationStatus>)
deleteUnlabelledUtterance(string, string, string, RequestOptionsBase)

删除了应用程序的某个版本中未标记的话语。

deleteUnlabelledUtterance(string, string, string, RequestOptionsBase, ServiceCallback<OperationStatus>)
deleteUnlabelledUtterance(string, string, string, ServiceCallback<OperationStatus>)
exportLuFormat(string, string, RequestOptionsBase)

将 LUIS 应用程序导出为文本格式。

exportLuFormat(string, string, RequestOptionsBase, ServiceCallback<void>)
exportLuFormat(string, string, ServiceCallback<void>)
exportMethod(string, string, RequestOptionsBase)

将 LUIS 应用程序导出为 JSON 格式。

exportMethod(string, string, RequestOptionsBase, ServiceCallback<LuisApp>)
exportMethod(string, string, ServiceCallback<LuisApp>)
get(string, string, RequestOptionsBase)

获取版本信息,例如创建日期、上次修改日期、终结点 URL、意向和实体计数、训练和发布状态。

get(string, string, RequestOptionsBase, ServiceCallback<VersionInfo>)
get(string, string, ServiceCallback<VersionInfo>)
importLuFormat(string, string, ServiceCallback<string>)
importLuFormat(string, string, VersionsImportLuFormatOptionalParams)

将新版本导入 LUIS 应用程序。

importLuFormat(string, string, VersionsImportLuFormatOptionalParams, ServiceCallback<string>)
importMethod(string, LuisApp, ServiceCallback<string>)
importMethod(string, LuisApp, VersionsImportMethodOptionalParams)

将新版本导入 LUIS 应用程序。

importMethod(string, LuisApp, VersionsImportMethodOptionalParams, ServiceCallback<string>)
importV2App(string, LuisAppV2, ServiceCallback<string>)
importV2App(string, LuisAppV2, VersionsImportV2AppOptionalParams)

将新版本导入 LUIS 应用程序。

importV2App(string, LuisAppV2, VersionsImportV2AppOptionalParams, ServiceCallback<string>)
list(string, ServiceCallback<VersionInfo[]>)
list(string, VersionsListOptionalParams)

获取此应用程序 ID 的版本列表。

list(string, VersionsListOptionalParams, ServiceCallback<VersionInfo[]>)
update(string, string, TaskUpdateObject, RequestOptionsBase)

更新此应用程序版本的名称或说明。

update(string, string, TaskUpdateObject, RequestOptionsBase, ServiceCallback<OperationStatus>)
update(string, string, TaskUpdateObject, ServiceCallback<OperationStatus>)

构造函数详细信息

Versions(LUISAuthoringClientContext)

创建版本。

new Versions(client: LUISAuthoringClientContext)

参数

client
LUISAuthoringClientContext

对服务客户端的引用。

方法详细信息

clone(string, string, TaskUpdateObject, RequestOptionsBase)

从所选版本创建新版本。

function clone(appId: string, versionId: string, versionCloneObject: TaskUpdateObject, options?: RequestOptionsBase): Promise<VersionsCloneResponse>

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

versionCloneObject
TaskUpdateObject

包含新版本 ID 的模型。

options

RequestOptionsBase

可选参数

返回

Promise<Models.VersionsCloneResponse>

clone(string, string, TaskUpdateObject, RequestOptionsBase, ServiceCallback<string>)

function clone(appId: string, versionId: string, versionCloneObject: TaskUpdateObject, options: RequestOptionsBase, callback: ServiceCallback<string>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

versionCloneObject
TaskUpdateObject

包含新版本 ID 的模型。

options

RequestOptionsBase

可选参数

callback

ServiceCallback<string>

回调

clone(string, string, TaskUpdateObject, ServiceCallback<string>)

function clone(appId: string, versionId: string, versionCloneObject: TaskUpdateObject, callback: ServiceCallback<string>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

versionCloneObject
TaskUpdateObject

包含新版本 ID 的模型。

callback

ServiceCallback<string>

回调

deleteMethod(string, string, RequestOptionsBase)

删除应用程序版本。

function deleteMethod(appId: string, versionId: string, options?: RequestOptionsBase): Promise<VersionsDeleteMethodResponse>

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

options

RequestOptionsBase

可选参数

返回

Promise<Models.VersionsDeleteMethodResponse>

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<OperationStatus>)

function deleteMethod(appId: string, versionId: string, options: RequestOptionsBase, callback: ServiceCallback<OperationStatus>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

options

RequestOptionsBase

可选参数

callback

ServiceCallback<OperationStatus>

回调

deleteMethod(string, string, ServiceCallback<OperationStatus>)

function deleteMethod(appId: string, versionId: string, callback: ServiceCallback<OperationStatus>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

callback

ServiceCallback<OperationStatus>

回调

deleteUnlabelledUtterance(string, string, string, RequestOptionsBase)

删除了应用程序的某个版本中未标记的话语。

function deleteUnlabelledUtterance(appId: string, versionId: string, utterance: string, options?: RequestOptionsBase): Promise<VersionsDeleteUnlabelledUtteranceResponse>

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

utterance

string

要删除的话语文本。

options

RequestOptionsBase

可选参数

返回

Promise<Models.VersionsDeleteUnlabelledUtteranceResponse>

deleteUnlabelledUtterance(string, string, string, RequestOptionsBase, ServiceCallback<OperationStatus>)

function deleteUnlabelledUtterance(appId: string, versionId: string, utterance: string, options: RequestOptionsBase, callback: ServiceCallback<OperationStatus>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

utterance

string

要删除的话语文本。

options

RequestOptionsBase

可选参数

callback

ServiceCallback<OperationStatus>

回调

deleteUnlabelledUtterance(string, string, string, ServiceCallback<OperationStatus>)

function deleteUnlabelledUtterance(appId: string, versionId: string, utterance: string, callback: ServiceCallback<OperationStatus>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

utterance

string

要删除的话语文本。

callback

ServiceCallback<OperationStatus>

回调

exportLuFormat(string, string, RequestOptionsBase)

将 LUIS 应用程序导出为文本格式。

function exportLuFormat(appId: string, versionId: string, options?: RequestOptionsBase): Promise<VersionsExportLuFormatResponse>

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

options

RequestOptionsBase

可选参数

返回

Promise<Models.VersionsExportLuFormatResponse>

exportLuFormat(string, string, RequestOptionsBase, ServiceCallback<void>)

function exportLuFormat(appId: string, versionId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

options

RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

exportLuFormat(string, string, ServiceCallback<void>)

function exportLuFormat(appId: string, versionId: string, callback: ServiceCallback<void>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

callback

ServiceCallback<void>

回调

exportMethod(string, string, RequestOptionsBase)

将 LUIS 应用程序导出为 JSON 格式。

function exportMethod(appId: string, versionId: string, options?: RequestOptionsBase): Promise<VersionsExportMethodResponse>

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

options

RequestOptionsBase

可选参数

返回

Promise<Models.VersionsExportMethodResponse>

exportMethod(string, string, RequestOptionsBase, ServiceCallback<LuisApp>)

function exportMethod(appId: string, versionId: string, options: RequestOptionsBase, callback: ServiceCallback<LuisApp>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

options

RequestOptionsBase

可选参数

callback

ServiceCallback<LuisApp>

回调

exportMethod(string, string, ServiceCallback<LuisApp>)

function exportMethod(appId: string, versionId: string, callback: ServiceCallback<LuisApp>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

callback

ServiceCallback<LuisApp>

回调

get(string, string, RequestOptionsBase)

获取版本信息,例如创建日期、上次修改日期、终结点 URL、意向和实体计数、训练和发布状态。

function get(appId: string, versionId: string, options?: RequestOptionsBase): Promise<VersionsGetResponse>

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

options

RequestOptionsBase

可选参数

返回

Promise<Models.VersionsGetResponse>

get(string, string, RequestOptionsBase, ServiceCallback<VersionInfo>)

function get(appId: string, versionId: string, options: RequestOptionsBase, callback: ServiceCallback<VersionInfo>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

options

RequestOptionsBase

可选参数

callback

ServiceCallback<VersionInfo>

回调

get(string, string, ServiceCallback<VersionInfo>)

function get(appId: string, versionId: string, callback: ServiceCallback<VersionInfo>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

callback

ServiceCallback<VersionInfo>

回调

importLuFormat(string, string, ServiceCallback<string>)

function importLuFormat(appId: string, luisAppLu: string, callback: ServiceCallback<string>)

参数

appId

string

应用程序 ID。

luisAppLu

string

表示 LUIS 应用程序结构的 LU。

callback

ServiceCallback<string>

回调

importLuFormat(string, string, VersionsImportLuFormatOptionalParams)

将新版本导入 LUIS 应用程序。

function importLuFormat(appId: string, luisAppLu: string, options?: VersionsImportLuFormatOptionalParams): Promise<VersionsImportLuFormatResponse>

参数

appId

string

应用程序 ID。

luisAppLu

string

表示 LUIS 应用程序结构的 LU。

返回

Promise<Models.VersionsImportLuFormatResponse>

importLuFormat(string, string, VersionsImportLuFormatOptionalParams, ServiceCallback<string>)

function importLuFormat(appId: string, luisAppLu: string, options: VersionsImportLuFormatOptionalParams, callback: ServiceCallback<string>)

参数

appId

string

应用程序 ID。

luisAppLu

string

表示 LUIS 应用程序结构的 LU。

callback

ServiceCallback<string>

回调

importMethod(string, LuisApp, ServiceCallback<string>)

function importMethod(appId: string, luisApp: LuisApp, callback: ServiceCallback<string>)

参数

appId

string

应用程序 ID。

luisApp
LuisApp

LUIS 应用程序结构。

callback

ServiceCallback<string>

回调

importMethod(string, LuisApp, VersionsImportMethodOptionalParams)

将新版本导入 LUIS 应用程序。

function importMethod(appId: string, luisApp: LuisApp, options?: VersionsImportMethodOptionalParams): Promise<VersionsImportMethodResponse>

参数

appId

string

应用程序 ID。

luisApp
LuisApp

LUIS 应用程序结构。

options
VersionsImportMethodOptionalParams

可选参数

返回

Promise<Models.VersionsImportMethodResponse>

importMethod(string, LuisApp, VersionsImportMethodOptionalParams, ServiceCallback<string>)

function importMethod(appId: string, luisApp: LuisApp, options: VersionsImportMethodOptionalParams, callback: ServiceCallback<string>)

参数

appId

string

应用程序 ID。

luisApp
LuisApp

LUIS 应用程序结构。

options
VersionsImportMethodOptionalParams

可选参数

callback

ServiceCallback<string>

回调

importV2App(string, LuisAppV2, ServiceCallback<string>)

function importV2App(appId: string, luisAppV2: LuisAppV2, callback: ServiceCallback<string>)

参数

appId

string

应用程序 ID。

luisAppV2
LuisAppV2

LUIS 应用程序结构。

callback

ServiceCallback<string>

回调

importV2App(string, LuisAppV2, VersionsImportV2AppOptionalParams)

将新版本导入 LUIS 应用程序。

function importV2App(appId: string, luisAppV2: LuisAppV2, options?: VersionsImportV2AppOptionalParams): Promise<VersionsImportV2AppResponse>

参数

appId

string

应用程序 ID。

luisAppV2
LuisAppV2

LUIS 应用程序结构。

options
VersionsImportV2AppOptionalParams

可选参数

返回

Promise<Models.VersionsImportV2AppResponse>

importV2App(string, LuisAppV2, VersionsImportV2AppOptionalParams, ServiceCallback<string>)

function importV2App(appId: string, luisAppV2: LuisAppV2, options: VersionsImportV2AppOptionalParams, callback: ServiceCallback<string>)

参数

appId

string

应用程序 ID。

luisAppV2
LuisAppV2

LUIS 应用程序结构。

options
VersionsImportV2AppOptionalParams

可选参数

callback

ServiceCallback<string>

回调

list(string, ServiceCallback<VersionInfo[]>)

function list(appId: string, callback: ServiceCallback<VersionInfo[]>)

参数

appId

string

应用程序 ID。

callback

ServiceCallback<VersionInfo[]>

回调

list(string, VersionsListOptionalParams)

获取此应用程序 ID 的版本列表。

function list(appId: string, options?: VersionsListOptionalParams): Promise<VersionsListResponse>

参数

appId

string

应用程序 ID。

options
VersionsListOptionalParams

可选参数

返回

Promise<Models.VersionsListResponse>

list(string, VersionsListOptionalParams, ServiceCallback<VersionInfo[]>)

function list(appId: string, options: VersionsListOptionalParams, callback: ServiceCallback<VersionInfo[]>)

参数

appId

string

应用程序 ID。

options
VersionsListOptionalParams

可选参数

callback

ServiceCallback<VersionInfo[]>

回调

update(string, string, TaskUpdateObject, RequestOptionsBase)

更新此应用程序版本的名称或说明。

function update(appId: string, versionId: string, versionUpdateObject: TaskUpdateObject, options?: RequestOptionsBase): Promise<VersionsUpdateResponse>

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

versionUpdateObject
TaskUpdateObject

包含应用程序的名称和说明的模型。

options

RequestOptionsBase

可选参数

返回

Promise<Models.VersionsUpdateResponse>

update(string, string, TaskUpdateObject, RequestOptionsBase, ServiceCallback<OperationStatus>)

function update(appId: string, versionId: string, versionUpdateObject: TaskUpdateObject, options: RequestOptionsBase, callback: ServiceCallback<OperationStatus>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

versionUpdateObject
TaskUpdateObject

包含应用程序的名称和说明的模型。

options

RequestOptionsBase

可选参数

callback

ServiceCallback<OperationStatus>

回调

update(string, string, TaskUpdateObject, ServiceCallback<OperationStatus>)

function update(appId: string, versionId: string, versionUpdateObject: TaskUpdateObject, callback: ServiceCallback<OperationStatus>)

参数

appId

string

应用程序 ID。

versionId

string

版本 ID。

versionUpdateObject
TaskUpdateObject

包含应用程序的名称和说明的模型。

callback

ServiceCallback<OperationStatus>

回调