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.
Files changed (245) hide show
  1. office365/communications/callrecords/call_record.py +18 -0
  2. office365/communications/calls/call.py +3 -0
  3. office365/communications/presences/presence.py +3 -0
  4. office365/communications/quotas.py +66 -0
  5. office365/communications/virtualevents/virtual_event.py +3 -0
  6. office365/directory/domains/domain.py +3 -0
  7. office365/directory/licenses/subscribed_sku.py +3 -0
  8. office365/directory/objects/object.py +3 -0
  9. office365/directory/quotas.py +34 -0
  10. office365/entity_collection.py +2 -2
  11. office365/graph_client.py +46 -2
  12. office365/limits.py +66 -0
  13. office365/migration/__init__.py +6 -1
  14. office365/migration/adapters/__init__.py +14 -4
  15. office365/migration/adapters/filesystem.py +4 -1
  16. office365/migration/assessment/export.py +5 -5
  17. office365/migration/assessment/issue.py +19 -0
  18. office365/migration/assessment/report.py +11 -0
  19. office365/migration/assessment/scanners/base.py +37 -49
  20. office365/migration/base.py +33 -8
  21. office365/migration/checkpoint.py +1 -1
  22. office365/migration/outlook/assessor.py +4 -4
  23. office365/migration/package/__init__.py +82 -0
  24. office365/migration/package/builder.py +603 -0
  25. office365/migration/package/crypto.py +54 -0
  26. office365/migration/package/manifest_xml.py +495 -0
  27. office365/migration/package/staging.py +180 -0
  28. office365/migration/report.py +7 -2
  29. office365/migration/report_io.py +79 -0
  30. office365/migration/runner.py +117 -10
  31. office365/migration/server_job.py +126 -14
  32. office365/migration/session.py +132 -49
  33. office365/migration/settings.py +67 -0
  34. office365/migration/sharepoint/__init__.py +2 -0
  35. office365/migration/sharepoint/adapters.py +207 -41
  36. office365/migration/sharepoint/assessor.py +45 -9
  37. office365/migration/sharepoint/options.py +57 -0
  38. office365/migration/sharepoint/package_target.py +209 -0
  39. office365/migration/sharepoint/registry.py +22 -0
  40. office365/migration/sharepoint/resolvers.py +96 -0
  41. office365/migration/sharepoint/scanners/__init__.py +29 -0
  42. office365/migration/sharepoint/scanners/browser_file_handling.py +55 -0
  43. office365/migration/sharepoint/scanners/checked_out_files.py +57 -0
  44. office365/migration/sharepoint/scanners/file_versions.py +56 -0
  45. office365/migration/sharepoint/scanners/files.py +5 -2
  46. office365/migration/sharepoint/scanners/large_excel_files.py +56 -0
  47. office365/migration/sharepoint/scanners/large_lists.py +58 -0
  48. office365/migration/sharepoint/scanners/large_sites.py +4 -3
  49. office365/migration/sharepoint/scanners/long_onedrive_urls.py +52 -0
  50. office365/migration/sharepoint/scanners/lookup.py +38 -0
  51. office365/migration/sharepoint/scanners/paths.py +9 -4
  52. office365/migration/sharepoint/scanners/permissions.py +20 -2
  53. office365/migration/sharepoint/scanners/smat.py +51 -0
  54. office365/migration/sharepoint/scanners/summary.py +1 -0
  55. office365/migration/sharepoint/scanners/thicket_folders.py +38 -0
  56. office365/migration/sharepoint/scanners/unsupported_site_templates.py +90 -0
  57. office365/migration/sharepoint/tenant_assessor.py +5 -3
  58. office365/migration/sharepoint/transfer.py +4 -2
  59. office365/migration/tasks.py +121 -0
  60. office365/migration/validators.py +2 -19
  61. office365/onedrive/driveitems/driveItem.py +116 -12
  62. office365/onedrive/termstore/groups/collection.py +2 -9
  63. office365/onedrive/termstore/sets/collection.py +2 -9
  64. office365/onedrive/termstore/terms/collection.py +3 -10
  65. office365/onedrive/workbooks/workbook.py +7 -0
  66. office365/outlook/contacts/folders/collection.py +4 -13
  67. office365/runtime/auth/authentication_context.py +5 -0
  68. office365/runtime/client_object.py +18 -0
  69. office365/runtime/client_object_collection.py +75 -245
  70. office365/runtime/client_request.py +77 -1
  71. office365/runtime/client_request_exception.py +127 -39
  72. office365/runtime/client_runtime_context.py +79 -8
  73. office365/runtime/converters/csv_writer.py +10 -4
  74. office365/runtime/converters/dataframe.py +84 -4
  75. office365/runtime/converters/json_file.py +12 -3
  76. office365/runtime/converters/parquet.py +67 -0
  77. office365/runtime/converters/records.py +31 -12
  78. office365/runtime/converters/registry.py +185 -0
  79. office365/runtime/converters/scalars.py +31 -0
  80. office365/runtime/converters/sql.py +69 -0
  81. office365/runtime/converters/streamers.py +105 -0
  82. office365/runtime/converters/streams.py +42 -0
  83. office365/runtime/converters/upsert.py +101 -0
  84. office365/runtime/exceptions.py +105 -0
  85. office365/runtime/http/prefer.py +26 -0
  86. office365/runtime/http/throttling.py +258 -56
  87. office365/runtime/imports.py +571 -0
  88. office365/runtime/limits.py +455 -0
  89. office365/runtime/odata/request.py +11 -2
  90. office365/runtime/odata/type.py +1 -0
  91. office365/runtime/odata/v3/batch_request.py +4 -2
  92. office365/runtime/odata/v4/batch_request.py +22 -7
  93. office365/runtime/operations.py +29 -0
  94. office365/runtime/parallel.py +12 -14
  95. office365/runtime/paths/v4/entity.py +2 -2
  96. office365/runtime/queries/batch.py +18 -1
  97. office365/runtime/queries/get_or_create.py +109 -0
  98. office365/runtime/record_collection.py +443 -0
  99. office365/runtime/retry.py +92 -26
  100. office365/runtime/transport/base.py +6 -1
  101. office365/runtime/transport/requests_transport.py +4 -0
  102. office365/runtime/transport/throttled_transport.py +67 -0
  103. office365/runtime/verification.py +40 -0
  104. office365/sharepoint/activities/logger.py +118 -8
  105. office365/sharepoint/administration/analytics/usage_service.py +15 -7
  106. office365/sharepoint/administration/sitemove/service.py +791 -8
  107. office365/sharepoint/alerts/alert.py +79 -0
  108. office365/sharepoint/apps/app_collection.py +25 -0
  109. office365/sharepoint/apps/launcher.py +16 -0
  110. office365/sharepoint/authpolicy/tenant/compliancereport.py +5 -0
  111. office365/sharepoint/businessdata/app_bdc_catalog.py +135 -0
  112. office365/sharepoint/businessdata/entityfieldvaluedictionary.py +65 -0
  113. office365/sharepoint/businessdata/entityidentifier.py +23 -0
  114. office365/sharepoint/businessdata/entityinstance.py +52 -0
  115. office365/sharepoint/businessdata/entityview.py +31 -0
  116. office365/sharepoint/businessdata/externalsubscriptionstore.py +9 -0
  117. office365/sharepoint/businessdata/typedescriptor.py +37 -0
  118. office365/sharepoint/client_context.py +40 -23
  119. office365/sharepoint/clientsidecomponent/hostedapps/app.py +21 -0
  120. office365/sharepoint/clientsidecomponent/hostedapps/manager.py +16 -0
  121. office365/sharepoint/comments/comment.py +84 -2
  122. office365/sharepoint/contentcenter/machinelearning/models/model.py +0 -23
  123. office365/sharepoint/contentcenter/machinelearning/publications/publication.py +0 -9
  124. office365/sharepoint/contentcenter/machinelearning/samples/sample.py +0 -14
  125. office365/sharepoint/contentcenter/machinelearning/workitems/item.py +0 -80
  126. office365/sharepoint/contentsolution/template_api.py +148 -0
  127. office365/sharepoint/contenttypes/collection.py +32 -10
  128. office365/sharepoint/convergence/addnoliveblobsinodcservicestateapi.py +9 -0
  129. office365/sharepoint/convergence/consumer_permissions.py +15 -0
  130. office365/sharepoint/convergence/migration_complete_state_api.py +25 -0
  131. office365/sharepoint/convergence/odcmetadatacleanedupapi.py +9 -0
  132. office365/sharepoint/documentmanagement/document_id.py +12 -0
  133. office365/sharepoint/entity.py +11 -2
  134. office365/sharepoint/entity_collection.py +2 -2
  135. office365/sharepoint/exceptions.py +194 -0
  136. office365/sharepoint/fields/builtin_field_id.py +45 -34
  137. office365/sharepoint/fields/builtin_field_name.py +123 -0
  138. office365/sharepoint/fields/coercion.py +131 -0
  139. office365/sharepoint/fields/collection.py +54 -37
  140. office365/sharepoint/fields/field.py +17 -0
  141. office365/sharepoint/fields/name.py +46 -2
  142. office365/sharepoint/files/collection.py +7 -1
  143. office365/sharepoint/files/file.py +54 -8
  144. office365/sharepoint/files/versions/version.py +38 -13
  145. office365/sharepoint/folders/collection.py +4 -0
  146. office365/sharepoint/folders/folder.py +91 -21
  147. office365/sharepoint/htmlpages/html_page.py +16 -0
  148. office365/sharepoint/htmlpages/html_page_service.py +19 -0
  149. office365/sharepoint/ir/migration.py +9 -0
  150. office365/sharepoint/listitems/caml/__init__.py +31 -0
  151. office365/sharepoint/listitems/caml/builder.py +129 -0
  152. office365/sharepoint/listitems/caml/expressions.py +424 -0
  153. office365/sharepoint/listitems/caml/fields.py +68 -0
  154. office365/sharepoint/listitems/caml/guard.py +63 -0
  155. office365/sharepoint/listitems/caml/query.py +71 -2
  156. office365/sharepoint/listitems/caml/values.py +113 -0
  157. office365/sharepoint/listitems/collection.py +21 -20
  158. office365/sharepoint/listitems/upsert.py +75 -0
  159. office365/sharepoint/lists/collection.py +29 -22
  160. office365/sharepoint/lists/exporter.py +4 -3
  161. office365/sharepoint/lists/list.py +397 -39
  162. office365/sharepoint/lists/smart_wiki_library_utility.py +58 -0
  163. office365/sharepoint/logger/export.py +12 -0
  164. office365/sharepoint/marketplace/app_metadata.py +97 -1
  165. office365/sharepoint/marketplace/appstatequeryjobdefinition.py +9 -0
  166. office365/sharepoint/marketplace/corporatecuratedgallery/carddesigns/card_designs.py +35 -0
  167. office365/sharepoint/marketplace/sitecollection/appcatalog/allowed_item.py +5 -0
  168. office365/sharepoint/marketplace/tenant/appcatalog/accessor.py +107 -30
  169. office365/sharepoint/microfeed/data.py +0 -6
  170. office365/sharepoint/microservice/manager.py +61 -0
  171. office365/sharepoint/migrationcenter/common/task.py +193 -4
  172. office365/sharepoint/migrationcenter/common/task_entity_data.py +1 -1
  173. office365/sharepoint/migrationcenter/deploy_status.py +13 -0
  174. office365/sharepoint/migrationcenter/service/properties.py +20 -0
  175. office365/sharepoint/migrationcenter/service/storage.py +34 -0
  176. office365/sharepoint/migrationcenter/spflight.py +13 -0
  177. office365/sharepoint/migrationcenter/urlparseresult.py +77 -0
  178. office365/sharepoint/multigeo/service/spmultigeoproxy.py +13 -0
  179. office365/sharepoint/navigation/servicerest.py +127 -0
  180. office365/sharepoint/oauth/authentication.py +13 -0
  181. office365/sharepoint/portal/theme_manager.py +120 -8
  182. office365/sharepoint/principal/users/user.py +10 -0
  183. office365/sharepoint/publishing/campaign/campaign.py +36 -1
  184. office365/sharepoint/publishing/feedvideopage.py +0 -7
  185. office365/sharepoint/publishing/pages/3d/page.py +0 -6
  186. office365/sharepoint/publishing/pages/page.py +0 -117
  187. office365/sharepoint/publishing/pages/reposts/repost.py +0 -7
  188. office365/sharepoint/publishing/pages/topics/topic.py +0 -7
  189. office365/sharepoint/publishing/subtitlefile.py +0 -40
  190. office365/sharepoint/quotamanagement/consumer/consumer_quota_info_api.py +14 -0
  191. office365/sharepoint/quotamanagement/consumer/non_quota_backfill_api.py +23 -0
  192. office365/sharepoint/quotamanagement/consumer/nonquotamigrationapi.py +9 -0
  193. office365/sharepoint/quotamanagement/consumer/quotamigrationapi.py +13 -0
  194. office365/sharepoint/request.py +57 -16
  195. office365/sharepoint/search/administration/document_crawl_log.py +24 -7
  196. office365/sharepoint/search/administration/providers/crawl_versions_info.py +29 -0
  197. office365/sharepoint/search/administration/providers/recycle_bin_info.py +23 -0
  198. office365/sharepoint/search/administration/providers/site_content_processing_info.py +67 -0
  199. office365/sharepoint/sites/site.py +976 -65
  200. office365/sharepoint/sites/siteprovisioninginfoprovider.py +13 -0
  201. office365/sharepoint/tenant/administration/datagovernance/insight_client.py +292 -23
  202. office365/sharepoint/tenant/administration/ddiadapter.py +97 -0
  203. office365/sharepoint/tenant/administration/internal/aad/collection.py +20 -0
  204. office365/sharepoint/tenant/administration/internal/aad/permission_grant.py +0 -19
  205. office365/sharepoint/tenant/administration/internal/appservice/permission_request.py +72 -1
  206. office365/sharepoint/tenant/administration/internal/appservice/principal.py +1 -3
  207. office365/sharepoint/tenant/administration/odb_license_enforcement_service.py +26 -0
  208. office365/sharepoint/tenant/administration/sites/properties.py +564 -6
  209. office365/sharepoint/tenant/administration/spdatagovernancesarrestapiclient.py +60 -1
  210. office365/sharepoint/tenant/insights/reports/manager.py +24 -12
  211. office365/sharepoint/tenant/management/office365_tenant.py +451 -2
  212. office365/sharepoint/tenantadministration/catalog_management_collection.py +69 -0
  213. office365/sharepoint/tenantadministration/catalog_management_custom_properties_collection.py +237 -0
  214. office365/sharepoint/tenantadministration/catalog_management_restricted_content_discovery_collection.py +56 -0
  215. office365/sharepoint/tenantadministration/sp_data_governance_client_exception.py +7 -0
  216. office365/sharepoint/thresholds.py +529 -0
  217. office365/sharepoint/translation/jobs/job.py +72 -2
  218. office365/sharepoint/translation/jobs/status.py +47 -9
  219. office365/sharepoint/translation/sync_translator.py +15 -2
  220. office365/sharepoint/utilities/move_copy_util.py +2 -1
  221. office365/sharepoint/viva/connections/page.py +27 -0
  222. office365/sharepoint/viva/home.py +38 -0
  223. office365/sharepoint/viva/learningmanager.py +9 -0
  224. office365/sharepoint/viva/vivaresources.py +60 -0
  225. office365/sharepoint/webhooks/subscription.py +0 -11
  226. office365/sharepoint/webparts/definitions/definition.py +13 -0
  227. office365/sharepoint/webparts/limited_manager.py +29 -7
  228. office365/sharepoint/webs/context_web_information.py +14 -9
  229. office365/sharepoint/webs/templates/__init__.py +11 -0
  230. office365/sharepoint/webs/templates/type.py +74 -15
  231. office365/sharepoint/workflow/definition.py +6 -0
  232. office365/sharepoint/workflow/deployment_service.py +155 -0
  233. office365/sharepoint/workflow/instances/service.py +33 -0
  234. office365/sharepoint/workflow/interopservice.py +68 -0
  235. office365/sharepoint/workflow/messagingservice.py +24 -0
  236. office365/sharepoint/workflow/servicesmanager.py +41 -2
  237. office365/sharepoint/workflow/subscriptions/service.py +67 -0
  238. office365/sharepoint/workflow/subscriptions/subscription.py +31 -0
  239. office365/sharepoint/workflow/task.py +425 -0
  240. office365_rest_python_client-3.2.0.dist-info/METADATA +605 -0
  241. {office365_rest_python_client-3.1.0.dist-info → office365_rest_python_client-3.2.0.dist-info}/RECORD +242 -185
  242. office365/migration/_util.py +0 -73
  243. office365/sharepoint/listitems/caml/types.py +0 -70
  244. office365_rest_python_client-3.1.0.dist-info/METADATA +0 -475
  245. {office365_rest_python_client-3.1.0.dist-info → office365_rest_python_client-3.2.0.dist-info}/WHEEL +0 -0
