Office365-REST-Python-Client 2.4.2__py3-none-any.whl → 2.4.4__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 (411) hide show
  1. {Office365_REST_Python_Client-2.4.2.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/METADATA +65 -31
  2. {Office365_REST_Python_Client-2.4.2.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/RECORD +401 -259
  3. office365/base_item.py +27 -5
  4. office365/booking/business.py +7 -0
  5. office365/booking/currency.py +5 -0
  6. office365/booking/solutions_root.py +32 -0
  7. office365/communications/calls/invitation_participant_info.py +17 -1
  8. office365/communications/calls/options.py +9 -0
  9. office365/communications/onlinemeetings/provider_type.py +3 -0
  10. office365/communications/presences/presence.py +14 -0
  11. office365/communications/presences/status_message.py +12 -0
  12. office365/directory/administrative_unit.py +22 -0
  13. office365/directory/applications/collection.py +2 -1
  14. office365/directory/applications/roles/assignment.py +45 -5
  15. office365/directory/applications/roles/assignment_collection.py +8 -0
  16. office365/directory/applications/roles/role.py +6 -1
  17. office365/directory/audit/signins/activity.py +31 -0
  18. office365/directory/audit/signins/location.py +17 -0
  19. office365/directory/audit/signins/signin.py +33 -0
  20. office365/directory/authentication/authentication.py +9 -0
  21. office365/directory/authentication/methods/details.py +25 -0
  22. office365/directory/authentication/methods/email.py +16 -0
  23. office365/directory/authentication/methods/root.py +27 -0
  24. office365/directory/certificates/authority.py +6 -1
  25. office365/directory/extensions/extended_property.py +8 -1
  26. office365/directory/extensions/extension.py +1 -1
  27. office365/directory/extensions/extension_property.py +0 -3
  28. office365/directory/extensions/open_type.py +8 -0
  29. office365/directory/groups/collection.py +2 -4
  30. office365/directory/groups/group.py +18 -4
  31. office365/directory/identities/governance.py +2 -0
  32. office365/directory/identities/object_identity.py +3 -3
  33. office365/directory/insights/resource_reference.py +15 -0
  34. office365/directory/insights/shared.py +36 -0
  35. office365/directory/insights/sharing_detail.py +11 -0
  36. office365/directory/insights/trending.py +8 -0
  37. office365/directory/insights/usage_details.py +16 -0
  38. office365/directory/insights/used.py +30 -0
  39. office365/directory/invitations/invitation.py +33 -1
  40. office365/directory/licenses/assigned_plan.py +19 -1
  41. office365/directory/licenses/assignment_state.py +5 -0
  42. office365/directory/licenses/service_plan_info.py +4 -0
  43. office365/directory/licenses/subscribed_sku.py +41 -0
  44. office365/directory/licenses/units_detail.py +11 -0
  45. office365/directory/object.py +3 -1
  46. office365/directory/object_collection.py +3 -4
  47. office365/directory/password_credential.py +5 -1
  48. office365/directory/permissions/email_identity.py +5 -0
  49. office365/directory/permissions/grants/condition_set.py +26 -0
  50. office365/directory/permissions/grants/resource_specific.py +21 -0
  51. office365/directory/policies/authentication_flows.py +9 -0
  52. office365/directory/policies/authentication_strength.py +10 -0
  53. office365/directory/policies/authorization.py +8 -0
  54. office365/directory/policies/cross_tenant_access.py +5 -0
  55. office365/directory/policies/root.py +35 -2
  56. office365/directory/protection/information.py +5 -0
  57. office365/directory/protection/risk_detection.py +11 -0
  58. office365/directory/protection/riskyusers/activity.py +5 -0
  59. office365/directory/protection/riskyusers/collection.py +32 -0
  60. office365/directory/protection/riskyusers/history_item.py +20 -0
  61. office365/directory/protection/riskyusers/risky_user.py +26 -0
  62. office365/directory/protection/root.py +31 -0
  63. office365/directory/rolemanagement/application.py +35 -0
  64. office365/directory/{roles → rolemanagement}/management.py +8 -1
  65. office365/directory/{roles → rolemanagement}/role.py +14 -0
  66. office365/directory/{roles → rolemanagement}/template.py +8 -0
  67. office365/directory/rolemanagement/unified_role_assignment.py +45 -0
  68. office365/directory/rolemanagement/unified_role_definition.py +6 -0
  69. office365/directory/security/alerts/alert.py +21 -0
  70. office365/directory/security/alerts/history_state.py +5 -0
  71. office365/directory/security/attacksimulations/automation.py +21 -0
  72. office365/directory/security/attacksimulations/automation_run.py +5 -0
  73. office365/directory/security/attacksimulations/repeat_offender.py +6 -0
  74. office365/directory/security/attacksimulations/root.py +26 -0
  75. office365/directory/security/attacksimulations/simulation.py +17 -0
  76. office365/directory/security/cases/__init__.py +0 -0
  77. office365/directory/security/cases/ediscovery.py +6 -0
  78. office365/directory/security/cases/root.py +22 -0
  79. office365/directory/security/incidents/incident.py +67 -0
  80. office365/directory/security/security.py +10 -1
  81. office365/directory/serviceprincipals/service_principal.py +89 -4
  82. office365/directory/synchronization/__init__.py +0 -0
  83. office365/directory/synchronization/job.py +16 -0
  84. office365/directory/synchronization/progress.py +5 -0
  85. office365/directory/synchronization/status.py +13 -0
  86. office365/directory/synchronization/synchronization.py +24 -0
  87. office365/directory/tenant_information.py +17 -0
  88. office365/directory/tenant_relationship.py +21 -0
  89. office365/directory/users/activities/activity.py +45 -1
  90. office365/directory/users/collection.py +8 -0
  91. office365/directory/users/password_profile.py +18 -2
  92. office365/directory/users/user.py +254 -29
  93. office365/entity.py +3 -3
  94. office365/graph_client.py +64 -12
  95. office365/intune/audit/actor.py +5 -0
  96. office365/intune/audit/event.py +21 -24
  97. office365/intune/audit/event_collection.py +26 -0
  98. office365/intune/audit/property.py +5 -0
  99. office365/intune/audit/resource.py +11 -0
  100. office365/intune/brand.py +6 -0
  101. office365/intune/devices/compliance/__init__.py +0 -0
  102. office365/intune/devices/compliance/policy.py +6 -0
  103. office365/intune/devices/compliance/policy_state.py +5 -0
  104. office365/intune/devices/data.py +5 -0
  105. office365/intune/devices/detail.py +10 -0
  106. office365/intune/devices/enrollment/__init__.py +0 -0
  107. office365/intune/devices/enrollment/configuration.py +25 -0
  108. office365/intune/devices/enrollment/configuration_assignment.py +5 -0
  109. office365/intune/devices/enrollment/limit_configuration.py +5 -0
  110. office365/intune/devices/managed.py +44 -3
  111. office365/intune/devices/management/__init__.py +0 -0
  112. office365/intune/devices/management/management.py +69 -0
  113. office365/intune/devices/management/reports/__init__.py +0 -0
  114. office365/intune/devices/management/reports/reports.py +5 -0
  115. office365/intune/devices/management/settings.py +18 -0
  116. office365/intune/organizations/branding.py +15 -0
  117. office365/intune/organizations/organization.py +14 -0
  118. office365/intune/printing/__init__.py +0 -0
  119. office365/intune/printing/base.py +11 -0
  120. office365/intune/printing/capabilities.py +5 -0
  121. office365/intune/printing/connectors/__init__.py +0 -0
  122. office365/intune/printing/connectors/connector.py +6 -0
  123. office365/intune/printing/operations/__init__.py +0 -0
  124. office365/intune/printing/print.py +24 -0
  125. office365/intune/printing/printer.py +6 -0
  126. office365/intune/printing/services/__init__.py +0 -0
  127. office365/intune/printing/services/endpoint.py +5 -0
  128. office365/intune/printing/services/service.py +17 -0
  129. office365/intune/printing/share.py +5 -0
  130. office365/intune/printing/shares/__init__.py +0 -0
  131. office365/intune/printing/taskdefinitions/__init__.py +0 -0
  132. office365/intune/provisioned_plan.py +5 -1
  133. office365/intune/servicecommunications/__init__.py +0 -0
  134. office365/intune/servicecommunications/announcement.py +39 -0
  135. office365/intune/servicecommunications/announcement_base.py +5 -0
  136. office365/intune/servicecommunications/health/__init__.py +0 -0
  137. office365/intune/servicecommunications/health/health.py +7 -0
  138. office365/intune/servicecommunications/issues/__init__.py +0 -0
  139. office365/intune/servicecommunications/issues/issue.py +29 -0
  140. office365/intune/servicecommunications/messages/__init__.py +0 -0
  141. office365/intune/servicecommunications/messages/update.py +10 -0
  142. office365/intune/termsandconditions/__init__.py +0 -0
  143. office365/intune/vpp_token.py +10 -0
  144. office365/onedrive/admin.py +16 -0
  145. office365/onedrive/columns/content_approval_status.py +5 -0
  146. office365/onedrive/columns/datetime.py +15 -0
  147. office365/onedrive/columns/default_value.py +4 -0
  148. office365/onedrive/columns/definition.py +49 -3
  149. office365/onedrive/columns/definition_collection.py +17 -6
  150. office365/onedrive/columns/lookup.py +5 -1
  151. office365/onedrive/columns/types.py +13 -0
  152. office365/onedrive/contenttypes/content_type.py +8 -0
  153. office365/onedrive/driveitems/audio.py +12 -1
  154. office365/onedrive/driveitems/driveItem.py +147 -69
  155. office365/onedrive/driveitems/image.py +8 -1
  156. office365/onedrive/driveitems/item_preview_info.py +20 -2
  157. office365/onedrive/driveitems/remote_item.py +19 -4
  158. office365/onedrive/drives/drive.py +7 -1
  159. office365/onedrive/drives/quota.py +18 -0
  160. office365/onedrive/drives/recipient.py +4 -0
  161. office365/onedrive/files/system_info.py +8 -6
  162. office365/onedrive/folders/folder.py +3 -3
  163. office365/onedrive/internal/paths/children.py +1 -4
  164. office365/onedrive/internal/paths/shared.py +7 -2
  165. office365/onedrive/lists/collection.py +12 -6
  166. office365/onedrive/lists/list.py +13 -5
  167. office365/onedrive/operations/long_running.py +7 -0
  168. office365/onedrive/operations/pending.py +13 -0
  169. office365/onedrive/operations/pending_content_update.py +5 -0
  170. office365/onedrive/permissions/collection.py +5 -6
  171. office365/onedrive/permissions/sharing_link.py +16 -1
  172. office365/onedrive/sensitivitylabels/__init__.py +0 -0
  173. office365/onedrive/sensitivitylabels/assignment.py +17 -0
  174. office365/onedrive/sensitivitylabels/assignment_method.py +4 -0
  175. office365/onedrive/sensitivitylabels/extract_result.py +13 -0
  176. office365/onedrive/sharepoint_settings.py +25 -0
  177. office365/onedrive/sites/sites_with_root.py +11 -1
  178. office365/onedrive/termstore/groups/collection.py +1 -1
  179. office365/onedrive/termstore/groups/group.py +1 -0
  180. office365/onedrive/termstore/sets/collection.py +1 -1
  181. office365/onenote/operations/operation.py +10 -1
  182. office365/onenote/resources/resource.py +1 -0
  183. office365/outlook/calendar/calendar.py +116 -6
  184. office365/outlook/calendar/dateTimeTimeZone.py +4 -0
  185. office365/outlook/calendar/email_address.py +7 -0
  186. office365/outlook/calendar/events/event.py +0 -4
  187. office365/outlook/calendar/events/reminder.py +22 -3
  188. office365/outlook/calendar/group.py +0 -2
  189. office365/outlook/calendar/location_constraint.py +16 -1
  190. office365/outlook/calendar/meetingtimes/activity_domain.py +10 -0
  191. office365/outlook/calendar/meetingtimes/suggestion.py +1 -1
  192. office365/outlook/calendar/meetingtimes/time_constraint.py +18 -0
  193. office365/outlook/calendar/permissions/__init__.py +0 -0
  194. office365/outlook/calendar/permissions/collection.py +24 -0
  195. office365/outlook/calendar/{permission.py → permissions/permission.py} +35 -2
  196. office365/outlook/calendar/place.py +7 -0
  197. office365/outlook/calendar/role_type.py +17 -0
  198. office365/outlook/calendar/schedule/information.py +5 -4
  199. office365/outlook/calendar/schedule/item.py +20 -1
  200. office365/outlook/calendar/sharing_message.py +2 -2
  201. office365/outlook/calendar/time_zone_base.py +3 -0
  202. office365/outlook/calendar/working_hours.py +17 -1
  203. office365/outlook/contacts/collection.py +39 -0
  204. office365/outlook/contacts/contact.py +21 -11
  205. office365/outlook/geo_coordinates.py +20 -0
  206. office365/outlook/item.py +5 -4
  207. office365/outlook/locale_info.py +3 -0
  208. office365/outlook/mail/automatic_replies_setting.py +14 -0
  209. office365/outlook/mail/folders/folder.py +52 -3
  210. office365/outlook/mail/folders/search.py +11 -0
  211. office365/outlook/mail/importance.py +1 -0
  212. office365/outlook/mail/item_body.py +3 -0
  213. office365/outlook/mail/location.py +27 -2
  214. office365/outlook/mail/location_constraint_item.py +5 -0
  215. office365/outlook/mail/mailbox_settings.py +13 -1
  216. office365/outlook/mail/messages/collection.py +7 -0
  217. office365/outlook/mail/messages/followup_flag.py +21 -0
  218. office365/outlook/mail/messages/internet_header.py +16 -0
  219. office365/outlook/mail/messages/message.py +184 -6
  220. office365/outlook/mail/messages/rules/__init__.py +0 -0
  221. office365/outlook/mail/messages/rules/actions.py +38 -0
  222. office365/outlook/mail/messages/rules/predicates.py +5 -0
  223. office365/outlook/mail/messages/rules/rule.py +32 -0
  224. office365/outlook/mail/patterned_recurrence.py +14 -1
  225. office365/outlook/mail/physical_address.py +5 -1
  226. office365/outlook/mail/recipient.py +3 -0
  227. office365/outlook/mail/recurrence_pattern.py +18 -1
  228. office365/outlook/mail/recurrence_range.py +16 -2
  229. office365/outlook/timezone_information.py +3 -0
  230. office365/reports/root.py +28 -1
  231. office365/reports/security/__init__.py +0 -0
  232. office365/reports/security/root.py +21 -0
  233. office365/reports/userregistration/__init__.py +0 -0
  234. office365/reports/userregistration/method_count.py +17 -0
  235. office365/reports/userregistration/method_summary.py +21 -0
  236. office365/runtime/auth/authentication_context.py +123 -25
  237. office365/runtime/auth/client_credential.py +2 -2
  238. office365/runtime/auth/providers/acs_token_provider.py +6 -3
  239. office365/runtime/auth/providers/saml_token_provider.py +10 -7
  240. office365/runtime/auth/token_response.py +3 -3
  241. office365/runtime/client_object_collection.py +12 -7
  242. office365/runtime/client_result.py +9 -0
  243. office365/runtime/client_runtime_context.py +10 -8
  244. office365/runtime/http/request_options.py +2 -1
  245. office365/runtime/odata/request.py +4 -4
  246. office365/runtime/paths/appid.py +2 -1
  247. office365/runtime/paths/entity.py +2 -2
  248. office365/{sharepoint/internal/paths/entity.py → runtime/paths/key.py} +5 -3
  249. office365/runtime/paths/resource_path.py +3 -0
  250. office365/runtime/types/event_handler.py +6 -0
  251. office365/search/external/__init__.py +0 -0
  252. office365/search/external/configuration.py +8 -0
  253. office365/search/external/connection.py +27 -0
  254. office365/{external → search/external}/external.py +1 -1
  255. office365/search/external/search_settings.py +5 -0
  256. office365/search/query.py +3 -1
  257. office365/search/request.py +3 -1
  258. office365/search/sharepoint_onedrive_options.py +3 -0
  259. office365/search/sort_property.py +9 -0
  260. office365/sharepoint/activities/client_request.py +4 -1
  261. office365/sharepoint/activities/logger.py +25 -0
  262. office365/sharepoint/activities/revision_info.py +9 -0
  263. office365/sharepoint/addtoonedrive/mount_point.py +25 -0
  264. office365/sharepoint/addtoonedrive/mounted_folder_info.py +5 -0
  265. office365/sharepoint/alerts/alert.py +31 -0
  266. office365/sharepoint/apps/license_collection.py +1 -2
  267. office365/sharepoint/changes/item.py +14 -0
  268. office365/sharepoint/client_context.py +91 -30
  269. office365/sharepoint/clientsidecomponent/component_context_info.py +7 -0
  270. office365/sharepoint/clientsidecomponent/identifier.py +3 -0
  271. office365/sharepoint/compliance/tag_info.py +17 -0
  272. office365/sharepoint/contenttypes/collection.py +6 -7
  273. office365/sharepoint/contenttypes/content_type.py +49 -1
  274. office365/sharepoint/contenttypes/fieldlinks/collection.py +5 -6
  275. office365/sharepoint/features/known_list.py +2 -0
  276. office365/sharepoint/fields/collection.py +70 -39
  277. office365/sharepoint/fields/computed.py +5 -2
  278. office365/sharepoint/fields/creation_information.py +5 -4
  279. office365/sharepoint/fields/field.py +73 -15
  280. office365/sharepoint/fields/user.py +3 -3
  281. office365/sharepoint/files/checked_out_file.py +3 -2
  282. office365/sharepoint/files/file.py +9 -4
  283. office365/sharepoint/files/versions/version.py +7 -9
  284. office365/sharepoint/folders/collection.py +2 -2
  285. office365/sharepoint/folders/coloring.py +39 -0
  286. office365/sharepoint/folders/coloring_information.py +15 -0
  287. office365/sharepoint/folders/folder.py +21 -10
  288. office365/sharepoint/forms/customization.py +8 -0
  289. office365/sharepoint/listitems/listitem.py +29 -10
  290. office365/sharepoint/lists/bloom_filter.py +0 -1
  291. office365/sharepoint/lists/creation_information.py +18 -4
  292. office365/sharepoint/lists/list.py +203 -27
  293. office365/sharepoint/lists/render_data_parameters.py +21 -1
  294. office365/sharepoint/lists/template_type.py +10 -0
  295. office365/sharepoint/navigation/configured_metadata_items.py +25 -1
  296. office365/sharepoint/navigation/metadata_settings.py +6 -4
  297. office365/sharepoint/permissions/irm/file_settings.py +43 -0
  298. office365/sharepoint/permissions/securable_object.py +5 -6
  299. office365/sharepoint/portal/sites/manager.py +5 -6
  300. office365/sharepoint/portal/userprofiles/documents_shared_with_group.py +3 -0
  301. office365/sharepoint/publishing/base_custom_property.py +8 -0
  302. office365/sharepoint/publishing/navigation/structural_navigation_cache_wrapper.py +8 -0
  303. office365/sharepoint/publishing/pagecopywithassets/__init__.py +0 -0
  304. office365/sharepoint/publishing/pagecopywithassets/response.py +8 -0
  305. office365/sharepoint/publishing/pages/campaign_publication.py +7 -0
  306. office365/sharepoint/publishing/pages/collection.py +1 -1
  307. office365/sharepoint/publishing/pages/page.py +4 -1
  308. office365/sharepoint/publishing/pages/reposts/metadata.py +8 -0
  309. office365/sharepoint/publishing/personmagazine/person_magazine.py +4 -1
  310. office365/sharepoint/search/administration/tenant_crawl_versions_info_provider.py +8 -1
  311. office365/sharepoint/search/query/auto_completion_match.py +3 -0
  312. office365/sharepoint/search/query/property_value.py +18 -0
  313. office365/sharepoint/search/request.py +16 -2
  314. office365/sharepoint/sharing/abilities.py +22 -0
  315. office365/sharepoint/sharing/direct_abilities.py +27 -0
  316. office365/sharepoint/sharing/link_abilities.py +9 -1
  317. office365/sharepoint/sharing/links/data.py +26 -1
  318. office365/sharepoint/sharing/links/info.py +1 -1
  319. office365/sharepoint/sharing/links/partial_success_response.py +5 -0
  320. office365/sharepoint/sharing/links/share_settings.py +24 -1
  321. office365/sharepoint/sharing/object_sharing_information.py +65 -2
  322. office365/sharepoint/sharing/object_sharing_information_user.py +9 -0
  323. office365/sharepoint/sharing/object_sharing_settings.py +17 -4
  324. office365/sharepoint/sharing/principal.py +10 -0
  325. office365/sharepoint/sharing/securable_object_extensions.py +1 -17
  326. office365/sharepoint/sharing/site_sharing_report_helper.py +2 -1
  327. office365/sharepoint/sharing/user_sharing_result.py +18 -8
  328. office365/sharepoint/sitehealth/result.py +10 -0
  329. office365/sharepoint/sites/language.py +11 -1
  330. office365/sharepoint/sites/language_collection.py +1 -0
  331. office365/sharepoint/sites/site.py +42 -7
  332. office365/sharepoint/taxonomy/create_xml_parameters.py +22 -15
  333. office365/sharepoint/taxonomy/field.py +10 -8
  334. office365/sharepoint/taxonomy/groups/collection.py +8 -1
  335. office365/sharepoint/taxonomy/groups/group.py +26 -0
  336. office365/sharepoint/taxonomy/sets/collection.py +15 -0
  337. office365/sharepoint/taxonomy/sets/name.py +23 -0
  338. office365/sharepoint/taxonomy/sets/set.py +16 -1
  339. office365/sharepoint/taxonomy/stores/store.py +0 -8
  340. office365/sharepoint/tenant/administration/audit/search_request_status.py +8 -0
  341. office365/sharepoint/tenant/administration/deny_add_and_customize_pages_status.py +3 -0
  342. office365/sharepoint/tenant/administration/hubsites/permission.py +10 -0
  343. office365/sharepoint/tenant/administration/sites/properties.py +12 -10
  344. office365/sharepoint/tenant/administration/tenant.py +2 -1
  345. office365/sharepoint/tenant/apps/information.py +3 -1
  346. office365/sharepoint/tenant/management/office365_tenant.py +14 -11
  347. office365/sharepoint/types/resource_path.py +3 -1
  348. office365/sharepoint/userprofiles/people_manager.py +0 -2
  349. office365/sharepoint/userprofiles/sharedwithme/document.py +16 -0
  350. office365/sharepoint/userprofiles/sharedwithme/document_user.py +12 -0
  351. office365/sharepoint/userprofiles/sharedwithme/item_collection.py +41 -0
  352. office365/sharepoint/userprofiles/sharedwithme/items.py +18 -1
  353. office365/sharepoint/viva/site_manager.py +14 -0
  354. office365/sharepoint/webhooks/subscription_collection.py +5 -6
  355. office365/sharepoint/webparts/definition.py +1 -1
  356. office365/sharepoint/webparts/webpart.py +18 -4
  357. office365/sharepoint/webs/context_web_information.py +2 -4
  358. office365/sharepoint/webs/web.py +31 -12
  359. office365/sharepoint/workflowservices/manager.py +0 -2
  360. office365/subscriptions/collection.py +42 -0
  361. office365/subscriptions/subscription.py +120 -2
  362. office365/teams/apps/catalog.py +23 -0
  363. office365/teams/associated_info.py +12 -0
  364. office365/teams/channels/channel.py +2 -3
  365. office365/teams/channels/collection.py +1 -1
  366. office365/teams/channels/iIdentity.py +5 -0
  367. office365/teams/chats/chat.py +12 -2
  368. office365/teams/chats/collection.py +1 -2
  369. office365/teams/chats/messages/__init__.py +0 -0
  370. office365/teams/chats/messages/info.py +14 -0
  371. office365/teams/chats/{message.py → messages/message.py} +18 -3
  372. office365/teams/info.py +20 -0
  373. office365/teams/members/aad_user_conversation.py +2 -2
  374. office365/teams/members/conversation_collection.py +3 -3
  375. office365/teams/schedule/change_request.py +4 -2
  376. office365/teams/schedule/change_tracked_entity.py +11 -2
  377. office365/teams/summary.py +15 -0
  378. office365/teams/tabs/configuration.py +12 -1
  379. office365/teams/tabs/tab.py +0 -1
  380. office365/teams/team.py +34 -1
  381. office365/teams/teamwork/__init__.py +0 -0
  382. office365/teams/teamwork/activity_topic.py +5 -0
  383. office365/teams/teamwork/tags/__init__.py +0 -0
  384. office365/teams/teamwork/tags/identity.py +6 -0
  385. office365/teams/teamwork/tags/member.py +5 -0
  386. office365/teams/teamwork/tags/tag.py +15 -0
  387. office365/{directory/security/cases_root.py → teams/viva/employee_experience_user.py} +1 -1
  388. office365/todo/attachments/session.py +34 -0
  389. office365/todo/linked_resource.py +10 -1
  390. office365/todo/tasks/task.py +4 -0
  391. office365/directory/identities/protection_root.py +0 -5
  392. office365/directory/rbac/application.py +0 -18
  393. office365/directory/rbac/unified_role_assignment.py +0 -8
  394. office365/external/connection.py +0 -5
  395. office365/intune/devices/management.py +0 -35
  396. office365/onedrive/internal/queries/download_content.py +0 -26
  397. office365/onedrive/internal/queries/upload_content.py +0 -23
  398. office365/outlook/mail/messages/message_rule.py +0 -15
  399. office365/runtime/auth/providers/oauth_token_provider.py +0 -25
  400. office365/teams/team_info.py +0 -6
  401. {Office365_REST_Python_Client-2.4.2.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/LICENSE +0 -0
  402. {Office365_REST_Python_Client-2.4.2.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/WHEEL +0 -0
  403. {Office365_REST_Python_Client-2.4.2.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/top_level.txt +0 -0
  404. /office365/{directory/rbac → booking}/__init__.py +0 -0
  405. /office365/directory/{roles → protection}/__init__.py +0 -0
  406. /office365/{external → directory/protection/riskyusers}/__init__.py +0 -0
  407. /office365/{teams/messages → directory/rolemanagement}/__init__.py +0 -0
  408. /office365/outlook/calendar/{time_slot.py → meetingtimes/time_slot.py} +0 -0
  409. /office365/teams/chats/{message_attachment.py → messages/attachment.py} +0 -0
  410. /office365/teams/{member_settings.py → members/settings.py} +0 -0
  411. /office365/teams/{user_teamwork.py → teamwork/user.py} +0 -0
@@ -5,23 +5,25 @@ from office365.sharepoint.navigation.configured_metadata_items import Configured
5
5
 
6
6
 
7
7
  class MetadataNavigationSettings(BaseEntity):
8
-
8
+ """Described and allows changes to the meta-data navigation and filtering settings on an SPList."""
9
9
 
10
10
  @staticmethod
11
- def get_configured_settings(context, url):
11
+ def get_configured_settings(context, url, return_type=None):
12
12
  """
13
13
  Retrieves the configured metadata navigation settings for the list with the specified url.
14
14
 
15
15
 
16
16
  :param office365.sharepoint.client_context.ClientContext context: SharePoint context
17
17
  :param str url: Specifies list url
18
+ :param ClientResult return_type: Return type
18
19
  """
19
20
 
20
- return_type = ClientResult(context, ConfiguredMetadataNavigationItemCollection())
21
+ if return_type is None:
22
+ return_type = ClientResult(context, ConfiguredMetadataNavigationItemCollection())
21
23
  payload = {
22
24
  "DecodedUrl": url
23
25
  }
24
- qry = ServiceOperationQuery(MetadataNavigationSettings(context), "GetConfiguredSettings", None, payload,
26
+ qry = ServiceOperationQuery(MetadataNavigationSettings(context), "GetConfiguredSettings", payload, None,
25
27
  None, return_type, True)
26
28
  context.add_query(qry)
27
29
  return return_type
@@ -10,3 +10,46 @@ class InformationRightsManagementFileSettings(BaseEntity):
10
10
  qry = ServiceOperationQuery(self, "Reset")
11
11
  self.context.add_query(qry)
12
12
  return self
13
+
14
+ @property
15
+ def allow_print(self):
16
+ """
17
+ Gets a value indicating whether or not the user can print the downloaded document.
18
+ True if print is allowed; otherwise, it is false. The default value is false.
19
+ :rtype: bool
20
+ """
21
+ return self.properties.get("AllowPrint", None)
22
+
23
+ @allow_print.setter
24
+ def allow_print(self, value):
25
+ """
26
+ Sets a value indicating whether or not the user can print the downloaded document.
27
+ :param bool value:
28
+ """
29
+ self.set_property("AllowPrint", value)
30
+
31
+ @property
32
+ def allow_script(self):
33
+ """
34
+ Gets a value indicating whether or not the user can run a script on the downloaded document.
35
+ True if the script is allowed to run; otherwise, it is false. The default value is false.
36
+ :rtype: bool
37
+ """
38
+ return self.properties.get("AllowScript", None)
39
+
40
+ @allow_script.setter
41
+ def allow_script(self, value):
42
+ """
43
+ Sets a value indicating whether or not the user can run a script on the downloaded document.
44
+ :param bool value:
45
+ """
46
+ self.set_property("AllowPrint", value)
47
+
48
+ @property
49
+ def allow_write_copy(self):
50
+ """
51
+ Getsa value indicating whether or not the user can write on a copy of the downloaded document.
52
+ True if write on a copy is allowed; otherwise, it is false. The default value is false.
53
+ :rtype: bool
54
+ """
55
+ return self.properties.get("AllowWriteCopy", None)
@@ -107,20 +107,19 @@ class SecurableObject(BaseEntity):
107
107
  """
108
108
  return_type = ClientResult(self.context, BasePermissions())
109
109
 
110
- def _create_query(login_name):
110
+ def _create_and_add_query(login_name):
111
111
  """
112
112
  :param str login_name:
113
113
  """
114
- return ServiceOperationQuery(self, "GetUserEffectivePermissions", [login_name], None, None, return_type)
114
+ qry = ServiceOperationQuery(self, "GetUserEffectivePermissions", [login_name], None, None, return_type)
115
+ self.context.add_query(qry)
115
116
 
116
117
  if isinstance(user, User):
117
118
  def _user_loaded():
118
- next_qry = _create_query(user.login_name)
119
- self.context.add_query(next_qry)
119
+ _create_and_add_query(user.login_name)
120
120
  user.ensure_property("LoginName", _user_loaded)
121
121
  else:
122
- qry = _create_query(user)
123
- self.context.add_query(qry)
122
+ _create_and_add_query(user)
124
123
  return return_type
125
124
 
126
125
  @property
@@ -29,20 +29,19 @@ class SPSiteManager(BaseEntity):
29
29
  """
30
30
  return_type = ClientResult(self.context, SPSiteCreationResponse())
31
31
 
32
- def _create_query(owner_string=None):
32
+ def _create(owner_string=None):
33
33
  request = SPSiteCreationRequest(title, site_url, owner_string)
34
34
  payload = {"request": request}
35
- return ServiceOperationQuery(self, "Create", None, payload, None, return_type)
35
+ qry = ServiceOperationQuery(self, "Create", None, payload, None, return_type)
36
+ self.context.add_query(qry)
36
37
 
37
38
  from office365.sharepoint.principal.users.user import User
38
39
  if isinstance(owner, User):
39
40
  def _owner_loaded():
40
- next_qry = _create_query(owner.user_principal_name)
41
- self.context.add_query(next_qry)
41
+ _create(owner.user_principal_name)
42
42
  owner.ensure_property("UserPrincipalName", _owner_loaded)
43
43
  else:
44
- qry = _create_query(owner)
45
- self.context.add_query(qry)
44
+ _create(owner)
46
45
  return return_type
47
46
 
48
47
  def delete(self, site_id):
@@ -2,6 +2,9 @@ from office365.sharepoint.base_entity import BaseEntity
2
2
 
3
3
 
4
4
  class DocumentsSharedWithGroup(BaseEntity):
5
+ """
6
+ Provides methods for working with a list that shares documents with a SharePoint Group on the user's personal site.
7
+ """
5
8
 
6
9
  @property
7
10
  def entity_type_name(self):
@@ -0,0 +1,8 @@
1
+ from office365.sharepoint.base_entity import BaseEntity
2
+
3
+
4
+ class BaseCustomProperty(BaseEntity):
5
+
6
+ @property
7
+ def entity_type_name(self):
8
+ return "Microsoft.SharePoint.Publishing.RestOnly.BaseCustomProperty"
@@ -0,0 +1,8 @@
1
+ from office365.sharepoint.base_entity import BaseEntity
2
+
3
+
4
+ class StructuralNavigationCacheWrapper(BaseEntity):
5
+
6
+ @property
7
+ def entity_type_name(self):
8
+ return "SP.Publishing.Navigation.StructuralNavigationCacheWrapper"
@@ -0,0 +1,8 @@
1
+ from office365.sharepoint.base_entity import BaseEntity
2
+
3
+
4
+ class PageCopyResponse(BaseEntity):
5
+
6
+ @property
7
+ def entity_type_name(self):
8
+ return "Microsoft.SharePoint.Publishing.PageCopyWithAssets.PageCopyResponse"
@@ -13,6 +13,13 @@ class CampaignPublication(SitePage):
13
13
  self.context.add_query(qry)
14
14
  return return_type
15
15
 
16
+ @property
17
+ def email_endpoint(self):
18
+ """
19
+ :rtype: str
20
+ """
21
+ return self.properties.get("EmailEndpoint", None)
22
+
16
23
  @property
17
24
  def entity_type_name(self):
18
25
  return "SP.Publishing.CampaignPublication"
@@ -80,7 +80,7 @@ class SitePageCollection(SitePageMetadataCollection):
80
80
 
81
81
  :rtype: SitePage
82
82
  """
83
- return self.filter("FileName eq '{0}'".format(name)).single()
83
+ return self.single("FileName eq '{0}'".format(name))
84
84
 
85
85
  def templates(self):
86
86
  return SitePageMetadataCollection(self.context, SitePage,
@@ -11,6 +11,10 @@ from office365.sharepoint.translation.status_collection import TranslationStatus
11
11
  class SharePagePreviewByEmailFieldsData(ClientValue):
12
12
 
13
13
  def __init__(self, message=None, recipient_emails=None):
14
+ """
15
+ :param str message:
16
+ :param list[str] recipient_emails:
17
+ """
14
18
  self.message = message
15
19
  self.recipientEmails = StringCollection(recipient_emails)
16
20
 
@@ -150,7 +154,6 @@ class SitePage(SitePageMetadata):
150
154
  def schedule_publish(self, publish_start_date):
151
155
  """
152
156
  Schedules the page publication for a certain date
153
-
154
157
  :param datetime.datetime publish_start_date: The pending publication scheduled date
155
158
  """
156
159
  payload = SitePageFieldsData(publish_start_date=publish_start_date)
@@ -0,0 +1,8 @@
1
+ from office365.sharepoint.publishing.pages.metadata import SitePageMetadata
2
+
3
+
4
+ class RepostPageMetadata(SitePageMetadata):
5
+
6
+ @property
7
+ def entity_type_name(self):
8
+ return "SP.Publishing.RepostPageMetadata"
@@ -2,4 +2,7 @@ from office365.sharepoint.base_entity import BaseEntity
2
2
 
3
3
 
4
4
  class PersonMagazine(BaseEntity):
5
- pass
5
+
6
+ @property
7
+ def entity_type_name(self):
8
+ return "SP.Publishing.PersonMagazine"
@@ -20,7 +20,6 @@ class TenantCrawlVersionsInfoProvider(BaseEntity):
20
20
  self.context.add_query(qry)
21
21
  return return_type
22
22
 
23
-
24
23
  def is_crawl_versions_enabled(self, site_id):
25
24
  """
26
25
  :param str site_id:
@@ -33,6 +32,14 @@ class TenantCrawlVersionsInfoProvider(BaseEntity):
33
32
  self.context.add_query(qry)
34
33
  return return_type
35
34
 
35
+ def is_crawl_versions_enabled_for_tenant(self):
36
+ """
37
+ """
38
+ return_type = ClientResult(self.context, bool())
39
+ qry = ServiceOperationQuery(self, "IsCrawlVersionsEnabledForTenant", None, None, None, return_type)
40
+ self.context.add_query(qry)
41
+ return return_type
42
+
36
43
  @property
37
44
  def entity_type_name(self):
38
45
  return "Microsoft.SharePoint.Client.Search.Administration.TenantCrawlVersionsInfoProvider"
@@ -5,6 +5,9 @@ class QueryAutoCompletionMatch(ClientValue):
5
5
  """Represents one match in the Source for the Query"""
6
6
 
7
7
  def __init__(self, alternation=None, key=None):
8
+ """
9
+
10
+ """
8
11
  self.Alternation = alternation
9
12
  self.Key = key
10
13
 
@@ -5,6 +5,24 @@ class QueryPropertyValue(ClientValue):
5
5
  """This object is used to store values of predefined types. The object MUST have a value set for only
6
6
  one of the property."""
7
7
 
8
+ def __init__(self, bool_val=None, int_val=None, str_array=None, str_val=None, query_property_value_type_index=None):
9
+ """
10
+ :param bool bool_val: Specifies any arbitrary value of type CSOM Boolean. This property MUST have a value only
11
+ if QueryPropertyValueTypeIndex is set to 3.
12
+ :param int int_val: Specifies any arbitrary value of type CSOM Int32. This property MUST have a value only
13
+ if QueryPropertyValueTypeIndex is set to 2.
14
+ :param int query_property_value_type_index: Specifies the type of data stored in this object.
15
+ :param list[str] str_array: Specifies any arbitrary value of type CSOM array. This property MUST have a
16
+ value only if QueryPropertyValueTypeIndex is set to 4.
17
+ :param str str_val: Specifies any arbitrary value of type CSOM String. This property MUST have a value
18
+ only if QueryPropertyValueTypeIndex is set to 1.
19
+ """
20
+ self.BoolVal = bool_val
21
+ self.IntVal = int_val
22
+ self.StrArray = str_array
23
+ self.StrVal = str_val
24
+ self.QueryPropertyValueTypeIndex = query_property_value_type_index
25
+
8
26
  @property
9
27
  def entity_type_name(self):
10
28
  return "Microsoft.SharePoint.Client.Search.Query.QueryPropertyValue"
@@ -1,6 +1,7 @@
1
1
  from office365.runtime.client_value import ClientValue
2
2
  from office365.runtime.client_value_collection import ClientValueCollection
3
3
  from office365.runtime.types.collections import StringCollection
4
+ from office365.sharepoint.search.query.property import QueryProperty
4
5
  from office365.sharepoint.search.query.reordering_rule import ReorderingRule
5
6
  from office365.sharepoint.search.query.sort.sort import Sort
6
7
 
@@ -17,7 +18,9 @@ class SearchRequest(ClientValue):
17
18
  row_limit=None, rows_per_page=None, start_row=None,
18
19
  enable_sorting=None, sort_list=None, query_template=None, ranking_model_id=None,
19
20
  summary_length=None, collapse_specification=None, client_type=None,
20
- enable_query_rules=None, source_id=None, reordering_rules=None, **kwargs):
21
+ enable_query_rules=None, source_id=None, reordering_rules=None,
22
+ properties=None, ui_language=None, hit_highlighted_properties=None,
23
+ hit_highlighted_multivalue_property_limit=None, **kwargs):
21
24
  """
22
25
  :param str query_text: The query text of the search query. If this element is not present or a value is not
23
26
  specified, a default value of an empty string MUST be used, and the server MUST return a
@@ -66,7 +69,14 @@ class SearchRequest(ClientValue):
66
69
  :param str or None source_id: Specifies the unique identifier for result source to use for executing the
67
70
  search query. If no value is specified then the protocol server MUST use the id for the default
68
71
  result source.
69
- :param [ReorderingRule] reordering_rules:
72
+ :param list[ReorderingRule] reordering_rules: Specifies the list of rules used to reorder search results.
73
+ :param list[QueryProperty] properties: Used to transport additional and custom search query data, in a
74
+ name-value structure, from the caller to the server.
75
+ :param int ui_language: Specifies the LCID for UI culture.
76
+ :param list[str] hit_highlighted_properties: A list of properties that the protocol server includes in the
77
+ HitHighlightedProperties for each result
78
+ :param int hit_highlighted_multivalue_property_limit: Specifies the maximum number of hit highlighted values
79
+ of multi-value properties to be returned.
70
80
  """
71
81
  super(SearchRequest, self).__init__()
72
82
  self.Querytext = query_text
@@ -86,6 +96,10 @@ class SearchRequest(ClientValue):
86
96
  self.EnableQueryRules = enable_query_rules
87
97
  self.SourceId = source_id
88
98
  self.ReorderingRules = ClientValueCollection(ReorderingRule, reordering_rules)
99
+ self.Properties = ClientValueCollection(QueryProperty, properties)
100
+ self.UILanguage = ui_language
101
+ self.HitHighlightedProperties = StringCollection(hit_highlighted_properties)
102
+ self.HitHighlightedMultivaluePropertyLimit = hit_highlighted_multivalue_property_limit
89
103
  self.__dict__.update(**kwargs)
90
104
 
91
105
  @property
@@ -1,4 +1,6 @@
1
1
  from office365.runtime.client_value import ClientValue
2
+ from office365.sharepoint.sharing.direct_abilities import DirectSharingAbilities
3
+ from office365.sharepoint.sharing.link_abilities import SharingLinkAbilities
2
4
 
3
5
 
4
6
  class SharingAbilities(ClientValue):
@@ -7,6 +9,26 @@ class SharingAbilities(ClientValue):
7
9
  with the state of each capability for the current user.
8
10
  """
9
11
 
12
+ def __init__(self, anonymous_link_abilities=SharingLinkAbilities(),
13
+ anyone_link_abilities=SharingLinkAbilities(),
14
+ direct_sharing_abilities=DirectSharingAbilities(),
15
+ organization_link_abilities=SharingLinkAbilities(),
16
+ people_sharing_link_abilities=SharingLinkAbilities()):
17
+ """
18
+ :param SharingLinkAbilities anonymous_link_abilities: Indicates abilities for anonymous access links.
19
+ :param SharingLinkAbilities anonymous_link_abilities:
20
+ :param DirectSharingAbilities direct_sharing_abilities: Indicates abilities for direct sharing of a document
21
+ using the canonical URL.
22
+ :param SharingLinkAbilities organization_link_abilities: Indicates abilities for organization access links.
23
+ :param SharingLinkAbilities people_sharing_link_abilities: Indicates abilities for tokenized sharing links that
24
+ are configured to support only a predefined restricted membership set.
25
+ """
26
+ self.anonymousLinkAbilities = anonymous_link_abilities
27
+ self.anyoneLinkAbilities = anyone_link_abilities
28
+ self.directSharingAbilities = direct_sharing_abilities
29
+ self.organizationLinkAbilities = organization_link_abilities
30
+ self.peopleSharingLinkAbilities = people_sharing_link_abilities
31
+
10
32
  @property
11
33
  def entity_type_name(self):
12
34
  return "SP.Sharing.SharingAbilities"
@@ -0,0 +1,27 @@
1
+ from office365.runtime.client_value import ClientValue
2
+ from office365.sharepoint.sharing.ability_status import SharingAbilityStatus
3
+
4
+
5
+ class DirectSharingAbilities(ClientValue):
6
+ """Represents the set of capabilities for direct sharing for the current user."""
7
+
8
+ def __init__(self, can_add_external_principal=SharingAbilityStatus(),
9
+ can_add_internal_principal=SharingAbilityStatus(),
10
+ can_request_grant_access=SharingAbilityStatus(),
11
+ supports_review_permission=SharingAbilityStatus()):
12
+ """
13
+ :param SharingAbilityStatus can_add_external_principal: Indicates whether the current user can share to new
14
+ external users.
15
+ :param SharingAbilityStatus can_add_internal_principal: Indicates whether the current user can share to
16
+ internal users.
17
+ :param SharingAbilityStatus can_request_grant_access: Indicates whether the current user can initiate a
18
+ request for someone with higher permissions to grant access.
19
+ """
20
+ self.canAddExternalPrincipal = can_add_external_principal
21
+ self.canAddInternalPrincipal = can_add_internal_principal
22
+ self.canRequestGrantAccess = can_request_grant_access
23
+ self.supportsReviewPermission = supports_review_permission
24
+
25
+ @property
26
+ def entity_type_name(self):
27
+ return "SP.Sharing.DirectSharingAbilities"
@@ -10,14 +10,22 @@ class SharingLinkAbilities(ClientValue):
10
10
 
11
11
  def __init__(self, can_add_new_external_principals=SharingAbilityStatus(),
12
12
  can_delete_edit_link=SharingAbilityStatus(),
13
- can_delete_manage_list_link=SharingAbilityStatus()):
13
+ can_delete_manage_list_link=SharingAbilityStatus(),
14
+ can_get_edit_link=SharingAbilityStatus(),
15
+ can_get_read_link=SharingAbilityStatus()):
14
16
  """
15
17
  :param SharingAbilityStatus can_add_new_external_principals:
16
18
  :param SharingAbilityStatus can_delete_edit_link:
19
+ :param SharingAbilityStatus can_get_edit_link: Indicates whether the current user can get an existing tokenized
20
+ sharing link that provides edit access.
21
+ :param SharingAbilityStatus can_get_read_link: Indicates whether the current user can get an existing tokenized
22
+ sharing link that provides read access.
17
23
  """
18
24
  self.canAddNewExternalPrincipals = can_add_new_external_principals
19
25
  self.canDeleteEditLink = can_delete_edit_link
20
26
  self.canDeleteManageListLink = can_delete_manage_list_link
27
+ self.canGetEditLink = can_get_edit_link
28
+ self.canGetReadLink = can_get_read_link
21
29
 
22
30
  @property
23
31
  def entity_type_name(self):
@@ -7,4 +7,29 @@ class SharingLinkData(ClientValue):
7
7
  about the object the link URL refers to and any additional sharing link data if the link URL
8
8
  is a tokenized sharing link.
9
9
  """
10
- pass
10
+
11
+ def __init__(self, blocks_download=None, description=None, embeddable=None, expiration=None,
12
+ has_external_guest_invitees=None, is_anonymous=None, is_create_only_link=None,
13
+ is_forms_link=None):
14
+ """
15
+ :param bool blocks_download:
16
+ :param str description:
17
+ :param bool embeddable:
18
+ :param str expiration: The UTC date/time string with complete representation for calendar date and time of
19
+ day which represents the time and date of expiry for the tokenized sharing link
20
+ (i.e. is not accessible anymore)
21
+ :param bool has_external_guest_invitees: Boolean indicating whether the link URL is a tokenized sharing link
22
+ that has any external guest invitees (external users explicitly invited by email address).
23
+ :param bool is_anonymous: Boolean indicating if the link is anonymously accessible.
24
+ :param bool is_create_only_link:
25
+ :param bool is_forms_link: Indicates if the link URL is a tokenized sharing link that supports forms sharing.
26
+ This is limited to only tokenized sharing links generated with the Excel Survey feature.
27
+ """
28
+ self.BlocksDownload = blocks_download
29
+ self.Description = description
30
+ self.Embeddable = embeddable
31
+ self.Expiration = expiration
32
+ self.HasExternalGuestInvitees = has_external_guest_invitees
33
+ self.IsAnonymous = is_anonymous
34
+ self.IsCreateOnlyLink = is_create_only_link
35
+ self.IsFormsLink = is_forms_link
@@ -43,7 +43,7 @@ class SharingLinkInfo(ClientValue):
43
43
  return self.Url
44
44
 
45
45
  def __repr__(self):
46
- return self.Url
46
+ return self.Url or ""
47
47
 
48
48
  @property
49
49
  def entity_type_name(self):
@@ -0,0 +1,5 @@
1
+ from office365.sharepoint.sharing.links.share_response import ShareLinkResponse
2
+
3
+
4
+ class ShareLinkPartialSuccessResponse(ShareLinkResponse):
5
+ """"""
@@ -4,13 +4,36 @@ from office365.runtime.client_value import ClientValue
4
4
  class ShareLinkSettings(ClientValue):
5
5
  """Represents the settings the retrieval or creation/update of a tokenized sharing link"""
6
6
 
7
- def __init__(self, link_kind, expiration=None):
7
+ def __init__(self, allow_anonymous_access=None, application_link=None, link_kind=None, expiration=None,
8
+ password=None, password_protected=None, role=None,
9
+ track_link_users=None, share_id=None):
8
10
  """
11
+ :param bool allow_anonymous_access: Indicates if the tokenized sharing link supports anonymous access.
12
+ This value is optional and defaults to false for Flexible links (section 3.2.5.315.1.7) and is ignored
13
+ for other link kinds.
14
+ :param bool application_link:
9
15
  :param int link_kind: The kind of the tokenized sharing link to be created/updated or retrieved.
10
16
  This value MUST NOT be set to Uninitialized (section 3.2.5.315.1.1) nor Direct (section 3.2.5.315.1.2)
17
+ :param str password: Optional password value to apply to the tokenized sharing link, if it can support password
18
+ protection. If this value is null or empty when the updatePassword parameter is set, any existing password
19
+ on the tokenized sharing link MUST be cleared. Any other value will be applied to the tokenized sharing link
20
+ as a password setting.
21
+ :param bool password_protected:
22
+ :param int role: The role to be used for the tokenized sharing link. This is required for Flexible links
23
+ and ignored for all other kinds.
24
+ :param bool track_link_users:
25
+ :param str share_id: The optional unique identifier of an existing section tokenized sharing link to be
26
+ retrieved and updated if necessary.
11
27
  """
28
+ self.allowAnonymousAccess = allow_anonymous_access
29
+ self.applicationLink = application_link
12
30
  self.linkKind = link_kind
13
31
  self.expiration = expiration
32
+ self.password = password
33
+ self.passwordProtected = True if password else password_protected
34
+ self.role = role
35
+ self.shareId = share_id
36
+ self.trackLinkUsers = track_link_users
14
37
 
15
38
  @property
16
39
  def entity_type_name(self):
@@ -110,8 +110,7 @@ class ObjectSharingInformation(BaseEntity):
110
110
  :param str list_id: The list identifier for the list which contains the list item for which
111
111
  the sharing state is requested.
112
112
  :param office365.sharepoint.client_context.ClientContext context: SharePoint client context
113
- :param BaseEntity return_type: Return type
114
- :return: ObjectSharingInformation
113
+ :param ObjectSharingInformation return_type: Return type
115
114
  """
116
115
  binding_type = ObjectSharingInformation(context)
117
116
  payload = {
@@ -131,6 +130,70 @@ class ObjectSharingInformation(BaseEntity):
131
130
  context.add_query(qry)
132
131
  return return_type
133
132
 
133
+ @property
134
+ def anonymous_edit_link(self):
135
+ """
136
+ Provides the URL that allows an anonymous user to edit the securable object.
137
+ If such a URL is not available, this property will provide an empty string.
138
+
139
+ :rtype: str
140
+ """
141
+ return self.properties.get('AnonymousEditLink', None)
142
+
143
+ @property
144
+ def anonymous_view_link(self):
145
+ """
146
+ Provides the URL that allows an anonymous user to view the securable object.
147
+ If such a URL is not available, this property will provide an empty string.
148
+
149
+ :rtype: str
150
+ """
151
+ return self.properties.get('AnonymousViewLink', None)
152
+
153
+ @property
154
+ def can_be_shared(self):
155
+ """
156
+ Indicates whether the current securable object can be shared.
157
+ :rtype: bool
158
+ """
159
+ return self.properties.get('CanBeShared', None)
160
+
161
+ @property
162
+ def can_be_unshared(self):
163
+ """
164
+ Indicates whether the current securable object can be unshared.
165
+ :rtype: bool
166
+ """
167
+ return self.properties.get('CanBeUnshared', None)
168
+
169
+ @property
170
+ def can_manage_permissions(self):
171
+ """
172
+ Specifies whether the current user is allowed to change the permissions of the securable object.
173
+ :rtype: bool
174
+ """
175
+ return self.properties.get('CanManagePermissions', None)
176
+
177
+ @property
178
+ def has_pending_access_requests(self):
179
+ """
180
+ Provides information about whether there are any pending access requests for the securable object.
181
+
182
+ This information is only provided if the current user has sufficient permissions to view any pending
183
+ access requests. If the current user does not have such permissions, this property will return false.
184
+ :rtype: bool
185
+ """
186
+ return self.properties.get('HasPendingAccessRequests', None)
187
+
188
+ @property
189
+ def has_permission_levels(self):
190
+ """
191
+ Indicates whether the object sharing information contains permissions information in addition to the identities
192
+ of the users who have access to the securable object.
193
+ :rtype: bool
194
+ """
195
+ return self.properties.get('HasPermissionLevels', None)
196
+
134
197
  @property
135
198
  def sharing_links(self):
136
199
  """Indicates the collection of all available sharing links for the securable object."""
@@ -16,6 +16,15 @@ class ObjectSharingInformationUser(BaseEntity):
16
16
  """
17
17
  return self.properties.get("Email", None)
18
18
 
19
+ @property
20
+ def sip_address(self):
21
+ """
22
+ Specifies the SIP address of the user.
23
+
24
+ :rtype: str or None
25
+ """
26
+ return self.properties.get("SipAddress", None)
27
+
19
28
  @property
20
29
  def login_name(self):
21
30
  """