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,3 +1,8 @@
1
+ from typing import Optional
2
+
3
+ from typing_extensions import Self
4
+
5
+ from office365.runtime.queries.service_operation import ServiceOperationQuery
1
6
  from office365.sharepoint.entity import Entity
2
7
 
3
8
 
@@ -7,3 +12,18 @@ class MigrationProperties(Entity):
7
12
  @property
8
13
  def entity_type_name(self):
9
14
  return "Microsoft.Online.SharePoint.MigrationCenter.Service.MigrationProperties"
15
+
16
+ @property
17
+ def count(self) -> Optional[int]:
18
+ """Gets the Count property"""
19
+ return self.properties.get("Count", None)
20
+
21
+ def delete(self, key: str) -> Self:
22
+ """Delete operation.
23
+
24
+ Args:
25
+ key (str): key parameter
26
+ """
27
+ qry = ServiceOperationQuery(self, "Delete", None, {"key": key}, None, None)
28
+ self.context.add_query(qry)
29
+ return self
@@ -1,7 +1,11 @@
1
1
  from typing import Optional
2
2
 
3
+ from typing_extensions import Self
4
+
3
5
  from office365.runtime.paths.resource_path import ResourcePath
6
+ from office365.runtime.queries.service_operation import ServiceOperationQuery
4
7
  from office365.sharepoint.entity import Entity
8
+ from office365.sharepoint.migrationcenter.storagesettings import MigrationStorageSettings
5
9
  from office365.sharepoint.migrationcenter.taskschedulerinformation import TaskSchedulerInformation
6
10
  from office365.sharepoint.migrationcenter.tasksettings import MigrationTaskSettings
7
11
 
@@ -77,3 +81,33 @@ class MigrationCenterStorage(Entity):
77
81
  @property
78
82
  def entity_type_name(self):
79
83
  return "Microsoft.Online.SharePoint.MigrationCenter.Service.MigrationCenterStorage"
84
+
85
+ def create(self, config: MigrationStorageSettings) -> Self:
86
+ """Create operation.
87
+
88
+ Args:
89
+ config (MigrationStorageSettings): config parameter
90
+ """
91
+ qry = ServiceOperationQuery(self, "Create", None, {"config": config}, None, None)
92
+ self.context.add_query(qry)
93
+ return self
94
+
95
+ def file(self, folder_name: str, file_name: str, file: bytes, overwrite: bool) -> Self:
96
+ """File operation.
97
+
98
+ Args:
99
+ folder_name (str): folderName parameter
100
+ file_name (str): fileName parameter
101
+ file (bytes): file parameter
102
+ overwrite (bool): overwrite parameter
103
+ """
104
+ qry = ServiceOperationQuery(
105
+ self,
106
+ "File",
107
+ None,
108
+ {"folderName": folder_name, "fileName": file_name, "file": file, "overwrite": overwrite},
109
+ None,
110
+ None,
111
+ )
112
+ self.context.add_query(qry)
113
+ 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,14 @@ class MigrationSPFlight(Entity):
5
7
  @property
6
8
  def entity_type_name(self) -> str:
7
9
  return "Microsoft.Online.SharePoint.MigrationCenter.Service.MigrationSPFlight"
10
+
11
+ def is_flight_enabled(self, flight_name: str) -> ClientResult[bool]:
12
+ """IsFlightEnabled operation.
13
+
14
+ Args:
15
+ flight_name (str): flightName parameter
16
+ """
17
+ return_type = ClientResult(self.context, bool())
18
+ qry = FunctionQuery(self, "IsFlightEnabled", [flight_name], return_type)
19
+ self.context.add_query(qry)
20
+ return return_type
@@ -1,7 +1,10 @@
1
1
  from typing import Optional
2
2
  from uuid import UUID
3
3
 
4
+ from typing_extensions import Self
5
+
4
6
  from office365.runtime.client_value_collection import ClientValueCollection
7
+ from office365.runtime.queries.service_operation import ServiceOperationQuery
5
8
  from office365.sharepoint.entity import Entity
6
9
  from office365.sharepoint.migrationcenter.listinformation import SPListInformation
7
10
 
@@ -105,3 +108,77 @@ class UrlParseResult(Entity):
105
108
  @property
106
109
  def entity_type_name(self):