@@ -1,9 +1,15 @@
1
1
  from __future__ import annotations
2
2
 
3
+ from datetime import datetime
3
4
  from typing import TYPE_CHECKING, Optional
5
+ from uuid import UUID
6
+
7
+ from typing_extensions import Self
4
8
 
5
9
  from office365.runtime.paths.resource_path import ResourcePath
10
+ from office365.runtime.queries.service_operation import ServiceOperationQuery
6
11
  from office365.sharepoint.entity import Entity
12
+ from office365.sharepoint.types.property_values import PropertyValues
7
13
 
8
14
  if TYPE_CHECKING:
9
15
  from office365.sharepoint.listitems.listitem import ListItem
@@ -54,3 +60,76 @@ class Alert(Entity):
54
60
  from office365.sharepoint.lists.list import List
55
61
 
56
62
  return self.properties.get("List", List(self.context, ResourcePath("list", self.resource_path)))
63
+
64
+ @property
65
+ def alert_time(self) -> Optional[datetime]:
66
+ """Gets the AlertTime property"""
67
+ return self.properties.get("AlertTime", datetime.min)
68
+
69
+ @property
70
+ def alert_type(self) -> Optional[int]:
71
+ """Gets the AlertType property"""
72
+ return self.properties.get("AlertType", None)
73
+
74
+ @property
75
+ def delivery_channels(self) -> Optional[int]:
76
+ """Gets the DeliveryChannels property"""
77
+ return self.properties.get("DeliveryChannels", None)
78
+
79
+ @property
80
+ def event_type(self) -> Optional[int]:
81
+ """Gets the EventType property"""
82
+ return self.properties.get("EventType", None)
83
+
84
+ @property
85
+ def filter_(self) -> Optional[str]:
86
+ """Gets the Filter property"""
87
+ return self.properties.get("Filter", None)
88
+
89
+ @property
90
+ def id_(self) -> Optional[UUID]:
91
+ """Gets the ID property"""
92
+ return self.properties.get("ID", None)
93
+
94
+ @property
95
+ def item_id(self) -> Optional[int]:
96
+ """Gets the ItemID property"""
97
+ return self.properties.get("ItemID", None)
98
+
99
+ @property
100
+ def list_id(self) -> Optional[UUID]:
101
+ """Gets the ListID property"""
102
+ return self.properties.get("ListID", None)
103
+
104
+ @property
105
+ def list_url(self) -> Optional[str]:
106
+ """Gets the ListUrl property"""
107
+ return self.properties.get("ListUrl", None)
108
+
109
+ @property
110
+ def status(self) -> Optional[int]:
111
+ """Gets the Status property"""
112
+ return self.properties.get("Status", None)
113
+
114
+ @property
115
+ def title(self) -> Optional[str]:
116
+ """Gets the Title property"""
117
+ return self.properties.get("Title", None)
118
+
119
+ @property
120
+ def user_id(self) -> Optional[int]:
121
+ """Gets the UserId property"""
122
+ return self.properties.get("UserId", None)
123
+
124
+ @property
125
+ def all_properties(self) -> PropertyValues:
126
+ """Gets the AllProperties property"""
127
+ return self.properties.get(
128
+ "AllProperties", PropertyValues(self.context, ResourcePath("AllProperties", self.resource_path))
129
+ )
130
+
131
+ def update_alert(self) -> Self:
132
+ """UpdateAlert operation."""
133
+ qry = ServiceOperationQuery(self, "UpdateAlert", None, {}, None, None)
134
+ self.context.add_query(qry)
135
+ return self
@@ -1,3 +1,5 @@
1
+ from office365.runtime.client_result import ClientResult
2
+ from office365.runtime.queries.function import FunctionQuery
1
3
  from office365.sharepoint.entity import Entity
