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,7 +1,18 @@
|
|
|
1
|
+
from office365.runtime.client_result import ClientResult
|
|
2
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
1
3
|
from office365.sharepoint.entity import Entity
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
class SiteContentProcessingInfoProvider(Entity):
|
|
7
|
+
|
|
8
|
+
def get_azure_container_token(self):
|
|
9
|
+
return_type = ClientResult(self.context, str())
|
|
10
|
+
qry = ServiceOperationQuery(
|
|
11
|
+
self, "GetAzureContainerToken", None, None, None, return_type
|
|
12
|
+
)
|
|
13
|
+
self.context.add_query(qry)
|
|
14
|
+
return return_type
|
|
15
|
+
|
|
5
16
|
@property
|
|
6
17
|
def entity_type_name(self):
|
|
7
18
|
return "Microsoft.SharePoint.Client.Search.Administration.SiteContentProcessingInfoProvider"
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
from office365.runtime.client_value_collection import ClientValueCollection
|
|
2
|
+
from office365.sharepoint.search.reports.abandonedqueries.item import (
|
|
3
|
+
ReportAbandonedQueriesItem,
|
|
4
|
+
)
|
|
1
5
|
from office365.sharepoint.search.reports.base import ReportBase
|
|
2
6
|
|
|
3
7
|
|
|
@@ -6,4 +10,10 @@ class ReportAbandonedQueries(ReportBase):
|
|
|
6
10
|
queries that might create user dissatisfaction and to improve the discoverability of content.
|
|
7
11
|
"""
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
def __init__(self, reports=None):
|
|
14
|
+
super(ReportAbandonedQueries, self).__init__()
|
|
15
|
+
self.Reports = ClientValueCollection(ReportAbandonedQueriesItem, reports)
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def entity_type_name(self):
|
|
19
|
+
return "Microsoft.Office.Server.Search.REST.ReportAbandonedQueries"
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from office365.runtime.client_value import ClientValue
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ReportAbandonedQueriesItem(ClientValue):
|
|
5
|
+
|
|
6
|
+
def __init__(self, date=None):
|
|
7
|
+
self.Date = date
|
|
8
|
+
|
|
9
|
+
@property
|
|
10
|
+
def entity_type_name(self):
|
|
11
|
+
return "Microsoft.Office.Server.Search.REST.ReportAbandonedQueriesItem"
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
from office365.runtime.client_value_collection import ClientValueCollection
|
|
1
2
|
from office365.sharepoint.search.reports.base import ReportBase
|
|
3
|
+
from office365.sharepoint.search.reports.topqueries.item import ReportTopQueriesItem
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
class ReportTopQueries(ReportBase):
|
|
7
|
+
|
|
8
|
+
def __init__(self, reports=None):
|
|
9
|
+
super(ReportTopQueries, self).__init__()
|
|
10
|
+
self.Reports = ClientValueCollection(ReportTopQueriesItem, reports)
|
|
11
|
+
|
|
5
12
|
@property
|
|
6
13
|
def entity_type_name(self):
|
|
7
14
|
return "Microsoft.Office.Server.Search.REST.ReportTopQueries"
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from office365.runtime.client_value import ClientValue
|
|
2
|
+
from office365.runtime.client_value_collection import ClientValueCollection
|
|
3
|
+
from office365.sharepoint.search.reports.topqueries.data import ReportTopQueriesData
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ReportTopQueriesItem(ClientValue):
|
|
7
|
+
""" """
|
|
8
|
+
|
|
9
|
+
def __init__(self, date=None, report=None):
|
|
10
|
+
self.Date = date
|
|
11
|
+
self.Report = ClientValueCollection(ReportTopQueriesData, report)
|
|
12
|
+
|
|
13
|
+
@property
|
|
14
|
+
def entity_type_name(self):
|
|
15
|
+
return "Microsoft.Office.Server.Search.REST.ReportTopQueriesItem"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
2
4
|
from office365.sharepoint.client_context import ClientContext
|
|
3
5
|
from office365.sharepoint.entity import Entity
|
|
@@ -27,6 +29,12 @@ class TargetApplication(Entity):
|
|
|
27
29
|
context.add_query(qry)
|
|
28
30
|
return return_type
|
|
29
31
|
|
|
32
|
+
@property
|
|
33
|
+
def application_id(self):
|
|
34
|
+
# type: () -> Optional[str]
|
|
35
|
+
""""""
|
|
36
|
+
return self.properties.get("ApplicationId", None)
|
|
37
|
+
|
|
30
38
|
@property
|
|
31
39
|
def entity_type_name(self):
|
|
32
40
|
return "Microsoft.Office.SecureStoreService.Server.TargetApplication"
|
|
@@ -3,11 +3,11 @@ from office365.runtime.client_value_collection import ClientValueCollection
|
|
|
3
3
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
4
4
|
from office365.sharepoint.entity import Entity
|
|
5
5
|
from office365.sharepoint.permissions.roles.definitions.definition import RoleDefinition
|
|
6
|
-
from office365.sharepoint.
|
|
7
|
-
from office365.sharepoint.sharing.user_sharing_result import UserSharingResult
|
|
8
|
-
from office365.sharepoint.userprofiles.sharedwithme.view_item_removal_result import (
|
|
6
|
+
from office365.sharepoint.portal.userprofiles.sharedwithme.view_item_removal_result import (
|
|
9
7
|
SharedWithMeViewItemRemovalResult,
|
|
10
8
|
)
|
|
9
|
+
from office365.sharepoint.sharing.user_role_assignment import UserRoleAssignment
|
|
10
|
+
from office365.sharepoint.sharing.user_sharing_result import UserSharingResult
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class DocumentSharingManager(Entity):
|
|
@@ -2,6 +2,9 @@ from office365.runtime.paths.resource_path import ResourcePath
|
|
|
2
2
|
from office365.sharepoint.entity import Entity
|
|
3
3
|
from office365.sharepoint.sharing.abilities import SharingAbilities
|
|
4
4
|
from office365.sharepoint.sharing.access_request_settings import AccessRequestSettings
|
|
5
|
+
from office365.sharepoint.sharing.domain_restriction_settings import (
|
|
6
|
+
DomainRestrictionSettings,
|
|
7
|
+
)
|
|
5
8
|
from office365.sharepoint.sharing.links.default_templates_collection import (
|
|
6
9
|
SharingLinkDefaultTemplatesCollection,
|
|
7
10
|
)
|
|
@@ -24,9 +27,17 @@ class SharingInformation(Entity):
|
|
|
24
27
|
|
|
25
28
|
@property
|
|
26
29
|
def anonymous_link_expiration_restriction_days(self):
|
|
30
|
+
# type: () -> Optional[int]
|
|
27
31
|
"""Tenant's anonymous link expiration restriction in days."""
|
|
28
32
|
return self.properties.get("anonymousLinkExpirationRestrictionDays", None)
|
|
29
33
|
|
|
34
|
+
@property
|
|
35
|
+
def domain_restriction_settings(self):
|
|
36
|
+
"""Whether DomainRestrictionSettings is used to limit the external Users set by Admin."""
|
|
37
|
+
return self.properties.get(
|
|
38
|
+
"anonymousLinkExpirationRestrictionDays", DomainRestrictionSettings()
|
|
39
|
+
)
|
|
40
|
+
|
|
30
41
|
@property
|
|
31
42
|
def permissions_information(self):
|
|
32
43
|
"""
|
|
@@ -62,6 +73,7 @@ class SharingInformation(Entity):
|
|
|
62
73
|
if default_value is None:
|
|
63
74
|
property_mapping = {
|
|
64
75
|
"accessRequestSettings": self.access_request_settings,
|
|
76
|
+
"domain_restriction_settings": self.domain_restriction_settings,
|
|
65
77
|
"permissionsInformation": self.permissions_information,
|
|
66
78
|
"pickerSettings": self.picker_settings,
|
|
67
79
|
"sharingAbilities": self.sharing_abilities,
|
|
@@ -4,6 +4,8 @@ from office365.runtime.client_value_collection import ClientValueCollection
|
|
|
4
4
|
from office365.runtime.paths.resource_path import ResourcePath
|
|
5
5
|
from office365.sharepoint.entity import Entity
|
|
6
6
|
from office365.sharepoint.principal.groups.collection import GroupCollection
|
|
7
|
+
from office365.sharepoint.principal.groups.group import Group
|
|
8
|
+
from office365.sharepoint.principal.users.collection import UserCollection
|
|
7
9
|
from office365.sharepoint.sharing.invitation.creation_result import (
|
|
8
10
|
SPInvitationCreationResult,
|
|
9
11
|
)
|
|
@@ -78,6 +80,23 @@ class SharingResult(Entity):
|
|
|
78
80
|
),
|
|
79
81
|
)
|
|
80
82
|
|
|
83
|
+
@property
|
|
84
|
+
def group_users_added_to(self):
|
|
85
|
+
return self.properties.get(
|
|
86
|
+
"GroupUsersAddedTo",
|
|
87
|
+
Group(self.context, ResourcePath("GroupUsersAddedTo", self.resource_path)),
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def users_with_access_requests(self):
|
|
92
|
+
return self.properties.get(
|
|
93
|
+
"UsersWithAccessRequests",
|
|
94
|
+
UserCollection(
|
|
95
|
+
self.context,
|
|
96
|
+
ResourcePath("UsersWithAccessRequests", self.resource_path),
|
|
97
|
+
),
|
|
98
|
+
)
|
|
99
|
+
|
|
81
100
|
@property
|
|
82
101
|
def users_added_to_group(self):
|
|
83
102
|
# type: () -> ClientValueCollection[UserSharingResult]
|
|
@@ -90,8 +109,10 @@ class SharingResult(Entity):
|
|
|
90
109
|
if default_value is None:
|
|
91
110
|
property_mapping = {
|
|
92
111
|
"GroupsSharedWith": self.groups_shared_with,
|
|
112
|
+
"GroupUsersAddedTo": self.group_users_added_to,
|
|
93
113
|
"UsersAddedToGroup": self.users_added_to_group,
|
|
94
114
|
"UniquelyPermissionedUsers": self.uniquely_permissioned_users,
|
|
115
|
+
"UsersWithAccessRequests": self.users_with_access_requests,
|
|
95
116
|
}
|
|
96
117
|
default_value = property_mapping.get(name, None)
|
|
97
118
|
return super(SharingResult, self).get_property(name, default_value)
|
|
@@ -2,13 +2,13 @@ from office365.runtime.client_value import ClientValue
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class SiteHealthResult(ClientValue):
|
|
5
|
-
"""Specifies the result of running a site collection
|
|
5
|
+
"""Specifies the result of running a site collection sitehealth rule."""
|
|
6
6
|
|
|
7
7
|
def __init__(self, message_as_text=None, rule_help_link=None, rule_id=None):
|
|
8
8
|
"""
|
|
9
|
-
:param str message_as_text: Specifies a summary of the results of running a site collection
|
|
10
|
-
:param str rule_help_link: Specifies a hyperlink to help information about the site collection
|
|
11
|
-
:param str rule_id: Specifies the unique identifier of the site collection
|
|
9
|
+
:param str message_as_text: Specifies a summary of the results of running a site collection sitehealth rule.
|
|
10
|
+
:param str rule_help_link: Specifies a hyperlink to help information about the site collection sitehealth rule.
|
|
11
|
+
:param str rule_id: Specifies the unique identifier of the site collection sitehealth rule.
|
|
12
12
|
"""
|
|
13
13
|
self.MessageAsText = message_as_text
|
|
14
14
|
self.RuleHelpLink = rule_help_link
|
|
@@ -6,29 +6,29 @@ from office365.sharepoint.sitehealth.result import SiteHealthResult
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class SiteHealthSummary(Entity):
|
|
9
|
-
"""Specifies a summary of the results of running a set of site collection
|
|
9
|
+
"""Specifies a summary of the results of running a set of site collection sitehealth rules."""
|
|
10
10
|
|
|
11
11
|
@property
|
|
12
12
|
def failed_error_count(self):
|
|
13
13
|
# type: () -> Optional[int]
|
|
14
|
-
"""Specifies the number of site collection
|
|
14
|
+
"""Specifies the number of site collection sitehealth rules that failed with an error."""
|
|
15
15
|
return self.properties.get("FailedErrorCount", None)
|
|
16
16
|
|
|
17
17
|
@property
|
|
18
18
|
def failed_warning_count(self):
|
|
19
19
|
# type: () -> Optional[int]
|
|
20
|
-
"""Specifies the number of site collection
|
|
20
|
+
"""Specifies the number of site collection sitehealth rules that failed with a warning."""
|
|
21
21
|
return self.properties.get("FailedWarningCount", None)
|
|
22
22
|
|
|
23
23
|
@property
|
|
24
24
|
def passed_count(self):
|
|
25
25
|
# type: () -> Optional[int]
|
|
26
|
-
"""Specifies the number of site collection
|
|
26
|
+
"""Specifies the number of site collection sitehealth rules that passed."""
|
|
27
27
|
return self.properties.get("PassedCount", None)
|
|
28
28
|
|
|
29
29
|
@property
|
|
30
30
|
def results(self):
|
|
31
|
-
"""Specifies a list of site collection
|
|
31
|
+
"""Specifies a list of site collection sitehealth rule results, one for each site collection sitehealth rule that
|
|
32
32
|
was run."""
|
|
33
33
|
return self.properties.get("Results", ClientValueCollection(SiteHealthResult))
|
|
34
34
|
|
|
File without changes
|
|
@@ -2,7 +2,7 @@ from office365.runtime.client_result import ClientResult
|
|
|
2
2
|
from office365.runtime.paths.resource_path import ResourcePath
|
|
3
3
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
4
4
|
from office365.sharepoint.entity import Entity
|
|
5
|
-
from office365.sharepoint.sites.
|
|
5
|
+
from office365.sharepoint.sites.home.reference import SPHSiteReference
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class SPHSite(Entity):
|
|
@@ -27,7 +27,11 @@ from office365.sharepoint.sitehealth.summary import SiteHealthSummary
|
|
|
27
27
|
from office365.sharepoint.sites.azure_container_Info import (
|
|
28
28
|
ProvisionedTemporaryAzureContainerInfo,
|
|
29
29
|
)
|
|
30
|
-
from office365.sharepoint.sites.
|
|
30
|
+
from office365.sharepoint.sites.copy_job_progress import CopyJobProgress
|
|
31
|
+
from office365.sharepoint.sites.home.site import SPHSite
|
|
32
|
+
from office365.sharepoint.sites.html_field_security_setting import (
|
|
33
|
+
HTMLFieldSecuritySetting,
|
|
34
|
+
)
|
|
31
35
|
from office365.sharepoint.sites.upgrade_info import UpgradeInfo
|
|
32
36
|
from office365.sharepoint.sites.usage_info import UsageInfo
|
|
33
37
|
from office365.sharepoint.sites.version_policy_manager import SiteVersionPolicyManager
|
|
@@ -150,6 +154,18 @@ class Site(Entity):
|
|
|
150
154
|
self.context.add_query(qry)
|
|
151
155
|
return return_type
|
|
152
156
|
|
|
157
|
+
def get_copy_job_progress(self, copy_job_info=None):
|
|
158
|
+
"""
|
|
159
|
+
:param copy_job_info: Optional copyJobInfo object.
|
|
160
|
+
"""
|
|
161
|
+
payload = {"copyJobInfo": copy_job_info}
|
|
162
|
+
return_type = ClientResult(self.context, CopyJobProgress())
|
|
163
|
+
qry = ServiceOperationQuery(
|
|
164
|
+
self, "GetCopyJobProgress", None, payload, None, return_type
|
|
165
|
+
)
|
|
166
|
+
self.context.add_query(qry)
|
|
167
|
+
return return_type
|
|
168
|
+
|
|
153
169
|
def get_site_logo(self):
|
|
154
170
|
"""Downloads a site logo"""
|
|
155
171
|
return_type = ClientResult(self.context)
|
|
@@ -262,6 +278,18 @@ class Site(Entity):
|
|
|
262
278
|
self.ensure_property("Id", _site_loaded)
|
|
263
279
|
return return_type
|
|
264
280
|
|
|
281
|
+
def get_web_path(self, site_id, web_id):
|
|
282
|
+
"""
|
|
283
|
+
:param int site_id: The site identifier
|
|
284
|
+
:param int web_id: The web identifier
|
|
285
|
+
"""
|
|
286
|
+
params = {"siteId": site_id, "webId": web_id}
|
|
287
|
+
return_type = ClientResult(self.context, SPResPath())
|
|
288
|
+
|
|
289
|
+
qry = ServiceOperationQuery(self, "GetWebPath", params, None, None, return_type)
|
|
290
|
+
self.context.add_query(qry)
|
|
291
|
+
return return_type
|
|
292
|
+
|
|
265
293
|
def get_web_templates(self, lcid=1033, override_compat_level=0):
|
|
266
294
|
"""
|
|
267
295
|
Returns the collection of site definitions that are available for creating
|
|
@@ -504,7 +532,7 @@ class Site(Entity):
|
|
|
504
532
|
@property
|
|
505
533
|
def allowed_external_domains(self):
|
|
506
534
|
# type: () -> Optional[bool]
|
|
507
|
-
return self.properties.get("AllowedExternalDomains",
|
|
535
|
+
return self.properties.get("AllowedExternalDomains", HTMLFieldSecuritySetting())
|
|
508
536
|
|
|
509
537
|
@property
|
|
510
538
|
def allow_master_page_editing(self):
|
|
@@ -574,6 +602,32 @@ class Site(Entity):
|
|
|
574
602
|
"""Gets the current change token that is used in the change log for the site collection."""
|
|
575
603
|
return self.properties.get("CurrentChangeToken", ChangeToken())
|
|
576
604
|
|
|
605
|
+
@property
|
|
606
|
+
def disable_flows(self):
|
|
607
|
+
# type: () -> Optional[bool]
|
|
608
|
+
""""""
|
|
609
|
+
return self.properties.get("DisableFlows", None)
|
|
610
|
+
|
|
611
|
+
@property
|
|
612
|
+
def external_sharing_tips_enabled(self):
|
|
613
|
+
# type: () -> Optional[bool]
|
|
614
|
+
"""Gets a Boolean value that specifies whether users will be greeted with a notification bar telling them that
|
|
615
|
+
the site can be shared with external users. The value is true if the notification bar is enabled; otherwise,
|
|
616
|
+
it is false."""
|
|
617
|
+
return self.properties.get("ExternalSharingTipsEnabled", None)
|
|
618
|
+
|
|
619
|
+
@property
|
|
620
|
+
def external_user_expiration_in_days(self):
|
|
621
|
+
# type: () -> Optional[int]
|
|
622
|
+
""""""
|
|
623
|
+
return self.properties.get("ExternalUserExpirationInDays", None)
|
|
624
|
+
|
|
625
|
+
@property
|
|
626
|
+
def geo_location(self):
|
|
627
|
+
# type: () -> Optional[str]
|
|
628
|
+
""""""
|
|
629
|
+
return self.properties.get("GeoLocation", None)
|
|
630
|
+
|
|
577
631
|
@property
|
|
578
632
|
def group_id(self):
|
|
579
633
|
# type: () -> Optional[str]
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
from typing import Optional
|
|
2
2
|
|
|
3
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
3
4
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
4
5
|
from office365.sharepoint.entity import Entity
|
|
6
|
+
from office365.sharepoint.lists.version_policy_manager import VersionPolicyManager
|
|
5
7
|
|
|
6
8
|
|
|
7
9
|
class SiteVersionPolicyManager(Entity):
|
|
@@ -13,8 +15,31 @@ class SiteVersionPolicyManager(Entity):
|
|
|
13
15
|
""" """
|
|
14
16
|
return self.properties.get("MajorVersionLimit", None)
|
|
15
17
|
|
|
18
|
+
@property
|
|
19
|
+
def version_policies(self):
|
|
20
|
+
return self.properties.get(
|
|
21
|
+
"VersionPolicies",
|
|
22
|
+
VersionPolicyManager(
|
|
23
|
+
self.context, ResourcePath("VersionPolicies", self.resource_path)
|
|
24
|
+
),
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
def inherit_tenant_settings(self):
|
|
28
|
+
""" """
|
|
29
|
+
qry = ServiceOperationQuery(self, "InheritTenantSettings")
|
|
30
|
+
self.context.add_query(qry)
|
|
31
|
+
return self
|
|
32
|
+
|
|
16
33
|
def set_auto_expiration(self):
|
|
17
34
|
""""""
|
|
18
35
|
qry = ServiceOperationQuery(self, "SetAutoExpiration")
|
|
19
36
|
self.context.add_query(qry)
|
|
20
37
|
return self
|
|
38
|
+
|
|
39
|
+
def get_property(self, name, default_value=None):
|
|
40
|
+
if default_value is None:
|
|
41
|
+
property_mapping = {
|
|
42
|
+
"VersionPolicies": self.version_policies,
|
|
43
|
+
}
|
|
44
|
+
default_value = property_mapping.get(name, None)
|
|
45
|
+
return super(SiteVersionPolicyManager, self).get_property(name, default_value)
|
|
@@ -2,11 +2,36 @@ from office365.runtime.client_value import ClientValue
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class SiteScriptMetadata(ClientValue):
|
|
5
|
-
|
|
5
|
+
"""Represents metadata about a SharePoint site script in the SharePoint framework.
|
|
6
|
+
Site scripts are used to automate the provisioning of SharePoint sites by defining actions like
|
|
7
|
+
applying a theme, adding lists, and configuring site settings."""
|
|
8
|
+
|
|
9
|
+
def __init__(
|
|
10
|
+
self,
|
|
11
|
+
id_=None,
|
|
12
|
+
content=None,
|
|
13
|
+
description=None,
|
|
14
|
+
is_site_script_package=None,
|
|
15
|
+
title=None,
|
|
16
|
+
version=None,
|
|
17
|
+
):
|
|
6
18
|
"""
|
|
7
|
-
:param str
|
|
19
|
+
:param str id_: unique identifier (GUID) for the site script. This is used to uniquely identify the script
|
|
20
|
+
within SharePoint.
|
|
21
|
+
:param str content: The actual JSON content of the site script. This contains the actions that the script
|
|
22
|
+
will execute when applied to a SharePoint site.
|
|
8
23
|
:param str description:
|
|
24
|
+
:param bool is_site_script_package:
|
|
25
|
+
:param str title:
|
|
26
|
+
:param int version:
|
|
9
27
|
"""
|
|
10
|
-
self.Id =
|
|
28
|
+
self.Id = id_
|
|
11
29
|
self.Content = content
|
|
12
30
|
self.Description = description
|
|
31
|
+
self.IsSiteScriptPackage = is_site_script_package
|
|
32
|
+
self.Title = title
|
|
33
|
+
self.Version = version
|
|
34
|
+
|
|
35
|
+
@property
|
|
36
|
+
def entity_type_name(self):
|
|
37
|
+
return "Microsoft.SharePoint.Utilities.WebTemplateExtensions.SiteScriptMetadata"
|
|
@@ -42,6 +42,23 @@ class SiteScriptUtility(Entity):
|
|
|
42
42
|
context.add_query(qry)
|
|
43
43
|
return return_type
|
|
44
44
|
|
|
45
|
+
@staticmethod
|
|
46
|
+
def get_list_designs(context, store=None):
|
|
47
|
+
"""
|
|
48
|
+
Gets a list designs.
|
|
49
|
+
|
|
50
|
+
:param office365.sharepoint.client_context.ClientContext context: SharePoint context
|
|
51
|
+
:param str store:
|
|
52
|
+
"""
|
|
53
|
+
return_type = ClientResult(context, SiteDesignMetadata())
|
|
54
|
+
utility = SiteScriptUtility(context)
|
|
55
|
+
payload = {"store": store}
|
|
56
|
+
qry = ServiceOperationQuery(
|
|
57
|
+
utility, "GetListDesigns", None, payload, None, return_type, True
|
|
58
|
+
)
|
|
59
|
+
context.add_query(qry)
|
|
60
|
+
return return_type
|
|
61
|
+
|
|
45
62
|
@staticmethod
|
|
46
63
|
def add_site_design_task(context, web_url, site_design_id):
|
|
47
64
|
"""
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
2
|
+
from office365.sharepoint.entity import Entity
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class SPOWebAppServicePrincipalPublic(Entity):
|
|
6
|
+
""" """
|
|
7
|
+
|
|
8
|
+
def __init__(self, context):
|
|
9
|
+
""" """
|
|
10
|
+
static_path = ResourcePath(
|
|
11
|
+
"Microsoft.Online.SharePoint.TenantAdministration.SPOWebAppServicePrincipalPublic"
|
|
12
|
+
)
|
|
13
|
+
super(SPOWebAppServicePrincipalPublic, self).__init__(context, static_path)
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def entity_type_name(self):
|
|
17
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.SPOWebAppServicePrincipalPublic"
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
from office365.runtime.client_value import ClientValue
|
|
2
|
+
from office365.runtime.client_value_collection import ClientValueCollection
|
|
3
|
+
from office365.sharepoint.tenant.administration.modified_property import (
|
|
4
|
+
ModifiedProperty,
|
|
5
|
+
)
|
|
2
6
|
|
|
3
7
|
|
|
4
8
|
class AuditData(ClientValue):
|
|
9
|
+
|
|
10
|
+
def __init__(self, client_ip=None, correlation_id=None, modified_properties=None):
|
|
11
|
+
self.ClientIP = client_ip
|
|
12
|
+
self.CorrelationId = correlation_id
|
|
13
|
+
self.ModifiedProperties = ClientValueCollection(
|
|
14
|
+
ModifiedProperty, modified_properties
|
|
15
|
+
)
|
|
16
|
+
|
|
5
17
|
@property
|
|
6
18
|
def entity_type_name(self):
|
|
7
19
|
return "Microsoft.SharePoint.Administration.TenantAdmin.AuditData"
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
from office365.runtime.client_value import ClientValue
|
|
2
|
+
from office365.sharepoint.tenant.administration.audit.data import AuditData
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
class UnifiedAuditRecord(ClientValue):
|
|
6
|
+
|
|
7
|
+
def __init__(
|
|
8
|
+
self,
|
|
9
|
+
audit_data=AuditData(),
|
|
10
|
+
creation_date=None,
|
|
11
|
+
operation=None,
|
|
12
|
+
record_id=None,
|
|
13
|
+
record_type=None,
|
|
14
|
+
user_id=None,
|
|
15
|
+
):
|
|
16
|
+
self.AuditData = audit_data
|
|
17
|
+
self.CreationDate = creation_date
|
|
18
|
+
self.Operation = operation
|
|
19
|
+
self.RecordId = record_id
|
|
20
|
+
self.RecordType = record_type
|
|
21
|
+
self.UserId = user_id
|
|
22
|
+
|
|
5
23
|
@property
|
|
6
24
|
def entity_type_name(self):
|
|
7
25
|
return "Microsoft.SharePoint.Administration.TenantAdmin.UnifiedAuditRecord"
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
2
|
+
from office365.sharepoint.entity import Entity
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Office365CommsMessagesServiceProxy(Entity):
|
|
6
|
+
""""""
|
|
7
|
+
|
|
8
|
+
def __init__(self, context):
|
|
9
|
+
static_path = ResourcePath(
|
|
10
|
+
"Microsoft.Online.SharePoint.TenantAdministration.Office365CommsMessagesServiceProxy"
|
|
11
|
+
)
|
|
12
|
+
super(Office365CommsMessagesServiceProxy, self).__init__(context, static_path)
|
|
13
|
+
|
|
14
|
+
@property
|
|
15
|
+
def entity_type_name(self):
|
|
16
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.Office365CommsMessagesServiceProxy"
|
|
File without changes
|