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

TranslatorCredential Class

Credential for Translator Service. It is using combination of Resource key and region.

Constructor

TranslatorCredential(key: str, region: str)

Parameters

Name Description
key
Required
region
Required

Methods

update

Update the key. This can be used when you've regenerated your service key and want to update long-lived clients. :param str key: The key used to authenticate to an Azure service :raises: ValueError or TypeError

update

Update the key. This can be used when you've regenerated your service key and want to update long-lived clients. :param str key: The key used to authenticate to an Azure service :raises: ValueError or TypeError

update(key: str) -> None

Parameters

Name Description
key
Required