2
4
 
3
5
 
@@ -5,3 +7,26 @@ class AppCollection(Entity):
5
7
  @property
6
8
  def entity_type_name(self):
7
9
  return "Microsoft.AppServices.AppCollection"
10
+
11
+ def get_apps_from_store(self, add_in_type: str, query_string: str) -> ClientResult[str]:
12
+ """GetAppsFromStore operation.
13
+
14
+ Args:
15
+ add_in_type (str): addInType parameter
16
+ query_string (str): queryString parameter
17
+ """
18
+ return_type = ClientResult(self.context, str())
19
+ qry = FunctionQuery(self, "GetAppsFromStore", [add_in_type, query_string], return_type)
20
+ self.context.add_query(qry)
21
+ return return_type
22
+
23
+ def get_by_type(self, type_: str) -> ClientResult[str]:
24
+ """GetByType operation.
25
+
26
+ Args:
27
+ type_ (str): type parameter
28
+ """
29
+ return_type = ClientResult(self.context, str())
30
+ qry = FunctionQuery(self, "GetByType", [type_], return_type)
31
+ self.context.add_query(qry)
32
+ return return_type
@@ -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,17 @@ class AppLauncher(Entity):
7
9
  @property
8
10
  def entity_type_name(self):
9
11
  return "Microsoft.Online.SharePoint.AppLauncher.AppLauncher"
