Versions class

Class representing a Versions.

Constructors

Versions(LUISAuthoringClientContext)

Create a Versions.

Methods

clone(string, string, TaskUpdateObject, RequestOptionsBase)

Creates a new version from the selected version.

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

Deletes an application version.

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

Deleted an unlabelled utterance in a version of the application.

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

Exports a LUIS application to text format.

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

Exports a LUIS application to JSON format.

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

Gets the version information such as date created, last modified date, endpoint URL, count of intents and entities, training and publishing status.

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

Imports a new version into a LUIS application.

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

Imports a new version into a LUIS application.

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

Imports a new version into a LUIS application.

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

Gets a list of versions for this application ID.

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

Updates the name or description of the application version.

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

Constructor Details

Versions(LUISAuthoringClientContext)

Create a Versions.

new Versions(client: LUISAuthoringClientContext)

Parameters

client
LUISAuthoringClientContext

Reference to the service client.

Method Details

clone(string, string, TaskUpdateObject, RequestOptionsBase)

Creates a new version from the selected version.

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

versionCloneObject
TaskUpdateObject

A model containing the new version ID.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.VersionsCloneResponse>

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

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

versionCloneObject
TaskUpdateObject

A model containing the new version ID.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<string>

The callback

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

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

versionCloneObject
TaskUpdateObject

A model containing the new version ID.

callback

ServiceCallback<string>

The callback

deleteMethod(string, string, RequestOptionsBase)

Deletes an application version.

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.VersionsDeleteMethodResponse>

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

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<OperationStatus>

The callback

deleteMethod(string, string, ServiceCallback<OperationStatus>)

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

callback

ServiceCallback<OperationStatus>

The callback

deleteUnlabelledUtterance(string, string, string, RequestOptionsBase)

Deleted an unlabelled utterance in a version of the application.

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

utterance

string

The utterance text to delete.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.VersionsDeleteUnlabelledUtteranceResponse>

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

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

utterance

string

The utterance text to delete.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<OperationStatus>

The callback

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

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

utterance

string

The utterance text to delete.

callback

ServiceCallback<OperationStatus>

The callback

exportLuFormat(string, string, RequestOptionsBase)

Exports a LUIS application to text format.

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.VersionsExportLuFormatResponse>

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

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

exportLuFormat(string, string, ServiceCallback<void>)

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

callback

ServiceCallback<void>

The callback

exportMethod(string, string, RequestOptionsBase)

Exports a LUIS application to JSON format.

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.VersionsExportMethodResponse>

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

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<LuisApp>

The callback

exportMethod(string, string, ServiceCallback<LuisApp>)

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

callback

ServiceCallback<LuisApp>

The callback

get(string, string, RequestOptionsBase)

Gets the version information such as date created, last modified date, endpoint URL, count of intents and entities, training and publishing status.

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.VersionsGetResponse>

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

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<VersionInfo>

The callback

get(string, string, ServiceCallback<VersionInfo>)

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

callback

ServiceCallback<VersionInfo>

The callback

importLuFormat(string, string, ServiceCallback<string>)

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

Parameters

appId

string

The application ID.

luisAppLu

string

An LU representing the LUIS application structure.

callback

ServiceCallback<string>

The callback

importLuFormat(string, string, VersionsImportLuFormatOptionalParams)

Imports a new version into a LUIS application.

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

Parameters

appId

string

The application ID.

luisAppLu

string

An LU representing the LUIS application structure.

options
VersionsImportLuFormatOptionalParams

The optional parameters

Returns

Promise<Models.VersionsImportLuFormatResponse>

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

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

Parameters

appId

string

The application ID.

luisAppLu

string

An LU representing the LUIS application structure.

options
VersionsImportLuFormatOptionalParams

The optional parameters

callback

ServiceCallback<string>

The callback

importMethod(string, LuisApp, ServiceCallback<string>)

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

Parameters

appId

string

The application ID.

luisApp
LuisApp

A LUIS application structure.

callback

ServiceCallback<string>

The callback

importMethod(string, LuisApp, VersionsImportMethodOptionalParams)

Imports a new version into a LUIS application.

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

Parameters

appId

string

The application ID.

luisApp
LuisApp

A LUIS application structure.

options
VersionsImportMethodOptionalParams

The optional parameters

Returns

Promise<Models.VersionsImportMethodResponse>

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

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

Parameters

appId

string

The application ID.

luisApp
LuisApp

A LUIS application structure.

options
VersionsImportMethodOptionalParams

The optional parameters

callback

ServiceCallback<string>

The callback

importV2App(string, LuisAppV2, ServiceCallback<string>)

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

Parameters

appId

string

The application ID.

luisAppV2
LuisAppV2

A LUIS application structure.

callback

ServiceCallback<string>

The callback

importV2App(string, LuisAppV2, VersionsImportV2AppOptionalParams)

Imports a new version into a LUIS application.

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

Parameters

appId

string

The application ID.

luisAppV2
LuisAppV2

A LUIS application structure.

options
VersionsImportV2AppOptionalParams

The optional parameters

Returns

Promise<Models.VersionsImportV2AppResponse>

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

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

Parameters

appId

string

The application ID.

luisAppV2
LuisAppV2

A LUIS application structure.

options
VersionsImportV2AppOptionalParams

The optional parameters

callback

ServiceCallback<string>

The callback

list(string, ServiceCallback<VersionInfo[]>)

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

Parameters

appId

string

The application ID.

callback

ServiceCallback<VersionInfo[]>

The callback

list(string, VersionsListOptionalParams)

Gets a list of versions for this application ID.

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

Parameters

appId

string

The application ID.

options
VersionsListOptionalParams

The optional parameters

Returns

Promise<Models.VersionsListResponse>

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

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

Parameters

appId

string

The application ID.

options
VersionsListOptionalParams

The optional parameters

callback

ServiceCallback<VersionInfo[]>

The callback

update(string, string, TaskUpdateObject, RequestOptionsBase)

Updates the name or description of the application version.

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

versionUpdateObject
TaskUpdateObject

A model containing Name and Description of the application.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.VersionsUpdateResponse>

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

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

versionUpdateObject
TaskUpdateObject

A model containing Name and Description of the application.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<OperationStatus>

The callback

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

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

Parameters

appId

string

The application ID.

versionId

string

The version ID.

versionUpdateObject
TaskUpdateObject

A model containing Name and Description of the application.

callback

ServiceCallback<OperationStatus>

The callback