107
110
  return "Microsoft.Online.SharePoint.MigrationCenter.Common.UrlParseResult"
111
+
112
+ def set_display_url(self, display_url: str) -> Self:
113
+ """SetDisplayUrl operation.
114
+
115
+ Args:
116
+ display_url (str): displayUrl parameter
117
+ """
118
+ qry = ServiceOperationQuery(self, "SetDisplayUrl", None, {"displayUrl": display_url}, None, None)
119
+ self.context.add_query(qry)
120
+ return self
121
+
122
+ def set_sp_list_information(self, sp_list_information_list: ClientValueCollection[SPListInformation]) -> Self:
123
+ """SetSPListInformation operation.
124
+
125
+ Args:
126
+ sp_list_information_list (ClientValueCollection[SPListInformation]): spListInformationList parameter
127
+ """
128
+ qry = ServiceOperationQuery(
129
+ self, "SetSPListInformation", None, {"spListInformationList": sp_list_information_list}, None, None
130
+ )
131
+ self.context.add_query(qry)
132
+ return self
133
+
134
+ def set_sp_list_information_single(self, sp_list_information: SPListInformation) -> Self:
135
+ """SetSPListInformationSingle operation.
136
+
137
+ Args:
138
+ sp_list_information (SPListInformation): spListInformation parameter
139
+ """
140
+ qry = ServiceOperationQuery(
141
+ self, "SetSPListInformationSingle", None, {"spListInformation": sp_list_information}, None, None
142
+ )
143
+ self.context.add_query(qry)
144
+ return self
145
+
146
+ def update_site_provision_information(
147
+ self,
148
+ sp_list_information: SPListInformation,
149
+ uri: str,
150
+ original_url: str,
151
+ error_code: str,
152
+ message: str,
153
+ free_site_storage_bytes: int,
154
+ is_current_user_site_admin: bool,
155
+ ) -> Self:
156
+ """UpdateSiteProvisionInformation operation.
157
+
158
+ Args:
159
+ sp_list_information (SPListInformation): spListInformation parameter
160
+ uri (str): uri parameter
161
+ original_url (str): originalUrl parameter
162
+ error_code (str): errorCode parameter
163
+ message (str): message parameter
164
+ free_site_storage_bytes (int): freeSiteStorageBytes parameter
165
+ is_current_user_site_admin (bool): isCurrentUserSiteAdmin parameter
166
+ """
167
+ qry = ServiceOperationQuery(
168
+ self,
169
+ "UpdateSiteProvisionInformation",
170
+ None,
171
+ {
172
+ "spListInformation": sp_list_information,
173
+ "uri": uri,
174
+ "originalUrl": original_url,
175
+ "errorCode": error_code,
176
+ "message": message,
177
+ "freeSiteStorageBytes": free_site_storage_bytes,
178
+ "isCurrentUserSiteAdmin": is_current_user_site_admin,
179
+ },
180
+ None,
181
+ None,
182
+ )
183
+ self.context.add_query(qry)
184
+ 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,14 @@ class SPMultiGeoProxy(Entity):
5
7
  @property
6
8
  def entity_type_name(self) -> str:
7
9
  return "Microsoft.SharePoint.MultiGeo.SPMultiGeoProxy"
10
+
11
+ def remote_thumbnail(self, url: str) -> ClientResult[bytes]:
12
+ """RemoteThumbnail operation.
13
+
14
+ Args:
15
+ url (str): url parameter
16
+ """
17
+ return_type = ClientResult(self.context, bytes())
18
+ qry = FunctionQuery(self, "RemoteThumbnail", [url], return_type, return_raw_content=True)
19
+ self.context.add_query(qry)
20
+ return return_type
@@ -1,8 +1,14 @@
1
1
  from __future__ import annotations
2
2
 
3
+ from typing_extensions import Self
4
+
5
+ from office365.runtime.client_result import ClientResult
3
6
  from office365.runtime.paths.resource_path import ResourcePath
7
+ from office365.runtime.queries.function import FunctionQuery
8
+ from office365.runtime.queries.service_operation import ServiceOperationQuery
4
9
  from office365.sharepoint.entity import Entity
5
10
  from office365.sharepoint.navigation.home_site_navigation_settings import HomeSiteNavigationSettings
