ListManagementImageOperations Class
ListManagementImageOperations operations.
- Inheritance
-
builtins.objectListManagementImageOperations
Constructor
ListManagementImageOperations(client, config, serializer, deserializer)
Parameters
Name | Description |
---|---|
client
Required
|
Client for service requests. |
config
Required
|
Configuration of service client. |
serializer
Required
|
An object model serializer. |
deserializer
Required
|
An object model deserializer. |
Methods
add_image |
Add an image to the list with list Id equal to list Id passed. |
add_image_file_input |
Add an image to the list with list Id equal to list Id passed. |
add_image_url_input |
Add an image to the list with list Id equal to list Id passed. |
delete_all_images |
Deletes all images from the list with list Id equal to list Id passed. |
delete_image |
Deletes an image from the list with list Id and image Id passed. |
get_all_image_ids |
Gets all image Ids from the list with list Id equal to list Id passed. |
add_image
Add an image to the list with list Id equal to list Id passed.
add_image(list_id, tag=None, label=None, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
list_id
Required
|
List Id of the image list. |
tag
|
Tag for the image. Default value: None
|
label
|
The image label. Default value: None
|
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
Image or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
add_image_file_input
Add an image to the list with list Id equal to list Id passed.
add_image_file_input(list_id, image_stream, tag=None, label=None, custom_headers=None, raw=False, callback=None, **operation_config)
Parameters
Name | Description |
---|---|
list_id
Required
|
List Id of the image list. |
image_stream
Required
|
The image file. |
tag
|
Tag for the image. Default value: None
|
label
|
The image label. Default value: None
|
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
callback
|
When specified, will be called with each chunk of data that is streamed. The callback should take two arguments, the bytes of the current chunk of data and the response object. If the data is uploading, response will be None. Default value: None
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
Image or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
add_image_url_input
Add an image to the list with list Id equal to list Id passed.
add_image_url_input(list_id, content_type, tag=None, label=None, data_representation='URL', value=None, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
list_id
Required
|
List Id of the image list. |
content_type
Required
|
The content type. |
tag
|
Tag for the image. Default value: None
|
label
|
The image label. Default value: None
|
data_representation
|
Default value: URL
|
value
|
Default value: None
|
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
Image or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
delete_all_images
Deletes all images from the list with list Id equal to list Id passed.
delete_all_images(list_id, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
list_id
Required
|
List Id of the image list. |
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
str,
<xref:msrest.pipeline.ClientRawResponse>
|
str or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
delete_image
Deletes an image from the list with list Id and image Id passed.
delete_image(list_id, image_id, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
list_id
Required
|
List Id of the image list. |
image_id
Required
|
Id of the image. |
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
str,
<xref:msrest.pipeline.ClientRawResponse>
|
str or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
get_all_image_ids
Gets all image Ids from the list with list Id equal to list Id passed.
get_all_image_ids(list_id, custom_headers=None, raw=False, **operation_config)
Parameters
Name | Description |
---|---|
list_id
Required
|
List Id of the image list. |
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
ImageIds or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
Attributes
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'>
Azure SDK for Python