12
+
13
+ def get_data(self, suite_version: int, is_mobile_request: bool, locale: str, on_prem_ver: str) -> ClientResult[str]:
14
+ """GetData operation.
15
+
16
+ Args:
17
+ suite_version (int): suiteVersion parameter
18
+ is_mobile_request (bool): isMobileRequest parameter
19
+ locale (str): locale parameter
20
+ on_prem_ver (str): onPremVer parameter
21
+ """
22
+ return_type = ClientResult(self.context, str())
23
+ qry = FunctionQuery(self, "GetData", [suite_version, is_mobile_request, locale, on_prem_ver], return_type)
24
+ self.context.add_query(qry)
25
+ return return_type
@@ -49,3 +49,8 @@ class SPTenantIBPolicyComplianceReport(Entity):
49
49
  @property
50
50
  def entity_type_name(self):
51
51
  return "Microsoft.SharePoint.AuthPolicy.SPTenantIBPolicyComplianceReport"
52
+
53
+ @property
54
+ def id(self) -> Optional[str]:
55
+ """Gets the Id property"""
56
+ return self.properties.get("Id", None)
@@ -1,3 +1,5 @@
1
+ from typing_extensions import Self
2
+
1
3
  from office365.runtime.client_result import ClientResult
2
4
  from office365.runtime.queries.service_operation import ServiceOperationQuery