11
+ from office365.sharepoint.navigation.menu.state import MenuState
6
12
 
7
13
 
8
14
  class NavigationServiceRest(Entity):
@@ -17,3 +23,124 @@ class NavigationServiceRest(Entity):
17
23
  @property
18
24
  def entity_type_name(self) -> str:
19
25
  return "Microsoft.SharePoint.Navigation.REST.NavigationServiceRest"
26
+
27
+ def current_resources_nav(self, source: int, include_viva_resources: bool) -> ClientResult[MenuState]:
28
+ """CurrentResourcesNav operation.
29
+
30
+ Args:
31
+ source (int): source parameter
32
+ include_viva_resources (bool): includeVivaResources parameter
33
+ """
34
+ return_type = ClientResult(self.context, MenuState())
35
+ qry = FunctionQuery(self, "CurrentResourcesNav", [source, include_viva_resources], return_type)
36
+ self.context.add_query(qry)
37
+ return return_type
38
+
39
+ def get_publishing_navigation_provider_type(self, map_provider_name: str) -> ClientResult[int]:
40
+ """GetPublishingNavigationProviderType operation.
41
+
42
+ Args:
43
+ map_provider_name (str): mapProviderName parameter
44
+ """
45
+ return_type = ClientResult(self.context, int())
46
+ qry = FunctionQuery(self, "GetPublishingNavigationProviderType", [map_provider_name], return_type)
47
+ self.context.add_query(qry)
48
+ return return_type
49
+
50
+ def global_nav(self, source: str, include_viva_resources: bool) -> ClientResult[MenuState]:
51
+ """GlobalNav operation.
52
+
53
+ Args:
54
+ source (str): source parameter
55
+ include_viva_resources (bool): includeVivaResources parameter
56
+ """
57
+ return_type = ClientResult(self.context, MenuState())
58
+ qry = FunctionQuery(self, "GlobalNav", [source, include_viva_resources], return_type)
59
+ self.context.add_query(qry)
60
+ return return_type
61
+
62
+ def global_nav_enabled(self) -> ClientResult[bool]:
63
+ """GlobalNavEnabled operation."""
64
+ return_type = ClientResult(self.context, bool())
65
+ qry = FunctionQuery(self, "GlobalNavEnabled", [], return_type)
66
+ self.context.add_query(qry)
67
+ return return_type
68
+
69
+ def home_site_navigation(self, source: int) -> ClientResult[MenuState]:
70
+ """HomeSiteNavigation operation.
71
+
72
+ Args:
73
+ source (int): source parameter
74
+ """
75
+ return_type = ClientResult(self.context, MenuState())
76
+ qry = FunctionQuery(self, "HomeSiteNavigation", [source], return_type)
77
+ self.context.add_query(qry)
78
+ return return_type
79
+
80
+ def menu_node_key(self, current_url: str, map_provider_name: str) -> ClientResult[str]:
81
+ """MenuNodeKey operation.
82
+
83
+ Args:
84
+ current_url (str): currentUrl parameter
85
+ map_provider_name (str): mapProviderName parameter
86
+ """
87
+ return_type = ClientResult(self.context, str())
88
+ qry = FunctionQuery(self, "MenuNodeKey", [current_url, map_provider_name], return_type)
89
+ self.context.add_query(qry)
90
+ return return_type
91
+
92
+ def menu_state(
93
+ self, menu_node_key: str, map_provider_name: str, depth: int, custom_properties: str
94
+ ) -> ClientResult[MenuState]:
95
+ """MenuState operation.
96
+
97
+ Args:
98
+ menu_node_key (str): menuNodeKey parameter
99
+ map_provider_name (str): mapProviderName parameter
100
+ depth (int): depth parameter
101
+ custom_properties (str): customProperties parameter
102
+ """
103
+ return_type = ClientResult(self.context, MenuState())
104
+ qry = FunctionQuery(self, "MenuState", [menu_node_key, map_provider_name, depth, custom_properties], return_type)
105
+ self.context.add_query(qry)
106
+ return return_type
107
+
108
+ def save_menu_state(self, menu_state: MenuState, map_provider_name: str) -> ClientResult[int]:
109
+ """SaveMenuState operation.
110
+
111
+ Args:
112
+ menu_state (MenuState): menuState parameter
113
+ map_provider_name (str): mapProviderName parameter
114
+ """
115
+ return_type = ClientResult(self.context, int())
116
+ qry = ServiceOperationQuery(
117
+ self,
118
+ "SaveMenuState",
119
+ None,
120
+ {"menuState": menu_state, "mapProviderName": map_provider_name},
121
+ None,
122
+ return_type,
123
+ )
124
+ self.context.add_query(qry)
125
+ return return_type
126
+
127
+ def set_global_nav_enabled(self, is_enabled: bool) -> Self:
128
+ """SetGlobalNavEnabled operation.
129
+
130
+ Args:
131
+ is_enabled (bool): isEnabled parameter
132
+ """
133
+ qry = ServiceOperationQuery(self, "SetGlobalNavEnabled", None, {"isEnabled": is_enabled}, None, None)
134
+ self.context.add_query(qry)
135
+ return self
136
+
137
+ def tree_view(self, depth: int) -> ClientResult[MenuState]:
138
+ """TreeView operation.
139
+
140
+ Args:
141
+ depth (int): depth parameter
142
+ """
143
+ return_type = ClientResult(self.context, MenuState())
144
+ qry = FunctionQuery(self, "TreeView", [depth], return_type)
145
+ self.context.add_query(qry)
146
+ return return_type
@@ -1,3 +1,5 @@
1
+ from office365.runtime.client_result import ClientResult
2
+ from office365.runtime.queries.service_operation import ServiceOperationQuery
1
3
  from office365.sharepoint.entity import Entity
