你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ListManagementImageOperations 类
ListManagementImageOperations 操作。
- 继承
-
builtins.objectListManagementImageOperations
构造函数
ListManagementImageOperations(client, config, serializer, deserializer)
参数
名称 | 说明 |
---|---|
client
必需
|
用于服务请求的客户端。 |
config
必需
|
服务客户端的配置。 |
serializer
必需
|
对象模型序列化程序。 |
deserializer
必需
|
对象模型反序列化程序。 |
方法
add_image |
将图像添加到列表 ID 等于传递的列表 ID 的列表。 |
add_image_file_input |
将图像添加到列表 ID 等于传递的列表 ID 的列表。 |
add_image_url_input |
将图像添加到列表 ID 等于传递的列表 ID 的列表。 |
delete_all_images |
从列表 ID 等于传递的列表 ID 的列表中删除所有图像。 |
delete_image |
从列表中删除传递了列表 ID 和映像 ID 的图像。 |
get_all_image_ids |
从列表 ID 等于传递的列表 ID 的列表中获取所有图像 ID。 |
add_image
将图像添加到列表 ID 等于传递的列表 ID 的列表。
add_image(list_id, tag=None, label=None, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
list_id
必需
|
映像列表的列表 ID。 |
tag
|
映像的标记。 默认值: None
|
label
|
图像标签。 默认值: None
|
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
Image 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
add_image_file_input
将图像添加到列表 ID 等于传递的列表 ID 的列表。
add_image_file_input(list_id, image_stream, tag=None, label=None, custom_headers=None, raw=False, callback=None, **operation_config)
参数
名称 | 说明 |
---|---|
list_id
必需
|
映像列表的列表 ID。 |
image_stream
必需
|
图像文件。 |
tag
|
映像的标记。 默认值: None
|
label
|
图像标签。 默认值: None
|
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
callback
|
Callable[<xref:Bytes>, <xref:response=None>]
指定后,将使用流式传输的每个数据块调用 。 回调应采用两个参数:当前数据区块的字节数和响应对象。 如果正在上传数据,响应将为“无”。 默认值: None
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
Image 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
add_image_url_input
将图像添加到列表 ID 等于传递的列表 ID 的列表。
add_image_url_input(list_id, content_type, tag=None, label=None, data_representation='URL', value=None, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
list_id
必需
|
映像列表的列表 ID。 |
content_type
必需
|
内容类型。 |
tag
|
映像的标记。 默认值: None
|
label
|
图像标签。 默认值: None
|
data_representation
|
默认值: URL
|
value
|
默认值: None
|
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
Image 或 ClientRawResponse(如果 raw=true) |
例外
类型 | 说明 |
---|---|
delete_all_images
从列表 ID 等于传递的列表 ID 的列表中删除所有图像。
delete_all_images(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 if raw=true |
例外
类型 | 说明 |
---|---|
delete_image
从列表中删除传递了列表 ID 和映像 ID 的图像。
delete_image(list_id, image_id, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
list_id
必需
|
映像列表的列表 ID。 |
image_id
必需
|
图像的 ID。 |
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
str,
<xref:msrest.pipeline.ClientRawResponse>
|
str 或 ClientRawResponse if raw=true |
例外
类型 | 说明 |
---|---|
get_all_image_ids
从列表 ID 等于传递的列表 ID 的列表中获取所有图像 ID。
get_all_image_ids(list_id, custom_headers=None, raw=False, **operation_config)
参数
名称 | 说明 |
---|---|
list_id
必需
|
映像列表的列表 ID。 |
custom_headers
|
将添加到请求的标头 默认值: None
|
raw
|
返回直接响应以及反序列化的响应 默认值: False
|
operation_config
必需
|
操作配置替代。 |
返回
类型 | 说明 |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
ImageIds 或 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'>
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