Skip to content

Commit

Permalink
Added MicrosoftTeamsUserIdentifier model (#16176)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeauregardb authored Jan 15, 2021
1 parent 07c6a28 commit 82f13b8
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions sdk/communication/azure-communication-chat/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## 1.0.0b4 (Unreleased)

### Added

- Added `MicrosoftTeamsUserIdentifier`

## 1.0.0b3 (2020-11-16)
- Updated `azure-communication-chat` version.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 82f13b8

Please sign in to comment.