Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Communication] - SDK - Added MicrosoftTeamsUserIdentifier model #16176

Merged
merged 1 commit into from
Jan 15, 2021
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 @@ -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