-
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Intune new types, SharePoint API sharing namespace updates
- Loading branch information
Showing
31 changed files
with
418 additions
and
30 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 17 additions & 1 deletion
18
office365/communications/calls/invitation_participant_info.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
from office365.directory.permissions.identity_set import IdentitySet | ||
from office365.runtime.client_value import ClientValue | ||
|
||
|
||
class InvitationParticipantInfo(ClientValue): | ||
"""This resource is used to represent the entity that is being invited to a group call.""" | ||
pass | ||
|
||
def __init__(self, hidden=None, identity=IdentitySet(), participant_id=None, | ||
remove_from_default_audio_routing_group=None, replaces_call_id=None): | ||
""" | ||
:param bool hidden: Optional. Whether to hide the participant from the roster. | ||
:param IdentitySet identity: The identitySet associated with this invitation. | ||
:param str participant_id: Optional. The ID of the target participant. | ||
:param bool remove_from_default_audio_routing_group: Optional. Whether to remove them from the main mixer. | ||
:param str replaces_call_id: Optional. The call which the target identity is currently a part of. | ||
For peer-to-peer case, the call will be dropped once the participant is added successfully. | ||
""" | ||
self.hidden = hidden | ||
self.identity = identity | ||
self.participantId = participant_id | ||
self.removeFromDefaultAudioRoutingGroup = remove_from_default_audio_routing_group | ||
self.replacesCallId = replaces_call_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from office365.directory.authentication.methods.method import AuthenticationMethod | ||
|
||
|
||
class EmailAuthenticationMethod(AuthenticationMethod): | ||
""" | ||
Represents an email address registered to a user. Email as an authentication method is available only for | ||
self-service password reset (SSPR). Users may only have one email authentication method. | ||
""" | ||
|
||
@property | ||
def email_address(self): | ||
""" | ||
The email address registered to this user. | ||
:rtype: str | ||
""" | ||
return self.properties.get("emailAddress", None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ class IdentityGovernance(Entity): | |
- App consent | ||
- Terms of use | ||
""" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
from office365.directory.permissions.grants.oauth2 import OAuth2PermissionGrant | ||
from office365.directory.profile_photo import ProfilePhoto | ||
from office365.directory.users.activities.collection import UserActivityCollection | ||
from office365.directory.users.password_profile import PasswordProfile | ||
from office365.directory.users.settings import UserSettings | ||
from office365.entity_collection import EntityCollection | ||
from office365.intune.devices.data import DeviceAndAppManagementData | ||
|
@@ -353,6 +354,13 @@ def translate_exchange_ids(self, input_ids, source_id_type=None, target_id_type= | |
self.context.add_query(qry) | ||
return return_type | ||
|
||
@property | ||
def device_enrollment_limit(self): | ||
""" | ||
:rtype: str | ||
""" | ||
return self.properties.get('deviceEnrollmentLimit', None) | ||
|
||
@property | ||
def sign_in_activity(self): | ||
"""Get the last signed-in date and request ID of the sign-in for a given user. Read-only.""" | ||
|
@@ -459,6 +467,11 @@ def other_mails(self): | |
""" | ||
return self.properties.get('otherMails', StringCollection()) | ||
|
||
@property | ||
def interests(self): | ||
"""A list for the user to describe their interests.""" | ||
return self.properties.get("interests", StringCollection()) | ||
|
||
@property | ||
def identities(self): | ||
"""Represents the identities that can be used to sign in to this user account. | ||
|
@@ -614,10 +627,29 @@ def oauth2_permission_grants(self): | |
DeltaCollection(self.context, OAuth2PermissionGrant, | ||
ResourcePath("oauth2PermissionGrants", self.resource_path))) | ||
|
||
@property | ||
def on_premises_distinguished_name(self): | ||
""" | ||
Contains the on-premises Active Directory distinguished name or DN. The property is only populated for | ||
customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect | ||
:rtype: str | ||
""" | ||
return self.properties.get('onPremisesDistinguishedName', None) | ||
|
||
@property | ||
def on_premises_domain_name(self): | ||
""" | ||
Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. | ||
The property is only populated for customers who are synchronizing their on-premises directory to | ||
Azure Active Directory via Azure AD Connect. | ||
:rtype: str | ||
""" | ||
return self.properties.get('onPremisesDomainName', None) | ||
|
||
@property | ||
def owned_devices(self): | ||
"""Devices that are owned by the user. Read-only. Nullable. Supports $expand and $filter | ||
(/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). """ | ||
"""Devices that are owned by the user. Read-only. Nullable. | ||
Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). """ | ||
return self.properties.get('ownedDevices', | ||
DirectoryObjectCollection(self.context, | ||
ResourcePath("ownedDevices", self.resource_path))) | ||
|
@@ -629,6 +661,18 @@ def owned_objects(self): | |
DirectoryObjectCollection(self.context, | ||
ResourcePath("ownedObjects", self.resource_path))) | ||
|
||
@property | ||
def proxy_addresses(self): | ||
""" | ||
For example: ["SMTP: [email protected]", "smtp: [email protected]"]. Changes to the mail property will | ||
also update this collection to include the value as an SMTP address. For more information, see mail and | ||
proxyAddresses properties. The proxy address prefixed with SMTP (capitalized) is the primary proxy address | ||
while those prefixed with smtp are the secondary proxy addresses. For Azure AD B2C accounts, this | ||
property has a limit of ten unique addresses. Read-only in Microsoft Graph; you can update this property | ||
only through the Microsoft 365 admin center. Not nullable. | ||
""" | ||
return self.properties.get('proxyAddresses', StringCollection()) | ||
|
||
@property | ||
def transitive_member_of(self): | ||
"""Get groups, directory roles that the user is a member of. This API request is transitive, and will also | ||
|
@@ -693,6 +737,26 @@ def online_meetings(self): | |
OnlineMeetingCollection(self.context, | ||
ResourcePath("onlineMeetings", self.resource_path))) | ||
|
||
@property | ||
def password_policies(self): | ||
""" | ||
Specifies password policies for the user. This value is an enumeration with one possible value being | ||
DisableStrongPassword, which allows weaker passwords than the default policy to be specified. | ||
DisablePasswordExpiration can also be specified. The two may be specified together; for example: | ||
DisablePasswordExpiration, DisableStrongPassword. | ||
:rtype: str | ||
""" | ||
return self.properties.get('passwordPolicies', None) | ||
|
||
@property | ||
def password_profile(self): | ||
""" | ||
Specifies the password profile for the user. The profile contains the user's password. | ||
This property is required when a user is created. The password in the profile must satisfy minimum | ||
requirements as specified by the passwordPolicies property. By default, a strong password is required. | ||
""" | ||
return self.properties.get('passwordProfile', PasswordProfile()) | ||
|
||
@property | ||
def presence(self): | ||
"""Get a user's presence information.""" | ||
|
@@ -701,11 +765,27 @@ def presence(self): | |
|
||
@property | ||
def registered_devices(self): | ||
"""Get the devices that are retistered for the user from the registeredDevices navigation property.""" | ||
"""Get the devices that are registered for the user from the registeredDevices navigation property.""" | ||
return self.properties.get('registeredDevices', | ||
DirectoryObjectCollection(self.context, | ||
ResourcePath("registeredDevices", self.resource_path))) | ||
|
||
@property | ||
def street_address(self): | ||
""" | ||
The street address of the user's place of business. Maximum length is 1024 characters. | ||
:rtype: str | ||
""" | ||
return self.properties.get('streetAddress', None) | ||
|
||
@property | ||
def security_identifier(self): | ||
""" | ||
Security identifier (SID) of the user, used in Windows scenarios. | ||
:rtype: str | ||
""" | ||
return self.properties.get('securityIdentifier', None) | ||
|
||
@property | ||
def teamwork(self): | ||
"""A container for the range of Microsoft Teams functionalities that are available per user in the tenant.""" | ||
|
@@ -718,6 +798,15 @@ def todo(self): | |
return self.properties.get('todo', | ||
Todo(self.context, ResourcePath("todo", self.resource_path))) | ||
|
||
@property | ||
def usage_location(self): | ||
""" | ||
A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to | ||
legal requirement to check for availability of services in countries. Examples include: US, JP, and GB. | ||
:rtype: str | ||
""" | ||
return self.properties.get('usageLocation', None) | ||
|
||
def get_property(self, name, default_value=None): | ||
if default_value is None: | ||
property_mapping = { | ||
|
@@ -739,6 +828,7 @@ def get_property(self, name, default_value=None): | |
"oauth2PermissionGrants": self.oauth2_permission_grants, | ||
"ownedDevices": self.owned_devices, | ||
"ownedObjects": self.owned_objects, | ||
"passwordProfile": self.password_profile, | ||
"registeredDevices": self.registered_devices, | ||
"signInActivity": self.sign_in_activity | ||
} | ||
|
Oops, something went wrong.