2
4
 
3
5
 
@@ -9,3 +11,14 @@ class Authentication(Entity):
9
11
  @property
10
12
  def entity_type_name(self) -> str:
11
13
  return "SP.OAuth.Authentication"
14
+
15
+ def get_renewal_url(self, redirect_url: str) -> ClientResult[str]:
16
+ """GetRenewalUrl operation.
17
+
18
+ Args:
19
+ redirect_url (str): redirectUrl parameter
20
+ """
21
+ return_type = ClientResult(self.context, str())
22
+ qry = ServiceOperationQuery(self, "GetRenewalUrl", None, {"redirectUrl": redirect_url}, None, return_type)
23
+ self.context.add_query(qry)
24
+ return return_type
@@ -1,8 +1,12 @@
1
1
  from typing_extensions import Self
2
2
 
3
3
  from office365.runtime.client_result import ClientResult
4
+ from office365.runtime.client_value_collection import ClientValueCollection
5
+ from office365.runtime.queries.function import FunctionQuery
4
6
  from office365.runtime.queries.service_operation import ServiceOperationQuery
5
7
  from office365.sharepoint.entity import Entity
8
+ from office365.sharepoint.utilities.jsontheme import JsonTheme
9
+ from office365.sharepoint.utilities.themingoptions import ThemingOptions
6
10
 
7
11
 
8
12
  class ThemeManager(Entity):
@@ -20,11 +24,8 @@ class ThemeManager(Entity):
20
24
  name (str):
21
25
  theme_json (str):
22
26
  """
23
- return_type = ClientResult(self.context)
24
- payload = {
25
- "name": name,
26
- "themeJson": theme_json,
27
- }
27
+ return_type = ClientResult(self.context, bool())
28
+ payload = {"name": name, "themeJson": theme_json}
28
29
  qry = ServiceOperationQuery(self, "AddTenantTheme", None, payload, None, return_type)
29
30
  self.context.add_query(qry)
30
31
  return return_type
@@ -33,9 +34,120 @@ class ThemeManager(Entity):
33
34
  """
34
35
  Removes a theme.
