Office365-REST-Python-Client 3.1.0__py3-none-any.whl → 3.2.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/communications/callrecords/call_record.py +18 -0
- office365/communications/calls/call.py +3 -0
- office365/communications/presences/presence.py +3 -0
- office365/communications/quotas.py +66 -0
- office365/communications/virtualevents/virtual_event.py +3 -0
- office365/directory/domains/domain.py +3 -0
- office365/directory/licenses/subscribed_sku.py +3 -0
- office365/directory/objects/object.py +3 -0
- office365/directory/quotas.py +34 -0
- office365/entity_collection.py +2 -2
- office365/graph_client.py +46 -2
- office365/limits.py +66 -0
- office365/migration/__init__.py +6 -1
- office365/migration/adapters/__init__.py +14 -4
- office365/migration/adapters/filesystem.py +4 -1
- office365/migration/assessment/export.py +5 -5
- office365/migration/assessment/issue.py +19 -0
- office365/migration/assessment/report.py +11 -0
- office365/migration/assessment/scanners/base.py +37 -49
- office365/migration/base.py +33 -8
- office365/migration/checkpoint.py +1 -1
- office365/migration/outlook/assessor.py +4 -4
- office365/migration/package/__init__.py +82 -0
- office365/migration/package/builder.py +603 -0
- office365/migration/package/crypto.py +54 -0
- office365/migration/package/manifest_xml.py +495 -0
- office365/migration/package/staging.py +180 -0
- office365/migration/report.py +7 -2
- office365/migration/report_io.py +79 -0
- office365/migration/runner.py +117 -10
- office365/migration/server_job.py +126 -14
- office365/migration/session.py +132 -49
- office365/migration/settings.py +67 -0
- office365/migration/sharepoint/__init__.py +2 -0
- office365/migration/sharepoint/adapters.py +207 -41
- office365/migration/sharepoint/assessor.py +45 -9
- office365/migration/sharepoint/options.py +57 -0
- office365/migration/sharepoint/package_target.py +209 -0
- office365/migration/sharepoint/registry.py +22 -0
- office365/migration/sharepoint/resolvers.py +96 -0
- office365/migration/sharepoint/scanners/__init__.py +29 -0
- office365/migration/sharepoint/scanners/browser_file_handling.py +55 -0
- office365/migration/sharepoint/scanners/checked_out_files.py +57 -0
- office365/migration/sharepoint/scanners/file_versions.py +56 -0
- office365/migration/sharepoint/scanners/files.py +5 -2
- office365/migration/sharepoint/scanners/large_excel_files.py +56 -0
- office365/migration/sharepoint/scanners/large_lists.py +58 -0
- office365/migration/sharepoint/scanners/large_sites.py +4 -3
- office365/migration/sharepoint/scanners/long_onedrive_urls.py +52 -0
- office365/migration/sharepoint/scanners/lookup.py +38 -0
- office365/migration/sharepoint/scanners/paths.py +9 -4
- office365/migration/sharepoint/scanners/permissions.py +20 -2
- office365/migration/sharepoint/scanners/smat.py +51 -0
- office365/migration/sharepoint/scanners/summary.py +1 -0
- office365/migration/sharepoint/scanners/thicket_folders.py +38 -0
- office365/migration/sharepoint/scanners/unsupported_site_templates.py +90 -0
- office365/migration/sharepoint/tenant_assessor.py +5 -3
- office365/migration/sharepoint/transfer.py +4 -2
- office365/migration/tasks.py +121 -0
- office365/migration/validators.py +2 -19
- office365/onedrive/driveitems/driveItem.py +116 -12
- office365/onedrive/termstore/groups/collection.py +2 -9
- office365/onedrive/termstore/sets/collection.py +2 -9
- office365/onedrive/termstore/terms/collection.py +3 -10
- office365/onedrive/workbooks/workbook.py +7 -0
- office365/outlook/contacts/folders/collection.py +4 -13
- office365/runtime/auth/authentication_context.py +5 -0
- office365/runtime/client_object.py +18 -0
- office365/runtime/client_object_collection.py +75 -245
- office365/runtime/client_request.py +77 -1
- office365/runtime/client_request_exception.py +127 -39
- office365/runtime/client_runtime_context.py +79 -8
- office365/runtime/converters/csv_writer.py +10 -4
- office365/runtime/converters/dataframe.py +84 -4
- office365/runtime/converters/json_file.py +12 -3
- office365/runtime/converters/parquet.py +67 -0
- office365/runtime/converters/records.py +31 -12
- office365/runtime/converters/registry.py +185 -0
- office365/runtime/converters/scalars.py +31 -0
- office365/runtime/converters/sql.py +69 -0
- office365/runtime/converters/streamers.py +105 -0
- office365/runtime/converters/streams.py +42 -0
- office365/runtime/converters/upsert.py +101 -0
- office365/runtime/exceptions.py +105 -0
- office365/runtime/http/prefer.py +26 -0
- office365/runtime/http/throttling.py +258 -56
- office365/runtime/imports.py +571 -0
- office365/runtime/limits.py +455 -0
- office365/runtime/odata/request.py +11 -2
- office365/runtime/odata/type.py +1 -0
- office365/runtime/odata/v3/batch_request.py +4 -2
- office365/runtime/odata/v4/batch_request.py +22 -7
- office365/runtime/operations.py +29 -0
- office365/runtime/parallel.py +12 -14
- office365/runtime/paths/v4/entity.py +2 -2
- office365/runtime/queries/batch.py +18 -1
- office365/runtime/queries/get_or_create.py +109 -0
- office365/runtime/record_collection.py +443 -0
- office365/runtime/retry.py +92 -26
- office365/runtime/transport/base.py +6 -1
- office365/runtime/transport/requests_transport.py +4 -0
- office365/runtime/transport/throttled_transport.py +67 -0
- office365/runtime/verification.py +40 -0
- office365/sharepoint/activities/logger.py +118 -8
- office365/sharepoint/administration/analytics/usage_service.py +15 -7
- office365/sharepoint/administration/sitemove/service.py +791 -8
- office365/sharepoint/alerts/alert.py +79 -0
- office365/sharepoint/apps/app_collection.py +25 -0
- office365/sharepoint/apps/launcher.py +16 -0
- office365/sharepoint/authpolicy/tenant/compliancereport.py +5 -0
- office365/sharepoint/businessdata/app_bdc_catalog.py +135 -0
- office365/sharepoint/businessdata/entityfieldvaluedictionary.py +65 -0
- office365/sharepoint/businessdata/entityidentifier.py +23 -0
- office365/sharepoint/businessdata/entityinstance.py +52 -0
- office365/sharepoint/businessdata/entityview.py +31 -0
- office365/sharepoint/businessdata/externalsubscriptionstore.py +9 -0
- office365/sharepoint/businessdata/typedescriptor.py +37 -0
- office365/sharepoint/client_context.py +40 -23
- office365/sharepoint/clientsidecomponent/hostedapps/app.py +21 -0
- office365/sharepoint/clientsidecomponent/hostedapps/manager.py +16 -0
- office365/sharepoint/comments/comment.py +84 -2
- office365/sharepoint/contentcenter/machinelearning/models/model.py +0 -23
- office365/sharepoint/contentcenter/machinelearning/publications/publication.py +0 -9
- office365/sharepoint/contentcenter/machinelearning/samples/sample.py +0 -14
- office365/sharepoint/contentcenter/machinelearning/workitems/item.py +0 -80
- office365/sharepoint/contentsolution/template_api.py +148 -0
- office365/sharepoint/contenttypes/collection.py +32 -10
- office365/sharepoint/convergence/addnoliveblobsinodcservicestateapi.py +9 -0
- office365/sharepoint/convergence/consumer_permissions.py +15 -0
- office365/sharepoint/convergence/migration_complete_state_api.py +25 -0
- office365/sharepoint/convergence/odcmetadatacleanedupapi.py +9 -0
- office365/sharepoint/documentmanagement/document_id.py +12 -0
- office365/sharepoint/entity.py +11 -2
- office365/sharepoint/entity_collection.py +2 -2
- office365/sharepoint/exceptions.py +194 -0
- office365/sharepoint/fields/builtin_field_id.py +45 -34
- office365/sharepoint/fields/builtin_field_name.py +123 -0
- office365/sharepoint/fields/coercion.py +131 -0
- office365/sharepoint/fields/collection.py +54 -37
- office365/sharepoint/fields/field.py +17 -0
- office365/sharepoint/fields/name.py +46 -2
- office365/sharepoint/files/collection.py +7 -1
- office365/sharepoint/files/file.py +54 -8
- office365/sharepoint/files/versions/version.py +38 -13
- office365/sharepoint/folders/collection.py +4 -0
- office365/sharepoint/folders/folder.py +91 -21
- office365/sharepoint/htmlpages/html_page.py +16 -0
- office365/sharepoint/htmlpages/html_page_service.py +19 -0
- office365/sharepoint/ir/migration.py +9 -0
- office365/sharepoint/listitems/caml/__init__.py +31 -0
- office365/sharepoint/listitems/caml/builder.py +129 -0
- office365/sharepoint/listitems/caml/expressions.py +424 -0
- office365/sharepoint/listitems/caml/fields.py +68 -0
- office365/sharepoint/listitems/caml/guard.py +63 -0
- office365/sharepoint/listitems/caml/query.py +71 -2
- office365/sharepoint/listitems/caml/values.py +113 -0
- office365/sharepoint/listitems/collection.py +21 -20
- office365/sharepoint/listitems/upsert.py +75 -0
- office365/sharepoint/lists/collection.py +29 -22
- office365/sharepoint/lists/exporter.py +4 -3
- office365/sharepoint/lists/list.py +397 -39
- office365/sharepoint/lists/smart_wiki_library_utility.py +58 -0
- office365/sharepoint/logger/export.py +12 -0
- office365/sharepoint/marketplace/app_metadata.py +97 -1
- office365/sharepoint/marketplace/appstatequeryjobdefinition.py +9 -0
- office365/sharepoint/marketplace/corporatecuratedgallery/carddesigns/card_designs.py +35 -0
- office365/sharepoint/marketplace/sitecollection/appcatalog/allowed_item.py +5 -0
- office365/sharepoint/marketplace/tenant/appcatalog/accessor.py +107 -30
- office365/sharepoint/microfeed/data.py +0 -6
- office365/sharepoint/microservice/manager.py +61 -0
- office365/sharepoint/migrationcenter/common/task.py +193 -4
- office365/sharepoint/migrationcenter/common/task_entity_data.py +1 -1
- office365/sharepoint/migrationcenter/deploy_status.py +13 -0
- office365/sharepoint/migrationcenter/service/properties.py +20 -0
- office365/sharepoint/migrationcenter/service/storage.py +34 -0
- office365/sharepoint/migrationcenter/spflight.py +13 -0
- office365/sharepoint/migrationcenter/urlparseresult.py +77 -0
- office365/sharepoint/multigeo/service/spmultigeoproxy.py +13 -0
- office365/sharepoint/navigation/servicerest.py +127 -0
- office365/sharepoint/oauth/authentication.py +13 -0
- office365/sharepoint/portal/theme_manager.py +120 -8
- office365/sharepoint/principal/users/user.py +10 -0
- office365/sharepoint/publishing/campaign/campaign.py +36 -1
- office365/sharepoint/publishing/feedvideopage.py +0 -7
- office365/sharepoint/publishing/pages/3d/page.py +0 -6
- office365/sharepoint/publishing/pages/page.py +0 -117
- office365/sharepoint/publishing/pages/reposts/repost.py +0 -7
- office365/sharepoint/publishing/pages/topics/topic.py +0 -7
- office365/sharepoint/publishing/subtitlefile.py +0 -40
- office365/sharepoint/quotamanagement/consumer/consumer_quota_info_api.py +14 -0
- office365/sharepoint/quotamanagement/consumer/non_quota_backfill_api.py +23 -0
- office365/sharepoint/quotamanagement/consumer/nonquotamigrationapi.py +9 -0
- office365/sharepoint/quotamanagement/consumer/quotamigrationapi.py +13 -0
- office365/sharepoint/request.py +57 -16
- office365/sharepoint/search/administration/document_crawl_log.py +24 -7
- office365/sharepoint/search/administration/providers/crawl_versions_info.py +29 -0
- office365/sharepoint/search/administration/providers/recycle_bin_info.py +23 -0
- office365/sharepoint/search/administration/providers/site_content_processing_info.py +67 -0
- office365/sharepoint/sites/site.py +976 -65
- office365/sharepoint/sites/siteprovisioninginfoprovider.py +13 -0
- office365/sharepoint/tenant/administration/datagovernance/insight_client.py +292 -23
- office365/sharepoint/tenant/administration/ddiadapter.py +97 -0
- office365/sharepoint/tenant/administration/internal/aad/collection.py +20 -0
- office365/sharepoint/tenant/administration/internal/aad/permission_grant.py +0 -19
- office365/sharepoint/tenant/administration/internal/appservice/permission_request.py +72 -1
- office365/sharepoint/tenant/administration/internal/appservice/principal.py +1 -3
- office365/sharepoint/tenant/administration/odb_license_enforcement_service.py +26 -0
- office365/sharepoint/tenant/administration/sites/properties.py +564 -6
- office365/sharepoint/tenant/administration/spdatagovernancesarrestapiclient.py +60 -1
- office365/sharepoint/tenant/insights/reports/manager.py +24 -12
- office365/sharepoint/tenant/management/office365_tenant.py +451 -2
- office365/sharepoint/tenantadministration/catalog_management_collection.py +69 -0
- office365/sharepoint/tenantadministration/catalog_management_custom_properties_collection.py +237 -0
- office365/sharepoint/tenantadministration/catalog_management_restricted_content_discovery_collection.py +56 -0
- office365/sharepoint/tenantadministration/sp_data_governance_client_exception.py +7 -0
- office365/sharepoint/thresholds.py +529 -0
- office365/sharepoint/translation/jobs/job.py +72 -2
- office365/sharepoint/translation/jobs/status.py +47 -9
- office365/sharepoint/translation/sync_translator.py +15 -2
- office365/sharepoint/utilities/move_copy_util.py +2 -1
- office365/sharepoint/viva/connections/page.py +27 -0
- office365/sharepoint/viva/home.py +38 -0
- office365/sharepoint/viva/learningmanager.py +9 -0
- office365/sharepoint/viva/vivaresources.py +60 -0
- office365/sharepoint/webhooks/subscription.py +0 -11
- office365/sharepoint/webparts/definitions/definition.py +13 -0
- office365/sharepoint/webparts/limited_manager.py +29 -7
- office365/sharepoint/webs/context_web_information.py +14 -9
- office365/sharepoint/webs/templates/__init__.py +11 -0
- office365/sharepoint/webs/templates/type.py +74 -15
- office365/sharepoint/workflow/definition.py +6 -0
- office365/sharepoint/workflow/deployment_service.py +155 -0
- office365/sharepoint/workflow/instances/service.py +33 -0
- office365/sharepoint/workflow/interopservice.py +68 -0
- office365/sharepoint/workflow/messagingservice.py +24 -0
- office365/sharepoint/workflow/servicesmanager.py +41 -2
- office365/sharepoint/workflow/subscriptions/service.py +67 -0
- office365/sharepoint/workflow/subscriptions/subscription.py +31 -0
- office365/sharepoint/workflow/task.py +425 -0
- office365_rest_python_client-3.2.0.dist-info/METADATA +605 -0
- {office365_rest_python_client-3.1.0.dist-info → office365_rest_python_client-3.2.0.dist-info}/RECORD +242 -185
- office365/migration/_util.py +0 -73
- office365/sharepoint/listitems/caml/types.py +0 -70
- office365_rest_python_client-3.1.0.dist-info/METADATA +0 -475
- {office365_rest_python_client-3.1.0.dist-info → office365_rest_python_client-3.2.0.dist-info}/WHEEL +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from office365.runtime.client_result import ClientResult
|
|
2
|
+
from office365.runtime.queries.function import FunctionQuery
|
|
1
3
|
from office365.sharepoint.entity import Entity
|
|
2
4
|
|
|
3
5
|
|
|
@@ -5,3 +7,14 @@ class SiteProvisioningInfoProvider(Entity):
|
|
|
5
7
|
@property
|
|
6
8
|
def entity_type_name(self) -> str:
|
|
7
9
|
return "Microsoft.SharePoint.Client.Search.Administration.SiteProvisioningInfoProvider"
|
|
10
|
+
|
|
11
|
+
def check_site_ingestion_status(self, site_id: str) -> ClientResult[bool]:
|
|
12
|
+
"""CheckSiteIngestionStatus operation.
|
|
13
|
+
|
|
14
|
+
Args:
|
|
15
|
+
site_id (str): siteId parameter
|
|
16
|
+
"""
|
|
17
|
+
return_type = ClientResult(self.context, bool())
|
|
18
|
+
qry = FunctionQuery(self, "CheckSiteIngestionStatus", [site_id], return_type)
|
|
19
|
+
self.context.add_query(qry)
|
|
20
|
+
return return_type
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
from typing import TYPE_CHECKING
|
|
4
|
+
from uuid import UUID
|
|
5
|
+
|
|
6
|
+
from typing_extensions import Self
|
|
4
7
|
|
|
5
8
|
from office365.runtime.client_result import ClientResult
|
|
9
|
+
from office365.runtime.client_value_collection import ClientValueCollection
|
|
6
10
|
from office365.runtime.paths.service_operation import ServiceOperationPath
|
|
7
11
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
8
|
-
from office365.
|
|
9
|
-
|
|
12
|
+
from office365.runtime.types.collections import GuidCollection, StringCollection
|
|
13
|
+
from office365.sharepoint.tenant.administration.audit.datacollectionresponse import SPAuditDataCollectionResponse
|
|
14
|
+
from office365.sharepoint.tenant.administration.data_governance_insight_query_parameters import (
|
|
15
|
+
SPDataGovernanceInsightQueryParameters,
|
|
16
|
+
)
|
|
17
|
+
from office365.sharepoint.tenant.administration.datagovernance.client_base import SPDataGovernanceRestApiClientBase
|
|
18
|
+
from office365.sharepoint.tenant.administration.datagovernance.insight_metadata import SPDataGovernanceInsightMetadata
|
|
19
|
+
from office365.sharepoint.tenant.administration.sp_data_governance_insight_create_parameters import (
|
|
20
|
+
SPDataGovernanceInsightCreateParameters,
|
|
10
21
|
)
|
|
11
|
-
from office365.sharepoint.tenant.administration.
|
|
12
|
-
|
|
22
|
+
from office365.sharepoint.tenant.administration.sp_data_governance_opt_in_parameters import (
|
|
23
|
+
SPDataGovernanceOptInParameters,
|
|
13
24
|
)
|
|
25
|
+
from office365.sharepoint.tenant.administration.spdatagovernanceinsightresponse import SPDataGovernanceInsightResponse
|
|
14
26
|
|
|
15
27
|
if TYPE_CHECKING:
|
|
16
28
|
from office365.sharepoint.client_context import ClientContext
|
|
@@ -19,20 +31,10 @@ if TYPE_CHECKING:
|
|
|
19
31
|
class SPDataGovernanceInsightRestApiClient(SPDataGovernanceRestApiClientBase):
|
|
20
32
|
""""""
|
|
21
33
|
|
|
22
|
-
def __init__(
|
|
23
|
-
self,
|
|
24
|
-
context: ClientContext,
|
|
25
|
-
authorization_header: str,
|
|
26
|
-
url: str,
|
|
27
|
-
user_agent: str,
|
|
28
|
-
) -> None:
|
|
34
|
+
def __init__(self, context: ClientContext, authorization_header: str, url: str, user_agent: str) -> None:
|
|
29
35
|
static_path = ServiceOperationPath(
|
|
30
36
|
"Microsoft.Online.SharePoint.TenantAdministration.SPDataGovernanceInsightRestApiClient",
|
|
31
|
-
{
|
|
32
|
-
"authorizationHeader": authorization_header,
|
|
33
|
-
"url": url,
|
|
34
|
-
"userAgent": user_agent,
|
|
35
|
-
},
|
|
37
|
+
{"authorizationHeader": authorization_header, "url": url, "userAgent": user_agent},
|
|
36
38
|
)
|
|
37
39
|
super().__init__(context, static_path)
|
|
38
40
|
|
|
@@ -63,28 +65,295 @@ class SPDataGovernanceInsightRestApiClient(SPDataGovernanceRestApiClientBase):
|
|
|
63
65
|
"siteSensitivityLabelGUID": site_sensitivity_label_guid,
|
|
64
66
|
"countOfUsersMoreThan": count_of_users_more_than,
|
|
65
67
|
}
|
|
68
|
+
qry = ServiceOperationQuery(self, "CreateDataAccessGovernanceReport", None, payload, None, return_type)
|
|
69
|
+
self.context.add_query(qry)
|
|
70
|
+
return return_type
|
|
71
|
+
|
|
72
|
+
def export_spo_data_access_governance_insight(self, report_id: str) -> ClientResult[str]:
|
|
73
|
+
""" """
|
|
74
|
+
return_type = ClientResult(self.context, str())
|
|
75
|
+
payload = {"reportId": report_id}
|
|
76
|
+
qry = ServiceOperationQuery(self, "ExportSPODataAccessGovernanceInsight", None, payload, None, return_type)
|
|
77
|
+
self.context.add_query(qry)
|
|
78
|
+
return return_type
|
|
79
|
+
|
|
80
|
+
def create_data_access_governance_report_v2(
|
|
81
|
+
self,
|
|
82
|
+
report_entity: int,
|
|
83
|
+
workload: int,
|
|
84
|
+
report_type: int,
|
|
85
|
+
file_sensitivity_label_name: str,
|
|
86
|
+
file_sensitivity_label_guid: str,
|
|
87
|
+
name: str,
|
|
88
|
+
template: list[int],
|
|
89
|
+
privacy: str,
|
|
90
|
+
site_sensitivity_label_guid: list[UUID],
|
|
91
|
+
count_of_users_more_than: int,
|
|
92
|
+
user_id_list: list[UUID],
|
|
93
|
+
) -> ClientResult[SPDataGovernanceInsightMetadata]:
|
|
94
|
+
"""CreateDataAccessGovernanceReportV2 operation.
|
|
95
|
+
|
|
96
|
+
Args:
|
|
97
|
+
report_entity (int): reportEntity parameter
|
|
98
|
+
workload (int): workload parameter
|
|
99
|
+
report_type (int): reportType parameter
|
|
100
|
+
file_sensitivity_label_name (str): fileSensitivityLabelName parameter
|
|
101
|
+
file_sensitivity_label_guid (str): fileSensitivityLabelGUID parameter
|
|
102
|
+
name (str): name parameter
|
|
103
|
+
template (list[int]): template parameter
|
|
104
|
+
privacy (str): privacy parameter
|
|
105
|
+
site_sensitivity_label_guid (list[UUID]): siteSensitivityLabelGUID parameter
|
|
106
|
+
count_of_users_more_than (int): countOfUsersMoreThan parameter
|
|
107
|
+
user_id_list (list[UUID]): userIDList parameter
|
|
108
|
+
"""
|
|
109
|
+
return_type = ClientResult(self.context, SPDataGovernanceInsightMetadata())
|
|
66
110
|
qry = ServiceOperationQuery(
|
|
67
111
|
self,
|
|
68
|
-
"
|
|
112
|
+
"CreateDataAccessGovernanceReportV2",
|
|
69
113
|
None,
|
|
70
|
-
|
|
114
|
+
{
|
|
115
|
+
"reportEntity": report_entity,
|
|
116
|
+
"workload": workload,
|
|
117
|
+
"reportType": report_type,
|
|
118
|
+
"fileSensitivityLabelName": file_sensitivity_label_name,
|
|
119
|
+
"fileSensitivityLabelGUID": file_sensitivity_label_guid,
|
|
120
|
+
"name": name,
|
|
121
|
+
"template": ClientValueCollection(int, template),
|
|
122
|
+
"privacy": privacy,
|
|
123
|
+
"siteSensitivityLabelGUID": GuidCollection(site_sensitivity_label_guid),
|
|
124
|
+
"countOfUsersMoreThan": count_of_users_more_than,
|
|
125
|
+
"userIDList": GuidCollection(user_id_list),
|
|
126
|
+
},
|
|
71
127
|
None,
|
|
72
128
|
return_type,
|
|
73
129
|
)
|
|
74
130
|
self.context.add_query(qry)
|
|
75
131
|
return return_type
|
|
76
132
|
|
|
77
|
-
def
|
|
78
|
-
|
|
133
|
+
def create_data_access_governance_report_v3(
|
|
134
|
+
self,
|
|
135
|
+
report_entity: int,
|
|
136
|
+
workload: int,
|
|
137
|
+
report_type: int,
|
|
138
|
+
file_sensitivity_label_name: str,
|
|
139
|
+
file_sensitivity_label_guid: str,
|
|
140
|
+
name: str,
|
|
141
|
+
template: list[int],
|
|
142
|
+
privacy: str,
|
|
143
|
+
site_sensitivity_label_guid: list[UUID],
|
|
144
|
+
count_of_users_more_than: int,
|
|
145
|
+
user_email_list: list[str],
|
|
146
|
+
) -> ClientResult[SPDataGovernanceInsightMetadata]:
|
|
147
|
+
"""CreateDataAccessGovernanceReportV3 operation.
|
|
148
|
+
|
|
149
|
+
Args:
|
|
150
|
+
report_entity (int): reportEntity parameter
|
|
151
|
+
workload (int): workload parameter
|
|
152
|
+
report_type (int): reportType parameter
|
|
153
|
+
file_sensitivity_label_name (str): fileSensitivityLabelName parameter
|
|
154
|
+
file_sensitivity_label_guid (str): fileSensitivityLabelGUID parameter
|
|
155
|
+
name (str): name parameter
|
|
156
|
+
template (list[int]): template parameter
|
|
157
|
+
privacy (str): privacy parameter
|
|
158
|
+
site_sensitivity_label_guid (list[UUID]): siteSensitivityLabelGUID parameter
|
|
159
|
+
count_of_users_more_than (int): countOfUsersMoreThan parameter
|
|
160
|
+
user_email_list (list[str]): userEmailList parameter
|
|
161
|
+
"""
|
|
162
|
+
return_type = ClientResult(self.context, SPDataGovernanceInsightMetadata())
|
|
163
|
+
qry = ServiceOperationQuery(
|
|
164
|
+
self,
|
|
165
|
+
"CreateDataAccessGovernanceReportV3",
|
|
166
|
+
None,
|
|
167
|
+
{
|
|
168
|
+
"reportEntity": report_entity,
|
|
169
|
+
"workload": workload,
|
|
170
|
+
"reportType": report_type,
|
|
171
|
+
"fileSensitivityLabelName": file_sensitivity_label_name,
|
|
172
|
+
"fileSensitivityLabelGUID": file_sensitivity_label_guid,
|
|
173
|
+
"name": name,
|
|
174
|
+
"template": ClientValueCollection(int, template),
|
|
175
|
+
"privacy": privacy,
|
|
176
|
+
"siteSensitivityLabelGUID": GuidCollection(site_sensitivity_label_guid),
|
|
177
|
+
"countOfUsersMoreThan": count_of_users_more_than,
|
|
178
|
+
"userEmailList": StringCollection(user_email_list),
|
|
179
|
+
},
|
|
180
|
+
None,
|
|
181
|
+
return_type,
|
|
182
|
+
)
|
|
183
|
+
self.context.add_query(qry)
|
|
184
|
+
return return_type
|
|
185
|
+
|
|
186
|
+
def create_data_access_governance_report_v4(
|
|
187
|
+
self, request: SPDataGovernanceInsightCreateParameters
|
|
188
|
+
) -> ClientResult[SPDataGovernanceInsightMetadata]:
|
|
189
|
+
"""CreateDataAccessGovernanceReportV4 operation.
|
|
190
|
+
|
|
191
|
+
Args:
|
|
192
|
+
request (SPDataGovernanceInsightCreateParameters): request parameter
|
|
193
|
+
"""
|
|
194
|
+
return_type = ClientResult(self.context, SPDataGovernanceInsightMetadata())
|
|
195
|
+
qry = ServiceOperationQuery(
|
|
196
|
+
self, "CreateDataAccessGovernanceReportV4", None, {"request": request}, None, return_type
|
|
197
|
+
)
|
|
198
|
+
self.context.add_query(qry)
|
|
199
|
+
return return_type
|
|
200
|
+
|
|
201
|
+
def export_spo_data_access_governance_insight_v2(self, report_id: UUID) -> ClientResult[str]:
|
|
202
|
+
"""ExportSPODataAccessGovernanceInsightV2 operation.
|
|
203
|
+
|
|
204
|
+
Args:
|
|
205
|
+
report_id (UUID): reportId parameter
|
|
206
|
+
"""
|
|
207
|
+
return_type = ClientResult(self.context, str())
|
|
208
|
+
qry = ServiceOperationQuery(
|
|
209
|
+
self, "ExportSPODataAccessGovernanceInsightV2", None, {"reportId": report_id}, None, return_type
|
|
210
|
+
)
|
|
211
|
+
self.context.add_query(qry)
|
|
212
|
+
return return_type
|
|
213
|
+
|
|
214
|
+
def export_spo_data_access_governance_insight_v3(self, report_id: UUID) -> ClientResult[str]:
|
|
215
|
+
"""ExportSPODataAccessGovernanceInsightV3 operation.
|
|
216
|
+
|
|
217
|
+
Args:
|
|
218
|
+
report_id (UUID): reportId parameter
|
|
219
|
+
"""
|
|
79
220
|
return_type = ClientResult(self.context, str())
|
|
80
|
-
|
|
221
|
+
qry = ServiceOperationQuery(
|
|
222
|
+
self, "ExportSPODataAccessGovernanceInsightV3", None, {"reportId": report_id}, None, return_type
|
|
223
|
+
)
|
|
224
|
+
self.context.add_query(qry)
|
|
225
|
+
return return_type
|
|
226
|
+
|
|
227
|
+
def get_spo_audit_data_collection_for_all_reports(
|
|
228
|
+
self,
|
|
229
|
+
) -> ClientResult[ClientValueCollection[SPAuditDataCollectionResponse]]:
|
|
230
|
+
"""GetSPOAuditDataCollectionForAllReports operation."""
|
|
231
|
+
return_type = ClientResult(self.context, ClientValueCollection[SPAuditDataCollectionResponse]())
|
|
232
|
+
qry = ServiceOperationQuery(self, "GetSPOAuditDataCollectionForAllReports", None, {}, None, return_type)
|
|
233
|
+
self.context.add_query(qry)
|
|
234
|
+
return return_type
|
|
235
|
+
|
|
236
|
+
def get_spo_audit_data_collection_for_report(
|
|
237
|
+
self, report_entity: int
|
|
238
|
+
) -> ClientResult[ClientValueCollection[SPAuditDataCollectionResponse]]:
|
|
239
|
+
"""GetSPOAuditDataCollectionForReport operation.
|
|
240
|
+
|
|
241
|
+
Args:
|
|
242
|
+
report_entity (int): reportEntity parameter
|
|
243
|
+
"""
|
|
244
|
+
return_type = ClientResult(self.context, ClientValueCollection[SPAuditDataCollectionResponse]())
|
|
245
|
+
qry = ServiceOperationQuery(
|
|
246
|
+
self, "GetSPOAuditDataCollectionForReport", None, {"reportEntity": report_entity}, None, return_type
|
|
247
|
+
)
|
|
248
|
+
self.context.add_query(qry)
|
|
249
|
+
return return_type
|
|
250
|
+
|
|
251
|
+
def get_spo_data_access_governance_insight(
|
|
252
|
+
self, report_entity: int, work_load: int
|
|
253
|
+
) -> ClientResult[ClientValueCollection[SPDataGovernanceInsightResponse]]:
|
|
254
|
+
"""GetSPODataAccessGovernanceInsight operation.
|
|
255
|
+
|
|
256
|
+
Args:
|
|
257
|
+
report_entity (int): reportEntity parameter
|
|
258
|
+
work_load (int): workLoad parameter
|
|
259
|
+
"""
|
|
260
|
+
return_type = ClientResult(self.context, ClientValueCollection[SPDataGovernanceInsightResponse]())
|
|
81
261
|
qry = ServiceOperationQuery(
|
|
82
262
|
self,
|
|
83
|
-
"
|
|
263
|
+
"GetSPODataAccessGovernanceInsight",
|
|
84
264
|
None,
|
|
85
|
-
|
|
265
|
+
{"reportEntity": report_entity, "workLoad": work_load},
|
|
86
266
|
None,
|
|
87
267
|
return_type,
|
|
88
268
|
)
|
|
89
269
|
self.context.add_query(qry)
|
|
90
270
|
return return_type
|
|
271
|
+
|
|
272
|
+
def get_spo_data_access_governance_insight_by_id(
|
|
273
|
+
self, report_id: UUID
|
|
274
|
+
) -> ClientResult[SPDataGovernanceInsightResponse]:
|
|
275
|
+
"""GetSPODataAccessGovernanceInsightById operation.
|
|
276
|
+
|
|
277
|
+
Args:
|
|
278
|
+
report_id (UUID): reportId parameter
|
|
279
|
+
"""
|
|
280
|
+
return_type = ClientResult(self.context, SPDataGovernanceInsightResponse())
|
|
281
|
+
qry = ServiceOperationQuery(
|
|
282
|
+
self, "GetSPODataAccessGovernanceInsightById", None, {"reportId": report_id}, None, return_type
|
|
283
|
+
)
|
|
284
|
+
self.context.add_query(qry)
|
|
285
|
+
return return_type
|
|
286
|
+
|
|
287
|
+
def get_spo_data_access_governance_insight_v2(
|
|
288
|
+
self, report_entity: int
|
|
289
|
+
) -> ClientResult[ClientValueCollection[SPDataGovernanceInsightResponse]]:
|
|
290
|
+
"""GetSPODataAccessGovernanceInsightV2 operation.
|
|
291
|
+
|
|
292
|
+
Args:
|
|
293
|
+
report_entity (int): reportEntity parameter
|
|
294
|
+
"""
|
|
295
|
+
return_type = ClientResult(self.context, ClientValueCollection[SPDataGovernanceInsightResponse]())
|
|
296
|
+
qry = ServiceOperationQuery(
|
|
297
|
+
self, "GetSPODataAccessGovernanceInsightV2", None, {"reportEntity": report_entity}, None, return_type
|
|
298
|
+
)
|
|
299
|
+
self.context.add_query(qry)
|
|
300
|
+
return return_type
|
|
301
|
+
|
|
302
|
+
def get_spo_data_access_governance_insight_v3(
|
|
303
|
+
self, request: SPDataGovernanceInsightQueryParameters
|
|
304
|
+
) -> ClientResult[ClientValueCollection[SPDataGovernanceInsightResponse]]:
|
|
305
|
+
"""GetSPODataAccessGovernanceInsightV3 operation.
|
|
306
|
+
|
|
307
|
+
Args:
|
|
308
|
+
request (SPDataGovernanceInsightQueryParameters): request parameter
|
|
309
|
+
"""
|
|
310
|
+
return_type = ClientResult(self.context, ClientValueCollection[SPDataGovernanceInsightResponse]())
|
|
311
|
+
qry = ServiceOperationQuery(
|
|
312
|
+
self, "GetSPODataAccessGovernanceInsightV3", None, {"request": request}, None, return_type
|
|
313
|
+
)
|
|
314
|
+
self.context.add_query(qry)
|
|
315
|
+
return return_type
|
|
316
|
+
|
|
317
|
+
def remove_data_access_governance_report(self, report_id: UUID) -> Self:
|
|
318
|
+
"""RemoveDataAccessGovernanceReport operation.
|
|
319
|
+
|
|
320
|
+
Args:
|
|
321
|
+
report_id (UUID): reportId parameter
|
|
322
|
+
"""
|
|
323
|
+
qry = ServiceOperationQuery(self, "RemoveDataAccessGovernanceReport", None, {"reportId": report_id}, None, None)
|
|
324
|
+
self.context.add_query(qry)
|
|
325
|
+
return self
|
|
326
|
+
|
|
327
|
+
def set_opt_in_status_for_reports(
|
|
328
|
+
self, report_entity: int, opt_in_status: bool
|
|
329
|
+
) -> ClientResult[SPAuditDataCollectionResponse]:
|
|
330
|
+
"""SetOptInStatusForReports operation.
|
|
331
|
+
|
|
332
|
+
Args:
|
|
333
|
+
report_entity (int): reportEntity parameter
|
|
334
|
+
opt_in_status (bool): optInStatus parameter
|
|
335
|
+
"""
|
|
336
|
+
return_type = ClientResult(self.context, SPAuditDataCollectionResponse())
|
|
337
|
+
qry = ServiceOperationQuery(
|
|
338
|
+
self,
|
|
339
|
+
"SetOptInStatusForReports",
|
|
340
|
+
None,
|
|
341
|
+
{"reportEntity": report_entity, "optInStatus": opt_in_status},
|
|
342
|
+
None,
|
|
343
|
+
return_type,
|
|
344
|
+
)
|
|
345
|
+
self.context.add_query(qry)
|
|
346
|
+
return return_type
|
|
347
|
+
|
|
348
|
+
def set_opt_in_status_for_reports_v2(
|
|
349
|
+
self, request: SPDataGovernanceOptInParameters
|
|
350
|
+
) -> ClientResult[SPAuditDataCollectionResponse]:
|
|
351
|
+
"""SetOptInStatusForReportsV2 operation.
|
|
352
|
+
|
|
353
|
+
Args:
|
|
354
|
+
request (SPDataGovernanceOptInParameters): request parameter
|
|
355
|
+
"""
|
|
356
|
+
return_type = ClientResult(self.context, SPAuditDataCollectionResponse())
|
|
357
|
+
qry = ServiceOperationQuery(self, "SetOptInStatusForReportsV2", None, {"request": request}, None, return_type)
|
|
358
|
+
self.context.add_query(qry)
|
|
359
|
+
return return_type
|
|
@@ -1,3 +1,5 @@
|
|
|
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
|
|
|
@@ -5,3 +7,98 @@ class DDIAdapter(Entity):
|
|
|
5
7
|
@property
|
|
6
8
|
def entity_type_name(self) -> str:
|
|
7
9
|
return "Microsoft.Online.SharePoint.TenantAdmin.MiddleTier.DDIAdapter"
|
|
10
|
+
|
|
11
|
+
def get_list(self, schema: str, workflow: str, stream: bytes) -> ClientResult[str]:
|
|
12
|
+
"""GetList operation.
|
|
13
|
+
|
|
14
|
+
Args:
|
|
15
|
+
schema (str): schema parameter
|
|
16
|
+
workflow (str): workflow parameter
|
|
17
|
+
stream (bytes): stream parameter
|
|
18
|
+
"""
|
|
19
|
+
return_type = ClientResult(self.context, str())
|
|
20
|
+
qry = ServiceOperationQuery(
|
|
21
|
+
self, "GetList", None, {"schema": schema, "workflow": workflow, "stream": stream}, None, return_type
|
|
22
|
+
)
|
|
23
|
+
self.context.add_query(qry)
|
|
24
|
+
return return_type
|
|
25
|
+
|
|
26
|
+
def get_object(self, schema: str, workflow: str, stream: bytes) -> ClientResult[str]:
|
|
27
|
+
"""GetObject operation.
|
|
28
|
+
|
|
29
|
+
Args:
|
|
30
|
+
schema (str): schema parameter
|
|
31
|
+
workflow (str): workflow parameter
|
|
32
|
+
stream (bytes): stream parameter
|
|
33
|
+
"""
|
|
34
|
+
return_type = ClientResult(self.context, str())
|
|
35
|
+
qry = ServiceOperationQuery(
|
|
36
|
+
self, "GetObject", None, {"schema": schema, "workflow": workflow, "stream": stream}, None, return_type
|
|
37
|
+
)
|
|
38
|
+
self.context.add_query(qry)
|
|
39
|
+
return return_type
|
|
40
|
+
|
|
41
|
+
def multi_object_execute(self, schema: str, workflow: str, stream: bytes) -> ClientResult[str]:
|
|
42
|
+
"""MultiObjectExecute operation.
|
|
43
|
+
|
|
44
|
+
Args:
|
|
45
|
+
schema (str): schema parameter
|
|
46
|
+
workflow (str): workflow parameter
|
|
47
|
+
stream (bytes): stream parameter
|
|
48
|
+
"""
|
|
49
|
+
return_type = ClientResult(self.context, str())
|
|
50
|
+
qry = ServiceOperationQuery(
|
|
51
|
+
self,
|
|
52
|
+
"MultiObjectExecute",
|
|
53
|
+
None,
|
|
54
|
+
{"schema": schema, "workflow": workflow, "stream": stream},
|
|
55
|
+
None,
|
|
56
|
+
return_type,
|
|
57
|
+
)
|
|
58
|
+
self.context.add_query(qry)
|
|
59
|
+
return return_type
|
|
60
|
+
|
|
61
|
+
def new_object(self, schema: str, workflow: str, stream: bytes) -> ClientResult[str]:
|
|
62
|
+
"""NewObject operation.
|
|
63
|
+
|
|
64
|
+
Args:
|
|
65
|
+
schema (str): schema parameter
|
|
66
|
+
workflow (str): workflow parameter
|
|
67
|
+
stream (bytes): stream parameter
|
|
68
|
+
"""
|
|
69
|
+
return_type = ClientResult(self.context, str())
|
|
70
|
+
qry = ServiceOperationQuery(
|
|
71
|
+
self, "NewObject", None, {"schema": schema, "workflow": workflow, "stream": stream}, None, return_type
|
|
72
|
+
)
|
|
73
|
+
self.context.add_query(qry)
|
|
74
|
+
return return_type
|
|
75
|
+
|
|
76
|
+
def remove_objects(self, schema: str, workflow: str, stream: bytes) -> ClientResult[str]:
|
|
77
|
+
"""RemoveObjects operation.
|
|
78
|
+
|
|
79
|
+
Args:
|
|
80
|
+
schema (str): schema parameter
|
|
81
|
+
workflow (str): workflow parameter
|
|
82
|
+
stream (bytes): stream parameter
|
|
83
|
+
"""
|
|
84
|
+
return_type = ClientResult(self.context, str())
|
|
85
|
+
qry = ServiceOperationQuery(
|
|
86
|
+
self, "RemoveObjects", None, {"schema": schema, "workflow": workflow, "stream": stream}, None, return_type
|
|
87
|
+
)
|
|
88
|
+
self.context.add_query(qry)
|
|
89
|
+
return return_type
|
|
90
|
+
|
|
91
|
+
def set_object(self, schema: str, workflow: str, stream: bytes) -> ClientResult[str]:
|
|
92
|
+
"""SetObject operation.
|
|
93
|
+
|
|
94
|
+
Args:
|
|
95
|
+
schema (str): schema parameter
|
|
96
|
+
workflow (str): workflow parameter
|
|
97
|
+
stream (bytes): stream parameter
|
|
98
|
+
"""
|
|
99
|
+
return_type = ClientResult(self.context, str())
|
|
100
|
+
qry = ServiceOperationQuery(
|
|
101
|
+
self, "SetObject", None, {"schema": schema, "workflow": workflow, "stream": stream}, None, return_type
|
|
102
|
+
)
|
|
103
|
+
self.context.add_query(qry)
|
|
104
|
+
return return_type
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from typing_extensions import Self
|
|
2
|
+
|
|
3
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
4
|
+
from office365.sharepoint.entity_collection import EntityCollection
|
|
5
|
+
from office365.sharepoint.tenant.administration.internal.aad.permission_grant import SPO3rdPartyAADPermissionGrant
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SPO3rdPartyAADPermissionGrantCollection(EntityCollection[SPO3rdPartyAADPermissionGrant]):
|
|
9
|
+
def __init__(self, context, resource_path=None):
|
|
10
|
+
super().__init__(context, SPO3rdPartyAADPermissionGrant, resource_path)
|
|
11
|
+
|
|
12
|
+
def add(self, service_principal_id: str, resource: str, scope: str) -> Self:
|
|
13
|
+
payload = {
|
|
14
|
+
"servicePrincipalId": service_principal_id,
|
|
15
|
+
"resource": resource,
|
|
16
|
+
"scope": scope,
|
|
17
|
+
}
|
|
18
|
+
qry = ServiceOperationQuery(self, "Add", None, payload)
|
|
19
|
+
self.context.add_query(qry)
|
|
20
|
+
return self
|
|
@@ -1,26 +1,7 @@
|
|
|
1
|
-
from typing_extensions import Self
|
|
2
|
-
|
|
3
|
-
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
4
1
|
from office365.sharepoint.entity import Entity
|
|
5
|
-
from office365.sharepoint.entity_collection import EntityCollection
|
|
6
2
|
|
|
7
3
|
|
|
8
4
|
class SPO3rdPartyAADPermissionGrant(Entity):
|
|
9
5
|
@property
|
|
10
6
|
def entity_type_name(self): # type: ignore[override]
|
|
11
7
|
return "Microsoft.Online.SharePoint.TenantAdministration.Internal.SPO3rdPartyAADPermissionGrant"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class SPO3rdPartyAADPermissionGrantCollection(EntityCollection[SPO3rdPartyAADPermissionGrant]):
|
|
15
|
-
def __init__(self, context, resource_path=None):
|
|
16
|
-
super().__init__(context, SPO3rdPartyAADPermissionGrant, resource_path)
|
|
17
|
-
|
|
18
|
-
def add(self, service_principal_id: str, resource: str, scope: str) -> Self:
|
|
19
|
-
payload = {
|
|
20
|
-
"servicePrincipalId": service_principal_id,
|
|
21
|
-
"resource": resource,
|
|
22
|
-
"scope": scope,
|
|
23
|
-
}
|
|
24
|
-
qry = ServiceOperationQuery(self, "Add", None, payload)
|
|
25
|
-
self.context.add_query(qry)
|
|
26
|
-
return self
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
from datetime import datetime
|
|
1
2
|
from typing import Optional
|
|
3
|
+
from uuid import UUID
|
|
2
4
|
|
|
5
|
+
from typing_extensions import Self
|
|
6
|
+
|
|
7
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
3
8
|
from office365.sharepoint.entity import Entity
|
|
4
9
|
|
|
5
10
|
|
|
@@ -15,5 +20,71 @@ class SPOWebAppServicePrincipalPermissionRequest(Entity):
|
|
|
15
20
|
return self.properties.get("IsDomainIsolated", False)
|
|
16
21
|
|
|
17
22
|
@property
|
|
18
|
-
def entity_type_name(self):
|
|
23
|
+
def entity_type_name(self):
|
|
19
24
|
return "Microsoft.Online.SharePoint.TenantAdministration.Internal.SPOWebAppServicePrincipalPermissionRequest"
|
|
25
|
+
|
|
26
|
+
@property
|
|
27
|
+
def id_(self) -> Optional[UUID]:
|
|
28
|
+
"""Gets the Id property"""
|
|
29
|
+
return self.properties.get("Id", None)
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def isolated_domain_url(self) -> Optional[str]:
|
|
33
|
+
"""Gets the IsolatedDomainUrl property"""
|
|
34
|
+
return self.properties.get("IsolatedDomainUrl", None)
|
|
35
|
+
|
|
36
|
+
@property
|
|
37
|
+
def is_preauthorized_permission(self) -> Optional[bool]:
|
|
38
|
+
"""Gets the IsPreauthorizedPermission property"""
|
|
39
|
+
return self.properties.get("IsPreauthorizedPermission", None)
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
def multi_tenant_app_id(self) -> Optional[str]:
|
|
43
|
+
"""Gets the MultiTenantAppId property"""
|
|
44
|
+
return self.properties.get("MultiTenantAppId", None)
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
def multi_tenant_app_reply_url(self) -> Optional[str]:
|
|
48
|
+
"""Gets the MultiTenantAppReplyUrl property"""
|
|
49
|
+
return self.properties.get("MultiTenantAppReplyUrl", None)
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def package_approver_name(self) -> Optional[str]:
|
|
53
|
+
"""Gets the PackageApproverName property"""
|
|
54
|
+
return self.properties.get("PackageApproverName", None)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def package_name(self) -> Optional[str]:
|
|
58
|
+
"""Gets the PackageName property"""
|
|
59
|
+
return self.properties.get("PackageName", None)
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def package_version(self) -> Optional[str]:
|
|
63
|
+
"""Gets the PackageVersion property"""
|
|
64
|
+
return self.properties.get("PackageVersion", None)
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def resource(self) -> Optional[str]:
|
|
68
|
+
"""Gets the Resource property"""
|
|
69
|
+
return self.properties.get("Resource", None)
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def resource_id(self) -> Optional[str]:
|
|
73
|
+
"""Gets the ResourceId property"""
|
|
74
|
+
return self.properties.get("ResourceId", None)
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def scope(self) -> Optional[str]:
|
|
78
|
+
"""Gets the Scope property"""
|
|
79
|
+
return self.properties.get("Scope", None)
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def time_requested(self) -> Optional[datetime]:
|
|
83
|
+
"""Gets the TimeRequested property"""
|
|
84
|
+
return self.properties.get("TimeRequested", datetime.min)
|
|
85
|
+
|
|
86
|
+
def deny(self) -> Self:
|
|
87
|
+
"""Deny operation."""
|
|
88
|
+
qry = ServiceOperationQuery(self, "Deny", None, {}, None, None)
|
|
89
|
+
self.context.add_query(qry)
|
|
90
|
+
return self
|
|
@@ -5,9 +5,7 @@ from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
|
5
5
|
from office365.runtime.types.collections import StringCollection
|
|
6
6
|
from office365.sharepoint.entity import Entity
|
|
7
7
|
from office365.sharepoint.entity_collection import EntityCollection
|
|
8
|
-
from office365.sharepoint.tenant.administration.internal.aad.
|
|
9
|
-
SPO3rdPartyAADPermissionGrantCollection,
|
|
10
|
-
)
|
|
8
|
+
from office365.sharepoint.tenant.administration.internal.aad.collection import SPO3rdPartyAADPermissionGrantCollection
|
|
11
9
|
from office365.sharepoint.tenant.administration.internal.appservice.permission_grant import (
|
|
12
10
|
SPOWebAppServicePrincipalPermissionGrant,
|
|
13
11
|
)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from office365.runtime.client_result import ClientResult
|
|
4
|
+
from office365.runtime.client_value_collection import ClientValueCollection
|
|
5
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
6
|
+
from office365.runtime.types.collections import GuidCollection
|
|
7
|
+
from office365.sharepoint.entity import Entity
|
|
8
|
+
from office365.sharepoint.tenant.administration.odb_license_updated_user_detail import OdbLicenseUpdatedUserDetail
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class OdbLicenseEnforcementService(Entity):
|
|
12
|
+
def process_tenant_odb_license_updated_users(
|
|
13
|
+
self, license_updated_user_details: ClientValueCollection[OdbLicenseUpdatedUserDetail]
|
|
14
|
+
) -> ClientResult[GuidCollection]:
|
|
15
|
+
"""ProcessTenantOdbLicenseUpdatedUsers operation."""
|
|
16
|
+
return_type = ClientResult(self.context, GuidCollection())
|
|
17
|
+
qry = ServiceOperationQuery(
|
|
18
|
+
self,
|
|
19
|
+
"ProcessTenantOdbLicenseUpdatedUsers",
|
|
20
|
+
None,
|
|
21
|
+
{"licenseUpdatedUserDetails": license_updated_user_details},
|
|
22
|
+
None,
|
|
23
|
+
return_type,
|
|
24
|
+
)
|
|
25
|
+
self.context.add_query(qry)
|
|
26
|
+
return return_type
|