你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PatternOperations 类
PatternOperations 操作。
不应直接实例化此类,而应创建一个客户端实例,该实例将为你创建该类并将其附加为属性。
- 继承
-
builtins.objectPatternOperations
构造函数
PatternOperations(client, config, serializer, deserializer)
参数
名称 | 说明 |
---|---|
client
必需
|
用于服务请求的客户端。 |
config
必需
|
服务客户端的配置。 |
serializer
必需
|
对象模型序列化程序。 |
deserializer
必需
|
对象模型反序列化程序。 |
方法
add_pattern |
将模式添加到应用程序的某个版本。 |
batch_add_patterns |
在应用程序的某个版本中添加一批模式。 |
delete_pattern |
从应用程序的某个版本中删除具有指定 ID 的模式。 |
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)
参数
名称 | 说明 |
---|---|
app_id
必需
|
应用程序 ID。 |
version_id
必需
|
版本 ID。 |
pattern
|
图案文本。 默认值: None
|
intent
|
模式所属的意向名称。 默认值: None
|
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
PatternRuleInfo 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
batch_add_patterns
在应用程序的某个版本中添加一批模式。
batch_add_patterns(app_id, version_id, patterns, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
app_id
必需
|
应用程序 ID。 |
version_id
必需
|
版本 ID。 |
patterns
必需
|
包含模式的 JSON 数组。 |
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
list 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
delete_pattern
从应用程序的某个版本中删除具有指定 ID 的模式。
delete_pattern(app_id, version_id, pattern_id, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
app_id
必需
|
应用程序 ID。 |
version_id
必需
|
版本 ID。 |
pattern_id
必需
|
模式 ID。 |
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
OperationStatus 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
delete_patterns
删除应用程序版本中的模式列表。
delete_patterns(app_id, version_id, pattern_ids, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
app_id
必需
|
应用程序 ID。 |
version_id
必需
|
版本 ID。 |
pattern_ids
必需
|
模式 ID。 |
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
OperationStatus 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
list_intent_patterns
返回应用程序版本中特定意向的模式。
list_intent_patterns(app_id, version_id, intent_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
app_id
必需
|
应用程序 ID。 |
version_id
必需
|
版本 ID。 |
intent_id
必需
|
意向分类器 ID。 |
skip
|
要跳过的条目数。 默认值为 0。 默认值: 0
|
take
|
要返回的条目数。 最大页面大小为 500。默认值为 100。 默认值: 100
|
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
list 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
list_patterns
获取应用程序版本中的模式。
list_patterns(app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
app_id
必需
|
应用程序 ID。 |
version_id
必需
|
版本 ID。 |
skip
|
要跳过的条目数。 默认值为 0。 默认值: 0
|
take
|
要返回的条目数。 最大页面大小为 500。默认值为 100。 默认值: 100
|
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
list 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
update_pattern
在应用程序的某个版本中汇报模式。
update_pattern(app_id, version_id, pattern_id, pattern, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
app_id
必需
|
应用程序 ID。 |
version_id
必需
|
版本 ID。 |
pattern_id
必需
|
模式 ID。 |
pattern
必需
|
表示模式的 对象。 |
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
PatternRuleInfo 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
update_patterns
汇报应用程序版本中的模式。
update_patterns(app_id, version_id, patterns, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
app_id
必需
|
应用程序 ID。 |
version_id
必需
|
版本 ID。 |
patterns
必需
|
数组表示模式。 |
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
list 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
属性
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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