Office365-REST-Python-Client 2.5.13__py3-none-any.whl → 2.6.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {Office365_REST_Python_Client-2.5.13.dist-info → Office365_REST_Python_Client-2.6.0.dist-info}/METADATA +2 -2
- {Office365_REST_Python_Client-2.5.13.dist-info → Office365_REST_Python_Client-2.6.0.dist-info}/RECORD +324 -169
- office365/admin/admin.py +69 -0
- office365/admin/microsoft365_apps.py +5 -0
- office365/admin/people_settings.py +5 -0
- office365/admin/report_settings.py +5 -0
- office365/{onedrive → admin}/sharepoint.py +1 -1
- office365/azure_env.py +60 -0
- office365/booking/business/business.py +13 -0
- office365/booking/business/collection.py +8 -4
- office365/communications/callrecords/collection.py +42 -0
- office365/communications/callrecords/direct_routing_log_row.py +5 -0
- office365/communications/cloud_communications.py +2 -3
- office365/directory/applications/app_ids.py +6 -0
- office365/directory/applications/application.py +16 -2
- office365/directory/applications/required_resource_access.py +23 -0
- office365/directory/applications/resource_access.py +26 -0
- office365/directory/authentication/authentication.py +16 -0
- office365/directory/authentication/method_target.py +2 -1
- office365/directory/authentication/methods/details.py +29 -0
- office365/directory/authentication/methods/microsoft_authenticator.py +6 -0
- office365/directory/authentication/methods/root.py +19 -0
- office365/directory/authentication/methods/sms.py +9 -0
- office365/directory/certificates/self_signed.py +31 -2
- office365/directory/identities/conditional_access_root.py +14 -0
- office365/directory/identitygovernance/privilegedaccess/approval.py +8 -0
- office365/directory/identitygovernance/privilegedaccess/group.py +30 -0
- office365/directory/identitygovernance/privilegedaccess/group_assignment_schedule_instance.py +7 -0
- office365/directory/identitygovernance/privilegedaccess/unified_role_assignment_schedule_request.py +7 -0
- office365/directory/identitygovernance/userconsent/request_collection.py +10 -0
- office365/directory/identitygovernance/workflow/__init__.py +0 -0
- office365/directory/identitygovernance/workflow/base.py +5 -0
- office365/directory/permissions/scope.py +15 -3
- office365/directory/policies/authentication_strength.py +21 -0
- office365/directory/policies/cross_tenant_access.py +13 -0
- office365/directory/policies/feature_rollout.py +16 -0
- office365/directory/policies/root.py +39 -23
- office365/directory/policies/template.py +5 -0
- office365/directory/policies/update_allowed_combinations_result.py +5 -0
- office365/directory/protection/threatassessment/email_file_request.py +20 -0
- office365/directory/protection/threatassessment/request.py +25 -0
- office365/directory/rolemanagement/application.py +15 -0
- office365/directory/rolemanagement/resource_action.py +8 -4
- office365/directory/rolemanagement/role_permission.py +3 -3
- office365/directory/security/alerts/collection.py +49 -0
- office365/directory/security/alerts/evidence.py +2 -1
- office365/directory/security/alerts/malware_evidence.py +5 -0
- office365/directory/security/alerts/process_evidence.py +5 -0
- office365/directory/security/attacksimulations/user.py +5 -0
- office365/directory/security/attacksimulations/user_coverage.py +3 -0
- office365/directory/security/attacksimulations/users/details.py +6 -1
- office365/directory/security/scorecontrol/__init__.py +0 -0
- office365/directory/security/scorecontrol/profile.py +6 -0
- office365/directory/security/security.py +17 -4
- office365/directory/serviceprincipals/service_principal.py +112 -55
- office365/directory/tenantinformation/__init__.py +0 -0
- office365/directory/tenantinformation/multi_organization.py +11 -0
- office365/directory/tenantinformation/relationship.py +61 -0
- office365/directory/users/insights_settings.py +5 -0
- office365/graph_client.py +52 -132
- office365/graph_request.py +78 -19
- office365/intune/servicecommunications/health/health.py +1 -1
- office365/intune/servicecommunications/issues/issue.py +2 -2
- office365/onedrive/columns/definition.py +1 -1
- office365/onedrive/contenttypes/content_type.py +1 -1
- office365/onedrive/driveitems/driveItem.py +14 -2
- office365/onedrive/driveitems/retention_label.py +33 -0
- office365/onedrive/driveitems/retention_label_settings.py +7 -0
- office365/onedrive/drives/drive.py +1 -1
- office365/onedrive/filestorage/__init__.py +0 -0
- office365/onedrive/filestorage/container.py +7 -0
- office365/onedrive/filestorage/file_storage.py +20 -0
- office365/onedrive/listitems/field_value_set.py +1 -1
- office365/onedrive/listitems/list_item.py +1 -1
- office365/onedrive/lists/list.py +1 -1
- office365/onedrive/recyclebin/__init__.py +0 -0
- office365/onedrive/recyclebin/item.py +6 -0
- office365/onedrive/recyclebin/recyclebin.py +29 -0
- office365/onedrive/recyclebin/settings.py +13 -0
- office365/onedrive/shares/drive_item.py +1 -1
- office365/onedrive/sitepages/base.py +4 -1
- office365/onedrive/sitepages/canvas_layout.py +2 -2
- office365/onedrive/sitepages/collection.py +12 -0
- office365/onedrive/sitepages/sections/__init__.py +0 -0
- office365/onedrive/sitepages/{horizontal_section.py → sections/horizontal.py} +1 -1
- office365/onedrive/sitepages/site_page.py +9 -9
- office365/onedrive/sitepages/webparts/data.py +5 -0
- office365/onedrive/sitepages/webparts/position.py +5 -0
- office365/onedrive/sitepages/webparts/standard.py +9 -0
- office365/onedrive/sitepages/webparts/web_part.py +12 -0
- office365/onedrive/sites/archival_details.py +5 -0
- office365/onedrive/sites/site.py +1 -1
- office365/onedrive/sites/site_collection.py +10 -1
- office365/onedrive/storage/storage.py +10 -0
- office365/onedrive/workbooks/charts/axes.py +41 -1
- office365/onedrive/workbooks/charts/axis.py +5 -0
- office365/onedrive/workbooks/charts/chart.py +64 -5
- office365/onedrive/workbooks/charts/fill.py +5 -0
- office365/onedrive/workbooks/charts/font.py +5 -0
- office365/onedrive/workbooks/charts/legend/__init__.py +0 -0
- office365/onedrive/workbooks/charts/legend/format.py +5 -0
- office365/onedrive/workbooks/charts/legend/legend.py +26 -0
- office365/onedrive/workbooks/charts/point.py +5 -0
- office365/onedrive/workbooks/charts/series/__init__.py +0 -0
- office365/onedrive/workbooks/charts/series/format.py +5 -0
- office365/onedrive/workbooks/charts/series/series.py +31 -0
- office365/onedrive/workbooks/charts/title.py +5 -0
- office365/onedrive/workbooks/filter.py +10 -0
- office365/onedrive/workbooks/filter_criteria.py +3 -3
- office365/onedrive/workbooks/functions/functions.py +23 -0
- office365/onedrive/workbooks/ranges/fill.py +11 -1
- office365/onedrive/workbooks/ranges/range.py +26 -0
- office365/onedrive/workbooks/ranges/view.py +14 -0
- office365/onedrive/workbooks/sort_field.py +8 -3
- office365/onedrive/workbooks/tables/sort.py +20 -0
- office365/onedrive/workbooks/worksheets/worksheet.py +11 -0
- office365/partners/__init__.py +0 -0
- office365/partners/billing/__init__.py +0 -0
- office365/partners/billing/azure_usage.py +17 -0
- office365/partners/billing/billed_usage.py +21 -0
- office365/partners/billing/billing.py +17 -0
- office365/partners/billing/operation.py +5 -0
- office365/partners/partners.py +17 -0
- office365/planner/tasks/check_list_item.py +5 -1
- office365/reports/root.py +9 -0
- office365/reports/userregistration/feature_summary.py +5 -0
- office365/runtime/auth/auth_cookies.py +48 -0
- office365/runtime/auth/authentication_context.py +36 -19
- office365/runtime/auth/entra/__init__.py +0 -0
- office365/runtime/auth/entra/authentication_context.py +165 -0
- office365/runtime/auth/providers/acs_token_provider.py +12 -27
- office365/runtime/auth/providers/saml_token_provider.py +41 -54
- office365/runtime/auth/sts_profile.py +8 -8
- office365/runtime/auth/token_response.py +4 -0
- office365/runtime/client_object.py +15 -7
- office365/runtime/client_object_collection.py +2 -2
- office365/runtime/client_result.py +2 -0
- office365/runtime/client_value.py +1 -1
- office365/runtime/csom/request.py +11 -0
- office365/runtime/types/exceptions.py +18 -0
- office365/search/acronym.py +10 -0
- office365/search/aggregation_option.py +6 -0
- office365/search/answer.py +9 -0
- office365/search/entity.py +67 -14
- office365/search/entity_type.py +28 -0
- office365/search/request.py +32 -3
- office365/sharepoint/administration/custom_fonts_resource.py +5 -0
- office365/sharepoint/administration/sitemove/__init__.py +0 -0
- office365/sharepoint/administration/sitemove/service.py +68 -0
- office365/sharepoint/administration/sitemove/service_info.py +11 -0
- office365/sharepoint/apps/access_requests.py +5 -0
- office365/sharepoint/apps/management/__init__.py +0 -0
- office365/sharepoint/apps/management/principal_info.py +9 -0
- office365/sharepoint/authpolicy/events/collection.py +28 -0
- office365/sharepoint/authpolicy/events/role_assignment_resource_payload.py +4 -0
- office365/sharepoint/changes/item.py +15 -0
- office365/sharepoint/client_context.py +61 -37
- office365/sharepoint/directory/group.py +2 -0
- office365/sharepoint/directory/helper.py +2 -0
- office365/sharepoint/directory/provider/provider.py +6 -0
- office365/sharepoint/directory/user.py +20 -0
- office365/sharepoint/documentmanagement/document_id.py +28 -3
- office365/sharepoint/files/file.py +11 -4
- office365/sharepoint/files/publish/__init__.py +0 -0
- office365/sharepoint/files/publish/status.py +9 -0
- office365/sharepoint/files/versions/event.py +9 -0
- office365/sharepoint/flows/connector_result.py +17 -0
- office365/sharepoint/flows/permissions.py +34 -0
- office365/sharepoint/fontpackages/__init__.py +0 -0
- office365/sharepoint/fontpackages/collection.py +26 -0
- office365/sharepoint/fontpackages/creation_parameters.py +5 -0
- office365/sharepoint/fontpackages/font_package.py +5 -0
- office365/sharepoint/fontpackages/oob_settings.py +5 -0
- office365/sharepoint/forms/customization.py +26 -0
- office365/sharepoint/ir/__init__.py +0 -0
- office365/sharepoint/ir/migration.py +5 -0
- office365/sharepoint/listhome/favorite_item.py +9 -0
- office365/sharepoint/listitems/listitem.py +79 -4
- office365/sharepoint/listitems/update_parameters.py +4 -1
- office365/sharepoint/lists/data_parameters.py +5 -0
- office365/sharepoint/lists/exporter.py +73 -0
- office365/sharepoint/lists/list.py +177 -60
- office365/sharepoint/lists/render_data_parameters.py +31 -0
- office365/sharepoint/lists/version_policy_manager.py +5 -0
- office365/sharepoint/marketplace/app_metadata.py +12 -1
- office365/sharepoint/marketplace/app_metadata_collection.py +8 -0
- office365/sharepoint/marketplace/corporatecuratedgallery/addins/instance_info.py +22 -0
- office365/sharepoint/marketplace/corporatecuratedgallery/addins/permission_failed_info.py +5 -0
- office365/sharepoint/marketplace/corporatecuratedgallery/addins/permission_info.py +12 -0
- office365/sharepoint/marketplace/corporatecuratedgallery/addins/permission_response.py +15 -0
- office365/sharepoint/marketplace/corporatecuratedgallery/addins/principals_response.py +5 -0
- office365/sharepoint/marketplace/corporatecuratedgallery/app_request_information.py +9 -0
- office365/sharepoint/marketplace/corporatecuratedgallery/app_response_information.py +9 -0
- office365/sharepoint/marketplace/corporatecuratedgallery/available_addins_response.py +4 -0
- office365/sharepoint/marketplace/corporatecuratedgallery/card_design.py +9 -0
- office365/sharepoint/marketplace/corporatecuratedgallery/card_designs.py +9 -0
- office365/sharepoint/marketplace/corporatecuratedgallery/teams_package_download.py +14 -0
- office365/sharepoint/marketplace/tenant/appcatalog/accessor.py +62 -3
- office365/sharepoint/migration/copy_migration_options.py +5 -0
- office365/sharepoint/multigeo/services.py +14 -0
- office365/sharepoint/multigeo/storage_quota.py +9 -0
- office365/sharepoint/policy/license_utilities.py +27 -0
- office365/sharepoint/portal/groups/site_manager.py +32 -0
- office365/sharepoint/portal/project/__init__.py +9 -0
- office365/sharepoint/portal/userprofiles/documentsshared/__init__.py +0 -0
- office365/sharepoint/portal/userprofiles/documentsshared/with_group.py +38 -0
- office365/sharepoint/portal/userprofiles/documentsshared/with_person.py +9 -0
- office365/sharepoint/portal/userprofiles/sharedwithme/__init__.py +0 -0
- office365/sharepoint/{userprofiles → portal/userprofiles}/sharedwithme/document.py +1 -1
- office365/sharepoint/{userprofiles → portal/userprofiles}/sharedwithme/items.py +3 -1
- office365/sharepoint/principal/principal.py +6 -0
- office365/sharepoint/publishing/pages/coauth_state.py +8 -0
- office365/sharepoint/publishing/pages/page.py +11 -0
- office365/sharepoint/publishing/pages/stream_content.py +9 -0
- office365/sharepoint/publishing/pages/stream_data.py +8 -0
- office365/sharepoint/quotamanagement/consumer/non_quota_backfill_api.py +8 -0
- office365/sharepoint/request.py +98 -10
- office365/sharepoint/search/administration/document_crawl_log.py +16 -2
- office365/sharepoint/search/administration/site_content_processing_info_provider.py +11 -0
- office365/sharepoint/search/administration/tenant_crawl_versions_info_provider.py +1 -1
- office365/sharepoint/search/ranking_labeling.py +1 -0
- office365/sharepoint/search/reports/abandoned_queries.py +11 -1
- office365/sharepoint/search/reports/abandonedqueries/__init__.py +0 -0
- office365/sharepoint/search/reports/abandonedqueries/data.py +0 -0
- office365/sharepoint/search/reports/abandonedqueries/item.py +11 -0
- office365/sharepoint/search/reports/noresult/__init__.py +0 -0
- office365/sharepoint/search/reports/numberofqueries/__init__.py +0 -0
- office365/sharepoint/search/reports/top_queries.py +7 -0
- office365/sharepoint/search/reports/topqueries/__init__.py +0 -0
- office365/sharepoint/search/reports/topqueries/data.py +9 -0
- office365/sharepoint/search/reports/topqueries/item.py +15 -0
- office365/sharepoint/search/scs_endpoint.py +9 -0
- office365/sharepoint/securestore/target_application.py +8 -0
- office365/sharepoint/sharing/document_manager.py +3 -3
- office365/sharepoint/sharing/domain_restriction_settings.py +5 -0
- office365/sharepoint/sharing/information.py +12 -0
- office365/sharepoint/sharing/result.py +21 -0
- office365/sharepoint/sitehealth/result.py +4 -4
- office365/sharepoint/sitehealth/summary.py +5 -5
- office365/sharepoint/sites/copy_job_progress.py +5 -0
- office365/sharepoint/sites/copy_migration_iInfo.py +5 -0
- office365/sharepoint/sites/home/__init__.py +0 -0
- office365/sharepoint/sites/{sph_site.py → home/site.py} +1 -1
- office365/sharepoint/sites/html_field_security_setting.py +5 -0
- office365/sharepoint/sites/site.py +56 -2
- office365/sharepoint/sites/version_policy_manager.py +25 -0
- office365/sharepoint/sitescripts/metadata.py +28 -3
- office365/sharepoint/sitescripts/utility.py +17 -0
- office365/sharepoint/smartcache/__init__.py +0 -0
- office365/sharepoint/smartcache/item.py +9 -0
- office365/sharepoint/tenant/administration/app_service_principal_public.py +17 -0
- office365/sharepoint/tenant/administration/audit/data.py +12 -0
- office365/sharepoint/tenant/administration/audit/unified_record.py +18 -0
- office365/sharepoint/tenant/administration/coms/__init__.py +0 -0
- office365/sharepoint/tenant/administration/coms/messages_fields_data.py +5 -0
- office365/sharepoint/tenant/administration/coms/messages_service_proxy.py +16 -0
- office365/sharepoint/tenant/administration/copilot/__init__.py +0 -0
- office365/sharepoint/tenant/administration/copilot/adaptive_card_config.py +11 -0
- office365/sharepoint/tenant/administration/datagovernance/__init__.py +0 -0
- office365/sharepoint/tenant/administration/{internal/permission_grant.py → datagovernance/client_base.py} +4 -2
- office365/sharepoint/tenant/administration/datagovernance/insight_client.py +82 -0
- office365/sharepoint/tenant/administration/datagovernance/insight_metadata.py +5 -0
- office365/sharepoint/tenant/administration/default_time_zone_id.py +11 -0
- office365/sharepoint/tenant/administration/endpoints.py +53 -2
- office365/sharepoint/tenant/administration/insights/onedrive_site_sharing.py +4 -0
- office365/sharepoint/tenant/administration/insights/summary_response.py +8 -0
- office365/sharepoint/tenant/administration/internal/aad/__init__.py +0 -0
- office365/sharepoint/tenant/administration/internal/aad/permission_grant.py +32 -0
- office365/sharepoint/tenant/administration/internal/appservice/__init__.py +0 -0
- office365/sharepoint/tenant/administration/internal/appservice/permission_grant.py +5 -0
- office365/sharepoint/tenant/administration/internal/appservice/permission_request.py +13 -0
- office365/sharepoint/tenant/administration/internal/appservice/principal.py +104 -0
- office365/sharepoint/tenant/administration/malware/__init__.py +0 -0
- office365/sharepoint/tenant/administration/malware/file.py +18 -0
- office365/sharepoint/tenant/administration/modified_property.py +5 -0
- office365/sharepoint/tenant/administration/policies/app_billing_properties.py +21 -0
- office365/sharepoint/tenant/administration/policies/content_security_configuration.py +9 -0
- office365/sharepoint/tenant/administration/recent_action.py +9 -0
- office365/sharepoint/tenant/administration/reports/__init__.py +0 -0
- office365/sharepoint/tenant/administration/settings_service.py +42 -6
- office365/sharepoint/tenant/administration/sites/creation_source.py +8 -8
- office365/sharepoint/tenant/administration/sites/properties.py +78 -0
- office365/sharepoint/tenant/administration/sites/properties_collection.py +19 -0
- office365/sharepoint/tenant/administration/tenant.py +241 -8
- office365/sharepoint/tenant/administration/types.py +89 -2
- office365/sharepoint/tenant/cdn_api.py +3 -1
- office365/sharepoint/tenant/insights/report_manager.py +29 -0
- office365/sharepoint/tenant/management/office365_tenant.py +9 -4
- office365/sharepoint/tenant/settings.py +10 -0
- office365/sharepoint/translation/job_status.py +22 -0
- office365/sharepoint/userprofiles/user_profile.py +6 -0
- office365/sharepoint/utilities/utility.py +6 -0
- office365/sharepoint/viva/connections_page.py +8 -0
- office365/sharepoint/viva/dashboard_configuration.py +8 -0
- office365/sharepoint/viva/employee_engagement.py +39 -1
- office365/sharepoint/viva/resource_get_endpoint.py +8 -0
- office365/sharepoint/viva/resource_link.py +8 -0
- office365/sharepoint/webparts/tile_data.py +21 -0
- office365/sharepoint/webs/dataleakage_prevention_status_info.py +5 -0
- office365/sharepoint/webs/information.py +66 -1
- office365/sharepoint/webs/regional_settings.py +32 -0
- office365/sharepoint/webs/templates/__init__.py +0 -0
- office365/sharepoint/webs/time_zone.py +1 -1
- office365/sharepoint/webs/web.py +137 -0
- office365/sharepoint/workflow/task.py +5 -0
- office365/subscriptions/collection.py +16 -0
- office365/teams/chats/event_message_detail.py +8 -0
- office365/teams/deleted.py +24 -0
- office365/teams/work.py +35 -0
- office365/directory/tenant_relationship.py +0 -23
- office365/onedrive/admin.py +0 -32
- office365/onedrive/workbooks/charts/legend.py +0 -7
- office365/onedrive/workbooks/charts/series.py +0 -5
- office365/sharepoint/portal/userprofiles/documents_shared_with_group.py +0 -11
- office365/sharepoint/tenant/administration/internal/web_appservice_principal.py +0 -23
- {Office365_REST_Python_Client-2.5.13.dist-info → Office365_REST_Python_Client-2.6.0.dist-info}/LICENSE +0 -0
- {Office365_REST_Python_Client-2.5.13.dist-info → Office365_REST_Python_Client-2.6.0.dist-info}/WHEEL +0 -0
- {Office365_REST_Python_Client-2.5.13.dist-info → Office365_REST_Python_Client-2.6.0.dist-info}/top_level.txt +0 -0
- /office365/{sharepoint/userprofiles/sharedwithme → admin}/__init__.py +0 -0
- /office365/{onedrive → admin}/sharepoint_settings.py +0 -0
- /office365/directory/{tenant_information.py → tenantinformation/information.py} +0 -0
- /office365/{base_item.py → onedrive/base_item.py} +0 -0
- /office365/onedrive/sitepages/{horizontal_section_column.py → sections/horizontal_column.py} +0 -0
- /office365/onedrive/sitepages/{vertical_section.py → sections/vertical.py} +0 -0
- /office365/sharepoint/portal/userprofiles/{documents_shared_with_me.py → documentsshared/with_me.py} +0 -0
- /office365/sharepoint/{userprofiles → portal/userprofiles}/sharedwithme/document_user.py +0 -0
- /office365/sharepoint/{userprofiles → portal/userprofiles}/sharedwithme/item_collection.py +0 -0
- /office365/sharepoint/{userprofiles → portal/userprofiles}/sharedwithme/view_item_removal_result.py +0 -0
- /office365/sharepoint/sites/{home_sites_details.py → home/details.py} +0 -0
- /office365/sharepoint/sites/{home_site_reference.py → home/reference.py} +0 -0
|
@@ -1,5 +1,34 @@
|
|
|
1
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
2
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
1
3
|
from office365.sharepoint.entity import Entity
|
|
4
|
+
from office365.sharepoint.tenant.insights.report_metadata import (
|
|
5
|
+
SPTenantIBInsightsReportMetadata,
|
|
6
|
+
)
|
|
2
7
|
|
|
3
8
|
|
|
4
9
|
class SPTenantIBInsightsReportManager(Entity):
|
|
5
10
|
""" """
|
|
11
|
+
|
|
12
|
+
def __init__(self, context):
|
|
13
|
+
static_path = ResourcePath(
|
|
14
|
+
"Microsoft.SharePoint.Insights.SPTenantIBInsightsReportManager"
|
|
15
|
+
)
|
|
16
|
+
super(SPTenantIBInsightsReportManager, self).__init__(context, static_path)
|
|
17
|
+
|
|
18
|
+
def create_report(self):
|
|
19
|
+
""""""
|
|
20
|
+
return_type = SPTenantIBInsightsReportMetadata(self.context)
|
|
21
|
+
qry = ServiceOperationQuery(
|
|
22
|
+
self,
|
|
23
|
+
"CreateReport",
|
|
24
|
+
None,
|
|
25
|
+
None,
|
|
26
|
+
None,
|
|
27
|
+
return_type,
|
|
28
|
+
)
|
|
29
|
+
self.context.add_query(qry)
|
|
30
|
+
return return_type
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def entity_type_name(self):
|
|
34
|
+
return "Microsoft.SharePoint.Insights.SPTenantIBInsightsReportManager"
|
|
@@ -107,14 +107,17 @@ class Office365Tenant(Entity):
|
|
|
107
107
|
return return_type
|
|
108
108
|
|
|
109
109
|
def set_block_download_file_type_policy_data(
|
|
110
|
-
self,
|
|
110
|
+
self,
|
|
111
|
+
block_download_file_type_policy,
|
|
112
|
+
file_type_ids,
|
|
113
|
+
excluded_block_download_group_ids,
|
|
111
114
|
):
|
|
112
115
|
# type: (bool, list[int], list[str]) -> Self
|
|
113
116
|
""""""
|
|
114
117
|
payload = {
|
|
115
|
-
"blockDownloadFileTypePolicy":
|
|
116
|
-
"fileTypeIds":
|
|
117
|
-
"excludedBlockDownloadGroupIds":
|
|
118
|
+
"blockDownloadFileTypePolicy": block_download_file_type_policy,
|
|
119
|
+
"fileTypeIds": file_type_ids,
|
|
120
|
+
"excludedBlockDownloadGroupIds": excluded_block_download_group_ids,
|
|
118
121
|
}
|
|
119
122
|
qry = ServiceOperationQuery(
|
|
120
123
|
self, "SetBlockDownloadFileTypePolicyData", None, payload
|
|
@@ -205,6 +208,8 @@ class Office365Tenant(Entity):
|
|
|
205
208
|
|
|
206
209
|
def _revoke_all_user_sessions(login_name):
|
|
207
210
|
"""
|
|
211
|
+
Logouts a user's sessions across all their devices
|
|
212
|
+
|
|
208
213
|
:type login_name: str
|
|
209
214
|
"""
|
|
210
215
|
qry = ServiceOperationQuery(
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from typing import Optional
|
|
2
2
|
|
|
3
|
+
from office365.runtime.client_result import ClientResult
|
|
3
4
|
from office365.runtime.paths.resource_path import ResourcePath
|
|
4
5
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
5
6
|
from office365.sharepoint.entity import Entity
|
|
@@ -16,6 +17,15 @@ class TenantSettings(Entity):
|
|
|
16
17
|
self.context.add_query(qry)
|
|
17
18
|
return self
|
|
18
19
|
|
|
20
|
+
def get_data_access_governance_report_config(self):
|
|
21
|
+
""" """
|
|
22
|
+
return_type = ClientResult(self.context, str())
|
|
23
|
+
qry = ServiceOperationQuery(
|
|
24
|
+
self, "GetDataAccessGovernanceReportConfig", None, None, None, return_type
|
|
25
|
+
)
|
|
26
|
+
self.context.add_query(qry)
|
|
27
|
+
return return_type
|
|
28
|
+
|
|
19
29
|
def set_corporate_catalog(self, url):
|
|
20
30
|
"""
|
|
21
31
|
:param str url:
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
from office365.runtime.client_result import ClientResult
|
|
2
|
+
from office365.runtime.client_value_collection import ClientValueCollection
|
|
3
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
1
4
|
from office365.sharepoint.entity import Entity
|
|
5
|
+
from office365.sharepoint.translation.job_info import TranslationJobInfo
|
|
2
6
|
|
|
3
7
|
|
|
4
8
|
class TranslationJobStatus(Entity):
|
|
@@ -7,6 +11,24 @@ class TranslationJobStatus(Entity):
|
|
|
7
11
|
TranslationJobInfo (section 3.1.5.4) and TranslationItemInfo (section 3.1.5.2) objects.
|
|
8
12
|
"""
|
|
9
13
|
|
|
14
|
+
@staticmethod
|
|
15
|
+
def get_all_jobs(context, return_type=None):
|
|
16
|
+
if return_type is None:
|
|
17
|
+
return_type = ClientResult(
|
|
18
|
+
context, ClientValueCollection(TranslationJobInfo)
|
|
19
|
+
)
|
|
20
|
+
qry = ServiceOperationQuery(
|
|
21
|
+
TranslationJobStatus(context),
|
|
22
|
+
"GetAllJobs",
|
|
23
|
+
None,
|
|
24
|
+
None,
|
|
25
|
+
None,
|
|
26
|
+
return_type,
|
|
27
|
+
True,
|
|
28
|
+
)
|
|
29
|
+
context.add_query(qry)
|
|
30
|
+
return return_type
|
|
31
|
+
|
|
10
32
|
@property
|
|
11
33
|
def entity_type_name(self):
|
|
12
34
|
return "SP.Translation.TranslationJobStatus"
|
|
@@ -107,6 +107,12 @@ class UserProfile(Entity):
|
|
|
107
107
|
"""Specifies the time for the personal site first creation attempt."""
|
|
108
108
|
return self.properties.get("PersonalSiteFirstCreationTime", datetime.min)
|
|
109
109
|
|
|
110
|
+
@property
|
|
111
|
+
def picture_url(self):
|
|
112
|
+
# type: () -> Optional[str]
|
|
113
|
+
"""Specifies the photo URL for the current user."""
|
|
114
|
+
return self.properties.get("PictureUrl", None)
|
|
115
|
+
|
|
110
116
|
@property
|
|
111
117
|
def public_url(self):
|
|
112
118
|
# type: () -> Optional[str]
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING
|
|
2
|
+
|
|
1
3
|
from office365.runtime.client_result import ClientResult
|
|
2
4
|
from office365.runtime.client_value_collection import ClientValueCollection
|
|
3
5
|
from office365.runtime.paths.resource_path import ResourcePath
|
|
@@ -8,6 +10,9 @@ from office365.sharepoint.files.file import File
|
|
|
8
10
|
from office365.sharepoint.types.resource_path import ResourcePath as SPResPath
|
|
9
11
|
from office365.sharepoint.utilities.principal_info import PrincipalInfo
|
|
10
12
|
|
|
13
|
+
if TYPE_CHECKING:
|
|
14
|
+
from office365.sharepoint.client_context import ClientContext
|
|
15
|
+
|
|
11
16
|
|
|
12
17
|
class Utility(Entity):
|
|
13
18
|
"""
|
|
@@ -161,6 +166,7 @@ class Utility(Entity):
|
|
|
161
166
|
|
|
162
167
|
@staticmethod
|
|
163
168
|
def log_custom_app_error(context, error):
|
|
169
|
+
# type: (ClientContext, str) -> ClientResult[int]
|
|
164
170
|
"""
|
|
165
171
|
Logs an error from a SharePoint Add-in. The return value indicates the success or failure of this operation.
|
|
166
172
|
These errors are of interest to administrators who monitor such apps (2).
|
|
@@ -4,6 +4,8 @@ from office365.runtime.queries.function import FunctionQuery
|
|
|
4
4
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
5
5
|
from office365.sharepoint.entity import Entity
|
|
6
6
|
from office365.sharepoint.viva.app_configuration import AppConfiguration
|
|
7
|
+
from office365.sharepoint.viva.connections_page import VivaConnectionsPage
|
|
8
|
+
from office365.sharepoint.viva.dashboard_configuration import DashboardConfiguration
|
|
7
9
|
from office365.sharepoint.viva.home import VivaHome
|
|
8
10
|
|
|
9
11
|
|
|
@@ -18,13 +20,31 @@ class EmployeeEngagement(Entity):
|
|
|
18
20
|
:param str override_language_code:
|
|
19
21
|
"""
|
|
20
22
|
return_type = ClientResult(self.context, str())
|
|
21
|
-
payload = {"
|
|
23
|
+
payload = {"override_language_code": override_language_code}
|
|
22
24
|
qry = ServiceOperationQuery(
|
|
23
25
|
self, "DashboardContent", None, payload, None, return_type
|
|
24
26
|
)
|
|
25
27
|
self.context.add_query(qry)
|
|
26
28
|
return return_type
|
|
27
29
|
|
|
30
|
+
def full_dashboard_content(
|
|
31
|
+
self, canvas_as_json=None, include_personalization_data=None
|
|
32
|
+
):
|
|
33
|
+
"""
|
|
34
|
+
:param bool canvas_as_json:
|
|
35
|
+
:param bool include_personalization_data:
|
|
36
|
+
"""
|
|
37
|
+
return_type = ClientResult(self.context, DashboardConfiguration())
|
|
38
|
+
payload = {
|
|
39
|
+
"canvasAsJson": canvas_as_json,
|
|
40
|
+
"includePersonalizationData": include_personalization_data,
|
|
41
|
+
}
|
|
42
|
+
qry = ServiceOperationQuery(
|
|
43
|
+
self, "FullDashboardContent", None, payload, None, return_type
|
|
44
|
+
)
|
|
45
|
+
self.context.add_query(qry)
|
|
46
|
+
return return_type
|
|
47
|
+
|
|
28
48
|
def viva_home_configuration(self):
|
|
29
49
|
return_type = ClientResult(self.context, {})
|
|
30
50
|
qry = FunctionQuery(self, "VivaHomeConfiguration", None, return_type)
|
|
@@ -45,3 +65,21 @@ class EmployeeEngagement(Entity):
|
|
|
45
65
|
self.context, ResourcePath("AppConfiguration", self.resource_path)
|
|
46
66
|
),
|
|
47
67
|
)
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def viva_connections_page(self):
|
|
71
|
+
return self.properties.get(
|
|
72
|
+
"VivaConnectionsPage",
|
|
73
|
+
VivaConnectionsPage(
|
|
74
|
+
self.context, ResourcePath("VivaConnectionsPage", self.resource_path)
|
|
75
|
+
),
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
def get_property(self, name, default_value=None):
|
|
79
|
+
if default_value is None:
|
|
80
|
+
property_mapping = {
|
|
81
|
+
"AppConfiguration": self.app_configuration,
|
|
82
|
+
"VivaConnectionsPage": self.viva_connections_page,
|
|
83
|
+
}
|
|
84
|
+
default_value = property_mapping.get(name, None)
|
|
85
|
+
return super(EmployeeEngagement, self).get_property(name, default_value)
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
from office365.runtime.client_value import ClientValue
|
|
2
|
+
from office365.runtime.types.collections import StringCollection
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
class TileData(ClientValue):
|
|
5
6
|
"""Represents a Tile that describes a graphical link the user can click."""
|
|
7
|
+
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
background_collage_image_locations=None,
|
|
11
|
+
background_image_location=None,
|
|
12
|
+
background_image_renders_as_icon=None,
|
|
13
|
+
body_text=None,
|
|
14
|
+
description=None,
|
|
15
|
+
hover_disabled=None,
|
|
16
|
+
id_=None,
|
|
17
|
+
):
|
|
18
|
+
self.BackgroundCollageImageLocations = StringCollection(
|
|
19
|
+
background_collage_image_locations
|
|
20
|
+
)
|
|
21
|
+
self.BackgroundImageLocation = background_image_location
|
|
22
|
+
self.BackgroundImageRendersAsIcon = background_image_renders_as_icon
|
|
23
|
+
self.BodyText = body_text
|
|
24
|
+
self.Description = description
|
|
25
|
+
self.HoverDisabled = hover_disabled
|
|
26
|
+
self.ID = id_
|
|
@@ -1,7 +1,72 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
from typing import Optional
|
|
3
|
+
|
|
1
4
|
from office365.sharepoint.entity import Entity
|
|
2
5
|
|
|
3
6
|
|
|
4
7
|
class WebInformation(Entity):
|
|
5
8
|
"""Specifies metadata about a site"""
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
def __repr__(self):
|
|
11
|
+
return self.server_relative_url or self.entity_type_name
|
|
12
|
+
|
|
13
|
+
@property
|
|
14
|
+
def configuration(self):
|
|
15
|
+
# type: () -> Optional[str]
|
|
16
|
+
"""Specifies the identifier (ID) of the site definition configuration that was used to create the site"""
|
|
17
|
+
return self.properties.get("Configuration", None)
|
|
18
|
+
|
|
19
|
+
@property
|
|
20
|
+
def created(self):
|
|
21
|
+
# type: () -> Optional[datetime]
|
|
22
|
+
"""Specifies when the site (2) was created."""
|
|
23
|
+
return self.properties.get("Created", datetime.min)
|
|
24
|
+
|
|
25
|
+
@property
|
|
26
|
+
def description(self):
|
|
27
|
+
# type: () -> Optional[str]
|
|
28
|
+
"""Specifies the description for the site"""
|
|
29
|
+
return self.properties.get("Description", None)
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def id(self):
|
|
33
|
+
# type: () -> Optional[str]
|
|
34
|
+
"""Specifies the site identifier for the site"""
|
|
35
|
+
return self.properties.get("Id", None)
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def language(self):
|
|
39
|
+
# type: () -> Optional[int]
|
|
40
|
+
"""Specifies the language code identifier (LCID) for the language that is used on the site"""
|
|
41
|
+
return self.properties.get("Language", None)
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def last_item_modified_date(self):
|
|
45
|
+
# type: () -> Optional[datetime]
|
|
46
|
+
"""Gets the date and time that an item was last modified in the site by a non-system update.
|
|
47
|
+
A non-system update is a change to a list item that is visible to end users."""
|
|
48
|
+
return self.properties.get("LastItemModifiedDate", datetime.min)
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def server_relative_url(self):
|
|
52
|
+
# type: () -> Optional[str]
|
|
53
|
+
"""Specifies the server-relative URL of the site"""
|
|
54
|
+
return self.properties.get("ServerRelativeUrl", None)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def title(self):
|
|
58
|
+
# type: () -> Optional[str]
|
|
59
|
+
"""Specifies the title for the site. Its length MUST be equal to or less than 255."""
|
|
60
|
+
return self.properties.get("Title", None)
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def web_template(self):
|
|
64
|
+
# type: () -> Optional[str]
|
|
65
|
+
"""Specifies the name of the site template that was used to create the site."""
|
|
66
|
+
return self.properties.get("WebTemplate", None)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def web_template_id(self):
|
|
70
|
+
# type: () -> Optional[int]
|
|
71
|
+
"""Specifies the identifier of the site template that was used to create the site"""
|
|
72
|
+
return self.properties.get("WebTemplateId", None)
|
|
@@ -108,6 +108,38 @@ class RegionalSettings(Entity):
|
|
|
108
108
|
""" """
|
|
109
109
|
return self.properties.get("NegativeSign", None)
|
|
110
110
|
|
|
111
|
+
@property
|
|
112
|
+
def neg_number_mode(self):
|
|
113
|
+
# type: () -> Optional[int]
|
|
114
|
+
"""Specifies the negative number mode that is used for displaying negative numbers in calculated fields
|
|
115
|
+
based on the locale of the server."""
|
|
116
|
+
return self.properties.get("NegNumberMode", None)
|
|
117
|
+
|
|
118
|
+
@property
|
|
119
|
+
def pm(self):
|
|
120
|
+
# type: () -> Optional[str]
|
|
121
|
+
"""Specifies the string that is used to represent time after noon on the site"""
|
|
122
|
+
return self.properties.get("PM", None)
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
def positive_sign(self):
|
|
126
|
+
# type: () -> Optional[str]
|
|
127
|
+
"""Specifies the symbol that is used to represent a positive number on the site"""
|
|
128
|
+
return self.properties.get("PositiveSign", None)
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def show_weeks(self):
|
|
132
|
+
# type: () -> Optional[bool]
|
|
133
|
+
"""Specifies whether to display the week number in day or week views of a calendar."""
|
|
134
|
+
return self.properties.get("ShowWeeks", None)
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def thousand_separator(self):
|
|
138
|
+
# type: () -> Optional[str]
|
|
139
|
+
"""Specifies the symbol that is used to separate thousands for numbers on the site. For example,
|
|
140
|
+
if the symbol is "," the number 123456789 would appear as "123,456,789"."""
|
|
141
|
+
return self.properties.get("ThousandSeparator", None)
|
|
142
|
+
|
|
111
143
|
@property
|
|
112
144
|
def work_days(self):
|
|
113
145
|
# type: () -> Optional[int]
|
|
File without changes
|
|
@@ -44,7 +44,7 @@ class TimeZone(Entity):
|
|
|
44
44
|
return self.properties.get("Information", TimeZoneInformation())
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
class TimeZoneCollection(EntityCollection):
|
|
47
|
+
class TimeZoneCollection(EntityCollection[TimeZone]):
|
|
48
48
|
"""TimeZone collection"""
|
|
49
49
|
|
|
50
50
|
def __init__(self, context, resource_path=None):
|
office365/sharepoint/webs/web.py
CHANGED
|
@@ -6,6 +6,7 @@ from office365.runtime.client_result import ClientResult
|
|
|
6
6
|
from office365.runtime.client_value_collection import ClientValueCollection
|
|
7
7
|
from office365.runtime.paths.resource_path import ResourcePath
|
|
8
8
|
from office365.runtime.paths.service_operation import ServiceOperationPath
|
|
9
|
+
from office365.runtime.queries.client_query import ClientQuery
|
|
9
10
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
10
11
|
from office365.runtime.types.collections import StringCollection
|
|
11
12
|
from office365.sharepoint.activities.entity import SPActivityEntity
|
|
@@ -51,8 +52,12 @@ from office365.sharepoint.lists.document_library_information import (
|
|
|
51
52
|
)
|
|
52
53
|
from office365.sharepoint.lists.get_parameters import GetListsParameters
|
|
53
54
|
from office365.sharepoint.lists.list import List
|
|
55
|
+
from office365.sharepoint.lists.render_data_parameters import RenderListDataParameters
|
|
54
56
|
from office365.sharepoint.lists.template_collection import ListTemplateCollection
|
|
55
57
|
from office365.sharepoint.lists.template_type import ListTemplateType
|
|
58
|
+
from office365.sharepoint.marketplace.corporatecuratedgallery.addins.principals_response import (
|
|
59
|
+
SPGetAddinPrincipalsResponse,
|
|
60
|
+
)
|
|
56
61
|
from office365.sharepoint.marketplace.corporatecuratedgallery.available_addins_response import (
|
|
57
62
|
SPAvailableAddinsResponse,
|
|
58
63
|
)
|
|
@@ -101,6 +106,9 @@ from office365.sharepoint.views.view import View
|
|
|
101
106
|
from office365.sharepoint.webparts.client.collection import ClientWebPartCollection
|
|
102
107
|
from office365.sharepoint.webs.calendar_type import CalendarType
|
|
103
108
|
from office365.sharepoint.webs.context_web_information import ContextWebInformation
|
|
109
|
+
from office365.sharepoint.webs.dataleakage_prevention_status_info import (
|
|
110
|
+
SPDataLeakagePreventionStatusInfo,
|
|
111
|
+
)
|
|
104
112
|
from office365.sharepoint.webs.information_collection import WebInformationCollection
|
|
105
113
|
from office365.sharepoint.webs.modernize_homepage_result import ModernizeHomepageResult
|
|
106
114
|
from office365.sharepoint.webs.multilingual_settings import MultilingualSettings
|
|
@@ -159,6 +167,7 @@ class Web(SecurableObject):
|
|
|
159
167
|
return return_type
|
|
160
168
|
|
|
161
169
|
def add_cross_farm_message(self, message):
|
|
170
|
+
# type: (str) -> ClientResult[bool]
|
|
162
171
|
"""
|
|
163
172
|
:param str message:
|
|
164
173
|
"""
|
|
@@ -170,6 +179,30 @@ class Web(SecurableObject):
|
|
|
170
179
|
self.context.add_query(qry)
|
|
171
180
|
return return_type
|
|
172
181
|
|
|
182
|
+
def get_access_request_list(self):
|
|
183
|
+
""" """
|
|
184
|
+
return_type = List(self.context)
|
|
185
|
+
self.lists.add_child(return_type)
|
|
186
|
+
|
|
187
|
+
def _get_access_request_list():
|
|
188
|
+
return_type.set_property("Url", self.access_request_list_url)
|
|
189
|
+
|
|
190
|
+
self.ensure_properties(["AccessRequestListUrl"], _get_access_request_list)
|
|
191
|
+
return return_type
|
|
192
|
+
|
|
193
|
+
def get_document_by_doc_id(self, doc_id):
|
|
194
|
+
""" """
|
|
195
|
+
return_type = ClientResult(self.context)
|
|
196
|
+
qry = ClientQuery(self.context, return_type=return_type)
|
|
197
|
+
|
|
198
|
+
def _construct_request(request):
|
|
199
|
+
request.url = "{0}/_layouts/15/DocIdRedir.aspx?ID={1}".format(
|
|
200
|
+
self.context.base_url, doc_id
|
|
201
|
+
)
|
|
202
|
+
|
|
203
|
+
self.context.add_query(qry).before_query_execute(_construct_request)
|
|
204
|
+
return return_type
|
|
205
|
+
|
|
173
206
|
def get_site_script(
|
|
174
207
|
self,
|
|
175
208
|
include_branding=True,
|
|
@@ -211,6 +244,36 @@ class Web(SecurableObject):
|
|
|
211
244
|
self.context.add_query(qry)
|
|
212
245
|
return return_type
|
|
213
246
|
|
|
247
|
+
def get_list_data_as_stream(self, path, view_xml=None):
|
|
248
|
+
"""Returns list data from the specified list url and for the specified query parameters.
|
|
249
|
+
|
|
250
|
+
:param str path: A string that contains the site-relative URL for a list, for example, /Lists/Announcements.
|
|
251
|
+
:param str view_xml:
|
|
252
|
+
"""
|
|
253
|
+
if view_xml is None:
|
|
254
|
+
view_xml = "<View><Query></Query></View>"
|
|
255
|
+
return_type = ClientResult(self.context, dict())
|
|
256
|
+
|
|
257
|
+
def _get_list_data_as_stream():
|
|
258
|
+
list_abs_url = self.url + path
|
|
259
|
+
parameters = RenderListDataParameters(view_xml=view_xml)
|
|
260
|
+
List.get_list_data_as_stream(
|
|
261
|
+
self.context, list_abs_url, parameters, return_type=return_type
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
self.ensure_property("Url", _get_list_data_as_stream)
|
|
265
|
+
return return_type
|
|
266
|
+
|
|
267
|
+
def get_onedrive_list_data_as_stream(self, view_xml=None):
|
|
268
|
+
"""Returns list data from the specified list url and for the specified query parameters.
|
|
269
|
+
|
|
270
|
+
:param str view_xml:
|
|
271
|
+
"""
|
|
272
|
+
if view_xml is None:
|
|
273
|
+
view_xml = RenderListDataParameters()
|
|
274
|
+
view_xml.ViewXml = "<View><Query></Query></View>"
|
|
275
|
+
return List.get_onedrive_list_data_as_stream(self.context, view_xml)
|
|
276
|
+
|
|
214
277
|
def get_list_operation(self, list_id, operation_id):
|
|
215
278
|
# type: (str, str) -> SPLargeOperation
|
|
216
279
|
""" """
|
|
@@ -480,6 +543,26 @@ class Web(SecurableObject):
|
|
|
480
543
|
self.context.add_query(qry)
|
|
481
544
|
return return_type
|
|
482
545
|
|
|
546
|
+
def get_addin_principals_having_permissions_in_sites(
|
|
547
|
+
self, server_relative_urls=None, urls=None
|
|
548
|
+
):
|
|
549
|
+
"""
|
|
550
|
+
:param list[str] server_relative_urls:
|
|
551
|
+
:param list[str] urls:
|
|
552
|
+
"""
|
|
553
|
+
payload = {"serverRelativeUrls": server_relative_urls, "urls": urls}
|
|
554
|
+
return_type = ClientResult(self.context, SPGetAddinPrincipalsResponse())
|
|
555
|
+
qry = ServiceOperationQuery(
|
|
556
|
+
self,
|
|
557
|
+
"GetAddinPrincipalsHavingPermissionsInSites",
|
|
558
|
+
None,
|
|
559
|
+
payload,
|
|
560
|
+
None,
|
|
561
|
+
return_type,
|
|
562
|
+
)
|
|
563
|
+
self.context.add_query(qry)
|
|
564
|
+
return return_type
|
|
565
|
+
|
|
483
566
|
def get_app_bdc_catalog(self):
|
|
484
567
|
"""
|
|
485
568
|
Returns the Business Data Connectivity (BDC) MetadataCatalog for an application that gives access to the
|
|
@@ -585,6 +668,42 @@ class Web(SecurableObject):
|
|
|
585
668
|
self.context.add_query(qry)
|
|
586
669
|
return return_type
|
|
587
670
|
|
|
671
|
+
def get_recycle_bin_items_by_query_info(
|
|
672
|
+
self,
|
|
673
|
+
is_ascending=True,
|
|
674
|
+
item_state=None,
|
|
675
|
+
order_by=None,
|
|
676
|
+
paging_info=None,
|
|
677
|
+
row_limit=100,
|
|
678
|
+
show_only_my_items=False,
|
|
679
|
+
):
|
|
680
|
+
"""
|
|
681
|
+
Gets the recycle bin items that are based on the specified query.
|
|
682
|
+
|
|
683
|
+
:param str paging_info: an Object that is used to obtain the next set of rows in a paged view of the Recycle Bin
|
|
684
|
+
:param int row_limit: a limit for the number of items returned in the query per page.
|
|
685
|
+
:param bool is_ascending: a Boolean value that specifies whether to sort in ascending order.
|
|
686
|
+
:param int order_by: the column by which to order the Recycle Bin query.
|
|
687
|
+
:param int item_state: Recycle Bin stage of items to return in the query.
|
|
688
|
+
:param bool show_only_my_items:
|
|
689
|
+
"""
|
|
690
|
+
return_type = RecycleBinItemCollection(
|
|
691
|
+
self.context, self.recycle_bin.resource_path
|
|
692
|
+
)
|
|
693
|
+
payload = {
|
|
694
|
+
"rowLimit": row_limit,
|
|
695
|
+
"isAscending": is_ascending,
|
|
696
|
+
"pagingInfo": paging_info,
|
|
697
|
+
"orderBy": order_by,
|
|
698
|
+
"itemState": item_state,
|
|
699
|
+
"ShowOnlyMyItems": show_only_my_items,
|
|
700
|
+
}
|
|
701
|
+
qry = ServiceOperationQuery(
|
|
702
|
+
self, "GetRecycleBinItemsByQueryInfo", None, payload, None, return_type
|
|
703
|
+
)
|
|
704
|
+
self.context.add_query(qry)
|
|
705
|
+
return return_type
|
|
706
|
+
|
|
588
707
|
def get_all_webs(self):
|
|
589
708
|
"""Returns a collection containing a flat list of all Web objects in the Web."""
|
|
590
709
|
from office365.sharepoint.webs.collection import WebCollection
|
|
@@ -1262,6 +1381,7 @@ class Web(SecurableObject):
|
|
|
1262
1381
|
display_format=DateTimeFieldFormatType.DateTime,
|
|
1263
1382
|
calendar_type=CalendarType.None_,
|
|
1264
1383
|
):
|
|
1384
|
+
# type: (str, int, int) -> ClientResult[str]
|
|
1265
1385
|
"""
|
|
1266
1386
|
Returns parsed DateTime value.
|
|
1267
1387
|
|
|
@@ -1932,6 +2052,7 @@ class Web(SecurableObject):
|
|
|
1932
2052
|
@property
|
|
1933
2053
|
def access_request_list_url(self):
|
|
1934
2054
|
# type: () -> Optional[str]
|
|
2055
|
+
"""Gets the URL of the access request list to the current site"""
|
|
1935
2056
|
return self.properties.get("AccessRequestListUrl", None)
|
|
1936
2057
|
|
|
1937
2058
|
@property
|
|
@@ -2139,6 +2260,16 @@ class Web(SecurableObject):
|
|
|
2139
2260
|
"""
|
|
2140
2261
|
return self.properties.get("Configuration", None)
|
|
2141
2262
|
|
|
2263
|
+
@property
|
|
2264
|
+
def data_leakage_prevention_status_info(self):
|
|
2265
|
+
return self.properties.get(
|
|
2266
|
+
"DataLeakagePreventionStatusInfo",
|
|
2267
|
+
SPDataLeakagePreventionStatusInfo(
|
|
2268
|
+
self.context,
|
|
2269
|
+
ResourcePath("DataLeakagePreventionStatusInfo", self.resource_path),
|
|
2270
|
+
),
|
|
2271
|
+
)
|
|
2272
|
+
|
|
2142
2273
|
@property
|
|
2143
2274
|
def description_resource(self):
|
|
2144
2275
|
"""A UserResource object that represents the description of this web."""
|
|
@@ -2504,6 +2635,11 @@ class Web(SecurableObject):
|
|
|
2504
2635
|
"""Specifies whether the tree view is enabled on the site"""
|
|
2505
2636
|
return self.properties.get("TreeViewEnabled", None)
|
|
2506
2637
|
|
|
2638
|
+
@property
|
|
2639
|
+
def taxonomy_list(self):
|
|
2640
|
+
"""A special list that stores the mapping between taxonomy term IDs and their corresponding values"""
|
|
2641
|
+
return self.lists.get_by_title("TaxonomyHiddenList")
|
|
2642
|
+
|
|
2507
2643
|
def get_property(self, name, default_value=None):
|
|
2508
2644
|
if default_value is None:
|
|
2509
2645
|
property_mapping = {
|
|
@@ -2517,6 +2653,7 @@ class Web(SecurableObject):
|
|
|
2517
2653
|
"ContentTypes": self.content_types,
|
|
2518
2654
|
"ClientWebParts": self.client_web_parts,
|
|
2519
2655
|
"CurrentUser": self.current_user,
|
|
2656
|
+
"DataLeakagePreventionStatusInfo": self.data_leakage_prevention_status_info,
|
|
2520
2657
|
"DescriptionResource": self.description_resource,
|
|
2521
2658
|
"DescriptionTranslations": self.description_translations,
|
|
2522
2659
|
"EffectiveBasePermissions": self.effective_base_permissions,
|