3
5
  from office365.runtime.types.collections import StringCollection
@@ -22,3 +24,136 @@ class AppBdcCatalog(Entity):
22
24
  @property
23
25
  def entity_type_name(self):
24
26
  return "SP.BusinessData.AppBdcCatalog"
27
+
28
+ def get_connection_id(self, lob_system_name: str, lob_system_instance_name: str) -> ClientResult[str]:
29
+ """GetConnectionId operation.
30
+
31
+ Args:
32
+ lob_system_name (str): lobSystemName parameter
33
+ lob_system_instance_name (str): lobSystemInstanceName parameter
34
+ """
35
+ return_type = ClientResult(self.context, str())
36
+ qry = ServiceOperationQuery(
37
+ self,
38
+ "GetConnectionId",
39
+ None,
40
+ {"lobSystemName": lob_system_name, "lobSystemInstanceName": lob_system_instance_name},
41
+ None,
42
+ return_type,
43
+ )
44
+ self.context.add_query(qry)
45
+ return return_type
46
+
47
+ def get_lob_system_instance_property(
48
+ self, lob_system_name: str, lob_system_instance_name: str, property_name: str
49
+ ) -> ClientResult[str]:
50
+ """GetLobSystemInstanceProperty operation.
51
+
52
+ Args:
53
+ lob_system_name (str): lobSystemName parameter
54
+ lob_system_instance_name (str): lobSystemInstanceName parameter
55
+ property_name (str): propertyName parameter
56
+ """
57
+ return_type = ClientResult(self.context, str())
58
+ qry = ServiceOperationQuery(
59
+ self,
60
+ "GetLobSystemInstanceProperty",
61
+ None,
62
+ {
63
+ "lobSystemName": lob_system_name,
64
+ "lobSystemInstanceName": lob_system_instance_name,
65
+ "propertyName": property_name,
66
+ },
67
+ None,
68
+ return_type,
69
+ )
70
+ self.context.add_query(qry)
71
+ return return_type
72
+
73
+ def get_lob_system_property(self, lob_system_name: str, property_name: str) -> ClientResult[str]:
74
+ """GetLobSystemProperty operation.
75
+
76
+ Args:
77
+ lob_system_name (str): lobSystemName parameter
78
+ property_name (str): propertyName parameter
79
+ """
80
+ return_type = ClientResult(self.context, str())
81
+ qry = ServiceOperationQuery(
82
+ self,
83
+ "GetLobSystemProperty",
84
+ None,
85
+ {"lobSystemName": lob_system_name, "propertyName": property_name},
86
+ None,
87
+ return_type,
88
+ )
89
+ self.context.add_query(qry)
90
+ return return_type
91
+
92
+ def set_connection_id(self, lob_system_name: str, lob_system_instance_name: str, connection_id: str) -> Self:
93
+ """SetConnectionId operation.
94
+
95
+ Args:
96
+ lob_system_name (str): lobSystemName parameter
97
+ lob_system_instance_name (str): lobSystemInstanceName parameter
98
+ connection_id (str): connectionId parameter
99
+ """
100
+ qry = ServiceOperationQuery(
101
+ self,
102
+ "SetConnectionId",
103
+ None,
104
+ {
105
+ "lobSystemName": lob_system_name,
106
+ "lobSystemInstanceName": lob_system_instance_name,
107
+ "connectionId": connection_id,
108
+ },
109
+ None,
110
+ None,
111
+ )
112
+ self.context.add_query(qry)
113
+ return self
114
+
115
+ def set_lob_system_instance_property(
116
+ self, lob_system_name: str, lob_system_instance_name: str, property_name: str, property_value: str
117
+ ) -> Self:
118
+ """SetLobSystemInstanceProperty operation.
119
+
120
+ Args:
121
+ lob_system_name (str): lobSystemName parameter
122
+ lob_system_instance_name (str): lobSystemInstanceName parameter
123
+ property_name (str): propertyName parameter
124
+ property_value (str): propertyValue parameter
125
+ """
126
+ qry = ServiceOperationQuery(
127
+ self,
128
+ "SetLobSystemInstanceProperty",
129
+ None,
130
+ {
131
+ "lobSystemName": lob_system_name,
132
+ "lobSystemInstanceName": lob_system_instance_name,
133
+ "propertyName": property_name,
134
+ "propertyValue": property_value,
135
+ },
136
+ None,
137
+ None,
138
+ )
139
+ self.context.add_query(qry)
140
+ return self
141
+
142
+ def set_lob_system_property(self, lob_system_name: str, property_name: str, property_value: str) -> Self:
143
+ """SetLobSystemProperty operation.
144
+
145
+ Args:
146
+ lob_system_name (str): lobSystemName parameter
147
+ property_name (str): propertyName parameter
148
+ property_value (str): propertyValue parameter
149
+ """
150
+ qry = ServiceOperationQuery(
151
+ self,
152
+ "SetLobSystemProperty",
153
+ None,
154
+ {"lobSystemName": lob_system_name, "propertyName": property_name, "propertyValue": property_value},
155
+ None,
156
+ None,
157
+ )
158
+ self.context.add_query(qry)
159
+ return self
@@ -1,3 +1,7 @@
1
+ from typing_extensions import Self
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
2
6
 
