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.
- {Office365_REST_Python_Client-2.4.2.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/METADATA +65 -31
- {Office365_REST_Python_Client-2.4.2.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/RECORD +401 -259
- office365/base_item.py +27 -5
- office365/booking/business.py +7 -0
- office365/booking/currency.py +5 -0
- office365/booking/solutions_root.py +32 -0
- office365/communications/calls/invitation_participant_info.py +17 -1
- office365/communications/calls/options.py +9 -0
- office365/communications/onlinemeetings/provider_type.py +3 -0
- office365/communications/presences/presence.py +14 -0
- office365/communications/presences/status_message.py +12 -0
- office365/directory/administrative_unit.py +22 -0
- office365/directory/applications/collection.py +2 -1
- office365/directory/applications/roles/assignment.py +45 -5
- office365/directory/applications/roles/assignment_collection.py +8 -0
- office365/directory/applications/roles/role.py +6 -1
- office365/directory/audit/signins/activity.py +31 -0
- office365/directory/audit/signins/location.py +17 -0
- office365/directory/audit/signins/signin.py +33 -0
- office365/directory/authentication/authentication.py +9 -0
- office365/directory/authentication/methods/details.py +25 -0
- office365/directory/authentication/methods/email.py +16 -0
- office365/directory/authentication/methods/root.py +27 -0
- office365/directory/certificates/authority.py +6 -1
- office365/directory/extensions/extended_property.py +8 -1
- office365/directory/extensions/extension.py +1 -1
- office365/directory/extensions/extension_property.py +0 -3
- office365/directory/extensions/open_type.py +8 -0
- office365/directory/groups/collection.py +2 -4
- office365/directory/groups/group.py +18 -4
- office365/directory/identities/governance.py +2 -0
- office365/directory/identities/object_identity.py +3 -3
- office365/directory/insights/resource_reference.py +15 -0
- office365/directory/insights/shared.py +36 -0
- office365/directory/insights/sharing_detail.py +11 -0
- office365/directory/insights/trending.py +8 -0
- office365/directory/insights/usage_details.py +16 -0
- office365/directory/insights/used.py +30 -0
- office365/directory/invitations/invitation.py +33 -1
- office365/directory/licenses/assigned_plan.py +19 -1
- office365/directory/licenses/assignment_state.py +5 -0
- office365/directory/licenses/service_plan_info.py +4 -0
- office365/directory/licenses/subscribed_sku.py +41 -0
- office365/directory/licenses/units_detail.py +11 -0
- office365/directory/object.py +3 -1
- office365/directory/object_collection.py +3 -4
- office365/directory/password_credential.py +5 -1
- office365/directory/permissions/email_identity.py +5 -0
- office365/directory/permissions/grants/condition_set.py +26 -0
- office365/directory/permissions/grants/resource_specific.py +21 -0
- office365/directory/policies/authentication_flows.py +9 -0
- office365/directory/policies/authentication_strength.py +10 -0
- office365/directory/policies/authorization.py +8 -0
- office365/directory/policies/cross_tenant_access.py +5 -0
- office365/directory/policies/root.py +35 -2
- office365/directory/protection/information.py +5 -0
- office365/directory/protection/risk_detection.py +11 -0
- office365/directory/protection/riskyusers/activity.py +5 -0
- office365/directory/protection/riskyusers/collection.py +32 -0
- office365/directory/protection/riskyusers/history_item.py +20 -0
- office365/directory/protection/riskyusers/risky_user.py +26 -0
- office365/directory/protection/root.py +31 -0
- office365/directory/rolemanagement/application.py +35 -0
- office365/directory/{roles → rolemanagement}/management.py +8 -1
- office365/directory/{roles → rolemanagement}/role.py +14 -0
- office365/directory/{roles → rolemanagement}/template.py +8 -0
- office365/directory/rolemanagement/unified_role_assignment.py +45 -0
- office365/directory/rolemanagement/unified_role_definition.py +6 -0
- office365/directory/security/alerts/alert.py +21 -0
- office365/directory/security/alerts/history_state.py +5 -0
- office365/directory/security/attacksimulations/automation.py +21 -0
- office365/directory/security/attacksimulations/automation_run.py +5 -0
- office365/directory/security/attacksimulations/repeat_offender.py +6 -0
- office365/directory/security/attacksimulations/root.py +26 -0
- office365/directory/security/attacksimulations/simulation.py +17 -0
- office365/directory/security/cases/__init__.py +0 -0
- office365/directory/security/cases/ediscovery.py +6 -0
- office365/directory/security/cases/root.py +22 -0
- office365/directory/security/incidents/incident.py +67 -0
- office365/directory/security/security.py +10 -1
- office365/directory/serviceprincipals/service_principal.py +89 -4
- office365/directory/synchronization/__init__.py +0 -0
- office365/directory/synchronization/job.py +16 -0
- office365/directory/synchronization/progress.py +5 -0
- office365/directory/synchronization/status.py +13 -0
- office365/directory/synchronization/synchronization.py +24 -0
- office365/directory/tenant_information.py +17 -0
- office365/directory/tenant_relationship.py +21 -0
- office365/directory/users/activities/activity.py +45 -1
- office365/directory/users/collection.py +8 -0
- office365/directory/users/password_profile.py +18 -2
- office365/directory/users/user.py +254 -29
- office365/entity.py +3 -3
- office365/graph_client.py +64 -12
- office365/intune/audit/actor.py +5 -0
- office365/intune/audit/event.py +21 -24
- office365/intune/audit/event_collection.py +26 -0
- office365/intune/audit/property.py +5 -0
- office365/intune/audit/resource.py +11 -0
- office365/intune/brand.py +6 -0
- office365/intune/devices/compliance/__init__.py +0 -0
- office365/intune/devices/compliance/policy.py +6 -0
- office365/intune/devices/compliance/policy_state.py +5 -0
- office365/intune/devices/data.py +5 -0
- office365/intune/devices/detail.py +10 -0
- office365/intune/devices/enrollment/__init__.py +0 -0
- office365/intune/devices/enrollment/configuration.py +25 -0
- office365/intune/devices/enrollment/configuration_assignment.py +5 -0
- office365/intune/devices/enrollment/limit_configuration.py +5 -0
- office365/intune/devices/managed.py +44 -3
- office365/intune/devices/management/__init__.py +0 -0
- office365/intune/devices/management/management.py +69 -0
- office365/intune/devices/management/reports/__init__.py +0 -0
- office365/intune/devices/management/reports/reports.py +5 -0
- office365/intune/devices/management/settings.py +18 -0
- office365/intune/organizations/branding.py +15 -0
- office365/intune/organizations/organization.py +14 -0
- office365/intune/printing/__init__.py +0 -0
- office365/intune/printing/base.py +11 -0
- office365/intune/printing/capabilities.py +5 -0
- office365/intune/printing/connectors/__init__.py +0 -0
- office365/intune/printing/connectors/connector.py +6 -0
- office365/intune/printing/operations/__init__.py +0 -0
- office365/intune/printing/print.py +24 -0
- office365/intune/printing/printer.py +6 -0
- office365/intune/printing/services/__init__.py +0 -0
- office365/intune/printing/services/endpoint.py +5 -0
- office365/intune/printing/services/service.py +17 -0
- office365/intune/printing/share.py +5 -0
- office365/intune/printing/shares/__init__.py +0 -0
- office365/intune/printing/taskdefinitions/__init__.py +0 -0
- office365/intune/provisioned_plan.py +5 -1
- office365/intune/servicecommunications/__init__.py +0 -0
- office365/intune/servicecommunications/announcement.py +39 -0
- office365/intune/servicecommunications/announcement_base.py +5 -0
- office365/intune/servicecommunications/health/__init__.py +0 -0
- office365/intune/servicecommunications/health/health.py +7 -0
- office365/intune/servicecommunications/issues/__init__.py +0 -0
- office365/intune/servicecommunications/issues/issue.py +29 -0
- office365/intune/servicecommunications/messages/__init__.py +0 -0
- office365/intune/servicecommunications/messages/update.py +10 -0
- office365/intune/termsandconditions/__init__.py +0 -0
- office365/intune/vpp_token.py +10 -0
- office365/onedrive/admin.py +16 -0
- office365/onedrive/columns/content_approval_status.py +5 -0
- office365/onedrive/columns/datetime.py +15 -0
- office365/onedrive/columns/default_value.py +4 -0
- office365/onedrive/columns/definition.py +49 -3
- office365/onedrive/columns/definition_collection.py +17 -6
- office365/onedrive/columns/lookup.py +5 -1
- office365/onedrive/columns/types.py +13 -0
- office365/onedrive/contenttypes/content_type.py +8 -0
- office365/onedrive/driveitems/audio.py +12 -1
- office365/onedrive/driveitems/driveItem.py +147 -69
- office365/onedrive/driveitems/image.py +8 -1
- office365/onedrive/driveitems/item_preview_info.py +20 -2
- office365/onedrive/driveitems/remote_item.py +19 -4
- office365/onedrive/drives/drive.py +7 -1
- office365/onedrive/drives/quota.py +18 -0
- office365/onedrive/drives/recipient.py +4 -0
- office365/onedrive/files/system_info.py +8 -6
- office365/onedrive/folders/folder.py +3 -3
- office365/onedrive/internal/paths/children.py +1 -4
- office365/onedrive/internal/paths/shared.py +7 -2
- office365/onedrive/lists/collection.py +12 -6
- office365/onedrive/lists/list.py +13 -5
- office365/onedrive/operations/long_running.py +7 -0
- office365/onedrive/operations/pending.py +13 -0
- office365/onedrive/operations/pending_content_update.py +5 -0
- office365/onedrive/permissions/collection.py +5 -6
- office365/onedrive/permissions/sharing_link.py +16 -1
- office365/onedrive/sensitivitylabels/__init__.py +0 -0
- office365/onedrive/sensitivitylabels/assignment.py +17 -0
- office365/onedrive/sensitivitylabels/assignment_method.py +4 -0
- office365/onedrive/sensitivitylabels/extract_result.py +13 -0
- office365/onedrive/sharepoint_settings.py +25 -0
- office365/onedrive/sites/sites_with_root.py +11 -1
- office365/onedrive/termstore/groups/collection.py +1 -1
- office365/onedrive/termstore/groups/group.py +1 -0
- office365/onedrive/termstore/sets/collection.py +1 -1
- office365/onenote/operations/operation.py +10 -1
- office365/onenote/resources/resource.py +1 -0
- office365/outlook/calendar/calendar.py +116 -6
- office365/outlook/calendar/dateTimeTimeZone.py +4 -0
- office365/outlook/calendar/email_address.py +7 -0
- office365/outlook/calendar/events/event.py +0 -4
- office365/outlook/calendar/events/reminder.py +22 -3
- office365/outlook/calendar/group.py +0 -2
- office365/outlook/calendar/location_constraint.py +16 -1
- office365/outlook/calendar/meetingtimes/activity_domain.py +10 -0
- office365/outlook/calendar/meetingtimes/suggestion.py +1 -1
- office365/outlook/calendar/meetingtimes/time_constraint.py +18 -0
- office365/outlook/calendar/permissions/__init__.py +0 -0
- office365/outlook/calendar/permissions/collection.py +24 -0
- office365/outlook/calendar/{permission.py → permissions/permission.py} +35 -2
- office365/outlook/calendar/place.py +7 -0
- office365/outlook/calendar/role_type.py +17 -0
- office365/outlook/calendar/schedule/information.py +5 -4
- office365/outlook/calendar/schedule/item.py +20 -1
- office365/outlook/calendar/sharing_message.py +2 -2
- office365/outlook/calendar/time_zone_base.py +3 -0
- office365/outlook/calendar/working_hours.py +17 -1
- office365/outlook/contacts/collection.py +39 -0
- office365/outlook/contacts/contact.py +21 -11
- office365/outlook/geo_coordinates.py +20 -0
- office365/outlook/item.py +5 -4
- office365/outlook/locale_info.py +3 -0
- office365/outlook/mail/automatic_replies_setting.py +14 -0
- office365/outlook/mail/folders/folder.py +52 -3
- office365/outlook/mail/folders/search.py +11 -0
- office365/outlook/mail/importance.py +1 -0
- office365/outlook/mail/item_body.py +3 -0
- office365/outlook/mail/location.py +27 -2
- office365/outlook/mail/location_constraint_item.py +5 -0
- office365/outlook/mail/mailbox_settings.py +13 -1
- office365/outlook/mail/messages/collection.py +7 -0
- office365/outlook/mail/messages/followup_flag.py +21 -0
- office365/outlook/mail/messages/internet_header.py +16 -0
- office365/outlook/mail/messages/message.py +184 -6
- office365/outlook/mail/messages/rules/__init__.py +0 -0
- office365/outlook/mail/messages/rules/actions.py +38 -0
- office365/outlook/mail/messages/rules/predicates.py +5 -0
- office365/outlook/mail/messages/rules/rule.py +32 -0
- office365/outlook/mail/patterned_recurrence.py +14 -1
- office365/outlook/mail/physical_address.py +5 -1
- office365/outlook/mail/recipient.py +3 -0
- office365/outlook/mail/recurrence_pattern.py +18 -1
- office365/outlook/mail/recurrence_range.py +16 -2
- office365/outlook/timezone_information.py +3 -0
- office365/reports/root.py +28 -1
- office365/reports/security/__init__.py +0 -0
- office365/reports/security/root.py +21 -0
- office365/reports/userregistration/__init__.py +0 -0
- office365/reports/userregistration/method_count.py +17 -0
- office365/reports/userregistration/method_summary.py +21 -0
- office365/runtime/auth/authentication_context.py +123 -25
- office365/runtime/auth/client_credential.py +2 -2
- office365/runtime/auth/providers/acs_token_provider.py +6 -3
- office365/runtime/auth/providers/saml_token_provider.py +10 -7
- office365/runtime/auth/token_response.py +3 -3
- office365/runtime/client_object_collection.py +12 -7
- office365/runtime/client_result.py +9 -0
- office365/runtime/client_runtime_context.py +10 -8
- office365/runtime/http/request_options.py +2 -1
- office365/runtime/odata/request.py +4 -4
- office365/runtime/paths/appid.py +2 -1
- office365/runtime/paths/entity.py +2 -2
- office365/{sharepoint/internal/paths/entity.py → runtime/paths/key.py} +5 -3
- office365/runtime/paths/resource_path.py +3 -0
- office365/runtime/types/event_handler.py +6 -0
- office365/search/external/__init__.py +0 -0
- office365/search/external/configuration.py +8 -0
- office365/search/external/connection.py +27 -0
- office365/{external → search/external}/external.py +1 -1
- office365/search/external/search_settings.py +5 -0
- office365/search/query.py +3 -1
- office365/search/request.py +3 -1
- office365/search/sharepoint_onedrive_options.py +3 -0
- office365/search/sort_property.py +9 -0
- office365/sharepoint/activities/client_request.py +4 -1
- office365/sharepoint/activities/logger.py +25 -0
- office365/sharepoint/activities/revision_info.py +9 -0
- office365/sharepoint/addtoonedrive/mount_point.py +25 -0
- office365/sharepoint/addtoonedrive/mounted_folder_info.py +5 -0
- office365/sharepoint/alerts/alert.py +31 -0
- office365/sharepoint/apps/license_collection.py +1 -2
- office365/sharepoint/changes/item.py +14 -0
- office365/sharepoint/client_context.py +91 -30
- office365/sharepoint/clientsidecomponent/component_context_info.py +7 -0
- office365/sharepoint/clientsidecomponent/identifier.py +3 -0
- office365/sharepoint/compliance/tag_info.py +17 -0
- office365/sharepoint/contenttypes/collection.py +6 -7
- office365/sharepoint/contenttypes/content_type.py +49 -1
- office365/sharepoint/contenttypes/fieldlinks/collection.py +5 -6
- office365/sharepoint/features/known_list.py +2 -0
- office365/sharepoint/fields/collection.py +70 -39
- office365/sharepoint/fields/computed.py +5 -2
- office365/sharepoint/fields/creation_information.py +5 -4
- office365/sharepoint/fields/field.py +73 -15
- office365/sharepoint/fields/user.py +3 -3
- office365/sharepoint/files/checked_out_file.py +3 -2
- office365/sharepoint/files/file.py +9 -4
- office365/sharepoint/files/versions/version.py +7 -9
- office365/sharepoint/folders/collection.py +2 -2
- office365/sharepoint/folders/coloring.py +39 -0
- office365/sharepoint/folders/coloring_information.py +15 -0
- office365/sharepoint/folders/folder.py +21 -10
- office365/sharepoint/forms/customization.py +8 -0
- office365/sharepoint/listitems/listitem.py +29 -10
- office365/sharepoint/lists/bloom_filter.py +0 -1
- office365/sharepoint/lists/creation_information.py +18 -4
- office365/sharepoint/lists/list.py +203 -27
- office365/sharepoint/lists/render_data_parameters.py +21 -1
- office365/sharepoint/lists/template_type.py +10 -0
- office365/sharepoint/navigation/configured_metadata_items.py +25 -1
- office365/sharepoint/navigation/metadata_settings.py +6 -4
- office365/sharepoint/permissions/irm/file_settings.py +43 -0
- office365/sharepoint/permissions/securable_object.py +5 -6
- office365/sharepoint/portal/sites/manager.py +5 -6
- office365/sharepoint/portal/userprofiles/documents_shared_with_group.py +3 -0
- office365/sharepoint/publishing/base_custom_property.py +8 -0
- office365/sharepoint/publishing/navigation/structural_navigation_cache_wrapper.py +8 -0
- office365/sharepoint/publishing/pagecopywithassets/__init__.py +0 -0
- office365/sharepoint/publishing/pagecopywithassets/response.py +8 -0
- office365/sharepoint/publishing/pages/campaign_publication.py +7 -0
- office365/sharepoint/publishing/pages/collection.py +1 -1
- office365/sharepoint/publishing/pages/page.py +4 -1
- office365/sharepoint/publishing/pages/reposts/metadata.py +8 -0
- office365/sharepoint/publishing/personmagazine/person_magazine.py +4 -1
- office365/sharepoint/search/administration/tenant_crawl_versions_info_provider.py +8 -1
- office365/sharepoint/search/query/auto_completion_match.py +3 -0
- office365/sharepoint/search/query/property_value.py +18 -0
- office365/sharepoint/search/request.py +16 -2
- office365/sharepoint/sharing/abilities.py +22 -0
- office365/sharepoint/sharing/direct_abilities.py +27 -0
- office365/sharepoint/sharing/link_abilities.py +9 -1
- office365/sharepoint/sharing/links/data.py +26 -1
- office365/sharepoint/sharing/links/info.py +1 -1
- office365/sharepoint/sharing/links/partial_success_response.py +5 -0
- office365/sharepoint/sharing/links/share_settings.py +24 -1
- office365/sharepoint/sharing/object_sharing_information.py +65 -2
- office365/sharepoint/sharing/object_sharing_information_user.py +9 -0
- office365/sharepoint/sharing/object_sharing_settings.py +17 -4
- office365/sharepoint/sharing/principal.py +10 -0
- office365/sharepoint/sharing/securable_object_extensions.py +1 -17
- office365/sharepoint/sharing/site_sharing_report_helper.py +2 -1
- office365/sharepoint/sharing/user_sharing_result.py +18 -8
- office365/sharepoint/sitehealth/result.py +10 -0
- office365/sharepoint/sites/language.py +11 -1
- office365/sharepoint/sites/language_collection.py +1 -0
- office365/sharepoint/sites/site.py +42 -7
- office365/sharepoint/taxonomy/create_xml_parameters.py +22 -15
- office365/sharepoint/taxonomy/field.py +10 -8
- office365/sharepoint/taxonomy/groups/collection.py +8 -1
- office365/sharepoint/taxonomy/groups/group.py +26 -0
- office365/sharepoint/taxonomy/sets/collection.py +15 -0
- office365/sharepoint/taxonomy/sets/name.py +23 -0
- office365/sharepoint/taxonomy/sets/set.py +16 -1
- office365/sharepoint/taxonomy/stores/store.py +0 -8
- office365/sharepoint/tenant/administration/audit/search_request_status.py +8 -0
- office365/sharepoint/tenant/administration/deny_add_and_customize_pages_status.py +3 -0
- office365/sharepoint/tenant/administration/hubsites/permission.py +10 -0
- office365/sharepoint/tenant/administration/sites/properties.py +12 -10
- office365/sharepoint/tenant/administration/tenant.py +2 -1
- office365/sharepoint/tenant/apps/information.py +3 -1
- office365/sharepoint/tenant/management/office365_tenant.py +14 -11
- office365/sharepoint/types/resource_path.py +3 -1
- office365/sharepoint/userprofiles/people_manager.py +0 -2
- office365/sharepoint/userprofiles/sharedwithme/document.py +16 -0
- office365/sharepoint/userprofiles/sharedwithme/document_user.py +12 -0
- office365/sharepoint/userprofiles/sharedwithme/item_collection.py +41 -0
- office365/sharepoint/userprofiles/sharedwithme/items.py +18 -1
- office365/sharepoint/viva/site_manager.py +14 -0
- office365/sharepoint/webhooks/subscription_collection.py +5 -6
- office365/sharepoint/webparts/definition.py +1 -1
- office365/sharepoint/webparts/webpart.py +18 -4
- office365/sharepoint/webs/context_web_information.py +2 -4
- office365/sharepoint/webs/web.py +31 -12
- office365/sharepoint/workflowservices/manager.py +0 -2
- office365/subscriptions/collection.py +42 -0
- office365/subscriptions/subscription.py +120 -2
- office365/teams/apps/catalog.py +23 -0
- office365/teams/associated_info.py +12 -0
- office365/teams/channels/channel.py +2 -3
- office365/teams/channels/collection.py +1 -1
- office365/teams/channels/iIdentity.py +5 -0
- office365/teams/chats/chat.py +12 -2
- office365/teams/chats/collection.py +1 -2
- office365/teams/chats/messages/__init__.py +0 -0
- office365/teams/chats/messages/info.py +14 -0
- office365/teams/chats/{message.py → messages/message.py} +18 -3
- office365/teams/info.py +20 -0
- office365/teams/members/aad_user_conversation.py +2 -2
- office365/teams/members/conversation_collection.py +3 -3
- office365/teams/schedule/change_request.py +4 -2
- office365/teams/schedule/change_tracked_entity.py +11 -2
- office365/teams/summary.py +15 -0
- office365/teams/tabs/configuration.py +12 -1
- office365/teams/tabs/tab.py +0 -1
- office365/teams/team.py +34 -1
- office365/teams/teamwork/__init__.py +0 -0
- office365/teams/teamwork/activity_topic.py +5 -0
- office365/teams/teamwork/tags/__init__.py +0 -0
- office365/teams/teamwork/tags/identity.py +6 -0
- office365/teams/teamwork/tags/member.py +5 -0
- office365/teams/teamwork/tags/tag.py +15 -0
- office365/{directory/security/cases_root.py → teams/viva/employee_experience_user.py} +1 -1
- office365/todo/attachments/session.py +34 -0
- office365/todo/linked_resource.py +10 -1
- office365/todo/tasks/task.py +4 -0
- office365/directory/identities/protection_root.py +0 -5
- office365/directory/rbac/application.py +0 -18
- office365/directory/rbac/unified_role_assignment.py +0 -8
- office365/external/connection.py +0 -5
- office365/intune/devices/management.py +0 -35
- office365/onedrive/internal/queries/download_content.py +0 -26
- office365/onedrive/internal/queries/upload_content.py +0 -23
- office365/outlook/mail/messages/message_rule.py +0 -15
- office365/runtime/auth/providers/oauth_token_provider.py +0 -25
- office365/teams/team_info.py +0 -6
- {Office365_REST_Python_Client-2.4.2.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/LICENSE +0 -0
- {Office365_REST_Python_Client-2.4.2.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/WHEEL +0 -0
- {Office365_REST_Python_Client-2.4.2.dist-info → Office365_REST_Python_Client-2.4.4.dist-info}/top_level.txt +0 -0
- /office365/{directory/rbac → booking}/__init__.py +0 -0
- /office365/directory/{roles → protection}/__init__.py +0 -0
- /office365/{external → directory/protection/riskyusers}/__init__.py +0 -0
- /office365/{teams/messages → directory/rolemanagement}/__init__.py +0 -0
- /office365/outlook/calendar/{time_slot.py → meetingtimes/time_slot.py} +0 -0
- /office365/teams/chats/{message_attachment.py → messages/attachment.py} +0 -0
- /office365/teams/{member_settings.py → members/settings.py} +0 -0
- /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
|
|
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",
|
|
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
|
|
110
|
+
def _create_and_add_query(login_name):
|
|
111
111
|
"""
|
|
112
112
|
:param str login_name:
|
|
113
113
|
"""
|
|
114
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
32
|
+
def _create(owner_string=None):
|
|
33
33
|
request = SPSiteCreationRequest(title, site_url, owner_string)
|
|
34
34
|
payload = {"request": request}
|
|
35
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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):
|
|
File without changes
|
|
@@ -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.
|
|
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)
|
|
@@ -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,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,
|
|
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
|
-
|
|
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
|
|
@@ -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
|
|
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
|
"""
|