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,9 +1,12 @@
|
|
|
1
|
+
from datetime import datetime
|
|
1
2
|
from typing import Optional
|
|
2
3
|
|
|
3
4
|
from office365.onedrive.listitems.list_item import ListItem
|
|
5
|
+
from office365.runtime.client_value_collection import ClientValueCollection
|
|
4
6
|
from office365.runtime.paths.service_operation import ServiceOperationPath
|
|
5
7
|
from office365.runtime.paths.v3.entity import EntityPath
|
|
6
8
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
9
|
+
from office365.runtime.types.collections import StringCollection
|
|
7
10
|
from office365.sharepoint.client_context import ClientContext
|
|
8
11
|
from office365.sharepoint.entity import Entity
|
|
9
12
|
from office365.sharepoint.internal.paths.static_operation import StaticOperationPath
|
|
@@ -11,6 +14,7 @@ from office365.sharepoint.tenant.administration.deny_add_and_customize_pages_sta
|
|
|
11
14
|
DenyAddAndCustomizePagesStatus,
|
|
12
15
|
)
|
|
13
16
|
from office365.sharepoint.tenant.administration.spo_operation import SpoOperation
|
|
17
|
+
from office365.sharepoint.translation.resource_entry import SPResourceEntry
|
|
14
18
|
|
|
15
19
|
|
|
16
20
|
class SiteProperties(Entity):
|
|
@@ -96,6 +100,38 @@ class SiteProperties(Entity):
|
|
|
96
100
|
"""Gets site version policy for new document libraries."""
|
|
97
101
|
return self.properties.get("ArchivedBy", None)
|
|
98
102
|
|
|
103
|
+
@property
|
|
104
|
+
def archived_time(self):
|
|
105
|
+
# type: () -> Optional[datetime]
|
|
106
|
+
"""Gets the time when site was archived."""
|
|
107
|
+
return self.properties.get("ArchivedTime", datetime.min)
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def block_download_links_file_type(self):
|
|
111
|
+
# type: () -> Optional[int]
|
|
112
|
+
"""Block downloads for view-only files in SharePoint and OneDrive."""
|
|
113
|
+
return self.properties.get("BlockDownloadLinksFileType", None)
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def block_download_microsoft365_group_ids(self):
|
|
117
|
+
# type: () -> Optional[StringCollection]
|
|
118
|
+
"""Block downloads for view-only files in SharePoint and OneDrive."""
|
|
119
|
+
return self.properties.get(
|
|
120
|
+
"BlockDownloadMicrosoft365GroupIds", StringCollection()
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def block_download_policy_file_type_ids(self):
|
|
125
|
+
# type: () -> Optional[StringCollection]
|
|
126
|
+
""""""
|
|
127
|
+
return self.properties.get("BlockDownloadPolicyFileTypeIds", StringCollection())
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def created_time(self):
|
|
131
|
+
# type: () -> Optional[datetime]
|
|
132
|
+
"""Gets the time when the site was created."""
|
|
133
|
+
return self.properties.get("CreatedTime", datetime.min)
|
|
134
|
+
|
|
99
135
|
@property
|
|
100
136
|
def deny_add_and_customize_pages(self):
|
|
101
137
|
# type: () -> Optional[int]
|
|
@@ -110,6 +146,38 @@ class SiteProperties(Entity):
|
|
|
110
146
|
"""Sets the status of the [DenyAddAndCustomizePages] feature on a site collection."""
|
|
111
147
|
self.set_property("DenyAddAndCustomizePages", value)
|
|
112
148
|
|
|
149
|
+
@property
|
|
150
|
+
def last_content_modified_date(self):
|
|
151
|
+
# type: () -> Optional[datetime]
|
|
152
|
+
"""Gets the last time content was modified on the site."""
|
|
153
|
+
return self.properties.get("LastContentModifiedDate", datetime.min)
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
def group_owner_login_name(self):
|
|
157
|
+
# type: () -> Optional[str]
|
|
158
|
+
"""Gets the Group Owner login name."""
|
|
159
|
+
return self.properties.get("GroupOwnerLoginName", None)
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
def is_hub_site(self):
|
|
163
|
+
# type: () -> Optional[bool]
|
|
164
|
+
""""""
|
|
165
|
+
return self.properties.get("IsHubSite", None)
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def title(self):
|
|
169
|
+
# type: () -> Optional[str]
|
|
170
|
+
"""Site title"""
|
|
171
|
+
return self.properties.get("Title", None)
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
def title_translations(self):
|
|
175
|
+
# type: () -> Optional[str]
|
|
176
|
+
"""Site titles"""
|
|
177
|
+
return self.properties.get(
|
|
178
|
+
"TitleTranslations", ClientValueCollection(SPResourceEntry)
|
|
179
|
+
)
|
|
180
|
+
|
|
113
181
|
@property
|
|
114
182
|
def owner_login_name(self):
|
|
115
183
|
# type: () -> Optional[str]
|
|
@@ -173,6 +241,16 @@ class SiteProperties(Entity):
|
|
|
173
241
|
# type: () -> str
|
|
174
242
|
return "Microsoft.Online.SharePoint.TenantAdministration.SiteProperties"
|
|
175
243
|
|
|
244
|
+
def get_property(self, name, default_value=None):
|
|
245
|
+
if default_value is None:
|
|
246
|
+
property_mapping = {
|
|
247
|
+
"ArchivedTime": self.archived_time,
|
|
248
|
+
"CreatedTime": self.created_time,
|
|
249
|
+
"LastContentModifiedDate": self.last_content_modified_date,
|
|
250
|
+
}
|
|
251
|
+
default_value = property_mapping.get(name, None)
|
|
252
|
+
return super(SiteProperties, self).get_property(name, default_value)
|
|
253
|
+
|
|
176
254
|
def set_property(self, name, value, persist_changes=True):
|
|
177
255
|
super(SiteProperties, self).set_property(name, value, persist_changes)
|
|
178
256
|
# fallback: create a new resource path
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
from office365.runtime.client_result import ClientResult
|
|
2
|
+
from office365.runtime.client_value_collection import ClientValueCollection
|
|
2
3
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
3
4
|
from office365.sharepoint.entity_collection import EntityCollection
|
|
5
|
+
from office365.sharepoint.tenant.administration.site_user_group_info import (
|
|
6
|
+
SiteUserGroupInfo,
|
|
7
|
+
)
|
|
4
8
|
from office365.sharepoint.tenant.administration.sites.properties import SiteProperties
|
|
5
9
|
from office365.sharepoint.tenant.administration.sites.state_properties import (
|
|
6
10
|
SiteStateProperties,
|
|
@@ -48,6 +52,21 @@ class SitePropertiesCollection(EntityCollection[SiteProperties]):
|
|
|
48
52
|
self.context.add_query(qry)
|
|
49
53
|
return return_type
|
|
50
54
|
|
|
55
|
+
def get_site_user_groups(self, site_id):
|
|
56
|
+
"""
|
|
57
|
+
Gets site user groups.
|
|
58
|
+
|
|
59
|
+
:param str site_id: Site identifier
|
|
60
|
+
"""
|
|
61
|
+
return_type = ClientResult(
|
|
62
|
+
self.context, ClientValueCollection(SiteUserGroupInfo)
|
|
63
|
+
)
|
|
64
|
+
qry = ServiceOperationQuery(
|
|
65
|
+
self, "GetSiteUserGroups", [site_id], None, None, return_type
|
|
66
|
+
)
|
|
67
|
+
self.context.add_query(qry)
|
|
68
|
+
return return_type
|
|
69
|
+
|
|
51
70
|
def check_site_is_archived_by_id(self, site_id):
|
|
52
71
|
"""
|
|
53
72
|
:param str site_id: Site identifier
|
|
@@ -17,7 +17,7 @@ from office365.sharepoint.lists.render_override_parameters import (
|
|
|
17
17
|
RenderListDataOverrideParameters,
|
|
18
18
|
)
|
|
19
19
|
from office365.sharepoint.publishing.portal_health_status import PortalHealthStatus
|
|
20
|
-
from office365.sharepoint.sites.
|
|
20
|
+
from office365.sharepoint.sites.home.details import HomeSitesDetails
|
|
21
21
|
from office365.sharepoint.sites.site import Site
|
|
22
22
|
from office365.sharepoint.tenant.administration.collaboration.insights_data import (
|
|
23
23
|
CollaborationInsightsData,
|
|
@@ -34,6 +34,9 @@ from office365.sharepoint.tenant.administration.insights.onedrive_site_sharing i
|
|
|
34
34
|
from office365.sharepoint.tenant.administration.insights.top_files_sharing import (
|
|
35
35
|
TopFilesSharingInsights,
|
|
36
36
|
)
|
|
37
|
+
from office365.sharepoint.tenant.administration.policies.app_billing_properties import (
|
|
38
|
+
SPOAppBillingProperties,
|
|
39
|
+
)
|
|
37
40
|
from office365.sharepoint.tenant.administration.policies.definition import (
|
|
38
41
|
TenantAdminPolicyDefinition,
|
|
39
42
|
)
|
|
@@ -88,8 +91,28 @@ class Tenant(Entity):
|
|
|
88
91
|
)
|
|
89
92
|
super(Tenant, self).__init__(context, static_path)
|
|
90
93
|
|
|
94
|
+
def accept_syntex_repository_terms_of_service(self):
|
|
95
|
+
"""
|
|
96
|
+
Used to accept the Microsoft Syntex repository terms of service for your organization.
|
|
97
|
+
This acceptance is often necessary for enabling features related to document processing or repositories
|
|
98
|
+
in Microsoft Syntex.
|
|
99
|
+
"""
|
|
100
|
+
qry = ServiceOperationQuery(self, "AcceptSyntexRepositoryTermsOfService")
|
|
101
|
+
self.context.add_query(qry)
|
|
102
|
+
return self
|
|
103
|
+
|
|
104
|
+
def activate_application_billing_policy(self, billing_policy_id):
|
|
105
|
+
""" """
|
|
106
|
+
payload = {"billingPolicyId": billing_policy_id}
|
|
107
|
+
return_type = ClientResult(self.context, SPOAppBillingProperties())
|
|
108
|
+
qry = ServiceOperationQuery(
|
|
109
|
+
self, "ActivateApplicationBillingPolicy", None, payload, None, return_type
|
|
110
|
+
)
|
|
111
|
+
self.context.add_query(qry)
|
|
112
|
+
return return_type
|
|
113
|
+
|
|
91
114
|
def add_recent_admin_action_report(self):
|
|
92
|
-
""""""
|
|
115
|
+
"""Logs recent administrative actions within a SharePoint Online tenant"""
|
|
93
116
|
return_type = ClientResult(self.context, RecentAdminActionReport())
|
|
94
117
|
payload = {"payload": RecentAdminActionReportPayload()}
|
|
95
118
|
qry = ServiceOperationQuery(
|
|
@@ -121,6 +144,9 @@ class Tenant(Entity):
|
|
|
121
144
|
|
|
122
145
|
def delete_policy_definition(self, item_id):
|
|
123
146
|
"""
|
|
147
|
+
Deletes a policy definition from a Microsoft 365 tenant.
|
|
148
|
+
Policy definitions may refer to specific settings related to compliance, security,
|
|
149
|
+
or site governance (such as site or group creation policies).
|
|
124
150
|
:param int item_id:
|
|
125
151
|
"""
|
|
126
152
|
qry = ServiceOperationQuery(
|
|
@@ -140,6 +166,7 @@ class Tenant(Entity):
|
|
|
140
166
|
return self
|
|
141
167
|
|
|
142
168
|
def get_spo_tenant_all_web_templates(self):
|
|
169
|
+
""" """
|
|
143
170
|
return_type = SPOTenantWebTemplateCollection(self.context)
|
|
144
171
|
qry = ServiceOperationQuery(
|
|
145
172
|
self, "GetSPOTenantAllWebTemplates", None, None, None, return_type
|
|
@@ -148,6 +175,7 @@ class Tenant(Entity):
|
|
|
148
175
|
return return_type
|
|
149
176
|
|
|
150
177
|
def get_onedrive_site_sharing_insights(self, query_mode):
|
|
178
|
+
"""Retrieves insights or reports related to OneDrive for Business site sharing activities"""
|
|
151
179
|
return_type = ClientResult(self.context, OneDriveSiteSharingInsights())
|
|
152
180
|
payload = {"queryMode": query_mode}
|
|
153
181
|
qry = ServiceOperationQuery(
|
|
@@ -181,6 +209,7 @@ class Tenant(Entity):
|
|
|
181
209
|
return return_type
|
|
182
210
|
|
|
183
211
|
def render_recent_admin_actions(self):
|
|
212
|
+
""" """
|
|
184
213
|
return_type = ClientResult(self.context)
|
|
185
214
|
payload = {
|
|
186
215
|
"parameters": RenderListDataParameters(),
|
|
@@ -192,8 +221,20 @@ class Tenant(Entity):
|
|
|
192
221
|
self.context.add_query(qry)
|
|
193
222
|
return return_type
|
|
194
223
|
|
|
195
|
-
def
|
|
224
|
+
def get_spo_app_billing_policies(self):
|
|
225
|
+
""" """
|
|
226
|
+
return_type = ClientResult(
|
|
227
|
+
self.context, ClientValueCollection(SPOAppBillingProperties)
|
|
228
|
+
)
|
|
229
|
+
qry = ServiceOperationQuery(
|
|
230
|
+
self, "GetSPOAppBillingPolicies", None, None, None, return_type
|
|
231
|
+
)
|
|
232
|
+
self.context.add_query(qry)
|
|
233
|
+
return return_type
|
|
234
|
+
|
|
235
|
+
def get_top_files_sharing_insights(self, query_mode=None):
|
|
196
236
|
"""
|
|
237
|
+
Retrieves a report or data about the most shared files within a SharePoint Online tenant
|
|
197
238
|
:param int query_mode:
|
|
198
239
|
"""
|
|
199
240
|
payload = {"queryMode": query_mode}
|
|
@@ -229,6 +270,7 @@ class Tenant(Entity):
|
|
|
229
270
|
|
|
230
271
|
def get_home_sites(self):
|
|
231
272
|
# type: () -> ClientResult[ClientValueCollection[HomeSitesDetails]]
|
|
273
|
+
"""Retrieves the Home Site that has been designated for your Microsoft 365 tenant."""
|
|
232
274
|
return_type = ClientResult(
|
|
233
275
|
self.context,
|
|
234
276
|
ClientValueCollection(HomeSitesDetails), # pylint: disable=E1120
|
|
@@ -238,6 +280,7 @@ class Tenant(Entity):
|
|
|
238
280
|
return return_type
|
|
239
281
|
|
|
240
282
|
def get_home_sites_details(self):
|
|
283
|
+
"""Retrieves detailed information about the Home Sites configured in a SharePoint Online tenant."""
|
|
241
284
|
return_type = ClientResult(
|
|
242
285
|
self.context, ClientValueCollection(HomeSitesDetails)
|
|
243
286
|
)
|
|
@@ -267,12 +310,23 @@ class Tenant(Entity):
|
|
|
267
310
|
self.context.add_query(qry)
|
|
268
311
|
return return_type
|
|
269
312
|
|
|
270
|
-
def export_to_csv(
|
|
313
|
+
def export_to_csv(
|
|
314
|
+
self, view_xml=None, time_zone_id=None, columns_info=None, list_name=None
|
|
315
|
+
):
|
|
271
316
|
"""
|
|
317
|
+
Exports tenant-level data to a CSV file.
|
|
272
318
|
:param str view_xml:
|
|
319
|
+
:param int time_zone_id:
|
|
320
|
+
:param list columns_info:
|
|
321
|
+
:param str list_name:
|
|
273
322
|
"""
|
|
274
323
|
return_type = ClientResult(self.context)
|
|
275
|
-
payload = {
|
|
324
|
+
payload = {
|
|
325
|
+
"viewXml": view_xml,
|
|
326
|
+
"timeZoneId": time_zone_id,
|
|
327
|
+
"columnsInfo": columns_info,
|
|
328
|
+
"listName": list_name,
|
|
329
|
+
}
|
|
276
330
|
qry = ServiceOperationQuery(
|
|
277
331
|
self, "ExportToCSV", None, payload, None, return_type
|
|
278
332
|
)
|
|
@@ -334,6 +388,43 @@ class Tenant(Entity):
|
|
|
334
388
|
self.context.add_query(qry)
|
|
335
389
|
return return_type
|
|
336
390
|
|
|
391
|
+
def get_ransomware_events_overview(self):
|
|
392
|
+
# type: () -> ClientResult[AnyStr]
|
|
393
|
+
""" """
|
|
394
|
+
return_type = ClientResult(self.context)
|
|
395
|
+
qry = ServiceOperationQuery(
|
|
396
|
+
self, "GetRansomwareEventsOverview", None, None, None, return_type
|
|
397
|
+
)
|
|
398
|
+
self.context.add_query(qry)
|
|
399
|
+
return return_type
|
|
400
|
+
|
|
401
|
+
def get_site_authorization_code_for_migration(self, endpoint_url):
|
|
402
|
+
return_type = ClientResult(self.context, str())
|
|
403
|
+
payload = {"endpointUrl": endpoint_url}
|
|
404
|
+
qry = ServiceOperationQuery(
|
|
405
|
+
self,
|
|
406
|
+
"GetSiteAuthorizationCodeForMigration",
|
|
407
|
+
None,
|
|
408
|
+
payload,
|
|
409
|
+
None,
|
|
410
|
+
return_type,
|
|
411
|
+
)
|
|
412
|
+
self.context.add_query(qry)
|
|
413
|
+
return return_type
|
|
414
|
+
|
|
415
|
+
def get_site_subscription_id(self):
|
|
416
|
+
return_type = ClientResult(self.context, str())
|
|
417
|
+
qry = ServiceOperationQuery(
|
|
418
|
+
self,
|
|
419
|
+
"GetSiteSubscriptionId",
|
|
420
|
+
None,
|
|
421
|
+
None,
|
|
422
|
+
None,
|
|
423
|
+
return_type,
|
|
424
|
+
)
|
|
425
|
+
self.context.add_query(qry)
|
|
426
|
+
return return_type
|
|
427
|
+
|
|
337
428
|
def get_sp_list_item_count(self, list_name):
|
|
338
429
|
# type: (str) -> ClientResult[int]
|
|
339
430
|
""" """
|
|
@@ -438,6 +529,7 @@ class Tenant(Entity):
|
|
|
438
529
|
|
|
439
530
|
def get_site_health_status(self, source_url):
|
|
440
531
|
"""
|
|
532
|
+
Checks the sitehealth of a specific SharePoint site or site collection in their tenant
|
|
441
533
|
:type source_url: str
|
|
442
534
|
"""
|
|
443
535
|
result = ClientResult(self.context, PortalHealthStatus())
|
|
@@ -598,6 +690,7 @@ class Tenant(Entity):
|
|
|
598
690
|
|
|
599
691
|
def reorder_home_sites(self, home_sites_site_ids):
|
|
600
692
|
"""
|
|
693
|
+
Reorders Home Sites within a SharePoint Online tenant
|
|
601
694
|
:param list[str] home_sites_site_ids:
|
|
602
695
|
"""
|
|
603
696
|
payload = {"homeSitesSiteIds": home_sites_site_ids}
|
|
@@ -621,6 +714,22 @@ class Tenant(Entity):
|
|
|
621
714
|
self.context.add_query(qry)
|
|
622
715
|
return return_type
|
|
623
716
|
|
|
717
|
+
def get_site_properties_by_site_id(self, site_id, include_detail=False):
|
|
718
|
+
# type: (str, bool) -> SiteProperties
|
|
719
|
+
"""
|
|
720
|
+
:param str site_id: A string that represents the site identifier.
|
|
721
|
+
:param bool include_detail: A Boolean value that indicates whether to include all of the SPSite properties.
|
|
722
|
+
"""
|
|
723
|
+
return_type = SiteProperties(self.context)
|
|
724
|
+
return_type.set_property("siteId", site_id, False)
|
|
725
|
+
self.sites.add_child(return_type)
|
|
726
|
+
payload = {"siteId": site_id, "includeDetail": include_detail}
|
|
727
|
+
qry = ServiceOperationQuery(
|
|
728
|
+
self, "GetSitePropertiesBySiteId", None, payload, None, return_type
|
|
729
|
+
)
|
|
730
|
+
self.context.add_query(qry)
|
|
731
|
+
return return_type
|
|
732
|
+
|
|
624
733
|
def get_site_properties_by_url(self, url, include_detail=False):
|
|
625
734
|
# type: (str, bool) -> SiteProperties
|
|
626
735
|
"""
|
|
@@ -659,9 +768,23 @@ class Tenant(Entity):
|
|
|
659
768
|
self.context.add_query(qry)
|
|
660
769
|
return return_type
|
|
661
770
|
|
|
771
|
+
def get_billing_policy_id_for_app(self, application_id):
|
|
772
|
+
""" """
|
|
773
|
+
return_type = ClientResult(self.context)
|
|
774
|
+
payload = {"applicationId": application_id}
|
|
775
|
+
qry = ServiceOperationQuery(
|
|
776
|
+
self, "GetBillingPolicyIdForApp", None, payload, None, return_type
|
|
777
|
+
)
|
|
778
|
+
self.context.add_query(qry)
|
|
779
|
+
return return_type
|
|
780
|
+
|
|
662
781
|
def connect_site_to_hub_site_by_id(self, site_url, hub_site_id):
|
|
663
782
|
# type: (str, str) -> Self
|
|
664
|
-
"""Connects Site to Hub Site
|
|
783
|
+
"""Connects Site to Hub Site
|
|
784
|
+
|
|
785
|
+
:param str site_url:
|
|
786
|
+
:param str hub_site_id:
|
|
787
|
+
"""
|
|
665
788
|
params = {"siteUrl": site_url, "hubSiteId": hub_site_id}
|
|
666
789
|
qry = ServiceOperationQuery(
|
|
667
790
|
self, "ConnectSiteToHubSiteById", None, params, None, None
|
|
@@ -669,6 +792,12 @@ class Tenant(Entity):
|
|
|
669
792
|
self.context.add_query(qry)
|
|
670
793
|
return self
|
|
671
794
|
|
|
795
|
+
def ensure_brand_center_feature(self):
|
|
796
|
+
"""Ensures that the Brand Center feature is enabled"""
|
|
797
|
+
qry = ServiceOperationQuery(self, "EnsureBrandCenterFeature")
|
|
798
|
+
self.context.add_query(qry)
|
|
799
|
+
return self
|
|
800
|
+
|
|
672
801
|
def send_email(self, site_url):
|
|
673
802
|
# type: (str) -> ClientResult[bool]
|
|
674
803
|
""" """
|
|
@@ -680,7 +809,7 @@ class Tenant(Entity):
|
|
|
680
809
|
|
|
681
810
|
@property
|
|
682
811
|
def admin_settings(self):
|
|
683
|
-
""" """
|
|
812
|
+
"""Manage various tenant-level settings related to SharePoint administration"""
|
|
684
813
|
from office365.sharepoint.tenant.administration.settings_service import (
|
|
685
814
|
TenantAdminSettingsService,
|
|
686
815
|
)
|
|
@@ -696,6 +825,24 @@ class Tenant(Entity):
|
|
|
696
825
|
|
|
697
826
|
return MigrationCenterServices(self.context)
|
|
698
827
|
|
|
828
|
+
@property
|
|
829
|
+
def comms_messages(self):
|
|
830
|
+
""" """
|
|
831
|
+
|
|
832
|
+
from office365.sharepoint.tenant.administration.coms.messages_service_proxy import (
|
|
833
|
+
Office365CommsMessagesServiceProxy,
|
|
834
|
+
)
|
|
835
|
+
|
|
836
|
+
return Office365CommsMessagesServiceProxy(self.context)
|
|
837
|
+
|
|
838
|
+
@property
|
|
839
|
+
def multi_geo(self):
|
|
840
|
+
""" """
|
|
841
|
+
|
|
842
|
+
from office365.sharepoint.multigeo.services import MultiGeoServices
|
|
843
|
+
|
|
844
|
+
return MultiGeoServices(self.context)
|
|
845
|
+
|
|
699
846
|
@property
|
|
700
847
|
def ai_builder_enabled(self):
|
|
701
848
|
# type: () -> Optional[str]
|
|
@@ -711,6 +858,7 @@ class Tenant(Entity):
|
|
|
711
858
|
|
|
712
859
|
@property
|
|
713
860
|
def _aggregated_site_collections_list(self):
|
|
861
|
+
""" """
|
|
714
862
|
return self.context.web.lists.get_by_title(
|
|
715
863
|
"DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECOLLECTIONS"
|
|
716
864
|
)
|
|
@@ -749,6 +897,69 @@ class Tenant(Entity):
|
|
|
749
897
|
""""""
|
|
750
898
|
return self.properties.get("DefaultContentCenterSite", SiteInfoForSitePicker())
|
|
751
899
|
|
|
900
|
+
@property
|
|
901
|
+
def information_barriers_suspension(self):
|
|
902
|
+
# type: () -> Optional[bool]
|
|
903
|
+
"""Gets information barriers in SharePoint and OneDrive in your organization"""
|
|
904
|
+
return self.properties.get("InformationBarriersSuspension", None)
|
|
905
|
+
|
|
906
|
+
@property
|
|
907
|
+
def ip_address_allow_list(self):
|
|
908
|
+
# type: () -> Optional[str]
|
|
909
|
+
"""Configures multiple IP addresses or IP address ranges (IPv4 or IPv6), that are recognized as trusted."""
|
|
910
|
+
return self.properties.get("IPAddressAllowList", None)
|
|
911
|
+
|
|
912
|
+
@property
|
|
913
|
+
def ip_address_enforcement(self):
|
|
914
|
+
# type: () -> Optional[bool]
|
|
915
|
+
"""Determines whether access from network locations that are defined by an administrator is allowed."""
|
|
916
|
+
return self.properties.get("IPAddressEnforcement", None)
|
|
917
|
+
|
|
918
|
+
@ip_address_enforcement.setter
|
|
919
|
+
def ip_address_enforcement(self, value):
|
|
920
|
+
# type: (bool) -> None
|
|
921
|
+
"""
|
|
922
|
+
Allows access from network locations that are defined by an administrator.
|
|
923
|
+
Before the IPAddressEnforcement parameter is set, make sure you add a valid IPv4 or IPv6 address to the
|
|
924
|
+
IPAddressAllowList parameter.
|
|
925
|
+
"""
|
|
926
|
+
self.set_property("IPAddressEnforcement", value)
|
|
927
|
+
|
|
928
|
+
@property
|
|
929
|
+
def no_access_redirect_url(self):
|
|
930
|
+
# type: () -> Optional[bool]
|
|
931
|
+
"""Specifies the URL of the redirected site for those site collections which have the locked state "NoAccess"""
|
|
932
|
+
return self.properties.get("NoAccessRedirectUrl", None)
|
|
933
|
+
|
|
934
|
+
@property
|
|
935
|
+
def notifications_in_share_point_enabled(self):
|
|
936
|
+
# type: () -> Optional[bool]
|
|
937
|
+
"""Enables or disables notifications in SharePoint."""
|
|
938
|
+
return self.properties.get("NotificationsInSharePointEnabled", None)
|
|
939
|
+
|
|
940
|
+
@property
|
|
941
|
+
def notify_owners_when_invitations_accepted(self):
|
|
942
|
+
# type: () -> Optional[bool]
|
|
943
|
+
"""When this parameter is set to true and when an external user accepts an invitation to a resource
|
|
944
|
+
in a user's OneDrive for Business, the OneDrive for Business owner is notified by e-mail.
|
|
945
|
+
"""
|
|
946
|
+
return self.properties.get("NotifyOwnersWhenInvitationsAccepted", None)
|
|
947
|
+
|
|
948
|
+
@property
|
|
949
|
+
def one_drive_storage_quota(self):
|
|
950
|
+
# type: () -> Optional[int]
|
|
951
|
+
"""Gets a default OneDrive for Business storage quota for the tenant. It will be used for new OneDrive
|
|
952
|
+
for Business sites created."""
|
|
953
|
+
return self.properties.get("OneDriveStorageQuota", None)
|
|
954
|
+
|
|
955
|
+
@property
|
|
956
|
+
def notify_owners_when_items_reshared(self):
|
|
957
|
+
# type: () -> Optional[bool]
|
|
958
|
+
"""When is set to true and another user re-shares a document from a
|
|
959
|
+
user's OneDrive for Business, the OneDrive for Business owner is notified by e-mail.
|
|
960
|
+
"""
|
|
961
|
+
return self.properties.get("NotifyOwnersWhenItemsReshared", None)
|
|
962
|
+
|
|
752
963
|
@property
|
|
753
964
|
def root_site_url(self):
|
|
754
965
|
# type: () -> Optional[str]
|
|
@@ -767,17 +978,39 @@ class Tenant(Entity):
|
|
|
767
978
|
|
|
768
979
|
@property
|
|
769
980
|
def cdn_api(self):
|
|
981
|
+
""" """
|
|
770
982
|
from office365.sharepoint.tenant.cdn_api import TenantCdnApi
|
|
771
983
|
|
|
772
984
|
return TenantCdnApi(self.context)
|
|
773
985
|
|
|
986
|
+
@property
|
|
987
|
+
def crawl_versions_info_provider(self):
|
|
988
|
+
"""Retrieves information about crawl versions for a tenant in SharePoint"""
|
|
989
|
+
|
|
990
|
+
from office365.sharepoint.search.administration.tenant_crawl_versions_info_provider import (
|
|
991
|
+
TenantCrawlVersionsInfoProvider,
|
|
992
|
+
)
|
|
993
|
+
|
|
994
|
+
return TenantCrawlVersionsInfoProvider(self.context)
|
|
995
|
+
|
|
774
996
|
@property
|
|
775
997
|
def syntex_billing_subscription_settings(self):
|
|
776
|
-
"""
|
|
998
|
+
"""
|
|
999
|
+
Manages billing and subscription details for Microsoft Syntex in SharePoint Online or Microsoft 365 environments
|
|
1000
|
+
"""
|
|
777
1001
|
return self.properties.get(
|
|
778
1002
|
"SyntexBillingSubscriptionSettings", SyntexBillingContext()
|
|
779
1003
|
)
|
|
780
1004
|
|
|
1005
|
+
@property
|
|
1006
|
+
def admin_endpoints(self):
|
|
1007
|
+
""" """
|
|
1008
|
+
from office365.sharepoint.tenant.administration.endpoints import (
|
|
1009
|
+
TenantAdminEndpoints,
|
|
1010
|
+
)
|
|
1011
|
+
|
|
1012
|
+
return TenantAdminEndpoints(self.context)
|
|
1013
|
+
|
|
781
1014
|
@property
|
|
782
1015
|
def entity_type_name(self):
|
|
783
1016
|
return "Microsoft.Online.SharePoint.TenantAdministration.Tenant"
|
|
@@ -4,18 +4,105 @@ from office365.runtime.client_value import ClientValue
|
|
|
4
4
|
class DisableGroupify(ClientValue):
|
|
5
5
|
""" """
|
|
6
6
|
|
|
7
|
+
def __init__(self, is_read_only=None, value=None):
|
|
8
|
+
# type: (bool, bool) -> None
|
|
9
|
+
self.IsReadOnly = is_read_only
|
|
10
|
+
self.Value = value
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
def __repr__(self):
|
|
13
|
+
return f"(IsReadOnly={self.IsReadOnly}, Value={self.Value})"
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def entity_type_name(self):
|
|
17
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.DisableGroupify"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class EnableAutoNewsDigest(ClientValue):
|
|
21
|
+
""" """
|
|
22
|
+
|
|
23
|
+
def __init__(self, is_read_only=None, value=None):
|
|
24
|
+
# type: (bool, bool) -> None
|
|
25
|
+
self.IsReadOnly = is_read_only
|
|
26
|
+
self.Value = value
|
|
27
|
+
|
|
28
|
+
def __repr__(self):
|
|
29
|
+
return f"(IsReadOnly={self.IsReadOnly}, Value={self.Value})"
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def entity_type_name(self):
|
|
33
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.EnableAutoNewsDigest"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class DisableSelfServiceSiteCreation(ClientValue):
|
|
9
37
|
""" """
|
|
10
38
|
|
|
39
|
+
def __init__(self, is_read_only=None, value=None):
|
|
40
|
+
# type: (bool, bool) -> None
|
|
41
|
+
self.IsReadOnly = is_read_only
|
|
42
|
+
self.Value = value
|
|
43
|
+
|
|
44
|
+
def __repr__(self):
|
|
45
|
+
return f"(IsReadOnly={self.IsReadOnly}, Value={self.Value})"
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def entity_type_name(self):
|
|
49
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.DisableSelfServiceSiteCreation"
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class AutoQuotaEnabled(ClientValue):
|
|
53
|
+
"""Automatic quota management type"""
|
|
54
|
+
|
|
11
55
|
def __init__(self, is_read_only=None, value=None):
|
|
12
56
|
self.IsReadOnly = is_read_only
|
|
13
57
|
self.Value = value
|
|
14
58
|
|
|
59
|
+
def __repr__(self):
|
|
60
|
+
return f"(IsReadOnly={self.IsReadOnly}, Value={self.Value})"
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def entity_type_name(self):
|
|
64
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.AutoQuotaEnabled"
|
|
65
|
+
|
|
15
66
|
|
|
16
67
|
class CreatePolicyRequest(ClientValue):
|
|
17
68
|
""" """
|
|
18
69
|
|
|
19
|
-
def __init__(
|
|
70
|
+
def __init__(
|
|
71
|
+
self,
|
|
72
|
+
is_preview_run=None,
|
|
73
|
+
policy_custom_name=None,
|
|
74
|
+
policy_definition_details=None,
|
|
75
|
+
policy_description=None,
|
|
76
|
+
policy_frequency_unit=None,
|
|
77
|
+
policy_frequency_value=None,
|
|
78
|
+
policy_id=None,
|
|
79
|
+
policy_tags=None,
|
|
80
|
+
policy_template=None,
|
|
81
|
+
policy_type=None,
|
|
82
|
+
):
|
|
83
|
+
"""
|
|
84
|
+
:param bool is_preview_run:
|
|
85
|
+
:param str policy_custom_name:
|
|
86
|
+
:param str policy_definition_details:
|
|
87
|
+
:param str policy_description:
|
|
88
|
+
:param int policy_frequency_unit:
|
|
89
|
+
:param int policy_frequency_value:
|
|
90
|
+
:param str policy_id:
|
|
91
|
+
:param str policy_tags:
|
|
92
|
+
:param str policy_template:
|
|
93
|
+
:param int policy_type:
|
|
94
|
+
"""
|
|
20
95
|
self.isPreviewRun = is_preview_run
|
|
21
96
|
self.policyCustomName = policy_custom_name
|
|
97
|
+
self.policyDefinitionDetails = policy_definition_details
|
|
98
|
+
self.policyDescription = policy_description
|
|
99
|
+
self.policyFrequencyUnit = policy_frequency_unit
|
|
100
|
+
self.policyFrequencyValue = policy_frequency_value
|
|
101
|
+
self.policyId = policy_id
|
|
102
|
+
self.policyTags = policy_tags
|
|
103
|
+
self.policyTemplate = policy_template
|
|
104
|
+
self.policyType = policy_type
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def entity_type_name(self):
|
|
108
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.CreatePolicyRequest"
|