3
7
 
@@ -5,3 +9,64 @@ class EntityFieldValueDictionary(Entity):
5
9
  @property
6
10
  def entity_type_name(self) -> str:
7
11
  return "SP.BusinessData.Runtime.EntityFieldValueDictionary"
12
+
13
+ def create_collection_instance(self, field_dot_notation: str, size: int) -> Self:
14
+ """CreateCollectionInstance operation.
15
+
16
+ Args:
17
+ field_dot_notation (str): fieldDotNotation parameter
18
+ size (int): size parameter
19
+ """
20
+ qry = ServiceOperationQuery(
21
+ self, "CreateCollectionInstance", None, {"fieldDotNotation": field_dot_notation, "size": size}, None, None
22
+ )
23
+ self.context.add_query(qry)
24
+ return self
25
+
26
+ def create_instance(self, field_instance_dot_notation: str, field_dot_notation: str) -> Self:
27
+ """CreateInstance operation.
28
+
29
+ Args:
30
+ field_instance_dot_notation (str): fieldInstanceDotNotation parameter
31
+ field_dot_notation (str): fieldDotNotation parameter
32
+ """
33
+ qry = ServiceOperationQuery(
34
+ self,
35
+ "CreateInstance",
36
+ None,
37
+ {"fieldInstanceDotNotation": field_instance_dot_notation, "fieldDotNotation": field_dot_notation},
38
+ None,
39
+ None,
40
+ )
41
+ self.context.add_query(qry)
42
+ return self
43
+
44
+ def from_xml(self, xml: str) -> Self:
45
+ """FromXml operation.
46
+
47
+ Args:
48
+ xml (str): xml parameter
49
+ """
50
+ qry = ServiceOperationQuery(self, "FromXml", None, {"xml": xml}, None, None)
51
+ self.context.add_query(qry)
52
+ return self
53
+
54
+ def get_collection_size(self, field_dot_notation: str) -> ClientResult[int]:
55
+ """GetCollectionSize operation.
56
+
57
+ Args:
58
+ field_dot_notation (str): fieldDotNotation parameter
59
+ """
60
+ return_type = ClientResult(self.context, int())
61
+ qry = ServiceOperationQuery(
62
+ self, "GetCollectionSize", None, {"fieldDotNotation": field_dot_notation}, None, return_type
63
+ )
64
+ self.context.add_query(qry)
65
+ return return_type
66
+
67
+ def to_xml(self) -> ClientResult[str]:
68
+ """ToXml operation."""
69
+ return_type = ClientResult(self.context, str())
70
+ qry = ServiceOperationQuery(self, "ToXml", None, {}, None, return_type)
71
+ self.context.add_query(qry)
72
+ return return_type
@@ -1,5 +1,7 @@
1
1
  from typing import Optional
