VersionsOperations 類別
VersionsOperations 作業。
您不應該直接具現化此類別,而是建立用戶端實例來為您建立它,並將其附加為屬性。
- 繼承
-
builtins.objectVersionsOperations
建構函式
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)
參數
- operation_config
作業組態覆寫。
傳回
str 或 ClientRawResponse if raw=true
傳回類型
例外狀況
delete
刪除應用程式版本。
delete(app_id, version_id, custom_headers=None, raw=False, **operation_config)
參數
- 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)
參數
- operation_config
作業組態覆寫。
傳回
OperationStatus 或 ClientRawResponse if raw=true
傳回類型
例外狀況
export
將 LUIS 應用程式匯出為 JSON 格式。
export(app_id, version_id, custom_headers=None, raw=False, **operation_config)
參數
- 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)
參數
- callback
- Callable[<xref:Bytes>, <xref:response=None>]
指定時,將會使用串流處理的每個資料區塊來呼叫 。 回呼應該採用兩個引數:目前資料區塊的位元組和回應物件。 如果資料正在上傳,回應會是 None。
- operation_config
作業組態覆寫。
傳回
object 或 ClientRawResponse if raw=true
傳回類型
例外狀況
get
取得版本資訊,例如建立日期、上次修改日期、端點 URL、意圖和實體計數、定型和發佈狀態。
get(app_id, version_id, custom_headers=None, raw=False, **operation_config)
參數
- 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)
參數
- operation_config
作業組態覆寫。
傳回
str 或 ClientRawResponse if raw=true
傳回類型
例外狀況
import_method
將新版本匯入 LUIS 應用程式。
import_method(app_id, luis_app, version_id=None, custom_headers=None, raw=False, **operation_config)
參數
- operation_config
作業組態覆寫。
傳回
str 或 ClientRawResponse if raw=true
傳回類型
例外狀況
import_v2_app
將新版本匯入 LUIS 應用程式。
import_v2_app(app_id, luis_app_v2, version_id=None, custom_headers=None, raw=False, **operation_config)
參數
- operation_config
作業組態覆寫。
傳回
str 或 ClientRawResponse if raw=true
傳回類型
例外狀況
list
取得此應用程式識別碼的版本清單。
list(app_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config)
參數
- operation_config
作業組態覆寫。
傳回
list 或 ClientRawResponse if raw=true
傳回類型
例外狀況
update
更新應用程式版本的名稱或描述。
update(app_id, version_id, version=None, custom_headers=None, raw=False, **operation_config)
參數
- 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'>
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應