共用方式為


VersionsOperations 類別

VersionsOperations 作業。

您不應該直接具現化此類別,而是建立用戶端實例來為您建立它,並將其附加為屬性。

繼承
builtins.object
VersionsOperations

建構函式

VersionsOperations(client, config, serializer, deserializer)

參數

client
必要

服務要求的用戶端。

config
必要

服務用戶端的設定。

serializer
必要

物件模型序列化程式。

deserializer
必要

物件模型還原序列化程式。

變數

format

Lu 格式延伸模組。 常數值:「lu」。

方法

clone

從選取的版本建立新版本。

delete

刪除應用程式版本。

delete_unlabelled_utterance

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

export

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

export_lu_format

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

get

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

import_lu_format

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

import_method

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

import_v2_app

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

list

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

update

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

clone

從選取的版本建立新版本。

clone(app_id, version_id, version=None, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

version_id
str
必要

版本識別碼。

version
str
預設值: None

複製模型的新版本。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回與還原序列化回應一起的直接回應

operation_config
必要

作業組態覆寫

傳回

str 或 ClientRawResponse if raw=true

傳回類型

str,

例外狀況

delete

刪除應用程式版本。

delete(app_id, version_id, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

version_id
str
必要

版本識別碼。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回與還原序列化回應一起的直接回應

operation_config
必要

作業組態覆寫

傳回

OperationStatus 或 ClientRawResponse if raw=true

傳回類型

例外狀況

delete_unlabelled_utterance

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

delete_unlabelled_utterance(app_id, version_id, utterance, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

version_id
str
必要

版本識別碼。

utterance
str
必要

要刪除的語句文字。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回與還原序列化回應一起的直接回應

operation_config
必要

作業組態覆寫

傳回

OperationStatus 或 ClientRawResponse if raw=true

傳回類型

例外狀況

export

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

export(app_id, version_id, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

version_id
str
必要

版本識別碼。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回與還原序列化回應一起的直接回應

operation_config
必要

作業組態覆寫

傳回

LuisApp 或 ClientRawResponse if raw=true

傳回類型

例外狀況

export_lu_format

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

export_lu_format(app_id, version_id, custom_headers=None, raw=False, callback=None, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

version_id
str
必要

版本識別碼。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回與還原序列化回應一起的直接回應

callback
Callable[<xref:Bytes>, <xref:response=None>]
預設值: None

指定時,將會使用串流處理的每個資料區塊來呼叫 。 回呼應該採用兩個引數:目前資料區塊的位元組和回應物件。 如果資料正在上傳,回應會是 None。

operation_config
必要

作業組態覆寫

傳回

object 或 ClientRawResponse if raw=true

傳回類型

例外狀況

get

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

get(app_id, version_id, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

version_id
str
必要

版本識別碼。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回與還原序列化回應一起的直接回應

operation_config
必要

作業組態覆寫

傳回

如果 raw=true,則 VersionInfo 或 ClientRawResponse

傳回類型

例外狀況

import_lu_format

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

import_lu_format(app_id, luis_app_lu, version_id=None, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

luis_app_lu
str
必要

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

version_id
str
預設值: None

要匯入的新 versionId。 如果未指定,則會從匯入的物件讀取 versionId。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回與還原序列化回應一起的直接回應

operation_config
必要

作業組態覆寫

傳回

str 或 ClientRawResponse if raw=true

傳回類型

str,

例外狀況

import_method

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

import_method(app_id, luis_app, version_id=None, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

luis_app
LuisApp
必要

LUIS 應用程式結構。

version_id
str
預設值: None

要匯入的新 versionId。 如果未指定,則會從匯入的物件讀取 versionId。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回與還原序列化回應一起的直接回應

operation_config
必要

作業組態覆寫

傳回

str 或 ClientRawResponse if raw=true

傳回類型

str,

例外狀況

import_v2_app

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

import_v2_app(app_id, luis_app_v2, version_id=None, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

luis_app_v2
LuisAppV2
必要

LUIS 應用程式結構。

version_id
str
預設值: None

要匯入的新 versionId。 如果未指定,則會從匯入的物件讀取 versionId。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回與還原序列化回應一起的直接回應

operation_config
必要

作業組態覆寫

傳回

str 或 ClientRawResponse if raw=true

傳回類型

str,

例外狀況

list

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

list(app_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

skip
int
預設值: 0

要略過的專案數。 預設值為 0。

take
int
預設值: 100

要傳回的專案數。 頁面大小上限為 500。預設值為 100。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回與還原序列化回應一起的直接回應

operation_config
必要

作業組態覆寫

傳回

list 或 ClientRawResponse if raw=true

傳回類型

例外狀況

update

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

update(app_id, version_id, version=None, custom_headers=None, raw=False, **operation_config)

參數

app_id
str
必要

應用程式識別碼。

version_id
str
必要

版本識別碼。

version
str
預設值: None

複製模型的新版本。

custom_headers
dict
預設值: None

將新增至要求的標頭

raw
bool
預設值: False

傳回與還原序列化回應一起的直接回應

operation_config
必要

作業組態覆寫

傳回

OperationStatus 或 ClientRawResponse if raw=true

傳回類型

例外狀況

屬性

models

models = <module 'azure.cognitiveservices.language.luis.authoring.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.7\\x64\\Lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\authoring\\models\\__init__.py'>