From 4133f1deebe018e6d0bae7bfa84d294dd840aa1c Mon Sep 17 00:00:00 2001 From: Lakshman Sundaralingam Date: Wed, 20 Jan 2021 11:15:34 -0800 Subject: [PATCH] Refactored communication identity clients --- .../administration/_communication_identity_client.py | 5 ++--- .../aio/_communication_identity_client_async.py | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sdk/communication/azure-communication-administration/azure/communication/administration/_communication_identity_client.py b/sdk/communication/azure-communication-administration/azure/communication/administration/_communication_identity_client.py index 62d7e39652ef..75809934ea1e 100644 --- a/sdk/communication/azure-communication-administration/azure/communication/administration/_communication_identity_client.py +++ b/sdk/communication/azure-communication-administration/azure/communication/administration/_communication_identity_client.py @@ -102,9 +102,8 @@ def create_user_with_token( List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.administration.models.CommunicationIdentityTokenScope] - :return: A CommunicationUser and a CommunicationIdentityToken tuple. - :rtype: tuple of (~azure.communication.administration.CommunicationUser, - ~azure.communication.administration.CommunicationIdentityToken) + :return: A CommunicationUser and a CommunicationIdentityAccessToken tuple. + :rtype: tuple of (~azure.communication.administration.CommunicationUser, ~azure.communication.administration.CommunicationIdentityAccessToken) """ return self._identity_service_client.communication_identity.create_identity( cls=lambda pr, u, e: CommunicationUser(u.id), diff --git a/sdk/communication/azure-communication-administration/azure/communication/administration/aio/_communication_identity_client_async.py b/sdk/communication/azure-communication-administration/azure/communication/administration/aio/_communication_identity_client_async.py index 92d58ef48ce9..62160aa65e49 100644 --- a/sdk/communication/azure-communication-administration/azure/communication/administration/aio/_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-administration/azure/communication/administration/aio/_communication_identity_client_async.py @@ -111,7 +111,6 @@ async def create_user_with_token( create_token_with_scopes=scopes, cls=lambda pr, u, e: CommunicationUser(u.id), **kwargs) - pass @distributed_trace_async async def delete_user(