Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def create_user_with_token(
List of scopes to be added to the token.
:type scopes: list[str or ~azure.communication.identity.models.CommunicationTokenScope]
:return: A tuple of a CommunicationUserIdentifier and a AccessToken.
:rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, \
~azure.core.credentials.AccessToken)
:rtype:
tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken)
"""
return self._identity_service_client.communication_identity.create(
cls=lambda pr, u, e: (CommunicationUserIdentifier(u.identity.id),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ async def create_user_with_token(
List of scopes to be added to the token.
:type scopes: list[str or ~azure.communication.identity.models.CommunicationTokenScope]
:return: A tuple of a CommunicationUserIdentifier and a AccessToken.
:rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, \
~azure.core.credentials.AccessToken)
:rtype:
tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken)
"""
return await self._identity_service_client.communication_identity.create(
create_token_with_scopes=scopes,
Expand All @@ -120,7 +120,7 @@ async def delete_user(
# type: (...) -> None
"""Triggers revocation event for user and deletes all its data.

:param communication_user:\
:param communication_user:
Azure Communication User to delete
:type communication_user: ~azure.communication.identity.CommunicationUserIdentifier
:return: None
Expand Down