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,9 +1,12 @@
|
|
|
1
|
+
from uuid import UUID
|
|
2
|
+
|
|
3
|
+
from office365.runtime.client_result import ClientResult
|
|
1
4
|
from office365.runtime.paths.v3.static import StaticPath
|
|
5
|
+
from office365.runtime.queries.function import FunctionQuery
|
|
2
6
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
7
|
+
from office365.runtime.types.collections import StringCollection
|
|
3
8
|
from office365.sharepoint.entity import Entity
|
|
4
|
-
from office365.sharepoint.tenant.insights.reports.metadata import
|
|
5
|
-
SPTenantIBInsightsReportMetadata,
|
|
6
|
-
)
|
|
9
|
+
from office365.sharepoint.tenant.insights.reports.metadata import SPTenantIBInsightsReportMetadata
|
|
7
10
|
|
|
8
11
|
|
|
9
12
|
class SPTenantIBInsightsReportManager(Entity):
|
|
@@ -16,17 +19,26 @@ class SPTenantIBInsightsReportManager(Entity):
|
|
|
16
19
|
def create_report(self) -> SPTenantIBInsightsReportMetadata:
|
|
17
20
|
""""""
|
|
18
21
|
return_type = SPTenantIBInsightsReportMetadata(self.context)
|
|
19
|
-
qry = ServiceOperationQuery(
|
|
20
|
-
self,
|
|
21
|
-
"CreateReport",
|
|
22
|
-
None,
|
|
23
|
-
None,
|
|
24
|
-
None,
|
|
25
|
-
return_type,
|
|
26
|
-
)
|
|
22
|
+
qry = ServiceOperationQuery(self, "CreateReport", None, None, None, return_type)
|
|
27
23
|
self.context.add_query(qry)
|
|
28
24
|
return return_type
|
|
29
25
|
|
|
30
26
|
@property
|
|
31
|
-
def entity_type_name(self):
|
|
27
|
+
def entity_type_name(self):
|
|
32
28
|
return "Microsoft.SharePoint.Insights.SPTenantIBInsightsReportManager"
|
|
29
|
+
|
|
30
|
+
def get_report_data(
|
|
31
|
+
self, report_id: UUID, site_type: str, section: str, is_full_details: str
|
|
32
|
+
) -> ClientResult[StringCollection]:
|
|
33
|
+
"""GetReportData operation.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
report_id (UUID): reportId parameter
|
|
37
|
+
site_type (str): siteType parameter
|
|
38
|
+
section (str): section parameter
|
|
39
|
+
is_full_details (str): isFullDetails parameter
|
|
40
|
+
"""
|
|
41
|
+
return_type = ClientResult(self.context, StringCollection())
|
|
42
|
+
qry = FunctionQuery(self, "GetReportData", [report_id, site_type, section, is_full_details], return_type)
|
|
43
|
+
self.context.add_query(qry)
|
|
44
|
+
return return_type
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from datetime import datetime
|
|
3
|
+
from datetime import datetime, time
|
|
4
4
|
from typing import Dict, List, Optional, Union
|
|
5
|
+
from uuid import UUID
|
|
5
6
|
|
|
6
7
|
from typing_extensions import Self
|
|
7
8
|
|
|
8
9
|
from office365.runtime.client_result import ClientResult
|
|
9
10
|
from office365.runtime.client_value_collection import ClientValueCollection
|
|
11
|
+
from office365.runtime.paths.resource_path import ResourcePath
|
|
10
12
|
from office365.runtime.paths.v3.static import StaticPath
|
|
11
13
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
12
14
|
from office365.runtime.types.collections import GuidCollection, StringCollection
|
|
15
|
+
from office365.sharepoint.administration.custom_fonts_resource import CustomFontsResource
|
|
13
16
|
from office365.sharepoint.administration.orgassets.org_assets import OrgAssets
|
|
14
17
|
from office365.sharepoint.authpolicy.spjitdlppolicydata import SPJitDlpPolicyData
|
|
18
|
+
from office365.sharepoint.brandcenter.orgassetslibraryconfigparam import OrgAssetsLibraryConfigParam
|
|
15
19
|
from office365.sharepoint.entity import Entity
|
|
16
20
|
from office365.sharepoint.entity_collection import EntityCollection
|
|
17
21
|
from office365.sharepoint.principal.users.user import User
|
|
@@ -1235,5 +1239,450 @@ class Office365Tenant(Entity):
|
|
|
1235
1239
|
return self.properties.get("Workflows2013State", None)
|
|
1236
1240
|
|
|
1237
1241
|
@property
|
|
1238
|
-
def entity_type_name(self):
|
|
1242
|
+
def entity_type_name(self):
|
|
1239
1243
|
return "Microsoft.Online.SharePoint.TenantManagement.Office365Tenant"
|
|
1244
|
+
|
|
1245
|
+
@property
|
|
1246
|
+
def deny_select_sgs_in_odb_list(self) -> StringCollection:
|
|
1247
|
+
"""Gets the DenySelectSGsInODBList property"""
|
|
1248
|
+
return self.properties.get("DenySelectSGsInODBList", StringCollection())
|
|
1249
|
+
|
|
1250
|
+
@property
|
|
1251
|
+
def mass_delete_notification_disabled_for_odb(self) -> Optional[bool]:
|
|
1252
|
+
"""Gets the MassDeleteNotificationDisabledForODB property"""
|
|
1253
|
+
return self.properties.get("MassDeleteNotificationDisabledForODB", None)
|
|
1254
|
+
|
|
1255
|
+
@property
|
|
1256
|
+
def mass_delete_notification_disabled_for_spo(self) -> Optional[bool]:
|
|
1257
|
+
"""Gets the MassDeleteNotificationDisabledForSPO property"""
|
|
1258
|
+
return self.properties.get("MassDeleteNotificationDisabledForSPO", None)
|
|
1259
|
+
|
|
1260
|
+
def add_public_cdn_origin(self, origin: str) -> Self:
|
|
1261
|
+
"""AddPublicCdnOrigin operation.
|
|
1262
|
+
|
|
1263
|
+
Args:
|
|
1264
|
+
origin (str): origin parameter
|
|
1265
|
+
"""
|
|
1266
|
+
qry = ServiceOperationQuery(self, "AddPublicCdnOrigin", None, {"origin": origin}, None, None)
|
|
1267
|
+
self.context.add_query(qry)
|
|
1268
|
+
return self
|
|
1269
|
+
|
|
1270
|
+
def add_sdn_provider(self, identifier: str, license_: str) -> Self:
|
|
1271
|
+
"""AddSdnProvider operation.
|
|
1272
|
+
|
|
1273
|
+
Args:
|
|
1274
|
+
identifier (str): identifier parameter
|
|
1275
|
+
license_ (str): license parameter
|
|
1276
|
+
"""
|
|
1277
|
+
qry = ServiceOperationQuery(
|
|
1278
|
+
self, "AddSdnProvider", None, {"identifier": identifier, "license": license_}, None, None
|
|
1279
|
+
)
|
|
1280
|
+
self.context.add_query(qry)
|
|
1281
|
+
return self
|
|
1282
|
+
|
|
1283
|
+
def add_to_org_assets_lib_and_cdn(
|
|
1284
|
+
self,
|
|
1285
|
+
cdn_type: int,
|
|
1286
|
+
lib_url: ResourcePath,
|
|
1287
|
+
thumbnail_url: ResourcePath,
|
|
1288
|
+
org_asset_type: int,
|
|
1289
|
+
default_origin_added: bool,
|
|
1290
|
+
) -> Self:
|
|
1291
|
+
"""AddToOrgAssetsLibAndCdn operation.
|
|
1292
|
+
|
|
1293
|
+
Args:
|
|
1294
|
+
cdn_type (int): cdnType parameter
|
|
1295
|
+
lib_url (ResourcePath): libUrl parameter
|
|
1296
|
+
thumbnail_url (ResourcePath): thumbnailUrl parameter
|
|
1297
|
+
org_asset_type (int): orgAssetType parameter
|
|
1298
|
+
default_origin_added (bool): defaultOriginAdded parameter
|
|
1299
|
+
"""
|
|
1300
|
+
qry = ServiceOperationQuery(
|
|
1301
|
+
self,
|
|
1302
|
+
"AddToOrgAssetsLibAndCdn",
|
|
1303
|
+
None,
|
|
1304
|
+
{
|
|
1305
|
+
"cdnType": cdn_type,
|
|
1306
|
+
"libUrl": lib_url,
|
|
1307
|
+
"thumbnailUrl": thumbnail_url,
|
|
1308
|
+
"orgAssetType": org_asset_type,
|
|
1309
|
+
"defaultOriginAdded": default_origin_added,
|
|
1310
|
+
},
|
|
1311
|
+
None,
|
|
1312
|
+
None,
|
|
1313
|
+
)
|
|
1314
|
+
self.context.add_query(qry)
|
|
1315
|
+
return self
|
|
1316
|
+
|
|
1317
|
+
def add_to_org_assets_with_config(
|
|
1318
|
+
self,
|
|
1319
|
+
cdn_type: int,
|
|
1320
|
+
lib_url: ResourcePath,
|
|
1321
|
+
thumbnail_url: ResourcePath,
|
|
1322
|
+
org_asset_type: int,
|
|
1323
|
+
default_origin_added: bool,
|
|
1324
|
+
config_param: OrgAssetsLibraryConfigParam,
|
|
1325
|
+
) -> Self:
|
|
1326
|
+
"""AddToOrgAssetsWithConfig operation.
|
|
1327
|
+
|
|
1328
|
+
Args:
|
|
1329
|
+
cdn_type (int): cdnType parameter
|
|
1330
|
+
lib_url (ResourcePath): libUrl parameter
|
|
1331
|
+
thumbnail_url (ResourcePath): thumbnailUrl parameter
|
|
1332
|
+
org_asset_type (int): orgAssetType parameter
|
|
1333
|
+
default_origin_added (bool): defaultOriginAdded parameter
|
|
1334
|
+
config_param (OrgAssetsLibraryConfigParam): configParam parameter
|
|
1335
|
+
"""
|
|
1336
|
+
qry = ServiceOperationQuery(
|
|
1337
|
+
self,
|
|
1338
|
+
"AddToOrgAssetsWithConfig",
|
|
1339
|
+
None,
|
|
1340
|
+
{
|
|
1341
|
+
"cdnType": cdn_type,
|
|
1342
|
+
"libUrl": lib_url,
|
|
1343
|
+
"thumbnailUrl": thumbnail_url,
|
|
1344
|
+
"orgAssetType": org_asset_type,
|
|
1345
|
+
"defaultOriginAdded": default_origin_added,
|
|
1346
|
+
"configParam": config_param,
|
|
1347
|
+
},
|
|
1348
|
+
None,
|
|
1349
|
+
None,
|
|
1350
|
+
)
|
|
1351
|
+
self.context.add_query(qry)
|
|
1352
|
+
return self
|
|
1353
|
+
|
|
1354
|
+
def create_tenant_cdn_default_origins(self, cdn_type: int) -> Self:
|
|
1355
|
+
"""CreateTenantCdnDefaultOrigins operation.
|
|
1356
|
+
|
|
1357
|
+
Args:
|
|
1358
|
+
cdn_type (int): cdnType parameter
|
|
1359
|
+
"""
|
|
1360
|
+
qry = ServiceOperationQuery(self, "CreateTenantCdnDefaultOrigins", None, {"cdnType": cdn_type}, None, None)
|
|
1361
|
+
self.context.add_query(qry)
|
|
1362
|
+
return self
|
|
1363
|
+
|
|
1364
|
+
def delete_import_profile_properties_job(self, job_id: UUID) -> ClientResult[bool]:
|
|
1365
|
+
"""DeleteImportProfilePropertiesJob operation.
|
|
1366
|
+
|
|
1367
|
+
Args:
|
|
1368
|
+
job_id (UUID): jobId parameter
|
|
1369
|
+
"""
|
|
1370
|
+
return_type = ClientResult(self.context, bool())
|
|
1371
|
+
qry = ServiceOperationQuery(self, "DeleteImportProfilePropertiesJob", None, {"jobId": job_id}, None, return_type)
|
|
1372
|
+
self.context.add_query(qry)
|
|
1373
|
+
return return_type
|
|
1374
|
+
|
|
1375
|
+
def get_custom_fonts_minor_version(self, lib_url: ResourcePath) -> ClientResult[int]:
|
|
1376
|
+
"""GetCustomFontsMinorVersion operation.
|
|
1377
|
+
|
|
1378
|
+
Args:
|
|
1379
|
+
lib_url (ResourcePath): libUrl parameter
|
|
1380
|
+
"""
|
|
1381
|
+
return_type = ClientResult(self.context, int())
|
|
1382
|
+
qry = ServiceOperationQuery(self, "GetCustomFontsMinorVersion", None, {"libUrl": lib_url}, None, return_type)
|
|
1383
|
+
self.context.add_query(qry)
|
|
1384
|
+
return return_type
|
|
1385
|
+
|
|
1386
|
+
def get_hide_default_themes(self) -> ClientResult[bool]:
|
|
1387
|
+
"""GetHideDefaultThemes operation."""
|
|
1388
|
+
return_type = ClientResult(self.context, bool())
|
|
1389
|
+
qry = ServiceOperationQuery(self, "GetHideDefaultThemes", None, {}, None, return_type)
|
|
1390
|
+
self.context.add_query(qry)
|
|
1391
|
+
return return_type
|
|
1392
|
+
|
|
1393
|
+
def get_idle_session_sign_out_for_unmanaged_devices(self) -> ClientResult[str]:
|
|
1394
|
+
"""GetIdleSessionSignOutForUnmanagedDevices operation."""
|
|
1395
|
+
return_type = ClientResult(self.context, str())
|
|
1396
|
+
qry = ServiceOperationQuery(self, "GetIdleSessionSignOutForUnmanagedDevices", None, {}, None, return_type)
|
|
1397
|
+
self.context.add_query(qry)
|
|
1398
|
+
return return_type
|
|
1399
|
+
|
|
1400
|
+
def get_tenant_cdn_origins(self, cdn_type: int) -> ClientResult[StringCollection]:
|
|
1401
|
+
"""GetTenantCdnOrigins operation.
|
|
1402
|
+
|
|
1403
|
+
Args:
|
|
1404
|
+
cdn_type (int): cdnType parameter
|
|
1405
|
+
"""
|
|
1406
|
+
return_type = ClientResult(self.context, StringCollection())
|
|
1407
|
+
qry = ServiceOperationQuery(self, "GetTenantCdnOrigins", None, {"cdnType": cdn_type}, None, return_type)
|
|
1408
|
+
self.context.add_query(qry)
|
|
1409
|
+
return return_type
|
|
1410
|
+
|
|
1411
|
+
def increment_custom_fonts_minor_version(self, lib_url: ResourcePath) -> Self:
|
|
1412
|
+
"""IncrementCustomFontsMinorVersion operation.
|
|
1413
|
+
|
|
1414
|
+
Args:
|
|
1415
|
+
lib_url (ResourcePath): libUrl parameter
|
|
1416
|
+
"""
|
|
1417
|
+
qry = ServiceOperationQuery(self, "IncrementCustomFontsMinorVersion", None, {"libUrl": lib_url}, None, None)
|
|
1418
|
+
self.context.add_query(qry)
|
|
1419
|
+
return self
|
|
1420
|
+
|
|
1421
|
+
def is_sharing_disabled_for_non_owners_of_site(self, site_url: str) -> ClientResult[bool]:
|
|
1422
|
+
"""IsSharingDisabledForNonOwnersOfSite operation.
|
|
1423
|
+
|
|
1424
|
+
Args:
|
|
1425
|
+
site_url (str): siteUrl parameter
|
|
1426
|
+
"""
|
|
1427
|
+
return_type = ClientResult(self.context, bool())
|
|
1428
|
+
qry = ServiceOperationQuery(
|
|
1429
|
+
self, "IsSharingDisabledForNonOwnersOfSite", None, {"siteUrl": site_url}, None, return_type
|
|
1430
|
+
)
|
|
1431
|
+
self.context.add_query(qry)
|
|
1432
|
+
return return_type
|
|
1433
|
+
|
|
1434
|
+
def log_custom_fonts_large_upload(self, num_catalogs: int, num_fonts: int, total_expected_files: int) -> Self:
|
|
1435
|
+
"""LogCustomFontsLargeUpload operation.
|
|
1436
|
+
|
|
1437
|
+
Args:
|
|
1438
|
+
num_catalogs (int): numCatalogs parameter
|
|
1439
|
+
num_fonts (int): numFonts parameter
|
|
1440
|
+
total_expected_files (int): totalExpectedFiles parameter
|
|
1441
|
+
"""
|
|
1442
|
+
qry = ServiceOperationQuery(
|
|
1443
|
+
self,
|
|
1444
|
+
"LogCustomFontsLargeUpload",
|
|
1445
|
+
None,
|
|
1446
|
+
{"numCatalogs": num_catalogs, "numFonts": num_fonts, "totalExpectedFiles": total_expected_files},
|
|
1447
|
+
None,
|
|
1448
|
+
None,
|
|
1449
|
+
)
|
|
1450
|
+
self.context.add_query(qry)
|
|
1451
|
+
return self
|
|
1452
|
+
|
|
1453
|
+
def remove_from_org_assets(self, lib_url: ResourcePath, list_id: UUID) -> Self:
|
|
1454
|
+
"""RemoveFromOrgAssets operation.
|
|
1455
|
+
|
|
1456
|
+
Args:
|
|
1457
|
+
lib_url (ResourcePath): libUrl parameter
|
|
1458
|
+
list_id (UUID): listId parameter
|
|
1459
|
+
"""
|
|
1460
|
+
qry = ServiceOperationQuery(
|
|
1461
|
+
self, "RemoveFromOrgAssets", None, {"libUrl": lib_url, "listId": list_id}, None, None
|
|
1462
|
+
)
|
|
1463
|
+
self.context.add_query(qry)
|
|
1464
|
+
return self
|
|
1465
|
+
|
|
1466
|
+
def remove_from_org_assets_and_cdn(self, remove: bool, cdn_type: int, lib_url: ResourcePath) -> Self:
|
|
1467
|
+
"""RemoveFromOrgAssetsAndCdn operation.
|
|
1468
|
+
|
|
1469
|
+
Args:
|
|
1470
|
+
remove (bool): remove parameter
|
|
1471
|
+
cdn_type (int): cdnType parameter
|
|
1472
|
+
lib_url (ResourcePath): libUrl parameter
|
|
1473
|
+
"""
|
|
1474
|
+
qry = ServiceOperationQuery(
|
|
1475
|
+
self,
|
|
1476
|
+
"RemoveFromOrgAssetsAndCdn",
|
|
1477
|
+
None,
|
|
1478
|
+
{"remove": remove, "cdnType": cdn_type, "libUrl": lib_url},
|
|
1479
|
+
None,
|
|
1480
|
+
None,
|
|
1481
|
+
)
|
|
1482
|
+
self.context.add_query(qry)
|
|
1483
|
+
return self
|
|
1484
|
+
|
|
1485
|
+
def remove_previous_custom_font_upload(self, maj_versions: list[str], lib_url: ResourcePath) -> Self:
|
|
1486
|
+
"""RemovePreviousCustomFontUpload operation.
|
|
1487
|
+
|
|
1488
|
+
Args:
|
|
1489
|
+
maj_versions (list[str]): majVersions parameter
|
|
1490
|
+
lib_url (ResourcePath): libUrl parameter
|
|
1491
|
+
"""
|
|
1492
|
+
qry = ServiceOperationQuery(
|
|
1493
|
+
self,
|
|
1494
|
+
"RemovePreviousCustomFontUpload",
|
|
1495
|
+
None,
|
|
1496
|
+
{"majVersions": StringCollection(maj_versions), "libUrl": lib_url},
|
|
1497
|
+
None,
|
|
1498
|
+
None,
|
|
1499
|
+
)
|
|
1500
|
+
self.context.add_query(qry)
|
|
1501
|
+
return self
|
|
1502
|
+
|
|
1503
|
+
def remove_public_cdn_origin(self, origin_id: str) -> Self:
|
|
1504
|
+
"""RemovePublicCdnOrigin operation.
|
|
1505
|
+
|
|
1506
|
+
Args:
|
|
1507
|
+
origin_id (str): originId parameter
|
|
1508
|
+
"""
|
|
1509
|
+
qry = ServiceOperationQuery(self, "RemovePublicCdnOrigin", None, {"originId": origin_id}, None, None)
|
|
1510
|
+
self.context.add_query(qry)
|
|
1511
|
+
return self
|
|
1512
|
+
|
|
1513
|
+
def remove_sdn_provider(self) -> Self:
|
|
1514
|
+
"""RemoveSdnProvider operation."""
|
|
1515
|
+
qry = ServiceOperationQuery(self, "RemoveSdnProvider", None, {}, None, None)
|
|
1516
|
+
self.context.add_query(qry)
|
|
1517
|
+
return self
|
|
1518
|
+
|
|
1519
|
+
def set_block_download_file_type_policy_exclusion_list(self, excluded_block_download_group_ids: list[UUID]) -> Self:
|
|
1520
|
+
"""SetBlockDownloadFileTypePolicyExclusionList operation.
|
|
1521
|
+
|
|
1522
|
+
Args:
|
|
1523
|
+
excluded_block_download_group_ids (list[UUID]): excludedBlockDownloadGroupIds parameter
|
|
1524
|
+
"""
|
|
1525
|
+
qry = ServiceOperationQuery(
|
|
1526
|
+
self,
|
|
1527
|
+
"SetBlockDownloadFileTypePolicyExclusionList",
|
|
1528
|
+
None,
|
|
1529
|
+
{"excludedBlockDownloadGroupIds": GuidCollection(excluded_block_download_group_ids)},
|
|
1530
|
+
None,
|
|
1531
|
+
None,
|
|
1532
|
+
)
|
|
1533
|
+
self.context.add_query(qry)
|
|
1534
|
+
return self
|
|
1535
|
+
|
|
1536
|
+
def set_hide_default_themes(self, hide_default_themes: bool) -> ClientResult[bool]:
|
|
1537
|
+
"""SetHideDefaultThemes operation.
|
|
1538
|
+
|
|
1539
|
+
Args:
|
|
1540
|
+
hide_default_themes (bool): hideDefaultThemes parameter
|
|
1541
|
+
"""
|
|
1542
|
+
return_type = ClientResult(self.context, bool())
|
|
1543
|
+
qry = ServiceOperationQuery(
|
|
1544
|
+
self, "SetHideDefaultThemes", None, {"hideDefaultThemes": hide_default_themes}, None, return_type
|
|
1545
|
+
)
|
|
1546
|
+
self.context.add_query(qry)
|
|
1547
|
+
return return_type
|
|
1548
|
+
|
|
1549
|
+
def set_idle_session_sign_out_for_unmanaged_devices(
|
|
1550
|
+
self, enabled: bool, warn_after: time, sign_out_after: time
|
|
1551
|
+
) -> ClientResult[bool]:
|
|
1552
|
+
"""SetIdleSessionSignOutForUnmanagedDevices operation.
|
|
1553
|
+
|
|
1554
|
+
Args:
|
|
1555
|
+
enabled (bool): enabled parameter
|
|
1556
|
+
warn_after (time): warnAfter parameter
|
|
1557
|
+
sign_out_after (time): signOutAfter parameter
|
|
1558
|
+
"""
|
|
1559
|
+
return_type = ClientResult(self.context, bool())
|
|
1560
|
+
qry = ServiceOperationQuery(
|
|
1561
|
+
self,
|
|
1562
|
+
"SetIdleSessionSignOutForUnmanagedDevices",
|
|
1563
|
+
None,
|
|
1564
|
+
{"enabled": enabled, "warnAfter": warn_after, "signOutAfter": sign_out_after},
|
|
1565
|
+
None,
|
|
1566
|
+
return_type,
|
|
1567
|
+
)
|
|
1568
|
+
self.context.add_query(qry)
|
|
1569
|
+
return return_type
|
|
1570
|
+
|
|
1571
|
+
def set_jit_dlp_policy_data(
|
|
1572
|
+
self,
|
|
1573
|
+
mark_all_files_as_sensitive_by_default: bool,
|
|
1574
|
+
odb_sensitivity_refresh_window_in_hours: int,
|
|
1575
|
+
execution_mode: int,
|
|
1576
|
+
) -> Self:
|
|
1577
|
+
"""SetJitDlpPolicyData operation.
|
|
1578
|
+
|
|
1579
|
+
Args:
|
|
1580
|
+
mark_all_files_as_sensitive_by_default (bool): markAllFilesAsSensitiveByDefault parameter
|
|
1581
|
+
odb_sensitivity_refresh_window_in_hours (int): odbSensitivityRefreshWindowInHours parameter
|
|
1582
|
+
execution_mode (int): executionMode parameter
|
|
1583
|
+
"""
|
|
1584
|
+
qry = ServiceOperationQuery(
|
|
1585
|
+
self,
|
|
1586
|
+
"SetJitDlpPolicyData",
|
|
1587
|
+
None,
|
|
1588
|
+
{
|
|
1589
|
+
"markAllFilesAsSensitiveByDefault": mark_all_files_as_sensitive_by_default,
|
|
1590
|
+
"odbSensitivityRefreshWindowInHours": odb_sensitivity_refresh_window_in_hours,
|
|
1591
|
+
"executionMode": execution_mode,
|
|
1592
|
+
},
|
|
1593
|
+
None,
|
|
1594
|
+
None,
|
|
1595
|
+
)
|
|
1596
|
+
self.context.add_query(qry)
|
|
1597
|
+
return self
|
|
1598
|
+
|
|
1599
|
+
def set_org_assets_lib(self, lib_url: ResourcePath, thumbnail_url: ResourcePath, org_asset_type: int) -> Self:
|
|
1600
|
+
"""SetOrgAssetsLib operation.
|
|
1601
|
+
|
|
1602
|
+
Args:
|
|
1603
|
+
lib_url (ResourcePath): libUrl parameter
|
|
1604
|
+
thumbnail_url (ResourcePath): thumbnailUrl parameter
|
|
1605
|
+
org_asset_type (int): orgAssetType parameter
|
|
1606
|
+
"""
|
|
1607
|
+
qry = ServiceOperationQuery(
|
|
1608
|
+
self,
|
|
1609
|
+
"SetOrgAssetsLib",
|
|
1610
|
+
None,
|
|
1611
|
+
{"libUrl": lib_url, "thumbnailUrl": thumbnail_url, "orgAssetType": org_asset_type},
|
|
1612
|
+
None,
|
|
1613
|
+
None,
|
|
1614
|
+
)
|
|
1615
|
+
self.context.add_query(qry)
|
|
1616
|
+
return self
|
|
1617
|
+
|
|
1618
|
+
def set_org_assets_lib_with_config(
|
|
1619
|
+
self,
|
|
1620
|
+
lib_url: ResourcePath,
|
|
1621
|
+
thumbnail_url: ResourcePath,
|
|
1622
|
+
org_asset_type: int,
|
|
1623
|
+
config_param: OrgAssetsLibraryConfigParam,
|
|
1624
|
+
) -> Self:
|
|
1625
|
+
"""SetOrgAssetsLibWithConfig operation.
|
|
1626
|
+
|
|
1627
|
+
Args:
|
|
1628
|
+
lib_url (ResourcePath): libUrl parameter
|
|
1629
|
+
thumbnail_url (ResourcePath): thumbnailUrl parameter
|
|
1630
|
+
org_asset_type (int): orgAssetType parameter
|
|
1631
|
+
config_param (OrgAssetsLibraryConfigParam): configParam parameter
|
|
1632
|
+
"""
|
|
1633
|
+
qry = ServiceOperationQuery(
|
|
1634
|
+
self,
|
|
1635
|
+
"SetOrgAssetsLibWithConfig",
|
|
1636
|
+
None,
|
|
1637
|
+
{
|
|
1638
|
+
"libUrl": lib_url,
|
|
1639
|
+
"thumbnailUrl": thumbnail_url,
|
|
1640
|
+
"orgAssetType": org_asset_type,
|
|
1641
|
+
"configParam": config_param,
|
|
1642
|
+
},
|
|
1643
|
+
None,
|
|
1644
|
+
None,
|
|
1645
|
+
)
|
|
1646
|
+
self.context.add_query(qry)
|
|
1647
|
+
return self
|
|
1648
|
+
|
|
1649
|
+
def sync_aad_b2_b_management_policy(self) -> Self:
|
|
1650
|
+
"""SyncAadB2BManagementPolicy operation."""
|
|
1651
|
+
qry = ServiceOperationQuery(self, "SyncAadB2BManagementPolicy", None, {}, None, None)
|
|
1652
|
+
self.context.add_query(qry)
|
|
1653
|
+
return self
|
|
1654
|
+
|
|
1655
|
+
def update_tenant_theme(self, name: str, theme_json: str) -> ClientResult[bool]:
|
|
1656
|
+
"""UpdateTenantTheme operation.
|
|
1657
|
+
|
|
1658
|
+
Args:
|
|
1659
|
+
name (str): name parameter
|
|
1660
|
+
theme_json (str): themeJson parameter
|
|
1661
|
+
"""
|
|
1662
|
+
return_type = ClientResult(self.context, bool())
|
|
1663
|
+
qry = ServiceOperationQuery(
|
|
1664
|
+
self, "UpdateTenantTheme", None, {"name": name, "themeJson": theme_json}, None, return_type
|
|
1665
|
+
)
|
|
1666
|
+
self.context.add_query(qry)
|
|
1667
|
+
return return_type
|
|
1668
|
+
|
|
1669
|
+
def upload_custom_fonts_and_catalog_lib(
|
|
1670
|
+
self, custom_font_files: ClientValueCollection[CustomFontsResource], lib_url: ResourcePath
|
|
1671
|
+
) -> ClientResult[bool]:
|
|
1672
|
+
"""UploadCustomFontsAndCatalogLib operation.
|
|
1673
|
+
|
|
1674
|
+
Args:
|
|
1675
|
+
custom_font_files (ClientValueCollection[CustomFontsResource]): customFontFiles parameter
|
|
1676
|
+
lib_url (ResourcePath): libUrl parameter
|
|
1677
|
+
"""
|
|
1678
|
+
return_type = ClientResult(self.context, bool())
|
|
1679
|
+
qry = ServiceOperationQuery(
|
|
1680
|
+
self,
|
|
1681
|
+
"UploadCustomFontsAndCatalogLib",
|
|
1682
|
+
None,
|
|
1683
|
+
{"customFontFiles": custom_font_files, "libUrl": lib_url},
|
|
1684
|
+
None,
|
|
1685
|
+
return_type,
|
|
1686
|
+
)
|
|
1687
|
+
self.context.add_query(qry)
|
|
1688
|
+
return return_type
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from datetime import datetime
|
|
4
|
+
from typing import Optional
|
|
5
|
+
from uuid import UUID
|
|
6
|
+
|
|
7
|
+
from office365.runtime.client_result import ClientResult
|
|
8
|
+
from office365.runtime.client_value_collection import ClientValueCollection
|
|
9
|
+
from office365.runtime.queries.function import FunctionQuery
|
|
10
|
+
from office365.sharepoint.entity import Entity
|
|
11
|
+
from office365.sharepoint.publishing.propertyvalue import PropertyValue
|
|
12
|
+
from office365.sharepoint.tenant.administration.property import Property
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class CatalogManagementCollection(Entity):
|
|
16
|
+
@property
|
|
17
|
+
def last_updated_time_utc(self) -> Optional[datetime]:
|
|
18
|
+
"""Gets the lastUpdatedTimeUtc property"""
|
|
19
|
+
return self.properties.get("lastUpdatedTimeUtc", datetime.min)
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def items(self) -> ClientValueCollection[Property]:
|
|
23
|
+
"""Gets the Items property"""
|
|
24
|
+
return self.properties.get("Items", ClientValueCollection[Property](Property))
|
|
25
|
+
|
|
26
|
+
@property
|
|
27
|
+
def entity_type_name(self) -> str:
|
|
28
|
+
return "Microsoft.Online.SharePoint.TenantAdministration.CatalogManagementCollection"
|
|
29
|
+
|
|
30
|
+
def export_property_type_to_csv(self, property_type: int) -> ClientResult[str]:
|
|
31
|
+
"""ExportPropertyTypeToCSV operation.
|
|
32
|
+
|
|
33
|
+
Args:
|
|
34
|
+
property_type (int): propertyType parameter
|
|
35
|
+
"""
|
|
36
|
+
return_type = ClientResult(self.context, str())
|
|
37
|
+
qry = FunctionQuery(self, "ExportPropertyTypeToCSV", [property_type], return_type)
|
|
38
|
+
self.context.add_query(qry)
|
|
39
|
+
return return_type
|
|
40
|
+
|
|
41
|
+
def export_to_csv(self, property_type: int, value_id: UUID) -> ClientResult[str]:
|
|
42
|
+
"""ExportToCSV operation.
|
|
43
|
+
|
|
44
|
+
Args:
|
|
45
|
+
property_type (int): propertyType parameter
|
|
46
|
+
value_id (UUID): valueId parameter
|
|
47
|
+
"""
|
|
48
|
+
return_type = ClientResult(self.context, str())
|
|
49
|
+
qry = FunctionQuery(self, "ExportToCSV", [property_type, value_id], return_type)
|
|
50
|
+
self.context.add_query(qry)
|
|
51
|
+
return return_type
|
|
52
|
+
|
|
53
|
+
def get_display_names(self) -> ClientResult[dict]:
|
|
54
|
+
"""GetDisplayNames operation."""
|
|
55
|
+
return_type = ClientResult(self.context, dict())
|
|
56
|
+
qry = FunctionQuery(self, "GetDisplayNames", [], return_type)
|
|
57
|
+
self.context.add_query(qry)
|
|
58
|
+
return return_type
|
|
59
|
+
|
|
60
|
+
def get_value(self, property_id: UUID) -> ClientResult[PropertyValue]:
|
|
61
|
+
"""GetValue operation.
|
|
62
|
+
|
|
63
|
+
Args:
|
|
64
|
+
property_id (UUID): propertyId parameter
|
|
65
|
+
"""
|
|
66
|
+
return_type = ClientResult(self.context, PropertyValue())
|
|
67
|
+
qry = FunctionQuery(self, "GetValue", [property_id], return_type)
|
|
68
|
+
self.context.add_query(qry)
|
|
69
|
+
return return_type
|