你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ListManagementTermOperations 类

ListManagementTermOperations 操作。

继承
builtins.object
ListManagementTermOperations

构造函数

ListManagementTermOperations(client, config, serializer, deserializer)

参数

名称 说明
client
必需

服务请求的客户端。

config
必需

服务客户端的配置。

serializer
必需

对象模型序列化程序。

deserializer
必需

对象模型反序列化程序。

方法

add_term

将术语添加到列表 ID 等于传递的列表 ID 的术语列表中。

delete_all_terms

从列表 ID 等于传递的列表 ID 的列表中删除所有术语。

delete_term

从列表 ID 等于传递的列表 ID 的列表中删除术语。

get_all_terms

获取列表 ID 等于传递的列表 ID 的所有术语。

add_term

将术语添加到列表 ID 等于传递的列表 ID 的术语列表中。

add_term(list_id, term, language, custom_headers=None, raw=False, **operation_config)

参数

名称 说明
list_id
必需
str

图像列表的列表 ID。

term
必需
str

要删除的术语

language
必需
str

术语的语言。

custom_headers

将添加到请求的标头

默认值: None
raw

返回直接响应以及反序列化的响应

默认值: False
operation_config
必需

操作配置替代

返回

类型 说明
<xref:msrest.pipeline.ClientRawResponse>

object 或 ClientRawResponse(如果 raw=true)

例外

类型 说明

delete_all_terms

从列表 ID 等于传递的列表 ID 的列表中删除所有术语。

delete_all_terms(list_id, language, custom_headers=None, raw=False, **operation_config)

参数

名称 说明
list_id
必需
str

图像列表的列表 ID。

language
必需
str

术语的语言。

custom_headers

将添加到请求的标头

默认值: None
raw

返回直接响应以及反序列化的响应

默认值: False
operation_config
必需

操作配置替代

返回

类型 说明
str,
<xref:msrest.pipeline.ClientRawResponse>

str 或 ClientRawResponse(如果 raw=true)

例外

类型 说明

delete_term

从列表 ID 等于传递的列表 ID 的列表中删除术语。

delete_term(list_id, term, language, custom_headers=None, raw=False, **operation_config)

参数

名称 说明
list_id
必需
str

图像列表的列表 ID。

term
必需
str

要删除的术语

language
必需
str

术语的语言。

custom_headers

将添加到请求的标头

默认值: None
raw

返回直接响应以及反序列化的响应

默认值: False
operation_config
必需

操作配置替代

返回

类型 说明
str,
<xref:msrest.pipeline.ClientRawResponse>

str 或 ClientRawResponse(如果 raw=true)

例外

类型 说明

get_all_terms

获取列表 ID 等于传递的列表 ID 的所有术语。

get_all_terms(list_id, language, offset=None, limit=None, custom_headers=None, raw=False, **operation_config)

参数

名称 说明
list_id
必需
str

图像列表的列表 ID。

language
必需
str

术语的语言。

offset
int

分页开始索引。

默认值: None
limit
int

最大限制。

默认值: None
custom_headers

将添加到请求的标头

默认值: None
raw

返回直接响应以及反序列化的响应

默认值: False
operation_config
必需

操作配置替代

返回

类型 说明
<xref:msrest.pipeline.ClientRawResponse>

如果 raw=true,则 Terms 或 ClientRawResponse

例外

类型 说明

属性

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'>