2
2
 
3
+ from office365.runtime.client_result import ClientResult
4
+ from office365.runtime.queries.service_operation import ServiceOperationQuery
3
5
  from office365.sharepoint.entity import Entity
4
6
 
5
7
 
@@ -17,3 +19,24 @@ class EntityIdentifier(Entity):
17
19
  @property
18
20
  def entity_type_name(self):
19
21
  return "SP.BusinessData.EntityIdentifier"
22
+
23
+ def contains_localized_display_name(self) -> ClientResult[bool]:
24
+ """ContainsLocalizedDisplayName operation."""
25
+ return_type = ClientResult(self.context, bool())
26
+ qry = ServiceOperationQuery(self, "ContainsLocalizedDisplayName", None, {}, None, return_type)
27
+ self.context.add_query(qry)
28
+ return return_type
29
+
30
+ def get_default_display_name(self) -> ClientResult[str]:
31
+ """GetDefaultDisplayName operation."""
32
+ return_type = ClientResult(self.context, str())
33
+ qry = ServiceOperationQuery(self, "GetDefaultDisplayName", None, {}, None, return_type)
34
+ self.context.add_query(qry)
35
+ return return_type
36
+
37
+ def get_localized_display_name(self) -> ClientResult[str]:
38
+ """GetLocalizedDisplayName operation."""
39
+ return_type = ClientResult(self.context, str())
40
+ qry = ServiceOperationQuery(self, "GetLocalizedDisplayName", None, {}, None, return_type)
41
+ self.context.add_query(qry)
42
+ return return_type
@@ -1,3 +1,7 @@
1
+ from typing_extensions import Self
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
2
6
 
3
7
 
@@ -5,3 +9,51 @@ class EntityInstance(Entity):
5
9
  @property
6
10
  def entity_type_name(self) -> str:
7
11
  return "SP.BusinessData.Runtime.EntityInstance"
12
+
13
+ def create_collection_instance(self, field_dot_notation: str, size: int) -> Self:
14
+ """CreateCollectionInstance operation.
15
+
16
+ Args:
17
+ field_dot_notation (str): fieldDotNotation parameter
18
+ size (int): size parameter
19
+ """
20
+ qry = ServiceOperationQuery(
21
+ self, "CreateCollectionInstance", None, {"fieldDotNotation": field_dot_notation, "size": size}, None, None
22
+ )
23
+ self.context.add_query(qry)
24
+ return self
25
+
26
+ def create_instance(self, field_instance_dot_notation: str, field_dot_notation: str) -> Self:
27
+ """CreateInstance operation.
28
+
29
+ Args:
30
+ field_instance_dot_notation (str): fieldInstanceDotNotation parameter
31
+ field_dot_notation (str): fieldDotNotation parameter
32
+ """
33
+ qry = ServiceOperationQuery(
34
+ self,
35
+ "CreateInstance",
36
+ None,
37
+ {"fieldInstanceDotNotation": field_instance_dot_notation, "fieldDotNotation": field_dot_notation},
38
+ None,
39
+ None,
40
+ )
41
+ self.context.add_query(qry)
42
+ return self
43
+
44
+ def from_xml(self, xml: str) -> Self:
45
+ """FromXml operation.
46
+
47
+ Args:
48
+ xml (str): xml parameter
49
+ """
50
+ qry = ServiceOperationQuery(self, "FromXml", None, {"xml": xml}, None, None)
51
+ self.context.add_query(qry)
52
+ return self
53
+
54
+ def to_xml(self) -> ClientResult[str]:
55
+ """ToXml operation."""
56
+ return_type = ClientResult(self.context, str())
57
+ qry = ServiceOperationQuery(self, "ToXml", None, {}, None, return_type)
58
+ self.context.add_query(qry)
59
+ return return_type
@@ -1,6 +1,11 @@
1
1
  from typing import Optional
