From 039e361a3d46b3e73fb7d62880841b7cb8f5b374 Mon Sep 17 00:00:00 2001 From: Jorge Beauregard Date: Thu, 14 Jan 2021 14:24:24 -0600 Subject: [PATCH] Added MicrosoftTeamsUserIdentifier model --- .../CHANGELOG.md | 3 +++ .../administration/_shared/models.py | 16 ++++++++++++++++ .../azure-communication-chat/CHANGELOG.md | 3 +++ .../azure/communication/chat/_shared/models.py | 16 ++++++++++++++++ 4 files changed, 38 insertions(+) diff --git a/sdk/communication/azure-communication-administration/CHANGELOG.md b/sdk/communication/azure-communication-administration/CHANGELOG.md index 2ec2a67887eb..5ea9e283325d 100644 --- a/sdk/communication/azure-communication-administration/CHANGELOG.md +++ b/sdk/communication/azure-communication-administration/CHANGELOG.md @@ -17,9 +17,12 @@ Caller must provide one of the following: ### Added +- Added `MicrosoftTeamsUserIdentifier` + ##### `IdentityClient` - Added support for Azure Active Directory authentication for the Identity client + ## 1.0.0b3 (2020-11-16) ### Breaking Changes diff --git a/sdk/communication/azure-communication-administration/azure/communication/administration/_shared/models.py b/sdk/communication/azure-communication-administration/azure/communication/administration/_shared/models.py index 7bc8883b14ef..51260e07d2d9 100644 --- a/sdk/communication/azure-communication-administration/azure/communication/administration/_shared/models.py +++ b/sdk/communication/azure-communication-administration/azure/communication/administration/_shared/models.py @@ -37,3 +37,19 @@ class UnknownIdentifier(object): """ def __init__(self, identifier): self.identifier = identifier + +class MicrosoftTeamsUserIdentifier(object): + """ + Represents an identifier for a Microsoft Teams user. + :ivar user_id: the string identifier representing the identity + :vartype user_id: str + :param user_id: Value to initialize MicrosoftTeamsUserIdentifier. + :type user_id: str + :ivar is_anonymous: set this to true if the user is anonymous for example when joining a meeting with a share link + :vartype is_anonymous: bool + :param is_anonymous: Value to initialize MicrosoftTeamsUserIdentifier. + :type is_anonymous: bool + """ + def __init__(self, user_id, is_anonymous=False): + self.user_id = user_id + self.is_anonymous = is_anonymous diff --git a/sdk/communication/azure-communication-chat/CHANGELOG.md b/sdk/communication/azure-communication-chat/CHANGELOG.md index 84a0813851b7..7ed042ab5f0d 100644 --- a/sdk/communication/azure-communication-chat/CHANGELOG.md +++ b/sdk/communication/azure-communication-chat/CHANGELOG.md @@ -2,6 +2,9 @@ ## 1.0.0b4 (Unreleased) +### Added + +- Added `MicrosoftTeamsUserIdentifier` ## 1.0.0b3 (2020-11-16) - Updated `azure-communication-chat` version. diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py index 7bc8883b14ef..51260e07d2d9 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py @@ -37,3 +37,19 @@ class UnknownIdentifier(object): """ def __init__(self, identifier): self.identifier = identifier + +class MicrosoftTeamsUserIdentifier(object): + """ + Represents an identifier for a Microsoft Teams user. + :ivar user_id: the string identifier representing the identity + :vartype user_id: str + :param user_id: Value to initialize MicrosoftTeamsUserIdentifier. + :type user_id: str + :ivar is_anonymous: set this to true if the user is anonymous for example when joining a meeting with a share link + :vartype is_anonymous: bool + :param is_anonymous: Value to initialize MicrosoftTeamsUserIdentifier. + :type is_anonymous: bool + """ + def __init__(self, user_id, is_anonymous=False): + self.user_id = user_id + self.is_anonymous = is_anonymous