Share via


ListManagementTermOperations 類別

ListManagementTermOperations 作業。

繼承
builtins.object
ListManagementTermOperations

建構函式

ListManagementTermOperations(client, config, serializer, deserializer)

參數

名稱 Description
client
必要

服務要求的用戶端。

config
必要

服務用戶端的設定。

serializer
必要

物件模型序列化程式。

deserializer
必要

物件模型還原序列化程式。

方法

add_term

將字詞新增至清單識別碼等於傳遞清單識別碼的字詞清單。

delete_all_terms

從清單中刪除清單識別碼等於所傳遞清單識別碼的所有字詞。

delete_term

從清單中刪除一個字詞,其清單識別碼等於傳遞的清單識別碼。

get_all_terms

從清單中取得清單識別碼等於所傳遞清單識別碼的所有詞彙。

add_term

將字詞新增至清單識別碼等於傳遞清單識別碼的字詞清單。

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

參數

名稱 Description
list_id
必要
str

映射清單的清單識別碼。

term
必要
str

要刪除的字詞

language
必要
str

字詞的語言。

custom_headers

將新增至要求的標頭

預設值: None
raw

傳回與還原序列化回應一起的直接回應

預設值: False
operation_config
必要

作業組態覆寫

傳回

類型 Description
<xref:msrest.pipeline.ClientRawResponse>

object 或 ClientRawResponse if raw=true

例外狀況

類型 Description

delete_all_terms

從清單中刪除清單識別碼等於所傳遞清單識別碼的所有字詞。

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

參數

名稱 Description
list_id
必要
str

映射清單的清單識別碼。

language
必要
str

字詞的語言。

custom_headers

將新增至要求的標頭

預設值: None
raw

傳回與還原序列化回應一起的直接回應

預設值: False
operation_config
必要

作業組態覆寫

傳回

類型 Description
str,
<xref:msrest.pipeline.ClientRawResponse>

str 或 ClientRawResponse if raw=true

例外狀況

類型 Description

delete_term

從清單中刪除一個字詞,其清單識別碼等於傳遞的清單識別碼。

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

參數

名稱 Description
list_id
必要
str

映射清單的清單識別碼。

term
必要
str

要刪除的字詞

language
必要
str

字詞的語言。

custom_headers

將新增至要求的標頭

預設值: None
raw

傳回與還原序列化回應一起的直接回應

預設值: False
operation_config
必要

作業組態覆寫

傳回

類型 Description
str,
<xref:msrest.pipeline.ClientRawResponse>

str 或 ClientRawResponse if raw=true

例外狀況

類型 Description

get_all_terms

從清單中取得清單識別碼等於所傳遞清單識別碼的所有詞彙。

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

參數

名稱 Description
list_id
必要
str

映射清單的清單識別碼。

language
必要
str

字詞的語言。

offset
int

分頁開始索引。

預設值: None
limit
int

上限。

預設值: None
custom_headers

將新增至要求的標頭

預設值: None
raw

傳回與還原序列化回應一起的直接回應

預設值: False
operation_config
必要

作業組態覆寫

傳回

類型 Description
<xref:msrest.pipeline.ClientRawResponse>

Terms 或 ClientRawResponse if raw=true

例外狀況

類型 Description

屬性

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