2
2
 
3
+ from office365.runtime.client_result import ClientResult
4
+ from office365.runtime.paths.resource_path import ResourcePath
5
+ from office365.runtime.queries.service_operation import ServiceOperationQuery
6
+ from office365.sharepoint.businessdata.entityfield import EntityField
3
7
  from office365.sharepoint.entity import Entity
8
+ from office365.sharepoint.entity_collection import EntityCollection
4
9
 
5
10
 
6
11
  class EntityView(Entity):
@@ -17,3 +22,29 @@ class EntityView(Entity):
17
22
  @property
18
23
  def entity_type_name(self):
19
24
  return "SP.BusinessData.EntityView"
25
+
26
+ @property
27
+ def fields(self) -> EntityCollection[EntityField]:
28
+ """Gets the Fields property"""
29
+ return self.properties.get(
30
+ "Fields",
31
+ EntityCollection[EntityField](self.context, EntityField, ResourcePath("Fields", self.resource_path)),
32
+ )
33
+
34
+ def get_type(self, field_dot_notation: str) -> ClientResult[str]:
35
+ """GetType operation.
36
+
37
+ Args:
38
+ field_dot_notation (str): fieldDotNotation parameter
39
+ """
40
+ return_type = ClientResult(self.context, str())
41
+ qry = ServiceOperationQuery(self, "GetType", None, {"fieldDotNotation": field_dot_notation}, None, return_type)
42
+ self.context.add_query(qry)
43
+ return return_type
44
+
45
+ def get_xml_schema(self) -> ClientResult[str]:
46
+ """GetXmlSchema operation."""
47
+ return_type = ClientResult(self.context, str())
48
+ qry = ServiceOperationQuery(self, "GetXmlSchema", None, {}, None, return_type)
49
+ self.context.add_query(qry)
50
+ return return_type
@@ -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 ExternalSubscriptionStore(Entity):
5
8
  @property
6
9
  def entity_type_name(self) -> str:
7
10
  return "SP.BusinessData.Infrastructure.ExternalSubscriptionStore"
11
+
12
+ def index_store(self) -> Self:
13
+ """IndexStore operation."""
14
+ qry = ServiceOperationQuery(self, "IndexStore", None, {}, None, None)
15
+ self.context.add_query(qry)
16
+ return self
@@ -1,5 +1,7 @@
1
1
  from typing import Optional
2
2
 
3
+ from office365.runtime.client_result import ClientResult
4
+ from office365.runtime.queries.service_operation import ServiceOperationQuery
3
5
  from office365.sharepoint.entity import Entity
4
6
 
5
7
 
@@ -32,3 +34,38 @@ class TypeDescriptor(Entity):
32
34
  @property
33
35
  def entity_type_name(self):
34
36
  return "SP.BusinessData.TypeDescriptor"
37
+
38
+ def contains_localized_display_name(self) -> ClientResult[bool]:
39
+ """ContainsLocalizedDisplayName operation."""
40
+ return_type = ClientResult(self.context, bool())
41
+ qry = ServiceOperationQuery(self, "ContainsLocalizedDisplayName", None, {}, None, return_type)
42
+ self.context.add_query(qry)
43
+ return return_type
44
+
45
+ def get_default_display_name(self) -> ClientResult[str]:
46
+ """GetDefaultDisplayName operation."""
47
+ return_type = ClientResult(self.context, str())
48
+ qry = ServiceOperationQuery(self, "GetDefaultDisplayName", None, {}, None, return_type)
49
+ self.context.add_query(qry)
50
+ return return_type
51
+
52
+ def get_localized_display_name(self) -> ClientResult[str]:
53
+ """GetLocalizedDisplayName operation."""
54
+ return_type = ClientResult(self.context, str())
55
+ qry = ServiceOperationQuery(self, "GetLocalizedDisplayName", None, {}, None, return_type)
56
+ self.context.add_query(qry)
57
+ return return_type
58
+
59
+ def is_leaf(self) -> ClientResult[bool]:
60
+ """IsLeaf operation."""
61
+ return_type = ClientResult(self.context, bool())
62
+ qry = ServiceOperationQuery(self, "IsLeaf", None, {}, None, return_type)
63
+ self.context.add_query(qry)
64
+ return return_type
65
+
66
+ def is_root(self) -> ClientResult[bool]:
67
+ """IsRoot operation."""
68
+ return_type = ClientResult(self.context, bool())
69
+ qry = ServiceOperationQuery(self, "IsRoot", None, {}, None, return_type)
70
+ self.context.add_query(qry)
71
+ return return_type