Versions class

代表 Versions 的類別。

建構函式

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)

取得此應用程式識別碼的版本清單。

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

應用程式識別碼。

versionId

string

版本識別碼。

versionCloneObject
TaskUpdateObject

包含新版本識別碼的模型。

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

應用程式識別碼。

versionId

string

版本識別碼。

versionCloneObject
TaskUpdateObject

包含新版本識別碼的模型。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<string>

回呼

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

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

versionCloneObject
TaskUpdateObject

包含新版本識別碼的模型。

callback

ServiceCallback<string>

回呼

deleteMethod(string, string, RequestOptionsBase)

刪除應用程式版本。

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.VersionsDeleteMethodResponse>

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

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<OperationStatus>

回呼

deleteMethod(string, string, ServiceCallback<OperationStatus>)

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

callback

ServiceCallback<OperationStatus>

回呼

deleteUnlabelledUtterance(string, string, string, RequestOptionsBase)

已刪除應用程式中未標示的語句。

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

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

應用程式識別碼。

versionId

string

版本識別碼。

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

應用程式識別碼。

versionId

string

版本識別碼。

utterance

string

要刪除的語句文字。

callback

ServiceCallback<OperationStatus>

回呼

exportLuFormat(string, string, RequestOptionsBase)

將 LUIS 應用程式匯出為文字格式。

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.VersionsExportLuFormatResponse>

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

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

exportLuFormat(string, string, ServiceCallback<void>)

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

callback

ServiceCallback<void>

回呼

exportMethod(string, string, RequestOptionsBase)

將 LUIS 應用程式匯出為 JSON 格式。

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.VersionsExportMethodResponse>

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

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<LuisApp>

回呼

exportMethod(string, string, ServiceCallback<LuisApp>)

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

callback

ServiceCallback<LuisApp>

回呼

get(string, string, RequestOptionsBase)

取得版本資訊,例如建立日期、上次修改日期、端點 URL、意圖和實體計數、定型和發佈狀態。

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.VersionsGetResponse>

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

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<VersionInfo>

回呼

get(string, string, ServiceCallback<VersionInfo>)

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

callback

ServiceCallback<VersionInfo>

回呼

importLuFormat(string, string, ServiceCallback<string>)

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

參數

appId

string

應用程式識別碼。

luisAppLu

string

代表 LUIS 應用程式結構的 LU。

callback

ServiceCallback<string>

回呼

importLuFormat(string, string, VersionsImportLuFormatOptionalParams)

將新版本匯入 LUIS 應用程式。

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

參數

appId

string

應用程式識別碼。

luisAppLu

string

代表 LUIS 應用程式結構的 LU。

options
VersionsImportLuFormatOptionalParams

選擇性參數

傳回

Promise < Models.VersionsImportLuFormatResponse>

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

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

參數

appId

string

應用程式識別碼。

luisAppLu

string

代表 LUIS 應用程式結構的 LU。

options
VersionsImportLuFormatOptionalParams

選擇性參數

callback

ServiceCallback<string>

回呼

importMethod(string, LuisApp, ServiceCallback<string>)

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

參數

appId

string

應用程式識別碼。

luisApp
LuisApp

LUIS 應用程式結構。

callback

ServiceCallback<string>

回呼

importMethod(string, LuisApp, VersionsImportMethodOptionalParams)

將新版本匯入 LUIS 應用程式。

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

參數

appId

string

應用程式識別碼。

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

應用程式識別碼。

luisApp
LuisApp

LUIS 應用程式結構。

options
VersionsImportMethodOptionalParams

選擇性參數

callback

ServiceCallback<string>

回呼

importV2App(string, LuisAppV2, ServiceCallback<string>)

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

參數

appId

string

應用程式識別碼。

luisAppV2
LuisAppV2

LUIS 應用程式結構。

callback

ServiceCallback<string>

回呼

importV2App(string, LuisAppV2, VersionsImportV2AppOptionalParams)

將新版本匯入 LUIS 應用程式。

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

參數

appId

string

應用程式識別碼。

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

應用程式識別碼。

luisAppV2
LuisAppV2

LUIS 應用程式結構。

options
VersionsImportV2AppOptionalParams

選擇性參數

callback

ServiceCallback<string>

回呼

list(string, ServiceCallback<VersionInfo[]>)

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

參數

appId

string

應用程式識別碼。

callback

ServiceCallback<VersionInfo[]>

回呼

list(string, VersionsListOptionalParams)

取得此應用程式識別碼的版本清單。

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

參數

appId

string

應用程式識別碼。

options
VersionsListOptionalParams

選擇性參數

傳回

Promise < Models.VersionsListResponse>

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

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

參數

appId

string

應用程式識別碼。

options
VersionsListOptionalParams

選擇性參數

callback

ServiceCallback<VersionInfo[]>

回呼

update(string, string, TaskUpdateObject, RequestOptionsBase)

更新應用程式版本的名稱或描述。

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

參數

appId

string

應用程式識別碼。

versionId

string

版本識別碼。

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

應用程式識別碼。

versionId

string

版本識別碼。

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

應用程式識別碼。

versionId

string

版本識別碼。

versionUpdateObject
TaskUpdateObject

包含應用程式名稱和描述的模型。

callback

ServiceCallback<OperationStatus>

回呼