35
36
  """
36
- payload = {
37
- "name": name,
38
- }
37
+ payload = {"name": name}
39
38
  qry = ServiceOperationQuery(self, "DeleteTenantTheme", None, payload)
40
39
  self.context.add_query(qry)
41
40
  return self
41
+
42
+ def add_tenant_theme_advanced(self, name: str, theme_json: str, should_parse_color_pair: bool) -> ClientResult[bool]:
43
+ """AddTenantThemeAdvanced operation.
44
+
45
+ Args:
46
+ name (str): name parameter
47
+ theme_json (str): themeJson parameter
48
+ should_parse_color_pair (bool): shouldParseColorPair parameter
49
+ """
50
+ return_type = ClientResult(self.context, bool())
51
+ qry = ServiceOperationQuery(
52
+ self,
53
+ "AddTenantThemeAdvanced",
54
+ None,
55
+ {"name": name, "themeJson": theme_json, "shouldParseColorPair": should_parse_color_pair},
56
+ None,
57
+ return_type,
58
+ )
59
+ self.context.add_query(qry)
60
+ return return_type
61
+
62
+ def apply_theme(self, name: str, theme_json: str) -> ClientResult[str]:
63
+ """ApplyTheme operation.
64
+
65
+ Args:
66
+ name (str): name parameter
67
+ theme_json (str): themeJson parameter
68
+ """
69
+ return_type = ClientResult(self.context, str())
70
+ qry = ServiceOperationQuery(self, "ApplyTheme", None, {"name": name, "themeJson": theme_json}, None, return_type)
71
+ self.context.add_query(qry)
72
+ return return_type
73
+
74
+ def get_available_themes(self) -> ClientResult[ClientValueCollection[JsonTheme]]:
75
+ """GetAvailableThemes operation."""
76
+ return_type = ClientResult(self.context, ClientValueCollection[JsonTheme]())
77
+ qry = FunctionQuery(self, "GetAvailableThemes", [], return_type)
78
+ self.context.add_query(qry)
79
+ return return_type
80
+
81
+ def get_hide_default_themes(self) -> ClientResult[bool]:
82
+ """GetHideDefaultThemes operation."""
83
+ return_type = ClientResult(self.context, bool())
84
+ qry = ServiceOperationQuery(self, "GetHideDefaultThemes", None, {}, None, return_type)
85
+ self.context.add_query(qry)
86
+ return return_type
87
+
88
+ def get_tenant_theme(self, name: str) -> ClientResult[JsonTheme]:
89
+ """GetTenantTheme operation.
90
+
91
+ Args:
92
+ name (str): name parameter
93
+ """
94
+ return_type = ClientResult(self.context, JsonTheme())
95
+ qry = FunctionQuery(self, "GetTenantTheme", [name], return_type)
96
+ self.context.add_query(qry)
97
+ return return_type
98
+
99
+ def get_tenant_theming_options(self) -> ClientResult[ThemingOptions]:
100
+ """GetTenantThemingOptions operation."""
101
+ return_type = ClientResult(self.context, ThemingOptions())
102
+ qry = FunctionQuery(self, "GetTenantThemingOptions", [], return_type)
103
+ self.context.add_query(qry)
104
+ return return_type
105
+
106
+ def set_hide_default_themes(self, hide_default_themes: bool) -> ClientResult[bool]:
107
+ """SetHideDefaultThemes operation.
108
+
109
+ Args:
110
+ hide_default_themes (bool): hideDefaultThemes parameter
111
+ """
112
+ return_type = ClientResult(self.context, bool())
113
+ qry = ServiceOperationQuery(
114
+ self, "SetHideDefaultThemes", None, {"hideDefaultThemes": hide_default_themes}, None, return_type
115
+ )
116
+ self.context.add_query(qry)
117
+ return return_type
118
+
119
+ def update_tenant_theme(self, name: str, theme_json: str) -> ClientResult[bool]:
120
+ """UpdateTenantTheme operation.
121
+
122
+ Args:
123
+ name (str): name parameter
124
+ theme_json (str): themeJson parameter
125
+ """
126
+ return_type = ClientResult(self.context, bool())
127
+ qry = ServiceOperationQuery(
128
+ self, "UpdateTenantTheme", None, {"name": name, "themeJson": theme_json}, None, return_type
129
+ )
130
+ self.context.add_query(qry)
131
+ return return_type
132
+
133
+ def update_tenant_theme_advanced(
134
+ self, name: str, theme_json: str, should_parse_color_pair: bool
135
+ ) -> ClientResult[bool]:
136
+ """UpdateTenantThemeAdvanced operation.
137
+
138
+ Args:
139
+ name (str): name parameter
140
+ theme_json (str): themeJson parameter
141
+ should_parse_color_pair (bool): shouldParseColorPair parameter
142
+ """
143
+ return_type = ClientResult(self.context, bool())
144
+ qry = ServiceOperationQuery(
145
+ self,
146
+ "UpdateTenantThemeAdvanced",
147
+ None,
148
+ {"name": name, "themeJson": theme_json, "shouldParseColorPair": should_parse_color_pair},
149
+ None,
150
+ return_type,
151
+ )
152
+ self.context.add_query(qry)
153
+ return return_type
@@ -428,3 +428,13 @@ class User(Principal):
428
428
  @property
429
429
  def entity_type_name(self) -> str:
430
430
  return "SP.User"
431
+
432
+ @property
433
+ def hex_cid(self) -> Optional[str]:
434
+ """Gets the HexCid property"""
435
+ return self.properties.get("HexCid", None)
436
+
437
+ @property
438
+ def user_identity_type(self) -> Optional[int]:
439
+ """Gets the UserIdentityType property"""
440
+ return self.properties.get("UserIdentityType", None)
@@ -1,7 +1,14 @@
1
1
  from datetime import datetime
2
2
  from typing import Optional
3
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
4
10
  from office365.sharepoint.entity import Entity
11
+ from office365.sharepoint.publishing.publicationmetadata import PublicationMetadata
5
12
  from office365.sharepoint.publishing.sharepointids import SharePointIds
6
13
 
7
14
 
@@ -22,7 +29,7 @@ class Campaign(Entity):
22
29
  return self.properties.get("description", None)
23
30
 
24
31
  @property
25
- def id_(self) -> Optional[int]:
32
+ def id(self) -> Optional[int]:
26
33
  """Gets the id property"""
27
34
  return self.properties.get("id", None)
28
35
 
@@ -49,3 +56,31 @@ class Campaign(Entity):
49
56
  @property
50
57
  def entity_type_name(self):
51
58
  return "Microsoft.SharePoint.Publishing.Campaigns.Campaign"
59
+
60
+ def associate(self, publication_id: int) -> Self:
61
+ """Associate operation.
62
+
63
+ Args:
64
+ publication_id (int): publicationId parameter
65
+ """
66
+ qry = ServiceOperationQuery(self, "Associate", None, {"publicationId": publication_id}, None, None)
67
+ self.context.add_query(qry)
68
+ return self
69
+
70
+ def delete(self) -> Self:
71
+ """Delete operation."""
72
+ qry = ServiceOperationQuery(self, "Delete", None, {}, None, None)
73
+ self.context.add_query(qry)
74
+ return self
75
+
76
+ def publications(self, offset: int, limit: int) -> ClientResult[ClientValueCollection[PublicationMetadata]]:
77
+ """Publications operation.
78
+
79
+ Args:
80
+ offset (int): offset parameter
81
+ limit (int): limit parameter
82
+ """
83
+ return_type = ClientResult(self.context, ClientValueCollection[PublicationMetadata]())
84
+ qry = FunctionQuery(self, "Publications", [offset, limit], return_type)
85
+ self.context.add_query(qry)
86
+ return return_type
@@ -40,13 +40,6 @@ class FeedVideoPage(Entity):
40
40
  def entity_type_name(self):
41
41
  return "SP.Publishing.FeedVideoPage"
42
42
 
43
- def is_content_type_available(self) -> ClientResult[bool]:
44
- """IsContentTypeAvailable operation."""
45
- return_type = ClientResult(self.context, bool())
46
- qry = FunctionQuery(self, "IsContentTypeAvailable", [], return_type)
47
- self.context.add_query(qry)
48
- return return_type
49
-
50
43
  def amplify(self, request: AmplifyRequestParams) -> ClientResult[ClientAmplifyAnywhereResults]:
51
44
  """Amplify operation.
52
45
 
@@ -32,12 +32,6 @@ class SitePage3D(SitePage):
32
32
  def entity_type_name(self):
33
33
  return "SP.Publishing.SitePage3D"
34
34
 
35
- def activate(self) -> Self:
36
- """Activate operation."""
37
- qry = ServiceOperationQuery(self, "Activate", None, {}, None, None)
38
- self.context.add_query(qry)
39
- return self
40
-
41
35
  def amplify(self, request: AmplifyRequestParams) -> ClientResult[ClientAmplifyAnywhereResults]:
42
36
  """Amplify operation.
43
37