共用方式為


PersonalizerClientConfiguration 類別

個人化工具Client 的組態 注意,用來建立此實例的所有參數都會儲存為實例屬性。

繼承
msrest.configuration.Configuration
PersonalizerClientConfiguration

建構函式

PersonalizerClientConfiguration(endpoint, credentials)

參數

endpoint
str
必要

支援的認知服務端點。

credentials
None
必要

可唯一識別用戶端訂用帳戶的訂用帳號憑證。

方法

add_user_agent

將值新增至具有空格的目前使用者代理程式。

load
save

將目前的組態儲存至檔案。

add_user_agent

將值新增至具有空格的目前使用者代理程式。

add_user_agent(value: str) -> None

參數

value
str
必要

要新增至使用者代理程式的 值。

load

load(filepath)

參數

filepath
必要

save

將目前的組態儲存至檔案。

save(filepath)

參數

filepath
str
必要

將儲存設定的檔案路徑。

例外狀況

ValueError if supplied filepath cannot be written to.

屬性

enable_http_logger

user_agent

目前的使用者代理程式值。