ListManagementTermListsOperations Class

ListManagementTermListsOperations operations.

Inheritance
builtins.object
ListManagementTermListsOperations

Constructor

ListManagementTermListsOperations(client, config, serializer, deserializer)

Parameters

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

create

Creates a Term List.

delete

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

get_all_term_lists

gets all the Term Lists.

get_details

Returns list Id details of the term list with list Id equal to list Id passed.

refresh_index_method

Refreshes the index of the list with list Id equal to list ID passed.

update

Updates an Term List.

create

Creates a Term List.

create(content_type, body, custom_headers=None, raw=False, **operation_config)

Parameters

content_type
str
Required

The content type.

body
Body
Required

Schema of the body.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

TermList or ClientRawResponse if raw=true

Return type

Exceptions

delete

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

delete(list_id, custom_headers=None, raw=False, **operation_config)

Parameters

list_id
str
Required

List Id of the image list.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

str or ClientRawResponse if raw=true

Return type

str,

Exceptions

get_all_term_lists

gets all the Term Lists.

get_all_term_lists(custom_headers=None, raw=False, **operation_config)

Parameters

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

list or ClientRawResponse if raw=true

Return type

Exceptions

get_details

Returns list Id details of the term list with list Id equal to list Id passed.

get_details(list_id, custom_headers=None, raw=False, **operation_config)

Parameters

list_id
str
Required

List Id of the image list.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

TermList or ClientRawResponse if raw=true

Return type

Exceptions

refresh_index_method

Refreshes the index of the list with list Id equal to list ID passed.

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

Parameters

list_id
str
Required

List Id of the image list.

language
str
Required

Language of the terms.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

RefreshIndex or ClientRawResponse if raw=true

Return type

Exceptions

update

Updates an Term List.

update(list_id, content_type, body, custom_headers=None, raw=False, **operation_config)

Parameters

list_id
str
Required

List Id of the image list.

content_type
str
Required

The content type.

body
Body
Required

Schema of the body.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

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