ListManagementImageOperations Class
ListManagementImageOperations operations.
- Inheritance
-
builtins.objectListManagementImageOperations
Constructor
ListManagementImageOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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
- operation_config
Operation configuration overrides.
Returns
Image or ClientRawResponse if raw=true
Return type
Exceptions
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
- image_stream
- <xref:Generator>
The image file.
- callback
- <xref:Callable>[<xref:Bytes>, <xref:response=None>]
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.
- operation_config
Operation configuration overrides.
Returns
Image or ClientRawResponse if raw=true
Return type
Exceptions
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
- data_representation
- str
- value
- str
- operation_config
Operation configuration overrides.
Returns
Image or ClientRawResponse if raw=true
Return type
Exceptions
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
- operation_config
Operation configuration overrides.
Returns
str or ClientRawResponse if raw=true
Return type
Exceptions
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
- operation_config
Operation configuration overrides.
Returns
str or ClientRawResponse if raw=true
Return type
Exceptions
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
- operation_config
Operation configuration overrides.
Returns
ImageIds or ClientRawResponse if raw=true
Return type
Exceptions
Attributes
models
models = <module 'azure.cognitiveservices.vision.contentmoderator.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\cognitiveservices\\vision\\contentmoderator\\models\\__init__.py'>
Feedback
Submit and view feedback for