Office365-REST-Python-Client 2.5.10__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.
Files changed (85) hide show
  1. {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/METADATA +14 -10
  2. {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/RECORD +85 -69
  3. {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/WHEEL +1 -1
  4. office365/directory/authentication/conditions/__init__.py +0 -0
  5. office365/directory/authentication/conditions/application.py +5 -0
  6. office365/directory/authentication/conditions/applications.py +5 -0
  7. office365/directory/authentication/conditions/conditions.py +11 -0
  8. office365/directory/identitygovernance/appconsent/request.py +32 -0
  9. office365/directory/identitygovernance/appconsent/request_scope.py +5 -0
  10. office365/directory/identitygovernance/privilegedaccess/group.py +5 -0
  11. office365/directory/identitygovernance/privilegedaccess/root.py +14 -0
  12. office365/directory/identitygovernance/privilegedaccess/schedule_instance.py +6 -0
  13. office365/directory/policies/admin_consent_request.py +10 -0
  14. office365/directory/policies/root.py +15 -0
  15. office365/directory/synchronization/status.py +14 -1
  16. office365/directory/synchronization/task_execution.py +5 -0
  17. office365/directory/users/user.py +4 -2
  18. office365/graph_client.py +11 -25
  19. office365/graph_request.py +24 -1
  20. office365/onedrive/driveitems/driveItem.py +41 -38
  21. office365/onedrive/idle_session_signout.py +15 -0
  22. office365/onedrive/listitems/list_item.py +1 -0
  23. office365/onedrive/lists/collection.py +6 -0
  24. office365/onedrive/sharepoint_ids.py +18 -1
  25. office365/onedrive/sharepoint_settings.py +13 -0
  26. office365/onedrive/shares/drive_item.py +1 -2
  27. office365/onedrive/sitepages/title_area.py +15 -5
  28. office365/onedrive/storage/__init__.py +0 -0
  29. office365/onedrive/storage/storage.py +5 -0
  30. office365/onedrive/workbooks/filter.py +7 -0
  31. office365/onedrive/workbooks/filter_criteria.py +9 -2
  32. office365/onedrive/workbooks/tables/rows/collection.py +20 -0
  33. office365/onedrive/workbooks/tables/rows/row.py +2 -1
  34. office365/onedrive/workbooks/workbook.py +7 -5
  35. office365/onenote/internal/multipart_page_query.py +2 -3
  36. office365/outlook/calendar/sharing/__init__.py +0 -0
  37. office365/outlook/calendar/sharing/message_action.py +5 -0
  38. office365/outlook/calendar/sharing_message.py +19 -0
  39. office365/outlook/calendar/timezones/custom.py +9 -0
  40. office365/outlook/category.py +7 -0
  41. office365/outlook/mail/automatic_replies_setting.py +7 -0
  42. office365/outlook/mail/item_body.py +10 -1
  43. office365/outlook/mail/messages/collection.py +3 -0
  44. office365/outlook/mail/messages/message.py +3 -4
  45. office365/outlook/mail/messages/rules/predicates.py +5 -0
  46. office365/outlook/mail/messages/rules/rule.py +4 -3
  47. office365/runtime/auth/providers/saml_token_provider.py +4 -4
  48. office365/runtime/http/request_options.py +7 -3
  49. office365/runtime/odata/query_options.py +3 -0
  50. office365/runtime/queries/batch.py +4 -0
  51. office365/runtime/queries/create_entity.py +6 -8
  52. office365/runtime/queries/update_entity.py +3 -5
  53. office365/sharepoint/appprincipal/identity_provider.py +7 -1
  54. office365/sharepoint/attachments/attachment.py +14 -2
  55. office365/sharepoint/attachments/collection.py +27 -4
  56. office365/sharepoint/changes/app_consent_principal.py +5 -0
  57. office365/sharepoint/changes/file.py +4 -0
  58. office365/sharepoint/client_context.py +4 -3
  59. office365/sharepoint/directory/group.py +9 -9
  60. office365/sharepoint/directory/helper.py +6 -4
  61. office365/sharepoint/documentmanagement/document_set.py +7 -8
  62. office365/sharepoint/entity.py +4 -3
  63. office365/sharepoint/fields/builtin_field_id.py +19 -0
  64. office365/sharepoint/fields/choice.py +2 -2
  65. office365/sharepoint/fields/collection.py +1 -3
  66. office365/sharepoint/fields/field.py +5 -2
  67. office365/sharepoint/files/file.py +1 -1
  68. office365/sharepoint/internal/queries/upload_file.py +12 -8
  69. office365/sharepoint/navigation/node.py +4 -2
  70. office365/sharepoint/packaging/app_details.py +34 -0
  71. office365/sharepoint/policy/dlp_policy_tip.py +9 -1
  72. office365/sharepoint/portal/sites/manager.py +1 -1
  73. office365/sharepoint/principal/principal.py +10 -1
  74. office365/sharepoint/principal/users/collection.py +1 -3
  75. office365/sharepoint/publishing/pages/collection.py +1 -1
  76. office365/sharepoint/publishing/sites/communication/site.py +4 -3
  77. office365/sharepoint/request.py +33 -1
  78. office365/sharepoint/sharing/information.py +5 -0
  79. office365/sharepoint/sharing/permission_collection.py +13 -9
  80. office365/sharepoint/sharing/recipient_limits.py +9 -0
  81. office365/sharepoint/sharing/site_sharing_report_helper.py +2 -3
  82. office365/sharepoint/tenant/administration/recent_admin_action_report.py +2 -2
  83. office365/sharepoint/tenant/administration/tenant.py +50 -4
  84. {Office365_REST_Python_Client-2.5.10.dist-info → Office365_REST_Python_Client-2.5.12.dist-info}/LICENSE +0 -0
  85. {Office365_REST_Python_Client-2.5.10.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.10
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
@@ -30,7 +30,7 @@ License-File: LICENSE
30
30
  Requires-Dist: requests
31
31
  Requires-Dist: msal
32
32
  Requires-Dist: pytz
33
- Requires-Dist: typing-extensions (>=4.0.0)
33
+ Requires-Dist: typing-extensions >=4.0.0
34
34
  Provides-Extra: ntlmprovider
35
35
  Requires-Dist: requests-ntlm ; extra == 'ntlmprovider'
36
36
 
@@ -145,7 +145,7 @@ Steps to access:
145
145
  Usage:
146
146
  ```python
147
147
  from office365.sharepoint.client_context import ClientContext
148
- ctx = ClientContext(site_url).with_interactive(tenant_name_or_id, client_id)
148
+ ctx = ClientContext("{site-url}").with_interactive("{tenant-name-or-id}", "{client-id}")
149
149
  me = ctx.web.current_user.get().execute_query()
150
150
  print(me.login_name)
151
151
  ```
@@ -178,19 +178,17 @@ print("Web title: {0}".format(web.properties['Title']))
178
178
  ```
179
179
 
180
180
 
181
- 2. `RequestOptions class` - where you construct REST queries (and no model is involved)
181
+ 2. `SharePointRequest class` - where you construct REST queries (and no model is involved)
182
182
 
183
183
  The example demonstrates how to read `Web` properties:
184
184
 
185
185
  ```python
186
186
  import json
187
187
  from office365.runtime.auth.user_credential import UserCredential
188
- from office365.runtime.http.request_options import RequestOptions
189
- from office365.sharepoint.client_context import ClientContext
188
+ from office365.sharepoint.request import SharePointRequest
190
189
  site_url = "https://{your-tenant-prefix}.sharepoint.com"
191
- ctx = ClientContext(site_url).with_credentials(UserCredential("{username}", "{password}"))
192
- request = RequestOptions("{0}/_api/web/".format(site_url))
193
- response = ctx.pending_request().execute_request_direct(request)
190
+ request = SharePointRequest(site_url).with_credentials(UserCredential("{username}", "{password}"))
191
+ response = request.execute_request("web")
194
192
  json = json.loads(response.content)
195
193
  web_title = json['d']['Title']
196
194
  print("Web title: {0}".format(web_title))
@@ -220,6 +218,7 @@ Refer [examples section](examples/sharepoint) for another scenarios
220
218
 
221
219
  Example:
222
220
  ```python
221
+ from office365.sharepoint.client_context import ClientContext
223
222
  client_credentials = ClientCredential('{client_id}','{client_secret}')
224
223
  ctx = ClientContext('{url}').with_credentials(client_credentials, environment='GCCH')
225
224
  ```
@@ -431,7 +430,7 @@ which corresponds to [`Create team` endpoint](https://docs.microsoft.com/en-us/g
431
430
  ```python
432
431
  from office365.graph_client import GraphClient
433
432
  client = GraphClient(acquire_token_func)
434
- new_team = client.groups["{group_id}"].add_team().execute_query_retry()
433
+ new_team = client.groups["{group-id}"].add_team().execute_query_retry()
435
434
  ```
436
435
 
437
436
  Additional examples:
@@ -481,4 +480,9 @@ The following libraries will be installed when you install the client library:
481
480
  * [Microsoft Authentication Library (MSAL) for Python](https://pypi.org/project/msal/)
482
481
 
483
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)
484
488