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
|
File without changes
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
from office365.sharepoint.entity import Entity
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
class
|
|
4
|
+
class SPDataGovernanceRestApiClientBase(Entity):
|
|
5
|
+
""""""
|
|
6
|
+
|
|
5
7
|
@property
|
|
6
8
|
def entity_type_name(self):
|
|
7
|
-
return "Microsoft.Online.SharePoint.TenantAdministration.
|
|
9
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.SPDataGovernanceRestApiClientBase"
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING
|
|
2
|
+
|
|
3
|
+
from office365.runtime.client_result import ClientResult
|
|
4
|
+
from office365.runtime.paths.service_operation import ServiceOperationPath
|
|
5
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
6
|
+
from office365.sharepoint.tenant.administration.datagovernance.client_base import (
|
|
7
|
+
SPDataGovernanceRestApiClientBase,
|
|
8
|
+
)
|
|
9
|
+
from office365.sharepoint.tenant.administration.datagovernance.insight_metadata import (
|
|
10
|
+
SPDataGovernanceInsightMetadata,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
if TYPE_CHECKING:
|
|
14
|
+
from office365.sharepoint.client_context import ClientContext
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class SPDataGovernanceInsightRestApiClient(SPDataGovernanceRestApiClientBase):
|
|
18
|
+
""""""
|
|
19
|
+
|
|
20
|
+
def __init__(self, context, authorization_header, url, user_agent):
|
|
21
|
+
# type: (ClientContext, str, str, str) -> None
|
|
22
|
+
static_path = ServiceOperationPath(
|
|
23
|
+
"Microsoft.Online.SharePoint.TenantAdministration.SPDataGovernanceInsightRestApiClient",
|
|
24
|
+
{
|
|
25
|
+
"authorizationHeader": authorization_header,
|
|
26
|
+
"url": url,
|
|
27
|
+
"userAgent": user_agent,
|
|
28
|
+
},
|
|
29
|
+
)
|
|
30
|
+
super(SPDataGovernanceInsightRestApiClient, self).__init__(context, static_path)
|
|
31
|
+
|
|
32
|
+
def create_data_access_governance_report(
|
|
33
|
+
self,
|
|
34
|
+
report_entity,
|
|
35
|
+
workload,
|
|
36
|
+
report_type,
|
|
37
|
+
file_sensitivity_label_name,
|
|
38
|
+
file_sensitivity_label_guid,
|
|
39
|
+
name,
|
|
40
|
+
template,
|
|
41
|
+
privacy,
|
|
42
|
+
site_sensitivity_label_guid,
|
|
43
|
+
count_of_users_more_than,
|
|
44
|
+
):
|
|
45
|
+
""" """
|
|
46
|
+
return_type = ClientResult(self.context, SPDataGovernanceInsightMetadata())
|
|
47
|
+
payload = {
|
|
48
|
+
"reportEntity": report_entity,
|
|
49
|
+
"workload": workload,
|
|
50
|
+
"reportType": report_type,
|
|
51
|
+
"fileSensitivityLabelName": file_sensitivity_label_name,
|
|
52
|
+
"fileSensitivityLabelGUID": file_sensitivity_label_guid,
|
|
53
|
+
"name": name,
|
|
54
|
+
"template": template,
|
|
55
|
+
"privacy": privacy,
|
|
56
|
+
"siteSensitivityLabelGUID": site_sensitivity_label_guid,
|
|
57
|
+
"countOfUsersMoreThan": count_of_users_more_than,
|
|
58
|
+
}
|
|
59
|
+
qry = ServiceOperationQuery(
|
|
60
|
+
self,
|
|
61
|
+
"CreateDataAccessGovernanceReport",
|
|
62
|
+
None,
|
|
63
|
+
payload,
|
|
64
|
+
None,
|
|
65
|
+
return_type,
|
|
66
|
+
)
|
|
67
|
+
self.context.add_query(qry)
|
|
68
|
+
return return_type
|
|
69
|
+
|
|
70
|
+
def export_spo_data_access_governance_insight(self, report_id):
|
|
71
|
+
return_type = ClientResult(self.context, str())
|
|
72
|
+
payload = {"reportId": report_id}
|
|
73
|
+
qry = ServiceOperationQuery(
|
|
74
|
+
self,
|
|
75
|
+
"ExportSPODataAccessGovernanceInsight",
|
|
76
|
+
None,
|
|
77
|
+
payload,
|
|
78
|
+
None,
|
|
79
|
+
return_type,
|
|
80
|
+
)
|
|
81
|
+
self.context.add_query(qry)
|
|
82
|
+
return return_type
|
|
@@ -1,15 +1,66 @@
|
|
|
1
|
-
from typing import Optional
|
|
1
|
+
from typing import TYPE_CHECKING, Optional
|
|
2
2
|
|
|
3
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
3
4
|
from office365.sharepoint.entity import Entity
|
|
4
5
|
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from office365.sharepoint.client_context import ClientContext
|
|
8
|
+
|
|
5
9
|
|
|
6
10
|
class TenantAdminEndpoints(Entity):
|
|
11
|
+
|
|
12
|
+
def __init__(self, context):
|
|
13
|
+
# type: (ClientContext) -> None
|
|
14
|
+
static_path = ResourcePath(
|
|
15
|
+
"Microsoft.Online.SharePoint.TenantAdministration.TenantAdminEndpoints"
|
|
16
|
+
)
|
|
17
|
+
super(TenantAdminEndpoints, self).__init__(context, static_path)
|
|
18
|
+
|
|
19
|
+
@property
|
|
20
|
+
def aad_admin_center_endpoint(self):
|
|
21
|
+
# type: () -> Optional[str]
|
|
22
|
+
"""The URL for the Azure Active Directory Admin Center."""
|
|
23
|
+
return self.properties.get("AADAdminCenterEndpoint", None)
|
|
24
|
+
|
|
25
|
+
@property
|
|
26
|
+
def cdn_default_endpoint(self):
|
|
27
|
+
# type: () -> Optional[str]
|
|
28
|
+
"""The base address of the default Content Delivery Network (CDN) used by SharePoint Online."""
|
|
29
|
+
return self.properties.get("CdnDefaultEndpoint", None)
|
|
30
|
+
|
|
7
31
|
@property
|
|
8
32
|
def o365_admin_center_endpoint(self):
|
|
9
33
|
# type: () -> Optional[str]
|
|
10
|
-
""""""
|
|
34
|
+
"""The endpoint (URL) to the Office 365 Admin Center."""
|
|
11
35
|
return self.properties.get("O365AdminCenterEndpoint", None)
|
|
12
36
|
|
|
37
|
+
@property
|
|
38
|
+
def cfrms_graph_endpoint(self):
|
|
39
|
+
# type: () -> Optional[str]
|
|
40
|
+
"""The URL of the Microsoft Graph API specifically for managing Conditional Access policies and Rights
|
|
41
|
+
Management Services (RMS) settings within a tenant."""
|
|
42
|
+
return self.properties.get("CFRMSGraphEndpoint", None)
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def migration_agent_url(self):
|
|
46
|
+
# type: () -> Optional[str]
|
|
47
|
+
"""The endpoint where the migration agent software or services can be accessed"""
|
|
48
|
+
return self.properties.get("MigrationAgentUrl", None)
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def mini_maven_endpoint(self):
|
|
52
|
+
# type: () -> Optional[str]
|
|
53
|
+
"""URL used internally by SharePoint or Microsoft 365 services. It may be part of Microsoft's orchestration
|
|
54
|
+
or lightweight service framework for tenant or feature management."""
|
|
55
|
+
return self.properties.get("MiniMavenEndpoint", None)
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def sp_migration_tool_url(self):
|
|
59
|
+
# type: () -> Optional[str]
|
|
60
|
+
"""URL to access the SharePoint Migration Tool, enabling users to download the software
|
|
61
|
+
for performing migrations"""
|
|
62
|
+
return self.properties.get("SPMigrationToolUrl", None)
|
|
63
|
+
|
|
13
64
|
@property
|
|
14
65
|
def entity_type_name(self):
|
|
15
66
|
return "Microsoft.Online.SharePoint.TenantAdministration.TenantAdminEndpoints"
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from typing_extensions import Self
|
|
2
|
+
|
|
3
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
4
|
+
from office365.sharepoint.entity import Entity
|
|
5
|
+
from office365.sharepoint.entity_collection import EntityCollection
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SPO3rdPartyAADPermissionGrant(Entity):
|
|
9
|
+
@property
|
|
10
|
+
def entity_type_name(self):
|
|
11
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.Internal.SPO3rdPartyAADPermissionGrant"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class SPO3rdPartyAADPermissionGrantCollection(
|
|
15
|
+
EntityCollection[SPO3rdPartyAADPermissionGrant]
|
|
16
|
+
):
|
|
17
|
+
|
|
18
|
+
def __init__(self, context, resource_path=None):
|
|
19
|
+
super(SPO3rdPartyAADPermissionGrantCollection, self).__init__(
|
|
20
|
+
context, SPO3rdPartyAADPermissionGrant, resource_path
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
def add(self, service_principal_id, resource, scope):
|
|
24
|
+
# type: (str, str, str) -> Self
|
|
25
|
+
payload = {
|
|
26
|
+
"servicePrincipalId": service_principal_id,
|
|
27
|
+
"resource": resource,
|
|
28
|
+
"scope": scope,
|
|
29
|
+
}
|
|
30
|
+
qry = ServiceOperationQuery(self, "Add", None, payload)
|
|
31
|
+
self.context.add_query(qry)
|
|
32
|
+
return self
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from office365.sharepoint.entity import Entity
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class SPOWebAppServicePrincipalPermissionRequest(Entity):
|
|
5
|
+
""" """
|
|
6
|
+
|
|
7
|
+
@property
|
|
8
|
+
def client_component_item_unique_id(self):
|
|
9
|
+
return self.properties.get("ClientComponentItemUniqueId", False)
|
|
10
|
+
|
|
11
|
+
@property
|
|
12
|
+
def entity_type_name(self):
|
|
13
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.Internal.SPOWebAppServicePrincipalPermissionRequest"
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
3
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
4
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
5
|
+
from office365.runtime.types.collections import StringCollection
|
|
6
|
+
from office365.sharepoint.entity import Entity
|
|
7
|
+
from office365.sharepoint.entity_collection import EntityCollection
|
|
8
|
+
from office365.sharepoint.tenant.administration.internal.aad.permission_grant import (
|
|
9
|
+
SPO3rdPartyAADPermissionGrantCollection,
|
|
10
|
+
)
|
|
11
|
+
from office365.sharepoint.tenant.administration.internal.appservice.permission_grant import (
|
|
12
|
+
SPOWebAppServicePrincipalPermissionGrant,
|
|
13
|
+
)
|
|
14
|
+
from office365.sharepoint.tenant.administration.internal.appservice.permission_request import (
|
|
15
|
+
SPOWebAppServicePrincipalPermissionRequest,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class SPOWebAppServicePrincipal(Entity):
|
|
20
|
+
def __init__(self, context):
|
|
21
|
+
stat_path = ResourcePath(
|
|
22
|
+
"Microsoft.Online.SharePoint.TenantAdministration.Internal.SPOWebAppServicePrincipal"
|
|
23
|
+
)
|
|
24
|
+
super(SPOWebAppServicePrincipal, self).__init__(context, stat_path)
|
|
25
|
+
|
|
26
|
+
def update_spfx_client_secret(self, secret_value):
|
|
27
|
+
"""
|
|
28
|
+
:param str secret_value:
|
|
29
|
+
"""
|
|
30
|
+
payload = {"secretValue": secret_value}
|
|
31
|
+
qry = ServiceOperationQuery(self, "UpdateSpfxClientSecret", None, payload)
|
|
32
|
+
self.context.add_query(qry)
|
|
33
|
+
return self
|
|
34
|
+
|
|
35
|
+
def update_spfx_third_party_app_id(self, app_id):
|
|
36
|
+
payload = {"appId": app_id}
|
|
37
|
+
qry = ServiceOperationQuery(self, "UpdateSpfxThirdPartyAppId", None, payload)
|
|
38
|
+
self.context.add_query(qry)
|
|
39
|
+
return self
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
def account_enabled(self):
|
|
43
|
+
# type: () -> Optional[bool]
|
|
44
|
+
""" """
|
|
45
|
+
return self.properties.get("AccountEnabled", False)
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def app_id(self):
|
|
49
|
+
# type: () -> Optional[str]
|
|
50
|
+
""" """
|
|
51
|
+
return self.properties.get("AppId", False)
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def reply_urls(self):
|
|
55
|
+
# type: () -> StringCollection
|
|
56
|
+
""" """
|
|
57
|
+
return self.properties.get("ReplyUrls", StringCollection())
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def grant_manager(self):
|
|
61
|
+
return self.properties.get(
|
|
62
|
+
"GrantManager",
|
|
63
|
+
SPO3rdPartyAADPermissionGrantCollection(
|
|
64
|
+
self.context,
|
|
65
|
+
ResourcePath("GrantManager", self.resource_path),
|
|
66
|
+
),
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def permission_grants(self):
|
|
71
|
+
return self.properties.get(
|
|
72
|
+
"PermissionGrants",
|
|
73
|
+
EntityCollection(
|
|
74
|
+
self.context,
|
|
75
|
+
SPOWebAppServicePrincipalPermissionGrant,
|
|
76
|
+
ResourcePath("PermissionGrants", self.resource_path),
|
|
77
|
+
),
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def permission_requests(self):
|
|
82
|
+
return self.properties.get(
|
|
83
|
+
"PermissionRequests",
|
|
84
|
+
EntityCollection(
|
|
85
|
+
self.context,
|
|
86
|
+
SPOWebAppServicePrincipalPermissionRequest,
|
|
87
|
+
ResourcePath("PermissionRequests", self.resource_path),
|
|
88
|
+
),
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def entity_type_name(self):
|
|
93
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.Internal.SPOWebAppServicePrincipal"
|
|
94
|
+
|
|
95
|
+
def get_property(self, name, default_value=None):
|
|
96
|
+
if default_value is None:
|
|
97
|
+
property_mapping = {
|
|
98
|
+
"GrantManager": self.grant_manager,
|
|
99
|
+
"PermissionRequests": self.permission_requests,
|
|
100
|
+
"PermissionGrants": self.permission_grants,
|
|
101
|
+
"ReplyUrls": self.reply_urls,
|
|
102
|
+
}
|
|
103
|
+
default_value = property_mapping.get(name, None)
|
|
104
|
+
return super(SPOWebAppServicePrincipal, self).get_property(name, default_value)
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
2
|
+
from office365.sharepoint.entity import Entity
|
|
3
|
+
from office365.sharepoint.files.file import File
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class SPOMalwareFile(Entity):
|
|
7
|
+
""" """
|
|
8
|
+
|
|
9
|
+
@property
|
|
10
|
+
def file(self):
|
|
11
|
+
return self.properties.get(
|
|
12
|
+
"File",
|
|
13
|
+
File(self.context, ResourcePath("File", self.resource_path)),
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
@property
|
|
17
|
+
def entity_type_name(self):
|
|
18
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.SPOMalwareFile"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from office365.runtime.client_value import ClientValue
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class SPOAppBillingProperties(ClientValue):
|
|
5
|
+
""" """
|
|
6
|
+
|
|
7
|
+
def __init__(self, application_id=None, azure_region=None, is_activated=None):
|
|
8
|
+
"""
|
|
9
|
+
:param str application_id: The application ID.
|
|
10
|
+
:param str azure_region: The Azure region.
|
|
11
|
+
:param bool is_activated:
|
|
12
|
+
"""
|
|
13
|
+
self.ApplicationId = application_id
|
|
14
|
+
self.AzureRegion = azure_region
|
|
15
|
+
self.IsActivated = is_activated
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def entity_type_name(self):
|
|
19
|
+
return (
|
|
20
|
+
"Microsoft.Online.SharePoint.TenantAdministration.SPOAppBillingProperties"
|
|
21
|
+
)
|
|
File without changes
|
|
@@ -3,15 +3,20 @@ from office365.runtime.paths.resource_path import ResourcePath
|
|
|
3
3
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
4
4
|
from office365.runtime.types.collections import StringCollection
|
|
5
5
|
from office365.sharepoint.entity import Entity
|
|
6
|
+
from office365.sharepoint.tenant.administration.default_time_zone_id import (
|
|
7
|
+
TenantDefaultTimeZoneId,
|
|
8
|
+
)
|
|
6
9
|
from office365.sharepoint.tenant.administration.smtp_server import SmtpServer
|
|
7
10
|
from office365.sharepoint.tenant.administration.types import (
|
|
8
11
|
AutoQuotaEnabled,
|
|
9
12
|
DisableGroupify,
|
|
13
|
+
DisableSelfServiceSiteCreation,
|
|
14
|
+
EnableAutoNewsDigest,
|
|
10
15
|
)
|
|
11
16
|
|
|
12
17
|
|
|
13
18
|
class TenantAdminSettingsService(Entity):
|
|
14
|
-
""""""
|
|
19
|
+
"""Manage various tenant-level settings related to SharePoint administration"""
|
|
15
20
|
|
|
16
21
|
def __init__(self, context):
|
|
17
22
|
static_path = ResourcePath(
|
|
@@ -20,7 +25,7 @@ class TenantAdminSettingsService(Entity):
|
|
|
20
25
|
super(TenantAdminSettingsService, self).__init__(context, static_path)
|
|
21
26
|
|
|
22
27
|
def get_tenant_sharing_status(self):
|
|
23
|
-
""""""
|
|
28
|
+
"""Retrieves the current state of sharing settings for a tenant"""
|
|
24
29
|
return_type = ClientResult(self.context, int())
|
|
25
30
|
qry = ServiceOperationQuery(
|
|
26
31
|
self, "GetTenantSharingStatus", None, None, None, return_type
|
|
@@ -30,26 +35,52 @@ class TenantAdminSettingsService(Entity):
|
|
|
30
35
|
|
|
31
36
|
@property
|
|
32
37
|
def auto_quota_enabled(self):
|
|
33
|
-
"""
|
|
38
|
+
"""Controls whether automatic quota management is enabled for SharePoint Online site collections.
|
|
39
|
+
When this feature is enabled, SharePoint Online automatically adjusts the storage quota for site collections
|
|
40
|
+
based on their usage, helping to ensure that site collections don't run out of space.
|
|
41
|
+
"""
|
|
34
42
|
return self.properties.get("AutoQuotaEnabled", AutoQuotaEnabled())
|
|
35
43
|
|
|
36
44
|
@property
|
|
37
45
|
def available_managed_paths_for_site_creation(self):
|
|
38
|
-
"""
|
|
46
|
+
"""
|
|
47
|
+
Specifies the managed paths that are available for the creation of new SharePoint sites within a tenant.
|
|
48
|
+
"""
|
|
39
49
|
return self.properties.get(
|
|
40
50
|
"AvailableManagedPathsForSiteCreation", StringCollection()
|
|
41
51
|
)
|
|
42
52
|
|
|
43
53
|
@property
|
|
44
54
|
def disable_groupify(self):
|
|
45
|
-
"""
|
|
55
|
+
"""
|
|
56
|
+
Controls whether SharePoint site owners in your tenant are allowed to convert classic SharePoint sites into
|
|
57
|
+
Microsoft 365 Groups (a process commonly known as "groupifying" a site)
|
|
58
|
+
"""
|
|
46
59
|
return self.properties.get("DisableGroupify", DisableGroupify())
|
|
47
60
|
|
|
61
|
+
@property
|
|
62
|
+
def disable_self_service_site_creation(self):
|
|
63
|
+
""" " """
|
|
64
|
+
return self.properties.get(
|
|
65
|
+
"DisableSelfServiceSiteCreation", DisableSelfServiceSiteCreation()
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def enable_auto_news_digest(self):
|
|
70
|
+
""" " """
|
|
71
|
+
return self.properties.get("EnableAutoNewsDigest", EnableAutoNewsDigest())
|
|
72
|
+
|
|
48
73
|
@property
|
|
49
74
|
def smtp_server(self):
|
|
50
|
-
"""
|
|
75
|
+
"""Specifies the server address or endpoint of the SMTP server that SharePoint Online or tenant-related
|
|
76
|
+
services use for sending emails"""
|
|
51
77
|
return self.properties.get("SmtpServer", SmtpServer())
|
|
52
78
|
|
|
79
|
+
@property
|
|
80
|
+
def tenant_default_time_zone_id(self):
|
|
81
|
+
"""Default time zone configured for a SharePoint Online tenant"""
|
|
82
|
+
return self.properties.get("TenantDefaultTimeZoneId", TenantDefaultTimeZoneId())
|
|
83
|
+
|
|
53
84
|
@property
|
|
54
85
|
def entity_type_name(self):
|
|
55
86
|
return "Microsoft.Online.SharePoint.TenantAdministration.TenantAdminSettingsService"
|
|
@@ -58,7 +89,12 @@ class TenantAdminSettingsService(Entity):
|
|
|
58
89
|
if default_value is None:
|
|
59
90
|
property_mapping = {
|
|
60
91
|
"AvailableManagedPathsForSiteCreation": self.available_managed_paths_for_site_creation,
|
|
92
|
+
"AutoQuotaEnabled": self.auto_quota_enabled,
|
|
93
|
+
"DisableGroupify": self.disable_groupify,
|
|
94
|
+
"DisableSelfServiceSiteCreation": self.disable_self_service_site_creation,
|
|
95
|
+
"EnableAutoNewsDigest": self.enable_auto_news_digest,
|
|
61
96
|
"SmtpServer": self.smtp_server,
|
|
97
|
+
"TenantDefaultTimeZoneId": self.tenant_default_time_zone_id,
|
|
62
98
|
}
|
|
63
99
|
default_value = property_mapping.get(name, None)
|
|
64
100
|
return super(TenantAdminSettingsService, self).get_property(name, default_value)
|
|
@@ -11,20 +11,20 @@ from office365.sharepoint.tenant.administration.sites.creation_data import (
|
|
|
11
11
|
class SiteCreationSource(ClientValue):
|
|
12
12
|
def __init__(
|
|
13
13
|
self,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
is_sync_threshold_limit_reached=None,
|
|
15
|
+
last_refresh_time_stamp=None,
|
|
16
16
|
site_creation_data=None,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
sync_threshold_limit=None,
|
|
18
|
+
total_sites_count=None,
|
|
19
19
|
):
|
|
20
20
|
# type: (bool, datetime, List[SiteCreationData], int, int) -> None
|
|
21
|
-
self.IsSyncThresholdLimitReached =
|
|
22
|
-
self.LastRefreshTimeStamp =
|
|
21
|
+
self.IsSyncThresholdLimitReached = is_sync_threshold_limit_reached
|
|
22
|
+
self.LastRefreshTimeStamp = last_refresh_time_stamp
|
|
23
23
|
self.SiteCreationData = ClientValueCollection(
|
|
24
24
|
SiteCreationData, site_creation_data
|
|
25
25
|
)
|
|
26
|
-
self.SyncThresholdLimit =
|
|
27
|
-
self.TotalSitesCount =
|
|
26
|
+
self.SyncThresholdLimit = sync_threshold_limit
|
|
27
|
+
self.TotalSitesCount = total_sites_count
|
|
28
28
|
|
|
29
29
|
@property
|
|
30
30
|
def entity_type_name(self):
|