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

ListManagementTermOperations Class

ListManagementTermOperations operations.

Inheritance
builtins.object
ListManagementTermOperations

Constructor

ListManagementTermOperations(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_term

Add a term to the term list with list Id equal to list Id passed.

delete_all_terms

Deletes all terms from the list with list Id equal to the list Id passed.

delete_term

Deletes a term from the list with list Id equal to the list Id passed.

get_all_terms

Gets all terms from the list with list Id equal to the list Id passed.

add_term

Add a term to the term list with list Id equal to list Id passed.

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

Parameters

Name Description
list_id
Required
str

List Id of the image list.

term
Required
str

Term to be deleted

language
Required
str

Language of the terms.

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>

object or ClientRawResponse if raw=true

Exceptions

Type Description

delete_all_terms

Deletes all terms from the list with list Id equal to the list Id passed.

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

Parameters

Name Description
list_id
Required
str

List Id of the image list.

language
Required
str

Language of the terms.

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_term

Deletes a term from the list with list Id equal to the list Id passed.

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

Parameters

Name Description
list_id
Required
str

List Id of the image list.

term
Required
str

Term to be deleted

language
Required
str

Language of the terms.

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_terms

Gets all terms from the list with list Id equal to the list Id passed.

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

Parameters

Name Description
list_id
Required
str

List Id of the image list.

language
Required
str

Language of the terms.

offset
int

The pagination start index.

Default value: None
limit
int

The max limit.

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>

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