Office365-REST-Python-Client 2.5.11__py3-none-any.whl → 2.5.12__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.11.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/METADATA +6 -1
- {Office365_REST_Python_Client-2.5.11.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/RECORD +30 -23
- office365/directory/authentication/conditions/__init__.py +0 -0
- office365/directory/authentication/conditions/application.py +5 -0
- office365/directory/authentication/conditions/applications.py +5 -0
- office365/directory/authentication/conditions/conditions.py +11 -0
- office365/graph_client.py +4 -1
- office365/onedrive/idle_session_signout.py +15 -0
- office365/onedrive/sharepoint_settings.py +13 -0
- office365/onedrive/sitepages/title_area.py +15 -5
- office365/outlook/calendar/sharing/__init__.py +0 -0
- office365/outlook/calendar/sharing/message_action.py +5 -0
- office365/outlook/calendar/sharing_message.py +19 -0
- office365/outlook/calendar/timezones/custom.py +9 -0
- office365/outlook/mail/automatic_replies_setting.py +7 -0
- office365/outlook/mail/messages/rules/predicates.py +5 -0
- office365/outlook/mail/messages/rules/rule.py +4 -3
- office365/runtime/odata/query_options.py +3 -0
- office365/runtime/queries/batch.py +4 -0
- office365/sharepoint/appprincipal/identity_provider.py +7 -1
- office365/sharepoint/client_context.py +4 -3
- office365/sharepoint/directory/group.py +9 -9
- office365/sharepoint/directory/helper.py +6 -4
- office365/sharepoint/entity.py +4 -3
- office365/sharepoint/publishing/pages/collection.py +1 -1
- office365/sharepoint/tenant/administration/recent_admin_action_report.py +2 -2
- office365/sharepoint/tenant/administration/tenant.py +30 -6
- {Office365_REST_Python_Client-2.5.11.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/LICENSE +0 -0
- {Office365_REST_Python_Client-2.5.11.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/WHEEL +0 -0
- {Office365_REST_Python_Client-2.5.11.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Office365-REST-Python-Client
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.12
|
|
4
4
|
Summary: Microsoft 365 & Microsoft Graph Library for Python
|
|
5
5
|
Home-page: https://github.com/vgrem/Office365-REST-Python-Client
|
|
6
6
|
Author: Vadim Gremyachev
|
|
@@ -480,4 +480,9 @@ The following libraries will be installed when you install the client library:
|
|
|
480
480
|
* [Microsoft Authentication Library (MSAL) for Python](https://pypi.org/project/msal/)
|
|
481
481
|
|
|
482
482
|
|
|
483
|
+
# ThanksTo
|
|
484
|
+
|
|
485
|
+
Powerful Python IDE [`Pycharm`](https://www.jetbrains.com/pycharm) from [`Jetbrains`](https://jb.gg/OpenSourceSupport).
|
|
486
|
+
|
|
487
|
+
[<img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg">](https://jb.gg/OpenSourceSupport)
|
|
483
488
|
|
|
@@ -4,7 +4,7 @@ office365/delta_collection.py,sha256=VBsDPrFee3B341uTkFJE3RJoW3iEgwc3Imbax-E6Jr4
|
|
|
4
4
|
office365/delta_path.py,sha256=GfGAom7meBgtXO-fzM95g37-awPai5dDhbtrq-d1qhI,212
|
|
5
5
|
office365/entity.py,sha256=m1LGQZNniLZwVLIx4AZWH5Wj_a5-AWiw6RoW4GNTaoY,2380
|
|
6
6
|
office365/entity_collection.py,sha256=WFpczsid7XVIa5CVJSXZPtO56QGEf0VYHeo_wfwg-p4,2391
|
|
7
|
-
office365/graph_client.py,sha256=
|
|
7
|
+
office365/graph_client.py,sha256=sj4ddnOkyqP46enAiU4TdoR4OEB7uMnQtSYq1gS-rv8,23502
|
|
8
8
|
office365/graph_request.py,sha256=Skw2wSO3r8-CBsCljVBQRMKnv4EutsjZeMUL8KBb7ms,995
|
|
9
9
|
office365/logger.py,sha256=rNrGpzO92cJIAnnLVHEG09jNifBtM-8JrJLCm-tpaDI,846
|
|
10
10
|
office365/booking/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -120,6 +120,10 @@ office365/directory/authentication/method_target.py,sha256=Ob2KylJp2ooEki9_pcKln
|
|
|
120
120
|
office365/directory/authentication/password_reset_response.py,sha256=T3vjs2XW7avoB_bNKvo_LAaS5zzbu5QvTBpYBWsS1kg,372
|
|
121
121
|
office365/directory/authentication/strength_root.py,sha256=W3llbaMCDlvYnqOijZKUL4NDQDlWoJ7tcxDDk-WHxKE,196
|
|
122
122
|
office365/directory/authentication/strength_usage.py,sha256=cHWpeYOPMqGCwyQnPcAdCfDIVsBXEheSH1a1CDs1kUI,1207
|
|
123
|
+
office365/directory/authentication/conditions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
124
|
+
office365/directory/authentication/conditions/application.py,sha256=XG10rjWojVHW1wdJNuDavtMwzmeN_R35ozK9PvS0XdM,196
|
|
125
|
+
office365/directory/authentication/conditions/applications.py,sha256=ZN34609Otnx3lTu-i9CD9t2JUswRTonTUAOJWurZi6Q,197
|
|
126
|
+
office365/directory/authentication/conditions/conditions.py,sha256=m9Ogu6MABG6jU_KD6OnBpZ0ZDEAp5Imiy1-_91o7pss,349
|
|
123
127
|
office365/directory/authentication/methods/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
124
128
|
office365/directory/authentication/methods/details.py,sha256=kxX2TCsLTb6rLuKZzHyV0wwa0wn-uirROF-ADSaqrIs,2592
|
|
125
129
|
office365/directory/authentication/methods/email.py,sha256=e_sAbUKIj2ZQzTqDaGTYCG4TEXhDocqnoyAJcsuACT4,582
|
|
@@ -415,10 +419,11 @@ office365/intune/servicecommunications/messages/update.py,sha256=Vk-SThg83AQHqMY
|
|
|
415
419
|
office365/intune/termsandconditions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
416
420
|
office365/onedrive/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
417
421
|
office365/onedrive/admin.py,sha256=r7cm9Ro-MHV0cBKC-NBqXF2ZcKljLJlmOP15VGCgz74,1290
|
|
422
|
+
office365/onedrive/idle_session_signout.py,sha256=JGCepS89jcRyWwpS54B9ngS7-JQYADvKm2bEfOqX680,471
|
|
418
423
|
office365/onedrive/root.py,sha256=_G8fsyAPi9QsLFf09TzkJ48EPsuh8K5LsMLqGGYSgW0,107
|
|
419
424
|
office365/onedrive/sharepoint.py,sha256=BGhTz3SoGGkB4f8w4MFtoiCXmu1pHCvbEQseuAsBvpw,661
|
|
420
425
|
office365/onedrive/sharepoint_ids.py,sha256=Jidfq0GTTtQroCMDwBjXGCmx_j0DjYAOZHEKz6SRVm0,1400
|
|
421
|
-
office365/onedrive/sharepoint_settings.py,sha256=
|
|
426
|
+
office365/onedrive/sharepoint_settings.py,sha256=JLhm-SUsE0kxXMhDeTISCoaN5Whiy8E-656NwERJgQI,3068
|
|
422
427
|
office365/onedrive/analytics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
423
428
|
office365/onedrive/analytics/item_action_stat.py,sha256=_eSdJv2vgIqq1pqxjCR6CDcVHewl5ScL3RQuDx-WTVI,547
|
|
424
429
|
office365/onedrive/analytics/item_activity.py,sha256=ifIZ_pZjsLjIRBuiqp0_jzZyb-VGxNkt3nGvtXTZGEc,1208
|
|
@@ -531,7 +536,7 @@ office365/onedrive/sitepages/collection.py,sha256=tuyne7LF0oB0TSWKo5yDSi6xJ4OkvV
|
|
|
531
536
|
office365/onedrive/sitepages/horizontal_section.py,sha256=9iVzLiUxpunnUPJuu8bViLqj1bmXkBEk3pHeGKzp6wE,768
|
|
532
537
|
office365/onedrive/sitepages/horizontal_section_column.py,sha256=oEgbfIgowkVgUbmw27lOeqeitNDgiuNVzPn7LFaohe4,1000
|
|
533
538
|
office365/onedrive/sitepages/site_page.py,sha256=QLbDMpYTUMUReWw2IeEJ-1ITnBZjQfgQQJY3sRWnHmg,4744
|
|
534
|
-
office365/onedrive/sitepages/title_area.py,sha256=
|
|
539
|
+
office365/onedrive/sitepages/title_area.py,sha256=t9--n17fP0xVCdBNMdAtLeATg8bGqxflrajDrzVq06M,771
|
|
535
540
|
office365/onedrive/sitepages/vertical_section.py,sha256=Tj4BOIKrbtMayWKsTOUYHva8Y8VPS3YxNW1lyu2_yJQ,984
|
|
536
541
|
office365/onedrive/sitepages/webparts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
537
542
|
office365/onedrive/sitepages/webparts/standard.py,sha256=GUEvYppFraiz4Ffw2nnVmk6S8xbG7xzrvt5nM0lPKlE,173
|
|
@@ -666,7 +671,7 @@ office365/outlook/calendar/location_constraint.py,sha256=i_iFMOvlcY_vWXWeSiPsXuK
|
|
|
666
671
|
office365/outlook/calendar/place.py,sha256=yK-GBlUu5xk5rrghFUfQjkIX6idvmC5iHIO9jhBIGy8,844
|
|
667
672
|
office365/outlook/calendar/response_status.py,sha256=4UaeiOUl5UR2-gaxVEshZhx6lOEpf-FeE3T2dXA_Z3U,309
|
|
668
673
|
office365/outlook/calendar/role_type.py,sha256=YA0yNDucONrwqzmu6W8_z08eBy5JwPhLKcLmpDl8ZP8,1047
|
|
669
|
-
office365/outlook/calendar/sharing_message.py,sha256=
|
|
674
|
+
office365/outlook/calendar/sharing_message.py,sha256=3O8PJ60wo-bp0TcSA8lLOl05yeOwIq1vfuraB0AROR0,762
|
|
670
675
|
office365/outlook/calendar/working_hours.py,sha256=nCUZH7ACk7jYVK-ZBAxqw_RD7ZXvmjjrqEakqcD763I,1692
|
|
671
676
|
office365/outlook/calendar/attendees/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
672
677
|
office365/outlook/calendar/attendees/attendee.py,sha256=oydJXy3s4Ml3Gejh8Jvo93TJnkOAIpWmFc_-xKgKB9g,982
|
|
@@ -691,9 +696,11 @@ office365/outlook/calendar/rooms/room.py,sha256=MeE61earMknaI3qlVTiCLndjpC77RxDl
|
|
|
691
696
|
office365/outlook/calendar/schedule/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
692
697
|
office365/outlook/calendar/schedule/information.py,sha256=lzCytNQpHhVPX2KAFwUtkhkRsCHLJFQOWj35VId-PNE,1853
|
|
693
698
|
office365/outlook/calendar/schedule/item.py,sha256=qZjdFSwhRZV51qXTFZ8P6cX3XOv0L6xOoYVtfwkne5A,1511
|
|
699
|
+
office365/outlook/calendar/sharing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
700
|
+
office365/outlook/calendar/sharing/message_action.py,sha256=JLm1lUniUlxsxWZMBVOV45ztnCjDNmSVWieVXlzTueM,117
|
|
694
701
|
office365/outlook/calendar/timezones/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
695
702
|
office365/outlook/calendar/timezones/base.py,sha256=P8YPRNTAZh4UlKc7HbGbMe4AgTX2U_qWgoK7TwfWmi8,465
|
|
696
|
-
office365/outlook/calendar/timezones/custom.py,sha256=
|
|
703
|
+
office365/outlook/calendar/timezones/custom.py,sha256=NYmSofPRcmDyoB3Im8fVgjqiU3ydlZgEqWemP9-Kj3o,630
|
|
697
704
|
office365/outlook/contacts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
698
705
|
office365/outlook/contacts/collection.py,sha256=xBuQLQR8WrwTLY6aPuWhiBPD7uaK9AzW9u5ASpjXYcc,1514
|
|
699
706
|
office365/outlook/contacts/contact.py,sha256=bZ0ohYC_24WKPMUBwSaANMRoz-2htmIehsLV5sFB2-I,4948
|
|
@@ -703,7 +710,7 @@ office365/outlook/internal/paths/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
|
|
|
703
710
|
office365/outlook/internal/queries/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
704
711
|
office365/outlook/mail/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
705
712
|
office365/outlook/mail/automatic_replies_mailtips.py,sha256=ko7pKZ-G30pQAAHN8T_cFsH59AzRtHRTLe7LTP6mjYg,185
|
|
706
|
-
office365/outlook/mail/automatic_replies_setting.py,sha256=
|
|
713
|
+
office365/outlook/mail/automatic_replies_setting.py,sha256=wMI4N7hZZYEYWO4rar5nBYq0UIakUg_xtSF1te5Wx8U,1640
|
|
707
714
|
office365/outlook/mail/body_type.py,sha256=kuTj5rbf4bXNT3-FpcMpHR171m2if-k52-yMCDT18zE,90
|
|
708
715
|
office365/outlook/mail/conversation.py,sha256=vZ5PehZWLw9UzTohdAhzIJETdErZZ7rdqkbYTRYwhkw,2628
|
|
709
716
|
office365/outlook/mail/conversation_thread.py,sha256=MSPSymWx2FVPX24TFLnXYZ31uSOu2ECB13-11uvNbv4,2164
|
|
@@ -739,8 +746,8 @@ office365/outlook/mail/messages/internet_header.py,sha256=kO_5OVM0U67SPvS3SM0FJH
|
|
|
739
746
|
office365/outlook/mail/messages/message.py,sha256=xSZ-CxHRBWBtNOk86t0hl9nIyuw-wCjumik90qH16UM,18529
|
|
740
747
|
office365/outlook/mail/messages/rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
741
748
|
office365/outlook/mail/messages/rules/actions.py,sha256=lpxLNt1X_K_dbueuIWQuJBsdE2gEwk_MWhBe-5s1_WU,2590
|
|
742
|
-
office365/outlook/mail/messages/rules/predicates.py,sha256=
|
|
743
|
-
office365/outlook/mail/messages/rules/rule.py,sha256=
|
|
749
|
+
office365/outlook/mail/messages/rules/predicates.py,sha256=WMx4V_efluaIoZl9OXBEeiDpfaaZjAsDvCBbEIqW4VQ,2140
|
|
750
|
+
office365/outlook/mail/messages/rules/rule.py,sha256=cU4Z2PcWcxzHfOrRNAnvQU13ekjPXVDyROeQ-5YLM4k,1275
|
|
744
751
|
office365/planner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
745
752
|
office365/planner/group.py,sha256=NWBBv3IttJfIdo6jJJnJuBpc8v7GzeCcTtqJ690f0dE,651
|
|
746
753
|
office365/planner/planner.py,sha256=1m3f-man3z4yrmywtPcvhMPXOQQhuDAIH8rV_bZS58c,1573
|
|
@@ -808,7 +815,7 @@ office365/runtime/odata/method.py,sha256=X2nvUuiWaN7AoT1QHGX0CfuGEIRMPSUBiKJHi7v
|
|
|
808
815
|
office365/runtime/odata/model.py,sha256=P57zeqsrVrwj_O7w9aY1iVIWuo5uCZmPemr5vslUIFo,357
|
|
809
816
|
office365/runtime/odata/parameter.py,sha256=njlj75eY1HLczOXhrgIFlM5OqrLpVjCrbYdEdKJDhss,163
|
|
810
817
|
office365/runtime/odata/property.py,sha256=TSkDzGdxOjHoe7L5gJtgOLjr7Y_7oQgZdT2ZWHWAxyA,139
|
|
811
|
-
office365/runtime/odata/query_options.py,sha256=
|
|
818
|
+
office365/runtime/odata/query_options.py,sha256=alTtTrQMn8oC_2qOhv7cyraD6x2CULXLarVuiK8QIf8,3864
|
|
812
819
|
office365/runtime/odata/reader.py,sha256=IjfjjX_PjbHQwIm6TmTEYU_t0RvtvweZAvChzSv5x4U,2381
|
|
813
820
|
office365/runtime/odata/request.py,sha256=yTrqrOG9C7hzccm3cY3qeAESq8MPcdgsm-Q6HmmecuM,6607
|
|
814
821
|
office365/runtime/odata/type.py,sha256=DoG1D12VxToZH-rIW7bxWVLy3X6Kew14IxkEEV6kgLY,3516
|
|
@@ -835,7 +842,7 @@ office365/runtime/paths/v3/entity.py,sha256=5Z0yWD8LF90kpYulrZ_K02v-ApwPADPuz5d3
|
|
|
835
842
|
office365/runtime/paths/v4/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
836
843
|
office365/runtime/paths/v4/entity.py,sha256=ogmVlMambJHm8PMQCgjq6nwbERxPp7vv35eY002VKk4,1056
|
|
837
844
|
office365/runtime/queries/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
838
|
-
office365/runtime/queries/batch.py,sha256=
|
|
845
|
+
office365/runtime/queries/batch.py,sha256=LyPex2plZk7W1l58veNdmUzY1y8OxEp7sE5J0exu8kI,1883
|
|
839
846
|
office365/runtime/queries/client_query.py,sha256=qmIwm1LcJhxj5FYY1V8TylJd5zcUOpyeodNcnNH5OYY,2086
|
|
840
847
|
office365/runtime/queries/create_entity.py,sha256=B7WzBJrCH19icd6ZHpZfXE5hcbDDJFguU850xipuF68,566
|
|
841
848
|
office365/runtime/queries/delete_entity.py,sha256=YrxQmy8pTvbifFiNPqO8MBMBlna0dmv6KQSq4H3hFes,347
|
|
@@ -866,8 +873,8 @@ office365/search/external/connection.py,sha256=9yw_UhSvrsyMnJxPJuCe4it7jmN8cF3H3
|
|
|
866
873
|
office365/search/external/external.py,sha256=_Pk_eMWic2eedPZmEIN1Sj5ZGbk1BsA6VVIgM7Qtc8M,734
|
|
867
874
|
office365/search/external/search_settings.py,sha256=2pWKbktGwjHEhdehBnaUAPlG8aS3pIrnayzlRtNl_j0,179
|
|
868
875
|
office365/sharepoint/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
869
|
-
office365/sharepoint/client_context.py,sha256=
|
|
870
|
-
office365/sharepoint/entity.py,sha256=
|
|
876
|
+
office365/sharepoint/client_context.py,sha256=OgsuH_xfnEHsWuIwvQ0wbjIBO7vL7xXmEfqKYIdTCHY,28479
|
|
877
|
+
office365/sharepoint/entity.py,sha256=YLlyA7Zt-CmiNzso_zhdQrteap8nUiUMwm7B_YXkkRc,2775
|
|
871
878
|
office365/sharepoint/entity_collection.py,sha256=fJXX3frVHmMb7uPxZAKNwh6YyQbtsa-mUyZMUmE5E2I,1242
|
|
872
879
|
office365/sharepoint/request.py,sha256=2lELEr9zitlkWxrKevCFkQrlK4rjxYQ9F3hSg8cRf8Q,1694
|
|
873
880
|
office365/sharepoint/request_context.py,sha256=Bpr14-de8tJgjYQJvd9s9HW5zAzdyTV1WQAzuGSD0G4,854
|
|
@@ -923,7 +930,7 @@ office365/sharepoint/analytics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
923
930
|
office365/sharepoint/analytics/usage_entry.py,sha256=4NTfo_6HPw_1FJ7pFmwebZy0_chL3S709td5R0Xhv38,2485
|
|
924
931
|
office365/sharepoint/appprincipal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
925
932
|
office365/sharepoint/appprincipal/credential.py,sha256=ds4Ynt7uLwegp8MncFCdUL7qlUctSxjo2-12mXpQ_1o,1868
|
|
926
|
-
office365/sharepoint/appprincipal/identity_provider.py,sha256=
|
|
933
|
+
office365/sharepoint/appprincipal/identity_provider.py,sha256=Wzs6K5hVB_PB5J-uDdr1c1Q-Zq612TNbD_OCX5EAUV4,517
|
|
927
934
|
office365/sharepoint/appprincipal/manager.py,sha256=7C40_AbEjwaSmtbazBydh-kiweVPXs3qAn0myjAt0KY,155
|
|
928
935
|
office365/sharepoint/appprincipal/name.py,sha256=-VtaaPeU0NCM8kMdBoM-LHZNgBfuT9_vql_qyMp5kpw,132
|
|
929
936
|
office365/sharepoint/apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -1030,9 +1037,9 @@ office365/sharepoint/customactions/action.py,sha256=uEt_ua2k2dQBxvVY8ggUbWcDBKFu
|
|
|
1030
1037
|
office365/sharepoint/customactions/element.py,sha256=Nhs_LkEWaUkh63ApU5EplQ7MmwNVedXU1huj_lPMZUw,432
|
|
1031
1038
|
office365/sharepoint/customactions/element_collection.py,sha256=VoeGW-brD7DrYyH0KOYqPqHZ3dSCJdLdmrYzrsBZ7go,490
|
|
1032
1039
|
office365/sharepoint/directory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1033
|
-
office365/sharepoint/directory/group.py,sha256=
|
|
1040
|
+
office365/sharepoint/directory/group.py,sha256=OgztuZpjUNqkUX7LdtB5TOJ55OyB40vIHHc2uSpAKXU,1459
|
|
1034
1041
|
office365/sharepoint/directory/group_and_user_status.py,sha256=K32A1pZJaILnFfJxofRpFOr8exMRpAWVcEV7RS9zTeA,488
|
|
1035
|
-
office365/sharepoint/directory/helper.py,sha256=
|
|
1042
|
+
office365/sharepoint/directory/helper.py,sha256=uMXScMpmpgWIKt6sqycs-s-MRBfyz9vmoOKhzu9n030,5945
|
|
1036
1043
|
office365/sharepoint/directory/link.py,sha256=4RNlP0WFZWd0F_x50ye5s1C6k1kfA7QvJWvTgktm114,150
|
|
1037
1044
|
office365/sharepoint/directory/members_info.py,sha256=Fl85SSz5Le0Mop4NKOsQzHp5YDgaulcmlsCKLrMrcdc,164
|
|
1038
1045
|
office365/sharepoint/directory/membership_result.py,sha256=hYye7YyDxzo8JRkUCMOmX2KsYeB_1OCWm97KPlogVjA,350
|
|
@@ -1390,7 +1397,7 @@ office365/sharepoint/publishing/pagecopywithassets/__init__.py,sha256=47DEQpj8HB
|
|
|
1390
1397
|
office365/sharepoint/publishing/pagecopywithassets/response.py,sha256=NAqLy-3ps8tR_pe6iurZott-jNwurhOc1RkCpf6nSKw,212
|
|
1391
1398
|
office365/sharepoint/publishing/pages/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1392
1399
|
office365/sharepoint/publishing/pages/campaign_publication.py,sha256=Fl54loxBjGtKy60sQsnXRHDQiJXX_gPpkiR1gya6RUA,818
|
|
1393
|
-
office365/sharepoint/publishing/pages/collection.py,sha256=
|
|
1400
|
+
office365/sharepoint/publishing/pages/collection.py,sha256=sXEsGg8q1WFT0UKgaMis7OZOyI2YDtntAi_xIcomNlY,4108
|
|
1394
1401
|
office365/sharepoint/publishing/pages/fields_data.py,sha256=m7RIxYwwTHKSTjVVayEfl1SWSGPe08gViPkPpARnxNQ,1189
|
|
1395
1402
|
office365/sharepoint/publishing/pages/metadata.py,sha256=bpriKfbF8ARSt0TepA07Rc-DkxUHDiNiM-p3S6bTli4,5021
|
|
1396
1403
|
office365/sharepoint/publishing/pages/metadata_collection.py,sha256=v1NGl1_nnOj8tyoQ1O-C01vcOHHqsqVk28kGG28WXV8,701
|
|
@@ -1654,7 +1661,7 @@ office365/sharepoint/tenant/administration/deny_add_and_customize_pages_status.p
|
|
|
1654
1661
|
office365/sharepoint/tenant/administration/endpoints.py,sha256=KKWkN9jPEsbGcsfsRlZAH5z5D7r8MdW3GiaUHaySuL4,423
|
|
1655
1662
|
office365/sharepoint/tenant/administration/execution_history_response.py,sha256=GXCHxhchUb0u_1KHQbJHzBvnhgdDkeceCqOIlklkVEU,275
|
|
1656
1663
|
office365/sharepoint/tenant/administration/group.py,sha256=PMbLXkPFEPZN6qQ7l2j7Yg21ksRUVztGLcaFz5AO8QI,553
|
|
1657
|
-
office365/sharepoint/tenant/administration/recent_admin_action_report.py,sha256=
|
|
1664
|
+
office365/sharepoint/tenant/administration/recent_admin_action_report.py,sha256=h8w_hxYENaW81QZ8UVNhcr_hyHgHWz3b3LWKsSb2DuQ,424
|
|
1658
1665
|
office365/sharepoint/tenant/administration/recent_admin_action_report_payload.py,sha256=IZHJ7T87O7k2_BURSMwKU36JEVkQIYjpjFwel2HLsHw,290
|
|
1659
1666
|
office365/sharepoint/tenant/administration/response_message_center.py,sha256=FOUNzGLrryNBRNG-_aILOtCwg6Ddgp4lO2GGmF0kZ6o,522
|
|
1660
1667
|
office365/sharepoint/tenant/administration/response_service_health.py,sha256=RpkVYMBYhhKPeS8zze7r2cwRpJwrVc0U7F6aUE3dXoQ,220
|
|
@@ -1666,7 +1673,7 @@ office365/sharepoint/tenant/administration/site_user_group_info.py,sha256=L1b7cJ
|
|
|
1666
1673
|
office365/sharepoint/tenant/administration/siteinfo_for_site_picker.py,sha256=WXonNa2VN7xjT1MhqzJI5Gi134Yr1PdUjpxws4d9dI4,469
|
|
1667
1674
|
office365/sharepoint/tenant/administration/smtp_server.py,sha256=KDkfx3cESfTLDZrjFOhgVeoWOL2VfxOZuX4kzoMLFuU,290
|
|
1668
1675
|
office365/sharepoint/tenant/administration/spo_operation.py,sha256=pFysC_Ee-RTyA4oY_7TG1U-4VHMZLkXNTZSZLdlid1I,949
|
|
1669
|
-
office365/sharepoint/tenant/administration/tenant.py,sha256=
|
|
1676
|
+
office365/sharepoint/tenant/administration/tenant.py,sha256=xj9VQXrzekXzRMpoHKP3skeMfT9Rgy571IAudoL2_Uk,27036
|
|
1670
1677
|
office365/sharepoint/tenant/administration/theme_properties.py,sha256=6iI2LLKSnOSi5TByT-8u1I56w8As7DzQBCRU4WI0uyE,204
|
|
1671
1678
|
office365/sharepoint/tenant/administration/types.py,sha256=uIbr9fHcD9iHPyLB0OY4ynKl2pskgB7DwSfYabYNWug,104
|
|
1672
1679
|
office365/sharepoint/tenant/administration/audit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -1960,8 +1967,8 @@ office365/todo/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
|
1960
1967
|
office365/todo/tasks/list.py,sha256=i8figSfqkRm1wuUZXJntZWnnidT0XIY2SGvCCuRK8C8,1138
|
|
1961
1968
|
office365/todo/tasks/list_collection.py,sha256=bDKOXgzdCDWnJqPZgBQYZ9yaFNOqXrv5DL1uWy5fg_M,584
|
|
1962
1969
|
office365/todo/tasks/task.py,sha256=ZWGkBieQ7_7Om4RgBhXfCs6651a2mi_tFttZgaIcY4o,2120
|
|
1963
|
-
Office365_REST_Python_Client-2.5.
|
|
1964
|
-
Office365_REST_Python_Client-2.5.
|
|
1965
|
-
Office365_REST_Python_Client-2.5.
|
|
1966
|
-
Office365_REST_Python_Client-2.5.
|
|
1967
|
-
Office365_REST_Python_Client-2.5.
|
|
1970
|
+
Office365_REST_Python_Client-2.5.12.dist-info/LICENSE,sha256=oiA-FsK_tSE0PNl3jtQ9ohZjFjPyQK3ejw6le4hzL5Q,1083
|
|
1971
|
+
Office365_REST_Python_Client-2.5.12.dist-info/METADATA,sha256=Dwm_wjSbhejbmP31pQ1dQa9Q3Sr5DJJPGnhWRvvqf1g,18473
|
|
1972
|
+
Office365_REST_Python_Client-2.5.12.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
|
|
1973
|
+
Office365_REST_Python_Client-2.5.12.dist-info/top_level.txt,sha256=xmwMgIZYmOTzckcPR2A1-3ebpPhfqj1l_QOvsOf30X4,10
|
|
1974
|
+
Office365_REST_Python_Client-2.5.12.dist-info/RECORD,,
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from office365.directory.authentication.conditions.applications import (
|
|
2
|
+
AuthenticationConditionsApplications,
|
|
3
|
+
)
|
|
4
|
+
from office365.runtime.client_value import ClientValue
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AuthenticationConditions(ClientValue):
|
|
8
|
+
""""""
|
|
9
|
+
|
|
10
|
+
def __init__(self, applications=AuthenticationConditionsApplications()):
|
|
11
|
+
self.applications = applications
|
office365/graph_client.py
CHANGED
|
@@ -229,16 +229,19 @@ class GraphClient(ClientRuntimeContext):
|
|
|
229
229
|
|
|
230
230
|
return GraphClient(_acquire_token)
|
|
231
231
|
|
|
232
|
-
def execute_batch(self, items_per_batch=100):
|
|
232
|
+
def execute_batch(self, items_per_batch=100, success_callback=None):
|
|
233
233
|
"""Constructs and submit a batch request
|
|
234
234
|
|
|
235
235
|
:param int items_per_batch: Maximum to be selected for bulk operation
|
|
236
|
+
:param (List[ClientObject|ClientResult])-> None success_callback: A success callback
|
|
236
237
|
"""
|
|
237
238
|
batch_request = ODataV4BatchRequest(V4JsonFormat())
|
|
238
239
|
batch_request.beforeExecute += self._authenticate_request
|
|
239
240
|
while self.has_pending_request:
|
|
240
241
|
qry = self._get_next_query(items_per_batch)
|
|
241
242
|
batch_request.execute_query(qry)
|
|
243
|
+
if callable(success_callback):
|
|
244
|
+
success_callback(qry.return_type)
|
|
242
245
|
return self
|
|
243
246
|
|
|
244
247
|
def pending_request(self):
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from office365.runtime.client_value import ClientValue
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class IdleSessionSignOut(ClientValue):
|
|
5
|
+
"""Represents the idle session sign-out policy settings for SharePoint."""
|
|
6
|
+
|
|
7
|
+
def __init__(
|
|
8
|
+
self,
|
|
9
|
+
is_enabled=None,
|
|
10
|
+
sign_out_after_in_seconds=None,
|
|
11
|
+
warn_after_in_seconds=None,
|
|
12
|
+
):
|
|
13
|
+
self.isEnabled = is_enabled
|
|
14
|
+
self.signOutAfterInSeconds = sign_out_after_in_seconds
|
|
15
|
+
self.warnAfterInSeconds = warn_after_in_seconds
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from typing import Optional
|
|
2
2
|
|
|
3
3
|
from office365.entity import Entity
|
|
4
|
+
from office365.onedrive.idle_session_signout import IdleSessionSignOut
|
|
4
5
|
from office365.runtime.types.collections import StringCollection
|
|
5
6
|
|
|
6
7
|
|
|
@@ -26,6 +27,18 @@ class SharepointSettings(Entity):
|
|
|
26
27
|
"excludedFileExtensionsForSyncApp", StringCollection()
|
|
27
28
|
)
|
|
28
29
|
|
|
30
|
+
@property
|
|
31
|
+
def idle_session_sign_out(self):
|
|
32
|
+
# type: () -> IdleSessionSignOut
|
|
33
|
+
"""Specifies the idle session sign-out policies for the tenant."""
|
|
34
|
+
return self.properties.get("idleSessionSignOut", IdleSessionSignOut())
|
|
35
|
+
|
|
36
|
+
@property
|
|
37
|
+
def is_commenting_on_site_pages_enabled(self):
|
|
38
|
+
# type: () -> Optional[bool]
|
|
39
|
+
"""Indicates whether comments are allowed on modern site pages in SharePoint."""
|
|
40
|
+
return self.properties.get("isCommentingOnSitePagesEnabled", None)
|
|
41
|
+
|
|
29
42
|
@property
|
|
30
43
|
def site_creation_default_managed_path(self):
|
|
31
44
|
# type: () -> Optional[str]
|
|
@@ -4,10 +4,20 @@ from office365.runtime.client_value import ClientValue
|
|
|
4
4
|
class TitleArea(ClientValue):
|
|
5
5
|
"""Represents the title area of a given SharePoint page."""
|
|
6
6
|
|
|
7
|
-
def __init__(
|
|
7
|
+
def __init__(
|
|
8
|
+
self,
|
|
9
|
+
alternative_text=None,
|
|
10
|
+
enable_gradient_effect=None,
|
|
11
|
+
image_web_url=None,
|
|
12
|
+
show_author=None,
|
|
13
|
+
):
|
|
8
14
|
"""
|
|
9
|
-
:param str
|
|
10
|
-
:param bool
|
|
15
|
+
:param str alternative_text: Alternative text on the title area.
|
|
16
|
+
:param bool enable_gradient_effect: Indicates whether the title area has a gradient effect enabled.
|
|
17
|
+
:param str image_web_url:
|
|
18
|
+
:param bool show_author:
|
|
11
19
|
"""
|
|
12
|
-
self.alternativeText =
|
|
13
|
-
self.enableGradientEffect =
|
|
20
|
+
self.alternativeText = alternative_text
|
|
21
|
+
self.enableGradientEffect = enable_gradient_effect
|
|
22
|
+
self.imageWebUrl = image_web_url
|
|
23
|
+
self.showAuthor = show_author
|
|
File without changes
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
from office365.outlook.calendar.sharing.message_action import (
|
|
2
|
+
CalendarSharingMessageAction,
|
|
3
|
+
)
|
|
1
4
|
from office365.outlook.mail.messages.message import Message
|
|
2
5
|
|
|
3
6
|
|
|
4
7
|
class CalendarSharingMessage(Message):
|
|
5
8
|
""""""
|
|
9
|
+
|
|
10
|
+
@property
|
|
11
|
+
def sharing_message_action(self):
|
|
12
|
+
""""""
|
|
13
|
+
return self.properties.setdefault(
|
|
14
|
+
"sharingMessageAction", CalendarSharingMessageAction()
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
def get_property(self, name, default_value=None):
|
|
18
|
+
if default_value is None:
|
|
19
|
+
property_type_mapping = {
|
|
20
|
+
"sharingMessageAction": self.sharing_message_action,
|
|
21
|
+
}
|
|
22
|
+
default_value = property_type_mapping.get(name, None)
|
|
23
|
+
|
|
24
|
+
return super(CalendarSharingMessage, self).get_property(name, default_value)
|
|
@@ -5,3 +5,12 @@ class CustomTimeZone(TimeZoneBase):
|
|
|
5
5
|
"""
|
|
6
6
|
Represents a time zone where the transition from standard to daylight saving time, or vice versa is not standard.
|
|
7
7
|
"""
|
|
8
|
+
|
|
9
|
+
def __init__(self, bias=None):
|
|
10
|
+
"""
|
|
11
|
+
:param int bias: The time offset of the time zone from Coordinated Universal Time (UTC). This value is in
|
|
12
|
+
minutes. Time zones that are ahead of UTC have a positive offset; time zones that are behind UTC have
|
|
13
|
+
a negative offset.
|
|
14
|
+
"""
|
|
15
|
+
super(CustomTimeZone, self).__init__()
|
|
16
|
+
self.bias = bias
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from office365.outlook.calendar.dateTimeTimeZone import DateTimeTimeZone
|
|
1
2
|
from office365.runtime.client_value import ClientValue
|
|
2
3
|
|
|
3
4
|
|
|
@@ -12,6 +13,9 @@ class AutomaticRepliesSetting(ClientValue):
|
|
|
12
13
|
external_audience=None,
|
|
13
14
|
external_reply_message=None,
|
|
14
15
|
internal_reply_message=None,
|
|
16
|
+
scheduled_end_datetime=DateTimeTimeZone(),
|
|
17
|
+
scheduled_start_datetime=DateTimeTimeZone(),
|
|
18
|
+
status=None,
|
|
15
19
|
):
|
|
16
20
|
"""
|
|
17
21
|
:param str external_audience: The set of audience external to the signed-in user's organization who will
|
|
@@ -25,3 +29,6 @@ class AutomaticRepliesSetting(ClientValue):
|
|
|
25
29
|
self.externalAudience = external_audience
|
|
26
30
|
self.externalReplyMessage = external_reply_message
|
|
27
31
|
self.internalReplyMessage = internal_reply_message
|
|
32
|
+
self.scheduledEndDateTime = scheduled_end_datetime
|
|
33
|
+
self.scheduledStartDateTime = scheduled_start_datetime
|
|
34
|
+
self.status = status
|
|
@@ -15,6 +15,8 @@ class MessageRulePredicates(ClientValue):
|
|
|
15
15
|
from_addresses=None,
|
|
16
16
|
has_attachments=None,
|
|
17
17
|
header_contains=None,
|
|
18
|
+
importance=None,
|
|
19
|
+
is_approval_request=None,
|
|
18
20
|
):
|
|
19
21
|
"""
|
|
20
22
|
:param list[str] body_contains: Represents the strings that should appear in the body of an incoming message
|
|
@@ -28,6 +30,7 @@ class MessageRulePredicates(ClientValue):
|
|
|
28
30
|
:param bool has_attachments: Indicates whether an incoming message must have attachments in order for the
|
|
29
31
|
condition or exception to apply.
|
|
30
32
|
:param list[str] header_contains:
|
|
33
|
+
:param bool is_approval_request:
|
|
31
34
|
"""
|
|
32
35
|
self.bodyContains = StringCollection(body_contains)
|
|
33
36
|
self.bodyOrSubjectContains = StringCollection(body_or_subject_contains)
|
|
@@ -35,3 +38,5 @@ class MessageRulePredicates(ClientValue):
|
|
|
35
38
|
self.fromAddresses = ClientValueCollection(Recipient, from_addresses)
|
|
36
39
|
self.hasAttachments = has_attachments
|
|
37
40
|
self.headerContains = StringCollection(header_contains)
|
|
41
|
+
self.importance = importance
|
|
42
|
+
self.isApprovalRequest = is_approval_request
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.entity import Entity
|
|
2
4
|
from office365.outlook.mail.messages.rules.actions import MessageRuleActions
|
|
3
5
|
from office365.outlook.mail.messages.rules.predicates import MessageRulePredicates
|
|
@@ -26,7 +28,6 @@ class MessageRule(Entity):
|
|
|
26
28
|
|
|
27
29
|
@property
|
|
28
30
|
def is_read_only(self):
|
|
29
|
-
|
|
30
|
-
Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API.
|
|
31
|
-
"""
|
|
31
|
+
# type: () -> Optional[bool]
|
|
32
|
+
"""Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API."""
|
|
32
33
|
return self.properties.get("isReadOnly", None)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
1
2
|
from office365.sharepoint.entity import Entity
|
|
2
3
|
|
|
3
4
|
|
|
@@ -6,4 +7,9 @@ class AppPrincipalIdentityProvider(Entity):
|
|
|
6
7
|
|
|
7
8
|
@staticmethod
|
|
8
9
|
def external(context):
|
|
9
|
-
|
|
10
|
+
return_type = AppPrincipalIdentityProvider(context)
|
|
11
|
+
qry = ServiceOperationQuery(
|
|
12
|
+
return_type, "External", None, None, None, return_type, True
|
|
13
|
+
)
|
|
14
|
+
context.add_query(qry)
|
|
15
|
+
return return_type
|
|
@@ -8,6 +8,7 @@ from office365.runtime.auth.authentication_context import AuthenticationContext
|
|
|
8
8
|
from office365.runtime.auth.client_credential import ClientCredential
|
|
9
9
|
from office365.runtime.auth.token_response import TokenResponse
|
|
10
10
|
from office365.runtime.auth.user_credential import UserCredential
|
|
11
|
+
from office365.runtime.client_object import ClientObject
|
|
11
12
|
from office365.runtime.client_result import ClientResult
|
|
12
13
|
from office365.runtime.client_runtime_context import ClientRuntimeContext
|
|
13
14
|
from office365.runtime.compat import get_absolute_url, urlparse
|
|
@@ -197,11 +198,11 @@ class ClientContext(ClientRuntimeContext):
|
|
|
197
198
|
return self
|
|
198
199
|
|
|
199
200
|
def execute_batch(self, items_per_batch=100, success_callback=None):
|
|
200
|
-
# type: (int, Callable[[
|
|
201
|
+
# type: (int, Callable[[List[ClientObject|ClientResult]], None]) -> Self
|
|
201
202
|
"""
|
|
202
203
|
Construct and submit to a server a batch request
|
|
203
204
|
:param int items_per_batch: Maximum to be selected for bulk operation
|
|
204
|
-
:param (
|
|
205
|
+
:param (List[ClientObject|ClientResult])-> None success_callback: A success callback
|
|
205
206
|
"""
|
|
206
207
|
batch_request = ODataBatchV3Request(JsonLightFormat())
|
|
207
208
|
batch_request.beforeExecute += self._authenticate_request
|
|
@@ -210,7 +211,7 @@ class ClientContext(ClientRuntimeContext):
|
|
|
210
211
|
qry = self._get_next_query(items_per_batch)
|
|
211
212
|
batch_request.execute_query(qry)
|
|
212
213
|
if callable(success_callback):
|
|
213
|
-
success_callback(
|
|
214
|
+
success_callback(qry.return_type)
|
|
214
215
|
return self
|
|
215
216
|
|
|
216
217
|
def pending_request(self):
|
|
@@ -7,41 +7,41 @@ from office365.sharepoint.entity_collection import EntityCollection
|
|
|
7
7
|
class Group(Entity):
|
|
8
8
|
def get_members_info(self, row_limit):
|
|
9
9
|
""""""
|
|
10
|
-
|
|
10
|
+
return_type = MembersInfo(self.context)
|
|
11
11
|
|
|
12
12
|
def _user_loaded():
|
|
13
13
|
from office365.sharepoint.directory.helper import SPHelper
|
|
14
14
|
|
|
15
15
|
SPHelper.get_members_info(
|
|
16
|
-
self.context, self.properties["Id"], row_limit,
|
|
16
|
+
self.context, self.properties["Id"], row_limit, return_type
|
|
17
17
|
)
|
|
18
18
|
|
|
19
19
|
self.ensure_property("Id", _user_loaded)
|
|
20
|
-
return
|
|
20
|
+
return return_type
|
|
21
21
|
|
|
22
22
|
def get_members(self):
|
|
23
23
|
""""""
|
|
24
24
|
from office365.directory.users.user import User
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
return_type = EntityCollection(self.context, User)
|
|
27
27
|
|
|
28
28
|
def _group_loaded():
|
|
29
|
-
SPHelper.get_members(self.context, self.properties["Id"],
|
|
29
|
+
SPHelper.get_members(self.context, self.properties["Id"], return_type)
|
|
30
30
|
|
|
31
31
|
self.ensure_property("Id", _group_loaded)
|
|
32
|
-
return
|
|
32
|
+
return return_type
|
|
33
33
|
|
|
34
34
|
def get_owners(self):
|
|
35
35
|
""""""
|
|
36
36
|
from office365.directory.users.user import User
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
return_type = EntityCollection(self.context, User)
|
|
39
39
|
|
|
40
40
|
def _group_loaded():
|
|
41
|
-
SPHelper.get_owners(self.context, self.properties["Id"],
|
|
41
|
+
SPHelper.get_owners(self.context, self.properties["Id"], return_type)
|
|
42
42
|
|
|
43
43
|
self.ensure_property("Id", _group_loaded)
|
|
44
|
-
return
|
|
44
|
+
return return_type
|
|
45
45
|
|
|
46
46
|
@property
|
|
47
47
|
def entity_type_name(self):
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.client_result import ClientResult
|
|
2
4
|
from office365.runtime.paths.resource_path import ResourcePath
|
|
3
5
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
@@ -16,6 +18,7 @@ class SPHelper(Entity):
|
|
|
16
18
|
|
|
17
19
|
@staticmethod
|
|
18
20
|
def is_member_of(context, principal_name, group_id, result=None):
|
|
21
|
+
# type: (ClientContext, str, str, Optional[ClientResult[bool]]) -> ClientResult[bool]
|
|
19
22
|
"""
|
|
20
23
|
:param str principal_name: User principal name
|
|
21
24
|
:param str group_id: Group id
|
|
@@ -34,10 +37,7 @@ class SPHelper(Entity):
|
|
|
34
37
|
@staticmethod
|
|
35
38
|
def check_site_availability(context, site_url):
|
|
36
39
|
# type: (ClientContext, str) -> ClientResult[bool]
|
|
37
|
-
"""
|
|
38
|
-
:param str site_url: Site Url
|
|
39
|
-
:param office365.sharepoint.client_context.ClientContext context: SharePoint context
|
|
40
|
-
"""
|
|
40
|
+
""" """
|
|
41
41
|
return_type = ClientResult(context)
|
|
42
42
|
qry = ServiceOperationQuery(
|
|
43
43
|
SPHelper(context),
|
|
@@ -121,6 +121,7 @@ class SPHelper(Entity):
|
|
|
121
121
|
|
|
122
122
|
@staticmethod
|
|
123
123
|
def get_owners(context, group_id, return_type=None):
|
|
124
|
+
# type: (ClientContext, str, Optional[EntityCollection[User]]) -> SPHelper
|
|
124
125
|
"""
|
|
125
126
|
:param str group_id: Group identifier
|
|
126
127
|
:param office365.sharepoint.client_context.ClientContext context: SharePoint context
|
|
@@ -137,6 +138,7 @@ class SPHelper(Entity):
|
|
|
137
138
|
|
|
138
139
|
@staticmethod
|
|
139
140
|
def remove_external_members(context, group_id):
|
|
141
|
+
# type: (ClientContext, str) -> SPHelper
|
|
140
142
|
"""
|
|
141
143
|
:param str group_id: Group identifier
|
|
142
144
|
:param office365.sharepoint.client_context.ClientContext context: SharePoint context
|
office365/sharepoint/entity.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
from typing import TYPE_CHECKING, Callable
|
|
1
|
+
from typing import TYPE_CHECKING, Callable, List
|
|
2
2
|
|
|
3
3
|
from typing_extensions import Self
|
|
4
4
|
|
|
5
5
|
from office365.runtime.auth.client_credential import ClientCredential
|
|
6
6
|
from office365.runtime.auth.user_credential import UserCredential
|
|
7
7
|
from office365.runtime.client_object import ClientObject
|
|
8
|
+
from office365.runtime.client_result import ClientResult
|
|
8
9
|
from office365.runtime.paths.v3.entity import EntityPath
|
|
9
10
|
from office365.runtime.queries.delete_entity import DeleteEntityQuery
|
|
10
11
|
from office365.runtime.queries.update_entity import UpdateEntityQuery
|
|
@@ -22,13 +23,13 @@ class Entity(ClientObject):
|
|
|
22
23
|
return self
|
|
23
24
|
|
|
24
25
|
def execute_batch(self, items_per_batch=100, success_callback=None):
|
|
25
|
-
# type: (int, Callable[[
|
|
26
|
+
# type: (int, Callable[[List[ClientObject|ClientResult]], None]) -> Self
|
|
26
27
|
"""Construct and submit to a server a batch request"""
|
|
27
28
|
return self.context.execute_batch(items_per_batch, success_callback)
|
|
28
29
|
|
|
29
30
|
def with_credentials(self, credentials):
|
|
30
31
|
# type: (UserCredential|ClientCredential) -> Self
|
|
31
|
-
""" """
|
|
32
|
+
"""Initializes a client to acquire a token via user or client credentials"""
|
|
32
33
|
self.context.with_credentials(credentials)
|
|
33
34
|
return self
|
|
34
35
|
|
|
@@ -62,7 +62,7 @@ class SitePageCollection(SitePageMetadataCollection[SitePage]):
|
|
|
62
62
|
return return_type
|
|
63
63
|
|
|
64
64
|
def get_page_column_state(self, url):
|
|
65
|
-
"""
|
|
65
|
+
"""
|
|
66
66
|
Determines whether a specific SitePage is a single or multicolumn page.
|
|
67
67
|
|
|
68
68
|
:param str url: URL of the SitePage for which to return state.
|
|
@@ -4,10 +4,10 @@ from office365.runtime.client_value import ClientValue
|
|
|
4
4
|
class RecentAdminActionReport(ClientValue):
|
|
5
5
|
""" """
|
|
6
6
|
|
|
7
|
-
def __init__(self, actions=None,
|
|
7
|
+
def __init__(self, actions=None, created_by_email=None):
|
|
8
8
|
# type: (str, str) -> None
|
|
9
9
|
self.actions = actions
|
|
10
|
-
self.createdByEmail =
|
|
10
|
+
self.createdByEmail = created_by_email
|
|
11
11
|
|
|
12
12
|
@property
|
|
13
13
|
def entity_type_name(self):
|
|
@@ -330,22 +330,46 @@ class Tenant(Entity):
|
|
|
330
330
|
self.context.add_query(qry)
|
|
331
331
|
return return_type
|
|
332
332
|
|
|
333
|
-
def get_sp_list_item_count(self,
|
|
333
|
+
def get_sp_list_item_count(self, list_name):
|
|
334
334
|
# type: (str) -> ClientResult[int]
|
|
335
335
|
""" """
|
|
336
336
|
return_type = ClientResult(self.context)
|
|
337
|
-
payload = {"listName":
|
|
337
|
+
payload = {"listName": list_name}
|
|
338
338
|
qry = ServiceOperationQuery(
|
|
339
339
|
self, "GetSPListItemCount", None, payload, None, return_type
|
|
340
340
|
)
|
|
341
341
|
self.context.add_query(qry)
|
|
342
342
|
return return_type
|
|
343
343
|
|
|
344
|
+
def get_sp_list_root_folder_properties(self, list_name):
|
|
345
|
+
# type: (str) -> ClientResult[dict]
|
|
346
|
+
""" """
|
|
347
|
+
return_type = ClientResult(self.context)
|
|
348
|
+
payload = {"listName": list_name}
|
|
349
|
+
qry = ServiceOperationQuery(
|
|
350
|
+
self, "GetSPListRootFolderProperties", None, payload, None, return_type
|
|
351
|
+
)
|
|
352
|
+
self.context.add_query(qry)
|
|
353
|
+
return return_type
|
|
354
|
+
|
|
355
|
+
def get_spo_all_web_templates(self, culture_name=None, compatibility_level=None):
|
|
356
|
+
# type: (str, int) -> SPOTenantWebTemplateCollection
|
|
357
|
+
""" """
|
|
358
|
+
return_type = SPOTenantWebTemplateCollection(self.context)
|
|
359
|
+
payload = {
|
|
360
|
+
"cultureName": culture_name,
|
|
361
|
+
"compatibilityLevel": compatibility_level,
|
|
362
|
+
}
|
|
363
|
+
qry = ServiceOperationQuery(
|
|
364
|
+
self, "GetSPOAllWebTemplates", None, payload, None, return_type
|
|
365
|
+
)
|
|
366
|
+
self.context.add_query(qry)
|
|
367
|
+
return return_type
|
|
368
|
+
|
|
344
369
|
def check_tenant_intune_license(self):
|
|
345
|
-
|
|
346
|
-
Checks whether a tenant has the Intune license.
|
|
347
|
-
|
|
348
|
-
return_type = ClientResult(self.context) # type: ClientResult[bool]
|
|
370
|
+
# type: () -> ClientResult[bool]
|
|
371
|
+
"""Checks whether a tenant has the Intune license."""
|
|
372
|
+
return_type = ClientResult(self.context)
|
|
349
373
|
qry = ServiceOperationQuery(
|
|
350
374
|
self, "CheckTenantIntuneLicense", None, None, None, return_type
|
|
351
375
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|