Office365-REST-Python-Client 2.5.10__py3-none-any.whl → 2.5.11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.11.dist-info}/METADATA +9 -10
- {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.11.dist-info}/RECORD +62 -53
- {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.11.dist-info}/WHEEL +1 -1
- office365/directory/identitygovernance/appconsent/request.py +32 -0
- office365/directory/identitygovernance/appconsent/request_scope.py +5 -0
- office365/directory/identitygovernance/privilegedaccess/group.py +5 -0
- office365/directory/identitygovernance/privilegedaccess/root.py +14 -0
- office365/directory/identitygovernance/privilegedaccess/schedule_instance.py +6 -0
- office365/directory/policies/admin_consent_request.py +10 -0
- office365/directory/policies/root.py +15 -0
- office365/directory/synchronization/status.py +14 -1
- office365/directory/synchronization/task_execution.py +5 -0
- office365/directory/users/user.py +4 -2
- office365/graph_client.py +7 -24
- office365/graph_request.py +24 -1
- office365/onedrive/driveitems/driveItem.py +41 -38
- office365/onedrive/listitems/list_item.py +1 -0
- office365/onedrive/lists/collection.py +6 -0
- office365/onedrive/sharepoint_ids.py +18 -1
- office365/onedrive/shares/drive_item.py +1 -2
- office365/onedrive/storage/__init__.py +0 -0
- office365/onedrive/storage/storage.py +5 -0
- office365/onedrive/workbooks/filter.py +7 -0
- office365/onedrive/workbooks/filter_criteria.py +9 -2
- office365/onedrive/workbooks/tables/rows/collection.py +20 -0
- office365/onedrive/workbooks/tables/rows/row.py +2 -1
- office365/onedrive/workbooks/workbook.py +7 -5
- office365/onenote/internal/multipart_page_query.py +2 -3
- office365/outlook/category.py +7 -0
- office365/outlook/mail/item_body.py +10 -1
- office365/outlook/mail/messages/collection.py +3 -0
- office365/outlook/mail/messages/message.py +3 -4
- office365/runtime/auth/providers/saml_token_provider.py +4 -4
- office365/runtime/http/request_options.py +7 -3
- office365/runtime/queries/create_entity.py +6 -8
- office365/runtime/queries/update_entity.py +3 -5
- office365/sharepoint/attachments/attachment.py +14 -2
- office365/sharepoint/attachments/collection.py +27 -4
- office365/sharepoint/changes/app_consent_principal.py +5 -0
- office365/sharepoint/changes/file.py +4 -0
- office365/sharepoint/documentmanagement/document_set.py +7 -8
- office365/sharepoint/fields/builtin_field_id.py +19 -0
- office365/sharepoint/fields/choice.py +2 -2
- office365/sharepoint/fields/collection.py +1 -3
- office365/sharepoint/fields/field.py +5 -2
- office365/sharepoint/files/file.py +1 -1
- office365/sharepoint/internal/queries/upload_file.py +12 -8
- office365/sharepoint/navigation/node.py +4 -2
- office365/sharepoint/packaging/app_details.py +34 -0
- office365/sharepoint/policy/dlp_policy_tip.py +9 -1
- office365/sharepoint/portal/sites/manager.py +1 -1
- office365/sharepoint/principal/principal.py +10 -1
- office365/sharepoint/principal/users/collection.py +1 -3
- office365/sharepoint/publishing/sites/communication/site.py +4 -3
- office365/sharepoint/request.py +33 -1
- office365/sharepoint/sharing/information.py +5 -0
- office365/sharepoint/sharing/permission_collection.py +13 -9
- office365/sharepoint/sharing/recipient_limits.py +9 -0
- office365/sharepoint/sharing/site_sharing_report_helper.py +2 -3
- office365/sharepoint/tenant/administration/tenant.py +22 -0
- {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.11.dist-info}/LICENSE +0 -0
- {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.11.dist-info}/top_level.txt +0 -0
|
@@ -14,25 +14,29 @@ class PermissionCollection(ClientValue):
|
|
|
14
14
|
|
|
15
15
|
def __init__(
|
|
16
16
|
self,
|
|
17
|
-
|
|
17
|
+
app_consent_principals=None,
|
|
18
|
+
has_inherited_links=None,
|
|
18
19
|
links=None,
|
|
19
20
|
principals=None,
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
site_admins=None,
|
|
22
|
+
total_number_of_principals=None,
|
|
22
23
|
):
|
|
23
24
|
"""
|
|
24
|
-
:param bool
|
|
25
|
+
:param bool has_inherited_links:
|
|
25
26
|
:param list[LinkInfo] links: The List of tokenized sharing links with their LinkInfo objects.
|
|
26
27
|
:param list[PrincipalInfo] principals: The List of Principals with their roles on this list item.
|
|
27
|
-
:param list[PrincipalInfo]
|
|
28
|
+
:param list[PrincipalInfo] site_admins: The List of Principals who are Site Admins. This property is returned
|
|
28
29
|
only if the caller is an Auditor.
|
|
29
|
-
:param int
|
|
30
|
+
:param int total_number_of_principals:
|
|
30
31
|
"""
|
|
31
|
-
self.
|
|
32
|
+
self.appConsentPrincipals = ClientValueCollection(
|
|
33
|
+
PrincipalInfo, app_consent_principals
|
|
34
|
+
)
|
|
35
|
+
self.hasInheritedLinks = has_inherited_links
|
|
32
36
|
self.links = ClientValueCollection(LinkInfo, links)
|
|
33
37
|
self.principals = ClientValueCollection(PrincipalInfo, principals)
|
|
34
|
-
self.siteAdmins = ClientValueCollection(PrincipalInfo,
|
|
35
|
-
self.totalNumberOfPrincipals =
|
|
38
|
+
self.siteAdmins = ClientValueCollection(PrincipalInfo, site_admins)
|
|
39
|
+
self.totalNumberOfPrincipals = total_number_of_principals
|
|
36
40
|
|
|
37
41
|
@property
|
|
38
42
|
def entity_type_name(self):
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from office365.runtime.client_result import ClientResult
|
|
2
2
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
3
|
+
from office365.sharepoint.client_context import ClientContext
|
|
3
4
|
from office365.sharepoint.entity import Entity
|
|
4
5
|
from office365.sharepoint.sharing.reports.site_capabilities import (
|
|
5
6
|
SiteSharingReportCapabilities,
|
|
@@ -12,9 +13,7 @@ from office365.sharepoint.sharing.site_sharing_report_status import (
|
|
|
12
13
|
class SiteSharingReportHelper(Entity):
|
|
13
14
|
@staticmethod
|
|
14
15
|
def cancel_sharing_report_job(context):
|
|
15
|
-
|
|
16
|
-
:type context: office365.sharepoint.client_context.ClientContext
|
|
17
|
-
"""
|
|
16
|
+
# type: (ClientContext) -> ClientResult[SiteSharingReportStatus]
|
|
18
17
|
return_type = ClientResult(context, SiteSharingReportStatus())
|
|
19
18
|
binding_type = SiteSharingReportHelper(context)
|
|
20
19
|
qry = ServiceOperationQuery(
|
|
@@ -319,6 +319,28 @@ class Tenant(Entity):
|
|
|
319
319
|
self.context.add_query(qry)
|
|
320
320
|
return return_type
|
|
321
321
|
|
|
322
|
+
def get_ransomware_activities(self):
|
|
323
|
+
# type: () -> ClientResult[AnyStr]
|
|
324
|
+
""" """
|
|
325
|
+
return_type = ClientResult(self.context)
|
|
326
|
+
payload = {"parameters": RenderListDataParameters()}
|
|
327
|
+
qry = ServiceOperationQuery(
|
|
328
|
+
self, "GetRansomwareActivities", None, payload, None, return_type
|
|
329
|
+
)
|
|
330
|
+
self.context.add_query(qry)
|
|
331
|
+
return return_type
|
|
332
|
+
|
|
333
|
+
def get_sp_list_item_count(self, listName):
|
|
334
|
+
# type: (str) -> ClientResult[int]
|
|
335
|
+
""" """
|
|
336
|
+
return_type = ClientResult(self.context)
|
|
337
|
+
payload = {"listName": listName}
|
|
338
|
+
qry = ServiceOperationQuery(
|
|
339
|
+
self, "GetSPListItemCount", None, payload, None, return_type
|
|
340
|
+
)
|
|
341
|
+
self.context.add_query(qry)
|
|
342
|
+
return return_type
|
|
343
|
+
|
|
322
344
|
def check_tenant_intune_license(self):
|
|
323
345
|
"""
|
|
324
346
|
Checks whether a tenant has the Intune license.
|
|
File without changes
|
|
File without changes
|