Versions class
Class representing a Versions.
Constructors
Versions(LUISAuthoring |
Create a Versions. |
Methods
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<VersionsCloneResponse>
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<VersionsDeleteMethodResponse>
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
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
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
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
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<VersionsExportLuFormatResponse>
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<VersionsExportMethodResponse>
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
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
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<VersionsGetResponse>
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
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
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.
The optional parameters
Returns
Promise<VersionsImportLuFormatResponse>
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.
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.
The optional parameters
Returns
Promise<VersionsImportMethodResponse>
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.
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.
The optional parameters
Returns
Promise<VersionsImportV2AppResponse>
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.
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
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<VersionsListResponse>
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
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<VersionsUpdateResponse>
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
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
The callback