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
|
@@ -75,9 +75,105 @@ class CorporateCatalogAppMetadata(Entity):
|
|
|
75
75
|
|
|
76
76
|
@property
|
|
77
77
|
def property_ref_name(self):
|
|
78
|
-
# return "AadAppId"
|
|
79
78
|
return "ID"
|
|
80
79
|
|
|
81
80
|
@property
|
|
82
81
|
def entity_type_name(self):
|
|
83
82
|
return "Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata"
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def aad_app_id(self) -> Optional[str]:
|
|
86
|
+
"""Gets the AadAppId property"""
|
|
87
|
+
return self.properties.get("AadAppId", None)
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def cdn_location(self) -> Optional[str]:
|
|
91
|
+
"""Gets the CDNLocation property"""
|
|
92
|
+
return self.properties.get("CDNLocation", None)
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def contains_tenant_wide_extension(self) -> Optional[bool]:
|
|
96
|
+
"""Gets the ContainsTenantWideExtension property"""
|
|
97
|
+
return self.properties.get("ContainsTenantWideExtension", None)
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def current_version_deployed(self) -> Optional[bool]:
|
|
101
|
+
"""Gets the CurrentVersionDeployed property"""
|
|
102
|
+
return self.properties.get("CurrentVersionDeployed", None)
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def deployed(self) -> Optional[bool]:
|
|
106
|
+
"""Gets the Deployed property"""
|
|
107
|
+
return self.properties.get("Deployed", None)
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def error_message(self) -> Optional[str]:
|
|
111
|
+
"""Gets the ErrorMessage property"""
|
|
112
|
+
return self.properties.get("ErrorMessage", None)
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def id_(self) -> Optional[str]:
|
|
116
|
+
"""Gets the ID property"""
|
|
117
|
+
return self.properties.get("ID", None)
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def installed_version(self) -> Optional[str]:
|
|
121
|
+
"""Gets the InstalledVersion property"""
|
|
122
|
+
return self.properties.get("InstalledVersion", None)
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
def is_enabled(self) -> Optional[bool]:
|
|
126
|
+
"""Gets the IsEnabled property"""
|
|
127
|
+
return self.properties.get("IsEnabled", None)
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def is_package_default_skip_feature_deployment(self) -> Optional[bool]:
|
|
131
|
+
"""Gets the IsPackageDefaultSkipFeatureDeployment property"""
|
|
132
|
+
return self.properties.get("IsPackageDefaultSkipFeatureDeployment", None)
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def is_valid_app_package(self) -> Optional[bool]:
|
|
136
|
+
"""Gets the IsValidAppPackage property"""
|
|
137
|
+
return self.properties.get("IsValidAppPackage", None)
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def product_id(self) -> Optional[str]:
|
|
141
|
+
"""Gets the ProductId property"""
|
|
142
|
+
return self.properties.get("ProductId", None)
|
|
143
|
+
|
|
144
|
+
@property
|
|
145
|
+
def short_description(self) -> Optional[str]:
|
|
146
|
+
"""Gets the ShortDescription property"""
|
|
147
|
+
return self.properties.get("ShortDescription", None)
|
|
148
|
+
|
|
149
|
+
@property
|
|
150
|
+
def skip_deployment_feature(self) -> Optional[bool]:
|
|
151
|
+
"""Gets the SkipDeploymentFeature property"""
|
|
152
|
+
return self.properties.get("SkipDeploymentFeature", None)
|
|
153
|
+
|
|
154
|
+
@property
|
|
155
|
+
def store_asset_id(self) -> Optional[str]:
|
|
156
|
+
"""Gets the StoreAssetId property"""
|
|
157
|
+
return self.properties.get("StoreAssetId", None)
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def supports_teams_tabs(self) -> Optional[bool]:
|
|
161
|
+
"""Gets the SupportsTeamsTabs property"""
|
|
162
|
+
return self.properties.get("SupportsTeamsTabs", None)
|
|
163
|
+
|
|
164
|
+
@property
|
|
165
|
+
def thumbnail_url(self) -> Optional[str]:
|
|
166
|
+
"""Gets the ThumbnailUrl property"""
|
|
167
|
+
return self.properties.get("ThumbnailUrl", None)
|
|
168
|
+
|
|
169
|
+
def retract(self) -> Self:
|
|
170
|
+
"""Retract operation."""
|
|
171
|
+
qry = ServiceOperationQuery(self, "Retract", None, {}, None, None)
|
|
172
|
+
self.context.add_query(qry)
|
|
173
|
+
return self
|
|
174
|
+
|
|
175
|
+
def upgrade(self) -> Self:
|
|
176
|
+
"""Upgrade operation."""
|
|
177
|
+
qry = ServiceOperationQuery(self, "Upgrade", None, {}, None, None)
|
|
178
|
+
self.context.add_query(qry)
|
|
179
|
+
return self
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
from typing_extensions import Self
|
|
2
|
+
|
|
3
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
1
4
|
from office365.sharepoint.entity import Entity
|
|
2
5
|
|
|
3
6
|
|
|
@@ -5,3 +8,9 @@ class SPAppStateQueryJobDefinition(Entity):
|
|
|
5
8
|
@property
|
|
6
9
|
def entity_type_name(self) -> str:
|
|
7
10
|
return "Microsoft.SharePoint.Administration.SPAppStateQueryJobDefinition"
|
|
11
|
+
|
|
12
|
+
def perform_fast_revoke_with_client_ids(self) -> Self:
|
|
13
|
+
"""PerformFastRevokeWithClientIds operation."""
|
|
14
|
+
qry = ServiceOperationQuery(self, "PerformFastRevokeWithClientIds", None, {}, None, None)
|
|
15
|
+
self.context.add_query(qry)
|
|
16
|
+
return self
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
from uuid import UUID
|
|
2
|
+
|
|
3
|
+
from office365.runtime.client_result import ClientResult
|
|
4
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
1
5
|
from office365.sharepoint.entity import Entity
|
|
6
|
+
from office365.sharepoint.marketplace.corporatecuratedgallery.carddesigns.card_design import CardDesign
|
|
2
7
|
|
|
3
8
|
|
|
4
9
|
class CardDesigns(Entity):
|
|
@@ -7,3 +12,33 @@ class CardDesigns(Entity):
|
|
|
7
12
|
@property
|
|
8
13
|
def entity_type_name(self):
|
|
9
14
|
return "Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CardDesigns"
|
|
15
|
+
|
|
16
|
+
def add(
|
|
17
|
+
self, description: str, id_: UUID, serialized_properties: str, show_in_toolbox: bool, title: str
|
|
18
|
+
) -> ClientResult[CardDesign]:
|
|
19
|
+
"""Add operation.
|
|
20
|
+
|
|
21
|
+
Args:
|
|
22
|
+
description (str): description parameter
|
|
23
|
+
id_ (UUID): id parameter
|
|
24
|
+
serialized_properties (str): serializedProperties parameter
|
|
25
|
+
show_in_toolbox (bool): showInToolbox parameter
|
|
26
|
+
title (str): title parameter
|
|
27
|
+
"""
|
|
28
|
+
return_type = ClientResult(self.context, CardDesign())
|
|
29
|
+
qry = ServiceOperationQuery(
|
|
30
|
+
self,
|
|
31
|
+
"Add",
|
|
32
|
+
None,
|
|
33
|
+
{
|
|
34
|
+
"description": description,
|
|
35
|
+
"id": id_,
|
|
36
|
+
"serializedProperties": serialized_properties,
|
|
37
|
+
"showInToolbox": show_in_toolbox,
|
|
38
|
+
"title": title,
|
|
39
|
+
},
|
|
40
|
+
None,
|
|
41
|
+
return_type,
|
|
42
|
+
)
|
|
43
|
+
self.context.add_query(qry)
|
|
44
|
+
return return_type
|
|
@@ -23,3 +23,8 @@ class SiteCollectionAppCatalogAllowedItem(Entity):
|
|
|
23
23
|
@property
|
|
24
24
|
def entity_type_name(self):
|
|
25
25
|
return "Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.SiteCollectionAppCatalogAllowedItem"
|
|
26
|
+
|
|
27
|
+
@property
|
|
28
|
+
def error_message(self) -> Optional[str]:
|
|
29
|
+
"""Gets the ErrorMessage property"""
|
|
30
|
+
return self.properties.get("ErrorMessage", None)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import os
|
|
2
2
|
from typing import Optional
|
|
3
|
+
from uuid import UUID
|
|
3
4
|
|
|
4
5
|
from typing_extensions import Self
|
|
5
6
|
|
|
@@ -9,29 +10,21 @@ from office365.runtime.paths.service_operation import ServiceOperationPath
|
|
|
9
10
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
10
11
|
from office365.runtime.types.odata_property import odata
|
|
11
12
|
from office365.sharepoint.entity import Entity
|
|
13
|
+
from office365.sharepoint.entity_collection import EntityCollection
|
|
12
14
|
from office365.sharepoint.files.file import File
|
|
13
15
|
from office365.sharepoint.marketplace.app_metadata import CorporateCatalogAppMetadata
|
|
14
|
-
from office365.sharepoint.marketplace.app_metadata_collection import
|
|
15
|
-
|
|
16
|
-
)
|
|
17
|
-
from office365.sharepoint.marketplace.corporatecuratedgallery.app_request_information import (
|
|
18
|
-
SPStoreAppRequestInformation,
|
|
19
|
-
)
|
|
16
|
+
from office365.sharepoint.marketplace.app_metadata_collection import CorporateCatalogAppMetadataCollection
|
|
17
|
+
from office365.sharepoint.marketplace.corporatecuratedgallery.app_request_information import SPStoreAppRequestInformation
|
|
20
18
|
from office365.sharepoint.marketplace.corporatecuratedgallery.app_response_information import (
|
|
21
19
|
SPStoreAppResponseInformation,
|
|
22
20
|
)
|
|
23
|
-
from office365.sharepoint.marketplace.corporatecuratedgallery.app_upgrade_availability import
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
CardDesigns,
|
|
28
|
-
)
|
|
29
|
-
from office365.sharepoint.marketplace.corporatecuratedgallery.teams_package_download import (
|
|
30
|
-
TeamsPackageDownload,
|
|
31
|
-
)
|
|
32
|
-
from office365.sharepoint.marketplace.sitecollection.appcatalog.allowed_items import (
|
|
33
|
-
SiteCollectionAppCatalogAllowedItems,
|
|
21
|
+
from office365.sharepoint.marketplace.corporatecuratedgallery.app_upgrade_availability import AppUpgradeAvailability
|
|
22
|
+
from office365.sharepoint.marketplace.corporatecuratedgallery.carddesigns.card_designs import CardDesigns
|
|
23
|
+
from office365.sharepoint.marketplace.corporatecuratedgallery.spappaddanddeployresponseinfomation import (
|
|
24
|
+
SPAppAddAndDeployResponseInfomation,
|
|
34
25
|
)
|
|
26
|
+
from office365.sharepoint.marketplace.corporatecuratedgallery.teams_package_download import TeamsPackageDownload
|
|
27
|
+
from office365.sharepoint.marketplace.sitecollection.appcatalog.allowed_items import SiteCollectionAppCatalogAllowedItems
|
|
35
28
|
|
|
36
29
|
|
|
37
30
|
class TenantCorporateCatalogAccessor(Entity):
|
|
@@ -102,12 +95,7 @@ class TenantCorporateCatalogAccessor(Entity):
|
|
|
102
95
|
|
|
103
96
|
def upload(self, content, overwrite, url, xor_hash=None):
|
|
104
97
|
""""""
|
|
105
|
-
payload = {
|
|
106
|
-
"Content": content,
|
|
107
|
-
"Overwrite": overwrite,
|
|
108
|
-
"Url": url,
|
|
109
|
-
"XorHash": xor_hash,
|
|
110
|
-
}
|
|
98
|
+
payload = {"Content": content, "Overwrite": overwrite, "Url": url, "XorHash": xor_hash}
|
|
111
99
|
qry = ServiceOperationQuery(self, "Upload", None, payload)
|
|
112
100
|
self.context.add_query(qry)
|
|
113
101
|
return self
|
|
@@ -136,25 +124,114 @@ class TenantCorporateCatalogAccessor(Entity):
|
|
|
136
124
|
def card_designs(self) -> CardDesigns:
|
|
137
125
|
"""Returns the card designs available in this corporate catalog."""
|
|
138
126
|
return self.properties.get(
|
|
139
|
-
"CardDesigns",
|
|
140
|
-
CardDesigns(self.context, ResourcePath("CardDesigns", self.resource_path)),
|
|
127
|
+
"CardDesigns", CardDesigns(self.context, ResourcePath("CardDesigns", self.resource_path))
|
|
141
128
|
)
|
|
142
129
|
|
|
143
130
|
@odata(name="SiteCollectionAppCatalogsSites")
|
|
144
131
|
@property
|
|
145
|
-
def site_collection_app_catalogs_sites(
|
|
146
|
-
self,
|
|
147
|
-
) -> SiteCollectionAppCatalogAllowedItems:
|
|
132
|
+
def site_collection_app_catalogs_sites(self) -> SiteCollectionAppCatalogAllowedItems:
|
|
148
133
|
"""Returns an accessor to the allow list of site collections allowed to have site collection corporate
|
|
149
134
|
catalogs."""
|
|
150
135
|
return self.properties.get(
|
|
151
136
|
"SiteCollectionAppCatalogsSites",
|
|
152
137
|
SiteCollectionAppCatalogAllowedItems(
|
|
153
|
-
self.context,
|
|
154
|
-
ResourcePath("SiteCollectionAppCatalogsSites", self.resource_path),
|
|
138
|
+
self.context, ResourcePath("SiteCollectionAppCatalogsSites", self.resource_path)
|
|
155
139
|
),
|
|
156
140
|
)
|
|
157
141
|
|
|
158
142
|
@property
|
|
159
143
|
def entity_type_name(self):
|
|
160
144
|
return "Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.TenantCorporateCatalogAccessor"
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def store_apps(self) -> EntityCollection[CorporateCatalogAppMetadata]:
|
|
148
|
+
"""Gets the StoreApps property"""
|
|
149
|
+
return self.properties.get(
|
|
150
|
+
"StoreApps",
|
|
151
|
+
EntityCollection[CorporateCatalogAppMetadata](
|
|
152
|
+
self.context, CorporateCatalogAppMetadata, ResourcePath("StoreApps", self.resource_path)
|
|
153
|
+
),
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
def add_and_deploy_store_app_by_id(
|
|
157
|
+
self,
|
|
158
|
+
caller_id: str,
|
|
159
|
+
cmu: str,
|
|
160
|
+
is_updating_app: bool,
|
|
161
|
+
overwrite: bool,
|
|
162
|
+
skip_feature_deployment: bool,
|
|
163
|
+
store_asset_id: str,
|
|
164
|
+
) -> ClientResult[SPAppAddAndDeployResponseInfomation]:
|
|
165
|
+
"""AddAndDeployStoreAppById operation.
|
|
166
|
+
|
|
167
|
+
Args:
|
|
168
|
+
caller_id (str): CallerId parameter
|
|
169
|
+
cmu (str): CMU parameter
|
|
170
|
+
is_updating_app (bool): isUpdatingApp parameter
|
|
171
|
+
overwrite (bool): Overwrite parameter
|
|
172
|
+
skip_feature_deployment (bool): SkipFeatureDeployment parameter
|
|
173
|
+
store_asset_id (str): StoreAssetId parameter
|
|
174
|
+
"""
|
|
175
|
+
return_type = ClientResult(self.context, SPAppAddAndDeployResponseInfomation())
|
|
176
|
+
qry = ServiceOperationQuery(
|
|
177
|
+
self,
|
|
178
|
+
"AddAndDeployStoreAppById",
|
|
179
|
+
None,
|
|
180
|
+
{
|
|
181
|
+
"CallerId": caller_id,
|
|
182
|
+
"CMU": cmu,
|
|
183
|
+
"isUpdatingApp": is_updating_app,
|
|
184
|
+
"Overwrite": overwrite,
|
|
185
|
+
"SkipFeatureDeployment": skip_feature_deployment,
|
|
186
|
+
"StoreAssetId": store_asset_id,
|
|
187
|
+
},
|
|
188
|
+
None,
|
|
189
|
+
return_type,
|
|
190
|
+
)
|
|
191
|
+
self.context.add_query(qry)
|
|
192
|
+
return return_type
|
|
193
|
+
|
|
194
|
+
def solution_contains_teams_component(self, id_: UUID) -> ClientResult[bool]:
|
|
195
|
+
"""SolutionContainsTeamsComponent operation.
|
|
196
|
+
|
|
197
|
+
Args:
|
|
198
|
+
id_ (UUID): id parameter
|
|
199
|
+
"""
|
|
200
|
+
return_type = ClientResult(self.context, bool())
|
|
201
|
+
qry = ServiceOperationQuery(self, "SolutionContainsTeamsComponent", None, {"id": id_}, None, return_type)
|
|
202
|
+
self.context.add_query(qry)
|
|
203
|
+
return return_type
|
|
204
|
+
|
|
205
|
+
def sync_solution_to_teams(self, id_: int) -> ClientResult[int]:
|
|
206
|
+
"""SyncSolutionToTeams operation.
|
|
207
|
+
|
|
208
|
+
Args:
|
|
209
|
+
id_ (int): id parameter
|
|
210
|
+
"""
|
|
211
|
+
return_type = ClientResult(self.context, int())
|
|
212
|
+
qry = ServiceOperationQuery(self, "SyncSolutionToTeams", None, {"id": id_}, None, return_type)
|
|
213
|
+
self.context.add_query(qry)
|
|
214
|
+
return return_type
|
|
215
|
+
|
|
216
|
+
def sync_solution_to_teams_by_unique_id(self, id_: UUID) -> Self:
|
|
217
|
+
"""SyncSolutionToTeamsByUniqueId operation.
|
|
218
|
+
|
|
219
|
+
Args:
|
|
220
|
+
id_ (UUID): id parameter
|
|
221
|
+
"""
|
|
222
|
+
qry = ServiceOperationQuery(self, "SyncSolutionToTeamsByUniqueId", None, {"id": id_}, None, None)
|
|
223
|
+
self.context.add_query(qry)
|
|
224
|
+
return self
|
|
225
|
+
|
|
226
|
+
def update_my_request_status(self, request_id: UUID, status: int) -> Self:
|
|
227
|
+
"""UpdateMyRequestStatus operation.
|
|
228
|
+
|
|
229
|
+
Args:
|
|
230
|
+
request_id (UUID): RequestId parameter
|
|
231
|
+
status (int): Status parameter
|
|
232
|
+
"""
|
|
233
|
+
qry = ServiceOperationQuery(
|
|
234
|
+
self, "UpdateMyRequestStatus", None, {"RequestId": request_id, "Status": status}, None, None
|
|
235
|
+
)
|
|
236
|
+
self.context.add_query(qry)
|
|
237
|
+
return self
|
|
@@ -47,12 +47,6 @@ class MicrofeedData(Entity):
|
|
|
47
47
|
"""Gets the Version property"""
|
|
48
48
|
return self.properties.get("Version", None)
|
|
49
49
|
|
|
50
|
-
def delete_all(self) -> Self:
|
|
51
|
-
"""DeleteAll operation."""
|
|
52
|
-
qry = ServiceOperationQuery(self, "DeleteAll", None, {}, None, None)
|
|
53
|
-
self.context.add_query(qry)
|
|
54
|
-
return self
|
|
55
|
-
|
|
56
50
|
def add_attachment(self, name: str, bytes_: bytes) -> Self:
|
|
57
51
|
"""AddAttachment operation.
|
|
58
52
|
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
from uuid import UUID
|
|
2
|
+
|
|
1
3
|
from office365.runtime.client_result import ClientResult
|
|
4
|
+
from office365.runtime.queries.function import FunctionQuery
|
|
2
5
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
6
|
+
from office365.runtime.types.collections import StringCollection
|
|
3
7
|
from office365.sharepoint.entity import Entity
|
|
4
8
|
|
|
5
9
|
|
|
@@ -22,3 +26,60 @@ class MicroServiceManager(Entity):
|
|
|
22
26
|
@property
|
|
23
27
|
def entity_type_name(self):
|
|
24
28
|
return "SP.MicroService.MicroServiceManager"
|
|
29
|
+
|
|
30
|
+
def delete_microservice_work_item(self, work_item_id: UUID) -> ClientResult[bool]:
|
|
31
|
+
"""DeleteMicroserviceWorkItem operation.
|
|
32
|
+
|
|
33
|
+
Args:
|
|
34
|
+
work_item_id (UUID): workItemId parameter
|
|
35
|
+
"""
|
|
36
|
+
return_type = ClientResult(self.context, bool())
|
|
37
|
+
qry = ServiceOperationQuery(
|
|
38
|
+
self, "DeleteMicroserviceWorkItem", None, {"workItemId": work_item_id}, None, return_type
|
|
39
|
+
)
|
|
40
|
+
self.context.add_query(qry)
|
|
41
|
+
return return_type
|
|
42
|
+
|
|
43
|
+
def delete_microservice_work_item_by_content_db_id(
|
|
44
|
+
self, content_database_id: UUID, site_id: UUID, work_item_id: UUID
|
|
45
|
+
) -> ClientResult[bool]:
|
|
46
|
+
"""DeleteMicroserviceWorkItemByContentDbId operation.
|
|
47
|
+
|
|
48
|
+
Args:
|
|
49
|
+
content_database_id (UUID): contentDatabaseId parameter
|
|
50
|
+
site_id (UUID): siteId parameter
|
|
51
|
+
work_item_id (UUID): workItemId parameter
|
|
52
|
+
"""
|
|
53
|
+
return_type = ClientResult(self.context, bool())
|
|
54
|
+
qry = ServiceOperationQuery(
|
|
55
|
+
self,
|
|
56
|
+
"DeleteMicroserviceWorkItemByContentDbId",
|
|
57
|
+
None,
|
|
58
|
+
{"contentDatabaseId": content_database_id, "siteId": site_id, "workItemId": work_item_id},
|
|
59
|
+
None,
|
|
60
|
+
return_type,
|
|
61
|
+
)
|
|
62
|
+
self.context.add_query(qry)
|
|
63
|
+
return return_type
|
|
64
|
+
|
|
65
|
+
def get_service_internal_urls(self, service: str) -> ClientResult[StringCollection]:
|
|
66
|
+
"""GetServiceInternalUrls operation.
|
|
67
|
+
|
|
68
|
+
Args:
|
|
69
|
+
service (str): service parameter
|
|
70
|
+
"""
|
|
71
|
+
return_type = ClientResult(self.context, StringCollection())
|
|
72
|
+
qry = FunctionQuery(self, "GetServiceInternalUrls", [service], return_type)
|
|
73
|
+
self.context.add_query(qry)
|
|
74
|
+
return return_type
|
|
75
|
+
|
|
76
|
+
def get_service_urls(self, service: str) -> ClientResult[StringCollection]:
|
|
77
|
+
"""GetServiceUrls operation.
|
|
78
|
+
|
|
79
|
+
Args:
|
|
80
|
+
service (str): service parameter
|
|
81
|
+
"""
|
|
82
|
+
return_type = ClientResult(self.context, StringCollection())
|
|
83
|
+
qry = FunctionQuery(self, "GetServiceUrls", [service], return_type)
|
|
84
|
+
self.context.add_query(qry)
|
|
85
|
+
return return_type
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from datetime import datetime, time
|
|
4
|
+
from typing import Optional
|
|
5
|
+
from uuid import UUID
|
|
6
|
+
|
|
1
7
|
from office365.runtime.paths.v3.static import StaticPath
|
|
2
|
-
from office365.sharepoint.migrationcenter.common.task_entity_data import
|
|
3
|
-
MigrationTaskEntityData,
|
|
4
|
-
)
|
|
8
|
+
from office365.sharepoint.migrationcenter.common.task_entity_data import MigrationTaskEntityData
|
|
5
9
|
|
|
6
10
|
|
|
7
11
|
class MigrationTask(MigrationTaskEntityData):
|
|
@@ -10,5 +14,190 @@ class MigrationTask(MigrationTaskEntityData):
|
|
|
10
14
|
super().__init__(context, static_path)
|
|
11
15
|
|
|
12
16
|
@property
|
|
13
|
-
def entity_type_name(self)
|
|
17
|
+
def entity_type_name(self) -> str:
|
|
14
18
|
return "Microsoft.Online.SharePoint.MigrationCenter.Service.MigrationTask"
|
|
19
|
+
|
|
20
|
+
@property
|
|
21
|
+
def action_id(self) -> Optional[int]:
|
|
22
|
+
"""Gets the ActionId property"""
|
|
23
|
+
return self.properties.get("ActionId", None)
|
|
24
|
+
|
|
25
|
+
@property
|
|
26
|
+
def client_name(self) -> Optional[str]:
|
|
27
|
+
"""Gets the ClientName property"""
|
|
28
|
+
return self.properties.get("ClientName", None)
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def debug_command(self) -> Optional[str]:
|
|
32
|
+
"""Gets the DebugCommand property"""
|
|
33
|
+
return self.properties.get("DebugCommand", None)
|
|
34
|
+
|
|
35
|
+
@property
|
|
36
|
+
def delta_sync_qualified(self) -> Optional[bool]:
|
|
37
|
+
"""Gets the DeltaSyncQualified property"""
|
|
38
|
+
return self.properties.get("DeltaSyncQualified", None)
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def duration(self) -> Optional[time]:
|
|
42
|
+
"""Gets the Duration property"""
|
|
43
|
+
return self.properties.get("Duration", None)
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def error_code(self) -> Optional[int]:
|
|
47
|
+
"""Gets the ErrorCode property"""
|
|
48
|
+
return self.properties.get("ErrorCode", None)
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def error_message(self) -> Optional[str]:
|
|
52
|
+
"""Gets the ErrorMessage property"""
|
|
53
|
+
return self.properties.get("ErrorMessage", None)
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def failed_times(self) -> Optional[int]:
|
|
57
|
+
"""Gets the FailedTimes property"""
|
|
58
|
+
return self.properties.get("FailedTimes", None)
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def failed_time_utc(self) -> Optional[datetime]:
|
|
62
|
+
"""Gets the FailedTimeUtc property"""
|
|
63
|
+
return self.properties.get("FailedTimeUtc", datetime.min)
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def failure_id(self) -> Optional[int]:
|
|
67
|
+
"""Gets the FailureId property"""
|
|
68
|
+
return self.properties.get("FailureId", None)
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def files_scanned(self) -> Optional[int]:
|
|
72
|
+
"""Gets the FilesScanned property"""
|
|
73
|
+
return self.properties.get("FilesScanned", None)
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def files_scanned_with_issues(self) -> Optional[int]:
|
|
77
|
+
"""Gets the FilesScannedWithIssues property"""
|
|
78
|
+
return self.properties.get("FilesScannedWithIssues", None)
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def friendly_client_name(self) -> Optional[str]:
|
|
82
|
+
"""Gets the FriendlyClientName property"""
|
|
83
|
+
return self.properties.get("FriendlyClientName", None)
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def is_retryable_failure(self) -> Optional[bool]:
|
|
87
|
+
"""Gets the IsRetryableFailure property"""
|
|
88
|
+
return self.properties.get("IsRetryableFailure", None)
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def is_scan_done(self) -> Optional[bool]:
|
|
92
|
+
"""Gets the IsScanDone property"""
|
|
93
|
+
return self.properties.get("IsScanDone", None)
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def last_finished_time_utc(self) -> Optional[datetime]:
|
|
97
|
+
"""Gets the LastFinishedTimeUtc property"""
|
|
98
|
+
return self.properties.get("LastFinishedTimeUtc", datetime.min)
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def linked_device_id(self) -> Optional[UUID]:
|
|
102
|
+
"""Gets the LinkedDeviceId property"""
|
|
103
|
+
return self.properties.get("LinkedDeviceId", None)
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def log_file_path(self) -> Optional[str]:
|
|
107
|
+
"""Gets the LogFilePath property"""
|
|
108
|
+
return self.properties.get("LogFilePath", None)
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def management_status(self) -> Optional[int]:
|
|
112
|
+
"""Gets the ManagementStatus property"""
|
|
113
|
+
return self.properties.get("ManagementStatus", None)
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def migrated_files_count(self) -> Optional[int]:
|
|
117
|
+
"""Gets the MigratedFilesCount property"""
|
|
118
|
+
return self.properties.get("MigratedFilesCount", None)
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def next_schedule_time_utc(self) -> Optional[datetime]:
|
|
122
|
+
"""Gets the NextScheduleTimeUtc property"""
|
|
123
|
+
return self.properties.get("NextScheduleTimeUtc", datetime.min)
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def overall_progress_percentage(self) -> Optional[int]:
|
|
127
|
+
"""Gets the OverallProgressPercentage property"""
|
|
128
|
+
return self.properties.get("OverallProgressPercentage", None)
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def report_file_url(self) -> Optional[str]:
|
|
132
|
+
"""Gets the ReportFileUrl property"""
|
|
133
|
+
return self.properties.get("ReportFileUrl", None)
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def run_times(self) -> Optional[int]:
|
|
137
|
+
"""Gets the RunTimes property"""
|
|
138
|
+
return self.properties.get("RunTimes", None)
|
|
139
|
+
|
|
140
|
+
@property
|
|
141
|
+
def scan_done_time_utc(self) -> Optional[datetime]:
|
|
142
|
+
"""Gets the ScanDoneTimeUtc property"""
|
|
143
|
+
return self.properties.get("ScanDoneTimeUtc", datetime.min)
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def scheduled_times(self) -> Optional[int]:
|
|
147
|
+
"""Gets the ScheduledTimes property"""
|
|
148
|
+
return self.properties.get("ScheduledTimes", None)
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def start_time_utc(self) -> Optional[datetime]:
|
|
152
|
+
"""Gets the StartTimeUTC property"""
|
|
153
|
+
return self.properties.get("StartTimeUTC", datetime.min)
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
def status(self) -> Optional[int]:
|
|
157
|
+
"""Gets the Status property"""
|
|
158
|
+
return self.properties.get("Status", None)
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def status_updated_time_utc(self) -> Optional[datetime]:
|
|
162
|
+
"""Gets the StatusUpdatedTimeUTC property"""
|
|
163
|
+
return self.properties.get("StatusUpdatedTimeUTC", datetime.min)
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
def task_created_time_utc(self) -> Optional[datetime]:
|
|
167
|
+
"""Gets the TaskCreatedTimeUtc property"""
|
|
168
|
+
return self.properties.get("TaskCreatedTimeUtc", datetime.min)
|
|
169
|
+
|
|
170
|
+
@property
|
|
171
|
+
def task_id(self) -> Optional[UUID]:
|
|
172
|
+
"""Gets the TaskId property"""
|
|
173
|
+
return self.properties.get("TaskId", None)
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
def to_be_migrated_files_count(self) -> Optional[int]:
|
|
177
|
+
"""Gets the ToBeMigratedFilesCount property"""
|
|
178
|
+
return self.properties.get("ToBeMigratedFilesCount", None)
|
|
179
|
+
|
|
180
|
+
@property
|
|
181
|
+
def total_bytes(self) -> Optional[int]:
|
|
182
|
+
"""Gets the TotalBytes property"""
|
|
183
|
+
return self.properties.get("TotalBytes", None)
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
def total_bytes_migrated(self) -> Optional[int]:
|
|
187
|
+
"""Gets the TotalBytesMigrated property"""
|
|
188
|
+
return self.properties.get("TotalBytesMigrated", None)
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
def update_status_only(self) -> Optional[bool]:
|
|
192
|
+
"""Gets the UpdateStatusOnly property"""
|
|
193
|
+
return self.properties.get("UpdateStatusOnly", None)
|
|
194
|
+
|
|
195
|
+
@property
|
|
196
|
+
def update_timestamp(self) -> Optional[str]:
|
|
197
|
+
"""Gets the UpdateTimestamp property"""
|
|
198
|
+
return self.properties.get("UpdateTimestamp", None)
|
|
199
|
+
|
|
200
|
+
@property
|
|
201
|
+
def workflow_id(self) -> Optional[UUID]:
|
|
202
|
+
"""Gets the WorkflowId property"""
|
|
203
|
+
return self.properties.get("WorkflowId", None)
|
|
@@ -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
|
|
|
@@ -7,3 +9,14 @@ class MigrationCenterDeployStatus(Entity):
|
|
|
7
9
|
@property
|
|
8
10
|
def entity_type_name(self) -> str:
|
|
9
11
|
return "Microsoft.Online.SharePoint.MigrationCenter.Service.MigrationCenterDeployStatus"
|
|
12
|
+
|
|
13
|
+
def is_change_deployed(self, change_name: str) -> ClientResult[bool]:
|
|
14
|
+
"""IsChangeDeployed operation.
|
|
15
|
+
|
|
16
|
+
Args:
|
|
17
|
+
change_name (str): changeName parameter
|
|
18
|
+
"""
|
|
19
|
+
return_type = ClientResult(self.context, bool())
|
|
20
|
+
qry = FunctionQuery(self, "IsChangeDeployed", [change_name], return_type)
|
|
21
|
+
self.context.add_query(qry)
|
|
22
|
+
return return_type
|