PatternOperations 類別
PatternOperations 作業。
您不應該直接具現化此類別,而是建立用戶端實例來為您建立它,並將其附加為屬性。
- 繼承
-
builtins.objectPatternOperations
建構函式
PatternOperations(client, config, serializer, deserializer)
參數
名稱 | Description |
---|---|
client
必要
|
服務要求的用戶端。 |
config
必要
|
服務用戶端的設定。 |
serializer
必要
|
物件模型序列化程式。 |
deserializer
必要
|
物件模型還原序列化程式。 |
方法
add_pattern |
將模式新增至應用程式的版本。 |
batch_add_patterns |
在應用程式的版本中加入一批模式。 |
delete_pattern |
從應用程式的版本中刪除具有指定識別碼的模式。 |
delete_patterns |
刪除應用程式中的模式清單。 |
list_intent_patterns |
傳回應用程式版本中特定意圖的模式。 |
list_patterns |
取得應用程式版本中的模式。 |
update_pattern |
更新應用程式中的模式。 |
update_patterns |
在應用程式的版本中更新模式。 |
add_pattern
將模式新增至應用程式的版本。
add_pattern(app_id, version_id, pattern=None, intent=None, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
pattern
|
圖樣文字。 預設值: None
|
intent
|
模式所屬的意圖名稱。 預設值: None
|
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
PatternRuleInfo 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
batch_add_patterns
在應用程式的版本中加入一批模式。
batch_add_patterns(app_id, version_id, patterns, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
patterns
必要
|
包含模式的 JSON 陣列。 |
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
list 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
delete_pattern
從應用程式的版本中刪除具有指定識別碼的模式。
delete_pattern(app_id, version_id, pattern_id, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
pattern_id
必要
|
模式識別碼。 |
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
OperationStatus 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
delete_patterns
刪除應用程式中的模式清單。
delete_patterns(app_id, version_id, pattern_ids, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
pattern_ids
必要
|
模式識別碼。 |
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
OperationStatus 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
list_intent_patterns
傳回應用程式版本中特定意圖的模式。
list_intent_patterns(app_id, version_id, intent_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
intent_id
必要
|
意圖分類器識別碼。 |
skip
|
要略過的專案數。 預設值為 0。 預設值: 0
|
take
|
要傳回的專案數。 頁面大小上限為 500。預設值為 100。 預設值: 100
|
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
list 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
list_patterns
取得應用程式版本中的模式。
list_patterns(app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
skip
|
要略過的專案數。 預設值為 0。 預設值: 0
|
take
|
要傳回的專案數。 頁面大小上限為 500。預設值為 100。 預設值: 100
|
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
list 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
update_pattern
更新應用程式中的模式。
update_pattern(app_id, version_id, pattern_id, pattern, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
pattern_id
必要
|
模式識別碼。 |
pattern
必要
|
物件,表示模式。 |
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
PatternRuleInfo 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
update_patterns
在應用程式的版本中更新模式。
update_patterns(app_id, version_id, patterns, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
patterns
必要
|
陣列代表模式。 |
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
list 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
屬性
models
models = <module 'azure.cognitiveservices.language.luis.authoring.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\authoring\\models\\__init__.py'>
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應