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,5 +1,430 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
from uuid import UUID
|
|
3
|
+
|
|
4
|
+
from typing_extensions import Self
|
|
5
|
+
|
|
6
|
+
from office365.runtime.client_result import ClientResult
|
|
7
|
+
from office365.runtime.client_value_collection import ClientValueCollection
|
|
8
|
+
from office365.runtime.queries.function import FunctionQuery
|
|
9
|
+
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
10
|
+
from office365.sharepoint.approvals.mediaserviceupdateparameters import MediaServiceUpdateParameters
|
|
11
|
+
from office365.sharepoint.listitems.delete_parameters import ListItemDeleteParameters
|
|
12
|
+
from office365.sharepoint.listitems.form_update_value import ListItemFormUpdateValue
|
|
1
13
|
from office365.sharepoint.listitems.listitem import ListItem
|
|
14
|
+
from office365.sharepoint.listitems.updateresults import ListItemUpdateResults
|
|
15
|
+
from office365.sharepoint.webs.spimageitem import SPImageItem
|
|
16
|
+
from office365.sharepoint.workflow.labelaccesscontroldata import LabelAccessControlData
|
|
2
17
|
|
|
3
18
|
|
|
4
19
|
class SPWorkflowTask(ListItem):
|
|
5
20
|
""" """
|
|
21
|
+
|
|
22
|
+
def reset_role_inheritance(self) -> Self:
|
|
23
|
+
"""ResetRoleInheritance operation."""
|
|
24
|
+
qry = ServiceOperationQuery(self, "ResetRoleInheritance", None, {}, None, None)
|
|
25
|
+
self.context.add_query(qry)
|
|
26
|
+
return self
|
|
27
|
+
|
|
28
|
+
def add_thumbnail_field_data(
|
|
29
|
+
self, image_stream: bytes, image_name: str, field_internal_name: str, lock_id: str
|
|
30
|
+
) -> ClientResult[SPImageItem]:
|
|
31
|
+
"""AddThumbnailFieldData operation.
|
|
32
|
+
|
|
33
|
+
Args:
|
|
34
|
+
image_stream (bytes): imageStream parameter
|
|
35
|
+
image_name (str): imageName parameter
|
|
36
|
+
field_internal_name (str): fieldInternalName parameter
|
|
37
|
+
lock_id (str): lockId parameter
|
|
38
|
+
"""
|
|
39
|
+
return_type = ClientResult(self.context, SPImageItem())
|
|
40
|
+
qry = ServiceOperationQuery(
|
|
41
|
+
self,
|
|
42
|
+
"AddThumbnailFieldData",
|
|
43
|
+
None,
|
|
44
|
+
{
|
|
45
|
+
"imageStream": image_stream,
|
|
46
|
+
"imageName": image_name,
|
|
47
|
+
"fieldInternalName": field_internal_name,
|
|
48
|
+
"lockId": lock_id,
|
|
49
|
+
},
|
|
50
|
+
None,
|
|
51
|
+
return_type,
|
|
52
|
+
)
|
|
53
|
+
self.context.add_query(qry)
|
|
54
|
+
return return_type
|
|
55
|
+
|
|
56
|
+
def archive(self) -> ClientResult[str]:
|
|
57
|
+
"""Archive operation."""
|
|
58
|
+
return_type = ClientResult(self.context, str())
|
|
59
|
+
qry = ServiceOperationQuery(self, "Archive", None, {}, None, return_type)
|
|
60
|
+
self.context.add_query(qry)
|
|
61
|
+
return return_type
|
|
62
|
+
|
|
63
|
+
def delete_with_parameters(self, parameters: ListItemDeleteParameters) -> Self:
|
|
64
|
+
"""DeleteWithParameters operation.
|
|
65
|
+
|
|
66
|
+
Args:
|
|
67
|
+
parameters (ListItemDeleteParameters): parameters parameter
|
|
68
|
+
"""
|
|
69
|
+
qry = ServiceOperationQuery(self, "DeleteWithParameters", None, {"parameters": parameters}, None, None)
|
|
70
|
+
self.context.add_query(qry)
|
|
71
|
+
return self
|
|
72
|
+
|
|
73
|
+
def do_entities_have_access_to_label(
|
|
74
|
+
self, people_picker_input: str
|
|
75
|
+
) -> ClientResult[ClientValueCollection[LabelAccessControlData]]:
|
|
76
|
+
"""DoEntitiesHaveAccessToLabel operation.
|
|
77
|
+
|
|
78
|
+
Args:
|
|
79
|
+
people_picker_input (str): peoplePickerInput parameter
|
|
80
|
+
"""
|
|
81
|
+
return_type = ClientResult(self.context, ClientValueCollection[LabelAccessControlData]())
|
|
82
|
+
qry = ServiceOperationQuery(
|
|
83
|
+
self, "DoEntitiesHaveAccessToLabel", None, {"peoplePickerInput": people_picker_input}, None, return_type
|
|
84
|
+
)
|
|
85
|
+
self.context.add_query(qry)
|
|
86
|
+
return return_type
|
|
87
|
+
|
|
88
|
+
def folder_archive_progress(self) -> ClientResult[str]:
|
|
89
|
+
"""FolderArchiveProgress operation."""
|
|
90
|
+
return_type = ClientResult(self.context, str())
|
|
91
|
+
qry = ServiceOperationQuery(self, "FolderArchiveProgress", None, {}, None, return_type)
|
|
92
|
+
self.context.add_query(qry)
|
|
93
|
+
return return_type
|
|
94
|
+
|
|
95
|
+
def folder_unarchive_progress(self) -> ClientResult[str]:
|
|
96
|
+
"""FolderUnarchiveProgress operation."""
|
|
97
|
+
return_type = ClientResult(self.context, str())
|
|
98
|
+
qry = ServiceOperationQuery(self, "FolderUnarchiveProgress", None, {}, None, return_type)
|
|
99
|
+
self.context.add_query(qry)
|
|
100
|
+
return return_type
|
|
101
|
+
|
|
102
|
+
def media_service_update(self, parameters: MediaServiceUpdateParameters) -> Self:
|
|
103
|
+
"""MediaServiceUpdate operation.
|
|
104
|
+
|
|
105
|
+
Args:
|
|
106
|
+
parameters (MediaServiceUpdateParameters): parameters parameter
|
|
107
|
+
"""
|
|
108
|
+
qry = ServiceOperationQuery(self, "MediaServiceUpdate", None, {"parameters": parameters}, None, None)
|
|
109
|
+
self.context.add_query(qry)
|
|
110
|
+
return self
|
|
111
|
+
|
|
112
|
+
def media_service_update_v2(self, parameters: MediaServiceUpdateParameters, event_firing_enabled: bool) -> Self:
|
|
113
|
+
"""MediaServiceUpdateV2 operation.
|
|
114
|
+
|
|
115
|
+
Args:
|
|
116
|
+
parameters (MediaServiceUpdateParameters): parameters parameter
|
|
117
|
+
event_firing_enabled (bool): eventFiringEnabled parameter
|
|
118
|
+
"""
|
|
119
|
+
qry = ServiceOperationQuery(
|
|
120
|
+
self,
|
|
121
|
+
"MediaServiceUpdateV2",
|
|
122
|
+
None,
|
|
123
|
+
{"parameters": parameters, "eventFiringEnabled": event_firing_enabled},
|
|
124
|
+
None,
|
|
125
|
+
None,
|
|
126
|
+
)
|
|
127
|
+
self.context.add_query(qry)
|
|
128
|
+
return self
|
|
129
|
+
|
|
130
|
+
def override_policy_tip(self, user_action: int, justification: str) -> ClientResult[int]:
|
|
131
|
+
"""OverridePolicyTip operation.
|
|
132
|
+
|
|
133
|
+
Args:
|
|
134
|
+
user_action (int): userAction parameter
|
|
135
|
+
justification (str): justification parameter
|
|
136
|
+
"""
|
|
137
|
+
return_type = ClientResult(self.context, int())
|
|
138
|
+
qry = ServiceOperationQuery(
|
|
139
|
+
self,
|
|
140
|
+
"OverridePolicyTip",
|
|
141
|
+
None,
|
|
142
|
+
{"userAction": user_action, "justification": justification},
|
|
143
|
+
None,
|
|
144
|
+
return_type,
|
|
145
|
+
)
|
|
146
|
+
self.context.add_query(qry)
|
|
147
|
+
return return_type
|
|
148
|
+
|
|
149
|
+
def parse_and_set_field_value(self, field_name: str, value: str) -> Self:
|
|
150
|
+
"""ParseAndSetFieldValue operation.
|
|
151
|
+
|
|
152
|
+
Args:
|
|
153
|
+
field_name (str): fieldName parameter
|
|
154
|
+
value (str): value parameter
|
|
155
|
+
"""
|
|
156
|
+
qry = ServiceOperationQuery(
|
|
157
|
+
self, "ParseAndSetFieldValue", None, {"fieldName": field_name, "value": value}, None, None
|
|
158
|
+
)
|
|
159
|
+
self.context.add_query(qry)
|
|
160
|
+
return self
|
|
161
|
+
|
|
162
|
+
def recycle_with_parameters(self, parameters: ListItemDeleteParameters) -> ClientResult[UUID]:
|
|
163
|
+
"""RecycleWithParameters operation.
|
|
164
|
+
|
|
165
|
+
Args:
|
|
166
|
+
parameters (ListItemDeleteParameters): parameters parameter
|
|
167
|
+
"""
|
|
168
|
+
return_type = ClientResult(self.context, UUID(int=0))
|
|
169
|
+
qry = ServiceOperationQuery(self, "RecycleWithParameters", None, {"parameters": parameters}, None, return_type)
|
|
170
|
+
self.context.add_query(qry)
|
|
171
|
+
return return_type
|
|
172
|
+
|
|
173
|
+
def render_list_item_data_as_stream(self, options: int) -> ClientResult[bytes]:
|
|
174
|
+
"""RenderListItemDataAsStream operation.
|
|
175
|
+
|
|
176
|
+
Args:
|
|
177
|
+
options (int): options parameter
|
|
178
|
+
"""
|
|
179
|
+
return_type = ClientResult(self.context, bytes())
|
|
180
|
+
qry = FunctionQuery(self, "RenderListItemDataAsStream", [options], return_type, return_raw_content=True)
|
|
181
|
+
self.context.add_query(qry)
|
|
182
|
+
return return_type
|
|
183
|
+
|
|
184
|
+
def set_comments_disabled(self, value: bool) -> Self:
|
|
185
|
+
"""SetCommentsDisabled operation.
|
|
186
|
+
|
|
187
|
+
Args:
|
|
188
|
+
value (bool): value parameter
|
|
189
|
+
"""
|
|
190
|
+
qry = ServiceOperationQuery(self, "SetCommentsDisabled", None, {"value": value}, None, None)
|
|
191
|
+
self.context.add_query(qry)
|
|
192
|
+
return self
|
|
193
|
+
|
|
194
|
+
def set_compliance_tag(
|
|
195
|
+
self,
|
|
196
|
+
compliance_tag: str,
|
|
197
|
+
is_tag_policy_hold: bool,
|
|
198
|
+
is_tag_policy_record: bool,
|
|
199
|
+
is_event_based_tag: bool,
|
|
200
|
+
is_tag_super_lock: bool,
|
|
201
|
+
is_unlocked_as_default: bool,
|
|
202
|
+
) -> Self:
|
|
203
|
+
"""SetComplianceTag operation.
|
|
204
|
+
|
|
205
|
+
Args:
|
|
206
|
+
compliance_tag (str): complianceTag parameter
|
|
207
|
+
is_tag_policy_hold (bool): isTagPolicyHold parameter
|
|
208
|
+
is_tag_policy_record (bool): isTagPolicyRecord parameter
|
|
209
|
+
is_event_based_tag (bool): isEventBasedTag parameter
|
|
210
|
+
is_tag_super_lock (bool): isTagSuperLock parameter
|
|
211
|
+
is_unlocked_as_default (bool): isUnlockedAsDefault parameter
|
|
212
|
+
"""
|
|
213
|
+
qry = ServiceOperationQuery(
|
|
214
|
+
self,
|
|
215
|
+
"SetComplianceTag",
|
|
216
|
+
None,
|
|
217
|
+
{
|
|
218
|
+
"complianceTag": compliance_tag,
|
|
219
|
+
"isTagPolicyHold": is_tag_policy_hold,
|
|
220
|
+
"isTagPolicyRecord": is_tag_policy_record,
|
|
221
|
+
"isEventBasedTag": is_event_based_tag,
|
|
222
|
+
"isTagSuperLock": is_tag_super_lock,
|
|
223
|
+
"isUnlockedAsDefault": is_unlocked_as_default,
|
|
224
|
+
},
|
|
225
|
+
None,
|
|
226
|
+
None,
|
|
227
|
+
)
|
|
228
|
+
self.context.add_query(qry)
|
|
229
|
+
return self
|
|
230
|
+
|
|
231
|
+
def set_compliance_tag_with_explicit_metas_update(
|
|
232
|
+
self, compliance_tag: str, compliance_flags: int, compliance_tag_written_time: datetime, user_email_address: str
|
|
233
|
+
) -> Self:
|
|
234
|
+
"""SetComplianceTagWithExplicitMetasUpdate operation.
|
|
235
|
+
|
|
236
|
+
Args:
|
|
237
|
+
compliance_tag (str): complianceTag parameter
|
|
238
|
+
compliance_flags (int): complianceFlags parameter
|
|
239
|
+
compliance_tag_written_time (datetime): complianceTagWrittenTime parameter
|
|
240
|
+
user_email_address (str): userEmailAddress parameter
|
|
241
|
+
"""
|
|
242
|
+
qry = ServiceOperationQuery(
|
|
243
|
+
self,
|
|
244
|
+
"SetComplianceTagWithExplicitMetasUpdate",
|
|
245
|
+
None,
|
|
246
|
+
{
|
|
247
|
+
"complianceTag": compliance_tag,
|
|
248
|
+
"complianceFlags": compliance_flags,
|
|
249
|
+
"complianceTagWrittenTime": compliance_tag_written_time,
|
|
250
|
+
"userEmailAddress": user_email_address,
|
|
251
|
+
},
|
|
252
|
+
None,
|
|
253
|
+
None,
|
|
254
|
+
)
|
|
255
|
+
self.context.add_query(qry)
|
|
256
|
+
return self
|
|
257
|
+
|
|
258
|
+
def set_compliance_tag_with_hold(self, compliance_tag: str) -> Self:
|
|
259
|
+
"""SetComplianceTagWithHold operation.
|
|
260
|
+
|
|
261
|
+
Args:
|
|
262
|
+
compliance_tag (str): complianceTag parameter
|
|
263
|
+
"""
|
|
264
|
+
qry = ServiceOperationQuery(
|
|
265
|
+
self, "SetComplianceTagWithHold", None, {"complianceTag": compliance_tag}, None, None
|
|
266
|
+
)
|
|
267
|
+
self.context.add_query(qry)
|
|
268
|
+
return self
|
|
269
|
+
|
|
270
|
+
def set_compliance_tag_with_meta_info(
|
|
271
|
+
self,
|
|
272
|
+
compliance_tag: str,
|
|
273
|
+
block_delete: bool,
|
|
274
|
+
block_edit: bool,
|
|
275
|
+
compliance_tag_written_time: datetime,
|
|
276
|
+
user_email_address: str,
|
|
277
|
+
is_tag_super_lock: bool,
|
|
278
|
+
is_record_unlocked_as_default: bool,
|
|
279
|
+
) -> Self:
|
|
280
|
+
"""SetComplianceTagWithMetaInfo operation.
|
|
281
|
+
|
|
282
|
+
Args:
|
|
283
|
+
compliance_tag (str): complianceTag parameter
|
|
284
|
+
block_delete (bool): blockDelete parameter
|
|
285
|
+
block_edit (bool): blockEdit parameter
|
|
286
|
+
compliance_tag_written_time (datetime): complianceTagWrittenTime parameter
|
|
287
|
+
user_email_address (str): userEmailAddress parameter
|
|
288
|
+
is_tag_super_lock (bool): isTagSuperLock parameter
|
|
289
|
+
is_record_unlocked_as_default (bool): isRecordUnlockedAsDefault parameter
|
|
290
|
+
"""
|
|
291
|
+
qry = ServiceOperationQuery(
|
|
292
|
+
self,
|
|
293
|
+
"SetComplianceTagWithMetaInfo",
|
|
294
|
+
None,
|
|
295
|
+
{
|
|
296
|
+
"complianceTag": compliance_tag,
|
|
297
|
+
"blockDelete": block_delete,
|
|
298
|
+
"blockEdit": block_edit,
|
|
299
|
+
"complianceTagWrittenTime": compliance_tag_written_time,
|
|
300
|
+
"userEmailAddress": user_email_address,
|
|
301
|
+
"isTagSuperLock": is_tag_super_lock,
|
|
302
|
+
"isRecordUnlockedAsDefault": is_record_unlocked_as_default,
|
|
303
|
+
},
|
|
304
|
+
None,
|
|
305
|
+
None,
|
|
306
|
+
)
|
|
307
|
+
self.context.add_query(qry)
|
|
308
|
+
return self
|
|
309
|
+
|
|
310
|
+
def set_compliance_tag_with_no_hold(self, compliance_tag: str) -> Self:
|
|
311
|
+
"""SetComplianceTagWithNoHold operation.
|
|
312
|
+
|
|
313
|
+
Args:
|
|
314
|
+
compliance_tag (str): complianceTag parameter
|
|
315
|
+
"""
|
|
316
|
+
qry = ServiceOperationQuery(
|
|
317
|
+
self, "SetComplianceTagWithNoHold", None, {"complianceTag": compliance_tag}, None, None
|
|
318
|
+
)
|
|
319
|
+
self.context.add_query(qry)
|
|
320
|
+
return self
|
|
321
|
+
|
|
322
|
+
def set_compliance_tag_with_record(self, compliance_tag: str) -> Self:
|
|
323
|
+
"""SetComplianceTagWithRecord operation.
|
|
324
|
+
|
|
325
|
+
Args:
|
|
326
|
+
compliance_tag (str): complianceTag parameter
|
|
327
|
+
"""
|
|
328
|
+
qry = ServiceOperationQuery(
|
|
329
|
+
self, "SetComplianceTagWithRecord", None, {"complianceTag": compliance_tag}, None, None
|
|
330
|
+
)
|
|
331
|
+
self.context.add_query(qry)
|
|
332
|
+
return self
|
|
333
|
+
|
|
334
|
+
def system_update(self) -> Self:
|
|
335
|
+
"""SystemUpdate operation."""
|
|
336
|
+
qry = ServiceOperationQuery(self, "SystemUpdate", None, {}, None, None)
|
|
337
|
+
self.context.add_query(qry)
|
|
338
|
+
return self
|
|
339
|
+
|
|
340
|
+
def unarchive(self) -> ClientResult[str]:
|
|
341
|
+
"""Unarchive operation."""
|
|
342
|
+
return_type = ClientResult(self.context, str())
|
|
343
|
+
qry = ServiceOperationQuery(self, "Unarchive", None, {}, None, return_type)
|
|
344
|
+
self.context.add_query(qry)
|
|
345
|
+
return return_type
|
|
346
|
+
|
|
347
|
+
def update_overwrite_version(self) -> Self:
|
|
348
|
+
"""UpdateOverwriteVersion operation."""
|
|
349
|
+
qry = ServiceOperationQuery(self, "UpdateOverwriteVersion", None, {}, None, None)
|
|
350
|
+
self.context.add_query(qry)
|
|
351
|
+
return self
|
|
352
|
+
|
|
353
|
+
def validate_update_fetch_list_item(
|
|
354
|
+
self,
|
|
355
|
+
form_values: ClientValueCollection[ListItemFormUpdateValue],
|
|
356
|
+
bnew_document_update: bool,
|
|
357
|
+
check_in_comment: str,
|
|
358
|
+
dates_in_utc: bool,
|
|
359
|
+
number_in_invariant_culture: bool,
|
|
360
|
+
view: str,
|
|
361
|
+
root_folder: str,
|
|
362
|
+
) -> ClientResult[ListItemUpdateResults]:
|
|
363
|
+
"""ValidateUpdateFetchListItem operation.
|
|
364
|
+
|
|
365
|
+
Args:
|
|
366
|
+
form_values (ClientValueCollection[ListItemFormUpdateValue]): formValues parameter
|
|
367
|
+
bnew_document_update (bool): bNewDocumentUpdate parameter
|
|
368
|
+
check_in_comment (str): checkInComment parameter
|
|
369
|
+
dates_in_utc (bool): datesInUTC parameter
|
|
370
|
+
number_in_invariant_culture (bool): numberInInvariantCulture parameter
|
|
371
|
+
view (str): View parameter
|
|
372
|
+
root_folder (str): RootFolder parameter
|
|
373
|
+
"""
|
|
374
|
+
return_type = ClientResult(self.context, ListItemUpdateResults())
|
|
375
|
+
qry = ServiceOperationQuery(
|
|
376
|
+
self,
|
|
377
|
+
"ValidateUpdateFetchListItem",
|
|
378
|
+
None,
|
|
379
|
+
{
|
|
380
|
+
"formValues": form_values,
|
|
381
|
+
"bNewDocumentUpdate": bnew_document_update,
|
|
382
|
+
"checkInComment": check_in_comment,
|
|
383
|
+
"datesInUTC": dates_in_utc,
|
|
384
|
+
"numberInInvariantCulture": number_in_invariant_culture,
|
|
385
|
+
"View": view,
|
|
386
|
+
"RootFolder": root_folder,
|
|
387
|
+
},
|
|
388
|
+
None,
|
|
389
|
+
return_type,
|
|
390
|
+
)
|
|
391
|
+
self.context.add_query(qry)
|
|
392
|
+
return return_type
|
|
393
|
+
|
|
394
|
+
def validate_update_fetch_list_item_in_folder(
|
|
395
|
+
self,
|
|
396
|
+
form_values: ClientValueCollection[ListItemFormUpdateValue],
|
|
397
|
+
bnew_document_update: bool,
|
|
398
|
+
check_in_comment: str,
|
|
399
|
+
dates_in_utc: bool,
|
|
400
|
+
number_in_invariant_culture: bool,
|
|
401
|
+
root_folder: str,
|
|
402
|
+
) -> ClientResult[ListItemUpdateResults]:
|
|
403
|
+
"""ValidateUpdateFetchListItemInFolder operation.
|
|
404
|
+
|
|
405
|
+
Args:
|
|
406
|
+
form_values (ClientValueCollection[ListItemFormUpdateValue]): formValues parameter
|
|
407
|
+
bnew_document_update (bool): bNewDocumentUpdate parameter
|
|
408
|
+
check_in_comment (str): checkInComment parameter
|
|
409
|
+
dates_in_utc (bool): datesInUTC parameter
|
|
410
|
+
number_in_invariant_culture (bool): numberInInvariantCulture parameter
|
|
411
|
+
root_folder (str): rootFolder parameter
|
|
412
|
+
"""
|
|
413
|
+
return_type = ClientResult(self.context, ListItemUpdateResults())
|
|
414
|
+
qry = ServiceOperationQuery(
|
|
415
|
+
self,
|
|
416
|
+
"ValidateUpdateFetchListItemInFolder",
|
|
417
|
+
None,
|
|
418
|
+
{
|
|
419
|
+
"formValues": form_values,
|
|
420
|
+
"bNewDocumentUpdate": bnew_document_update,
|
|
421
|
+
"checkInComment": check_in_comment,
|
|
422
|
+
"datesInUTC": dates_in_utc,
|
|
423
|
+
"numberInInvariantCulture": number_in_invariant_culture,
|
|
424
|
+
"rootFolder": root_folder,
|
|
425
|
+
},
|
|
426
|
+
None,
|
|
427
|
+
return_type,
|
|
428
|
+
)
|
|
429
|
+
self.context.add_query(qry)
|
|
430
|
+
return return_type
|