Partilhar via


TranslatorCredential Class

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

Inheritance
builtins.object
TranslatorCredential

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