共用方式為


ListManagementTermListsOperations Class

ListManagementTermListsOperations operations.

Inheritance
builtins.object
ListManagementTermListsOperations

Constructor

ListManagementTermListsOperations(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

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

Name Description
content_type
Required
str

The content type.

body
Required

Schema of the body.

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>

TermList or ClientRawResponse if raw=true

Exceptions

Type Description

delete

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

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

Parameters

Name Description
list_id
Required
str

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

get_all_term_lists

gets all the Term Lists.

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

Parameters

Name Description
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>

list or ClientRawResponse if raw=true

Exceptions

Type Description

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

Name Description
list_id
Required
str

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>

TermList or ClientRawResponse if raw=true

Exceptions

Type Description

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

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
<xref:msrest.pipeline.ClientRawResponse>

RefreshIndex or ClientRawResponse if raw=true

Exceptions

Type Description

update

Updates an Term List.

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

Parameters

Name Description
list_id
Required
str

List Id of the image list.

content_type
Required
str

The content type.

body
Required

Schema of the body.

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>

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