你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ListManagementTermListsOperations 类
ListManagementTermListsOperations 操作。
- 继承
-
builtins.objectListManagementTermListsOperations
构造函数
ListManagementTermListsOperations(client, config, serializer, deserializer)
参数
名称 | 说明 |
---|---|
client
必需
|
服务请求的客户端。 |
config
必需
|
服务客户端的配置。 |
serializer
必需
|
对象模型序列化程序。 |
deserializer
必需
|
对象模型反序列化程序。 |
方法
create |
创建术语列表。 |
delete |
删除列表 ID 等于传递的列表 ID 的术语列表。 |
get_all_term_lists |
获取所有术语列表。 |
get_details |
返回术语列表的列表 ID 详细信息,其中列表 ID 等于传递的列表 ID。 |
refresh_index_method |
刷新列表 ID 等于传递的列表 ID 的列表索引。 |
update |
汇报术语列表。 |
create
创建术语列表。
create(content_type, body, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
content_type
必需
|
内容类型。 |
body
必需
|
正文的架构。 |
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
TermList 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
delete
删除列表 ID 等于传递的列表 ID 的术语列表。
delete(list_id, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
list_id
必需
|
图像列表的列表 ID。 |
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
str,
<xref:msrest.pipeline.ClientRawResponse>
|
str 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
get_all_term_lists
获取所有术语列表。
get_all_term_lists(custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
如果 raw=true,则 list 或 ClientRawResponse |
例外
类型 | 说明 |
---|---|
get_details
返回术语列表的列表 ID 详细信息,其中列表 ID 等于传递的列表 ID。
get_details(list_id, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
list_id
必需
|
图像列表的列表 ID。 |
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
TermList 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
refresh_index_method
刷新列表 ID 等于传递的列表 ID 的列表索引。
refresh_index_method(list_id, language, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
list_id
必需
|
图像列表的列表 ID。 |
language
必需
|
术语的语言。 |
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
RefreshIndex 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
update
汇报术语列表。
update(list_id, content_type, body, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
list_id
必需
|
图像列表的列表 ID。 |
content_type
必需
|
内容类型。 |
body
必需
|
正文的架构。 |
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
TermList 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
属性
models
models = <module 'azure.cognitiveservices.vision.contentmoderator.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\cognitiveservices\\vision\\contentmoderator\\models\\__init__.py'>