Office365-REST-Python-Client 2.5.5__py3-none-any.whl → 2.5.6__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_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.6.dist-info}/METADATA +2 -2
- {Office365_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.6.dist-info}/RECORD +202 -182
- office365/booking/virtualevents/__init__.py +0 -0
- office365/booking/virtualevents/root.py +5 -0
- office365/communications/calls/participant.py +4 -5
- office365/directory/applications/application.py +3 -3
- office365/directory/applications/roles/assignment_collection.py +1 -1
- office365/directory/applications/roles/collection.py +2 -2
- office365/directory/authentication/method_configuration.py +9 -0
- office365/directory/authentication/method_mode_detail.py +8 -0
- office365/directory/authentication/method_target.py +5 -0
- office365/directory/authentication/strength_root.py +5 -0
- office365/directory/certificates/auth_configuration.py +1 -3
- office365/directory/groups/group.py +2 -6
- office365/directory/identities/conditional_access_root.py +10 -1
- office365/directory/identities/container.py +3 -9
- office365/directory/identities/providers/builtin_identity.py +3 -2
- office365/directory/identities/providers/saml_or_wsfed.py +4 -5
- office365/directory/identitygovernance/governance.py +14 -3
- office365/directory/identitygovernance/privilegedaccess/__init__.py +0 -0
- office365/directory/identitygovernance/privilegedaccess/root.py +5 -0
- office365/directory/key_credential.py +3 -0
- office365/directory/licenses/assignment_state.py +26 -2
- office365/directory/licenses/details.py +4 -3
- office365/directory/licenses/subscribed_sku.py +8 -10
- office365/directory/object_collection.py +40 -25
- office365/directory/password_credential.py +3 -0
- office365/directory/permissions/default_user_role.py +5 -0
- office365/directory/permissions/grants/condition_set.py +4 -2
- office365/directory/permissions/grants/oauth2.py +7 -10
- office365/directory/policies/authorization.py +50 -3
- office365/directory/policies/permission_grant.py +2 -0
- office365/directory/profile_photo.py +6 -6
- office365/directory/protection/riskyusers/risky_user.py +4 -4
- office365/directory/rolemanagement/resource_action.py +10 -0
- office365/directory/rolemanagement/role_permission.py +10 -0
- office365/directory/security/alerts/alert.py +5 -7
- office365/directory/security/attacksimulations/landing_page.py +5 -0
- office365/directory/security/attacksimulations/operation.py +5 -0
- office365/directory/security/attacksimulations/report.py +8 -1
- office365/directory/security/attacksimulations/root.py +33 -0
- office365/directory/security/attacksimulations/users/__init__.py +0 -0
- office365/directory/security/attacksimulations/users/details.py +5 -0
- office365/directory/security/hunting_query_results.py +5 -0
- office365/directory/security/incidents/incident.py +8 -13
- office365/directory/security/security.py +20 -3
- office365/directory/serviceprincipals/service_principal.py +3 -4
- office365/directory/synchronization/synchronization.py +2 -0
- office365/directory/users/activities/history_item.py +3 -2
- office365/directory/users/user.py +37 -10
- office365/entity_collection.py +3 -2
- office365/graph_client.py +58 -30
- office365/intune/audit/event.py +1 -3
- office365/intune/audit/event_collection.py +1 -1
- office365/intune/devices/alternative_security_id.py +4 -0
- office365/intune/devices/collection.py +57 -0
- office365/intune/devices/device.py +38 -10
- office365/intune/devices/management/management.py +12 -0
- office365/intune/organizations/organization.py +1 -0
- office365/onedrive/analytics/item_activity_stat.py +9 -0
- office365/onedrive/analytics/item_analytics.py +1 -0
- office365/onedrive/contenttypes/content_type.py +4 -12
- office365/onedrive/driveitems/driveItem.py +2 -1
- office365/onedrive/files/hashes.py +5 -0
- office365/onedrive/lists/collection.py +2 -2
- office365/onedrive/operations/long_running.py +6 -6
- office365/onedrive/operations/rich_long_running.py +4 -3
- office365/onedrive/permissions/collection.py +1 -14
- office365/onedrive/sharepoint_settings.py +6 -6
- office365/onedrive/sites/sites_with_root.py +1 -3
- office365/onedrive/termstore/store.py +2 -4
- office365/onedrive/termstore/terms/collection.py +1 -2
- office365/onedrive/workbooks/filter.py +9 -0
- office365/onedrive/workbooks/filter_criteria.py +5 -0
- office365/onedrive/workbooks/functions/functions.py +6 -3
- office365/onedrive/workbooks/functions/result.py +2 -0
- office365/onedrive/workbooks/operations/workbook.py +7 -10
- office365/onedrive/workbooks/tables/pivot_table.py +9 -9
- office365/onedrive/workbooks/worksheets/collection.py +0 -6
- office365/onedrive/workbooks/worksheets/protection.py +2 -0
- office365/outlook/calendar/permissions/permission.py +7 -7
- office365/outlook/calendar/place.py +5 -3
- office365/outlook/mail/attachments/collection.py +6 -1
- office365/outlook/mail/messages/message.py +1 -1
- office365/reports/root.py +50 -4
- office365/runtime/auth/providers/acs_token_provider.py +10 -7
- office365/runtime/auth/sts_profile.py +0 -1
- office365/runtime/client_object.py +18 -14
- office365/runtime/client_object_collection.py +8 -23
- office365/runtime/client_request_exception.py +1 -3
- office365/runtime/client_result.py +11 -14
- office365/runtime/client_runtime_context.py +11 -21
- office365/runtime/odata/json_format.py +4 -7
- office365/runtime/odata/v3/batch_request.py +7 -15
- office365/runtime/odata/v4/batch_request.py +13 -21
- office365/runtime/types/event_handler.py +1 -1
- office365/search/entity.py +3 -2
- office365/sharepoint/activities/facets/delete.py +1 -1
- office365/sharepoint/activities/tracked_item_service.py +2 -3
- office365/sharepoint/administration/web_application.py +8 -7
- office365/sharepoint/audit/audit.py +3 -2
- office365/sharepoint/changes/alert.py +4 -3
- office365/sharepoint/changes/collection.py +7 -10
- office365/sharepoint/changes/content_type.py +4 -4
- office365/sharepoint/changes/field.py +4 -5
- office365/sharepoint/changes/item.py +34 -7
- office365/sharepoint/changes/list.py +4 -4
- office365/sharepoint/changes/user.py +5 -6
- office365/sharepoint/clientsidecomponent/component_context_info.py +4 -3
- office365/sharepoint/contentcenter/machinelearning/enabled.py +4 -3
- office365/sharepoint/contentcenter/machinelearning/hub.py +6 -6
- office365/sharepoint/contentcenter/machinelearning/models/collection.py +1 -1
- office365/sharepoint/contenttypes/fieldlinks/collection.py +4 -6
- office365/sharepoint/contenttypes/fieldlinks/field_link.py +14 -22
- office365/sharepoint/entity.py +12 -5
- office365/sharepoint/entity_collection.py +1 -3
- office365/sharepoint/eventreceivers/definition.py +8 -12
- office365/sharepoint/features/collection.py +1 -2
- office365/sharepoint/features/definitions/definition.py +6 -3
- office365/sharepoint/fields/calculated.py +8 -14
- office365/sharepoint/fields/collection.py +42 -10
- office365/sharepoint/fields/computed.py +4 -5
- office365/sharepoint/fields/currency.py +7 -11
- office365/sharepoint/fields/date_time.py +4 -8
- office365/sharepoint/fields/field.py +6 -16
- office365/sharepoint/fields/lookup.py +11 -9
- office365/sharepoint/fields/multi_choice.py +8 -12
- office365/sharepoint/fields/multi_line_text.py +10 -14
- office365/sharepoint/fields/number.py +13 -26
- office365/sharepoint/fields/rating_scale.py +6 -10
- office365/sharepoint/fields/related_field.py +10 -17
- office365/sharepoint/fields/url.py +4 -5
- office365/sharepoint/fields/user.py +10 -9
- office365/sharepoint/files/collection.py +17 -15
- office365/sharepoint/files/file.py +30 -23
- office365/sharepoint/folders/collection.py +22 -5
- office365/sharepoint/folders/coloring.py +11 -9
- office365/sharepoint/folders/coloring_information.py +38 -0
- office365/sharepoint/folders/folder.py +22 -22
- office365/sharepoint/likes/liked_by_information.py +7 -10
- office365/sharepoint/likes/user_entity.py +6 -8
- office365/sharepoint/listitems/form_update_value.py +17 -1
- office365/sharepoint/listitems/listitem.py +2 -2
- office365/sharepoint/lists/bloom_filter.py +5 -7
- office365/sharepoint/lists/creatables_info.py +5 -6
- office365/sharepoint/lists/list.py +24 -9
- office365/sharepoint/lists/template.py +7 -4
- office365/sharepoint/lists/template_collection.py +2 -4
- office365/sharepoint/marketplace/app_metadata.py +14 -23
- office365/sharepoint/marketplace/sitecollection/appcatalog/allowed_item.py +6 -8
- office365/sharepoint/navigation/node.py +5 -8
- office365/sharepoint/permissions/irm/effective_settings.py +6 -8
- office365/sharepoint/permissions/irm/file_settings.py +8 -6
- office365/sharepoint/permissions/irm/settings.py +25 -43
- office365/sharepoint/portal/groups/site_manager.py +6 -7
- office365/sharepoint/publishing/embed_data_v1.py +8 -15
- office365/sharepoint/publishing/pages/campaign_publication.py +4 -3
- office365/sharepoint/publishing/primary_city_time.py +8 -9
- office365/sharepoint/publishing/video/service_discoverer.py +4 -3
- office365/sharepoint/pushnotifications/subscriber.py +11 -15
- office365/sharepoint/sharing/object_sharing_settings.py +24 -46
- office365/sharepoint/sharing/permission_information.py +5 -5
- office365/sharepoint/sharing/result.py +1 -0
- office365/sharepoint/sitedesigns/run.py +4 -3
- office365/sharepoint/sites/site.py +7 -16
- office365/sharepoint/taxonomy/field.py +32 -21
- office365/sharepoint/taxonomy/groups/group.py +12 -1
- office365/sharepoint/taxonomy/sets/set.py +6 -0
- office365/sharepoint/taxonomy/stores/store.py +4 -2
- office365/sharepoint/teams/channel.py +6 -6
- office365/sharepoint/tenant/administration/endpoints.py +4 -3
- office365/sharepoint/tenant/administration/hubsites/properties.py +4 -5
- office365/sharepoint/tenant/administration/sites/properties.py +0 -1
- office365/sharepoint/tenant/administration/spo_operation.py +4 -4
- office365/sharepoint/tenant/administration/tenant.py +1 -0
- office365/sharepoint/tenant/insights/report.py +11 -0
- office365/sharepoint/tenant/insights/report_manager.py +5 -0
- office365/sharepoint/tenant/insights/report_metadata.py +5 -0
- office365/sharepoint/tenant/settings.py +4 -3
- office365/sharepoint/translation/sync_translator.py +3 -2
- office365/sharepoint/ui/applicationpages/peoplepicker/entity_information.py +4 -4
- office365/sharepoint/usercustomactions/action.py +12 -20
- office365/sharepoint/userprofiles/followed_content.py +6 -10
- office365/sharepoint/userprofiles/people_manager.py +0 -1
- office365/sharepoint/userprofiles/person_properties.py +14 -30
- office365/sharepoint/userprofiles/personal_cache.py +4 -3
- office365/sharepoint/userprofiles/properties_for_user.py +4 -5
- office365/sharepoint/userprofiles/sharedwithme/document.py +12 -21
- office365/sharepoint/utilities/move_copy_util.py +19 -19
- office365/sharepoint/utilities/upload_status.py +7 -10
- office365/sharepoint/views/field_collection.py +9 -14
- office365/sharepoint/views/view.py +43 -64
- office365/sharepoint/webhooks/subscription.py +11 -19
- office365/sharepoint/webparts/webpart.py +3 -1
- office365/sharepoint/webs/modernize_homepage_result.py +4 -3
- office365/sharepoint/webs/regional_settings.py +9 -17
- office365/sharepoint/webs/template.py +3 -5
- office365/sharepoint/webs/web.py +14 -20
- office365/teams/operations/async_operation.py +5 -7
- office365/runtime/paths/item.py +0 -8
- {Office365_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.6.dist-info}/LICENSE +0 -0
- {Office365_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.6.dist-info}/WHEEL +0 -0
- {Office365_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.6.dist-info}/top_level.txt +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.client_result import ClientResult
|
|
2
4
|
from office365.runtime.paths.resource_path import ResourcePath
|
|
3
5
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
@@ -9,6 +11,9 @@ from office365.sharepoint.types.resource_path import ResourcePath as SPResPath
|
|
|
9
11
|
from office365.sharepoint.views.field_collection import ViewFieldCollection
|
|
10
12
|
from office365.sharepoint.views.visualization import Visualization
|
|
11
13
|
|
|
14
|
+
if TYPE_CHECKING:
|
|
15
|
+
from office365.sharepoint.views.collection import ViewCollection
|
|
16
|
+
|
|
12
17
|
|
|
13
18
|
class View(Entity):
|
|
14
19
|
"""Specifies a List View."""
|
|
@@ -37,9 +42,7 @@ class View(Entity):
|
|
|
37
42
|
return return_type
|
|
38
43
|
|
|
39
44
|
def render_as_html(self):
|
|
40
|
-
"""
|
|
41
|
-
Returns the list view as HTML.
|
|
42
|
-
"""
|
|
45
|
+
"""Returns the list view as HTML."""
|
|
43
46
|
return_type = ClientResult(self.context)
|
|
44
47
|
qry = ServiceOperationQuery(self, "RenderAsHtml", None, None, None, return_type)
|
|
45
48
|
self.context.add_query(qry)
|
|
@@ -56,43 +59,35 @@ class View(Entity):
|
|
|
56
59
|
|
|
57
60
|
@property
|
|
58
61
|
def aggregations(self):
|
|
59
|
-
|
|
60
|
-
Specifies fields
|
|
61
|
-
:rtype: str or None
|
|
62
|
-
"""
|
|
62
|
+
# type: () -> Optional[str]
|
|
63
|
+
"""Specifies fields and functions that define totals shown in a list view."""
|
|
63
64
|
return self.properties.get("Aggregations", None)
|
|
64
65
|
|
|
65
66
|
@property
|
|
66
67
|
def aggregations_status(self):
|
|
68
|
+
# type: () -> Optional[str]
|
|
67
69
|
"""
|
|
68
70
|
Specifies whether totals are shown in the list view.
|
|
69
71
|
It MUST be NULL If Aggregations is NULL; otherwise it MUST be "On" or "Off".
|
|
70
|
-
:rtype: str or None
|
|
71
72
|
"""
|
|
72
73
|
return self.properties.get("AggregationsStatus", None)
|
|
73
74
|
|
|
74
75
|
@property
|
|
75
76
|
def associated_content_type_id(self):
|
|
76
|
-
|
|
77
|
-
Represents the content type identifier associated with the view.
|
|
78
|
-
:rtype: str or None
|
|
79
|
-
"""
|
|
77
|
+
# type: () -> Optional[str]
|
|
78
|
+
"""Represents the content type identifier associated with the view."""
|
|
80
79
|
return self.properties.get("AssociatedContentTypeId", None)
|
|
81
80
|
|
|
82
81
|
@property
|
|
83
82
|
def calendar_view_styles(self):
|
|
84
|
-
|
|
85
|
-
Represents an object specifying the style of a SharePoint calendar view.
|
|
86
|
-
:rtype: str or None
|
|
87
|
-
"""
|
|
83
|
+
# type: () -> Optional[str]
|
|
84
|
+
"""Represents an object specifying the style of a SharePoint calendar view."""
|
|
88
85
|
return self.properties.get("CalendarViewStyles", None)
|
|
89
86
|
|
|
90
87
|
@property
|
|
91
88
|
def column_width(self):
|
|
92
|
-
|
|
93
|
-
Specifies the width of columns.
|
|
94
|
-
:rtype: str or None
|
|
95
|
-
"""
|
|
89
|
+
# type: () -> Optional[int]
|
|
90
|
+
"""Specifies the width of columns."""
|
|
96
91
|
return self.properties.get("ColumnWidth", None)
|
|
97
92
|
|
|
98
93
|
@property
|
|
@@ -102,24 +97,19 @@ class View(Entity):
|
|
|
102
97
|
|
|
103
98
|
@property
|
|
104
99
|
def parent_collection(self):
|
|
105
|
-
|
|
106
|
-
:rtype: office365.sharepoint.views.collection.ViewCollection
|
|
107
|
-
"""
|
|
100
|
+
# type: () -> ViewCollection
|
|
108
101
|
return self._parent_collection
|
|
109
102
|
|
|
110
103
|
@property
|
|
111
104
|
def js_link(self):
|
|
112
|
-
|
|
113
|
-
Specifies the JavaScript files used for the view.
|
|
114
|
-
:rtype: str or None
|
|
115
|
-
"""
|
|
105
|
+
# type: () -> Optional[str]
|
|
106
|
+
"""Specifies the JavaScript files used for the view."""
|
|
116
107
|
return self.properties.get("JSLink", None)
|
|
117
108
|
|
|
118
109
|
@property
|
|
119
110
|
def content_type_id(self):
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"""
|
|
111
|
+
# type: () -> Optional[ContentTypeId]
|
|
112
|
+
"""Gets the identifier of the content type with which the view is associated."""
|
|
123
113
|
return self.properties.get("ContentTypeId", ContentTypeId())
|
|
124
114
|
|
|
125
115
|
@content_type_id.setter
|
|
@@ -129,64 +119,55 @@ class View(Entity):
|
|
|
129
119
|
|
|
130
120
|
@property
|
|
131
121
|
def custom_formatter(self):
|
|
132
|
-
|
|
133
|
-
Specifies the Custom Formatter used for the view.
|
|
134
|
-
:rtype: str or None
|
|
135
|
-
"""
|
|
122
|
+
# type: () -> Optional[str]
|
|
123
|
+
"""Specifies the Custom Formatter used for the view."""
|
|
136
124
|
return self.properties.get("CustomFormatter", None)
|
|
137
125
|
|
|
138
126
|
@property
|
|
139
127
|
def custom_order(self):
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"""
|
|
128
|
+
# type: () -> Optional[str]
|
|
129
|
+
""""""
|
|
143
130
|
return self.properties.get("CustomOrder", None)
|
|
144
131
|
|
|
145
132
|
@property
|
|
146
133
|
def editor_modified(self):
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
"""
|
|
134
|
+
# type: () -> Optional[bool]
|
|
135
|
+
"""Specifies whether the list view was modified in an editor."""
|
|
150
136
|
return self.properties.get("EditorModified", None)
|
|
151
137
|
|
|
152
138
|
def formats(self):
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
"""
|
|
139
|
+
# type: () -> Optional[str]
|
|
140
|
+
"""Specifies the column and row formatting for the list view."""
|
|
156
141
|
return self.properties.get("Formats", None)
|
|
157
142
|
|
|
158
143
|
@property
|
|
159
144
|
def hidden(self):
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"""
|
|
145
|
+
# type: () -> Optional[bool]
|
|
146
|
+
"""Gets whether the list view is hidden."""
|
|
163
147
|
return self.properties.get("Hidden", None)
|
|
164
148
|
|
|
165
149
|
@hidden.setter
|
|
166
150
|
def hidden(self, value):
|
|
151
|
+
# type: (bool) -> None
|
|
167
152
|
"""Sets whether the list view is hidden."""
|
|
168
153
|
self.set_property("Hidden", value)
|
|
169
154
|
|
|
170
155
|
@property
|
|
171
156
|
def default_view(self):
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
"""
|
|
157
|
+
# type: () -> Optional[bool]
|
|
158
|
+
"""Gets whether the list view is the default list view."""
|
|
175
159
|
return self.properties.get("DefaultView", None)
|
|
176
160
|
|
|
177
161
|
@default_view.setter
|
|
178
162
|
def default_view(self, value):
|
|
179
|
-
|
|
180
|
-
Sets whether the list view is the default list view.
|
|
181
|
-
"""
|
|
163
|
+
# type: (bool) -> None
|
|
164
|
+
"""Sets whether the list view is the default list view."""
|
|
182
165
|
self.set_property("DefaultView", value)
|
|
183
166
|
|
|
184
167
|
@property
|
|
185
168
|
def default_view_for_content_type(self):
|
|
186
|
-
|
|
187
|
-
Specifies whether the list view is the default list view for the content type specified by ContentTypeId.
|
|
188
|
-
:rtype: bool or None
|
|
189
|
-
"""
|
|
169
|
+
# type: () -> Optional[bool]
|
|
170
|
+
"""Specifies whether the list view is the default list view for the content type specified by ContentTypeId."""
|
|
190
171
|
return self.properties.get("DefaultViewForContentType", None)
|
|
191
172
|
|
|
192
173
|
@property
|
|
@@ -201,18 +182,18 @@ class View(Entity):
|
|
|
201
182
|
|
|
202
183
|
@property
|
|
203
184
|
def view_query(self):
|
|
204
|
-
|
|
205
|
-
Gets or sets a value that specifies the query that is used by the list view.
|
|
206
|
-
:rtype: str or None
|
|
207
|
-
"""
|
|
185
|
+
# type: () -> Optional[str]
|
|
186
|
+
"""Gets or sets a value that specifies the query that is used by the list view."""
|
|
208
187
|
return self.properties.get("ViewQuery", None)
|
|
209
188
|
|
|
210
189
|
@property
|
|
211
190
|
def base_view_id(self):
|
|
191
|
+
# type: () -> Optional[str]
|
|
212
192
|
"""Gets a value that specifies the base view identifier of the list view."""
|
|
213
193
|
return self.properties.get("BaseViewId", None)
|
|
214
194
|
|
|
215
195
|
def read_only_view(self):
|
|
196
|
+
# type: () -> Optional[bool]
|
|
216
197
|
"""Specifies whether the list view is read-only."""
|
|
217
198
|
return self.properties.get("ReadOnlyView", None)
|
|
218
199
|
|
|
@@ -223,10 +204,8 @@ class View(Entity):
|
|
|
223
204
|
|
|
224
205
|
@property
|
|
225
206
|
def view_joins(self):
|
|
226
|
-
|
|
227
|
-
Specifies the joins that are used in the list view
|
|
228
|
-
:rtype: str or None
|
|
229
|
-
"""
|
|
207
|
+
# type: () -> Optional[str]
|
|
208
|
+
"""Specifies the joins that are used in the list view"""
|
|
230
209
|
return self.properties.get("ViewJoins", None)
|
|
231
210
|
|
|
232
211
|
@property
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
|
+
from typing import Optional
|
|
2
3
|
|
|
3
4
|
from office365.runtime.paths.service_operation import ServiceOperationPath
|
|
4
5
|
from office365.sharepoint.entity import Entity
|
|
@@ -9,41 +10,32 @@ class Subscription(Entity):
|
|
|
9
10
|
|
|
10
11
|
@property
|
|
11
12
|
def application_id(self):
|
|
12
|
-
|
|
13
|
-
Identifier of the application used to create the subscription.
|
|
14
|
-
:rtype: str
|
|
15
|
-
"""
|
|
13
|
+
# type: () -> Optional[str]
|
|
14
|
+
"""Identifier of the application used to create the subscription."""
|
|
16
15
|
return self.properties.get("applicationId", None)
|
|
17
16
|
|
|
18
17
|
@property
|
|
19
18
|
def notification_url(self):
|
|
20
|
-
|
|
21
|
-
Gets endpoint that will be called when an event occurs.
|
|
22
|
-
:rtype: str
|
|
23
|
-
"""
|
|
19
|
+
# type: () -> Optional[str]
|
|
20
|
+
"""Gets endpoint that will be called when an event occurs."""
|
|
24
21
|
return self.properties.get("notificationUrl", None)
|
|
25
22
|
|
|
26
23
|
@notification_url.setter
|
|
27
24
|
def notification_url(self, value):
|
|
28
|
-
|
|
29
|
-
Sets endpoint that will be called when an event occurs.
|
|
30
|
-
"""
|
|
25
|
+
# type: (str) -> None
|
|
26
|
+
"""Sets endpoint that will be called when an event occurs."""
|
|
31
27
|
self.set_property("notificationUrl", value)
|
|
32
28
|
|
|
33
29
|
@property
|
|
34
30
|
def expiration_datetime(self):
|
|
35
|
-
|
|
36
|
-
Gets endpoint that will be called when an event occurs.
|
|
37
|
-
|
|
38
|
-
:rtype: str
|
|
39
|
-
"""
|
|
31
|
+
# type: () -> Optional[datetime]
|
|
32
|
+
"""Gets endpoint that will be called when an event occurs."""
|
|
40
33
|
return self.properties.get("expirationDateTime", None)
|
|
41
34
|
|
|
42
35
|
@expiration_datetime.setter
|
|
43
36
|
def expiration_datetime(self, value):
|
|
44
|
-
|
|
45
|
-
Sets endpoint that will be called when an event occurs.
|
|
46
|
-
"""
|
|
37
|
+
# type: (datetime|str) -> None
|
|
38
|
+
"""Sets endpoint that will be called when an event occurs."""
|
|
47
39
|
if isinstance(value, datetime):
|
|
48
40
|
self.set_property("expirationDateTime", value.isoformat())
|
|
49
41
|
else:
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.entity import Entity
|
|
2
4
|
|
|
3
5
|
|
|
@@ -9,11 +11,11 @@ class WebPart(Entity):
|
|
|
9
11
|
|
|
10
12
|
@property
|
|
11
13
|
def zone_index(self):
|
|
14
|
+
# type: () -> Optional[int]
|
|
12
15
|
"""
|
|
13
16
|
An integer that specifies the relative position of a Web Part in a Web Part zone.
|
|
14
17
|
Web Parts are positioned from the smallest to the largest zone index. If two or more Web Parts have the
|
|
15
18
|
same zone index they are positioned adjacent to each other in an undefined order
|
|
16
|
-
:rtype: int or None
|
|
17
19
|
"""
|
|
18
20
|
return self.properties.get("ZoneIndex", None)
|
|
19
21
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.entity import Entity
|
|
2
4
|
|
|
3
5
|
|
|
@@ -6,7 +8,6 @@ class ModernizeHomepageResult(Entity):
|
|
|
6
8
|
|
|
7
9
|
@property
|
|
8
10
|
def can_modernize_homepage(self):
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"""
|
|
11
|
+
# type: () -> Optional[bool]
|
|
12
|
+
""""""
|
|
12
13
|
return self.properties.get("CanModernizeHomepage", None)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.paths.resource_path import ResourcePath
|
|
2
4
|
from office365.sharepoint.entity import Entity
|
|
3
5
|
from office365.sharepoint.sites.language_collection import LanguageCollection
|
|
@@ -9,40 +11,30 @@ class RegionalSettings(Entity):
|
|
|
9
11
|
|
|
10
12
|
@property
|
|
11
13
|
def collation(self):
|
|
14
|
+
# type: () -> Optional[int]
|
|
12
15
|
"""
|
|
13
16
|
Specifies the collation order of the site (2), which indicates an additional sorting order that SHOULD
|
|
14
17
|
be processed by any back-end database server associated with the site (2). The collation method is an
|
|
15
18
|
implementation-specific capability of the front-end Web server and back-end database server.
|
|
16
|
-
|
|
17
|
-
:rtype: int or None
|
|
18
19
|
"""
|
|
19
20
|
return self.properties.get("Collation", None)
|
|
20
21
|
|
|
21
22
|
@property
|
|
22
23
|
def date_format(self):
|
|
23
|
-
|
|
24
|
-
Gets the date format that is used on the server.
|
|
25
|
-
|
|
26
|
-
:rtype: int or None
|
|
27
|
-
"""
|
|
24
|
+
# type: () -> Optional[int]
|
|
25
|
+
"""Gets the date format that is used on the server."""
|
|
28
26
|
return self.properties.get("DateFormat", None)
|
|
29
27
|
|
|
30
28
|
@property
|
|
31
29
|
def locale_id(self):
|
|
32
|
-
|
|
33
|
-
Gets the locale identifier in use on the server.
|
|
34
|
-
|
|
35
|
-
:rtype: int or None
|
|
36
|
-
"""
|
|
30
|
+
# type: () -> Optional[int]
|
|
31
|
+
"""Gets the locale identifier in use on the server."""
|
|
37
32
|
return self.properties.get("LocaleId", None)
|
|
38
33
|
|
|
39
34
|
@property
|
|
40
35
|
def work_days(self):
|
|
41
|
-
|
|
42
|
-
Gets a number that represents the work days of Web site calendars.
|
|
43
|
-
|
|
44
|
-
:rtype: int or None
|
|
45
|
-
"""
|
|
36
|
+
# type: () -> Optional[int]
|
|
37
|
+
"""Gets a number that represents the work days of Web site calendars."""
|
|
46
38
|
return self.properties.get("WorkDays", None)
|
|
47
39
|
|
|
48
40
|
@property
|
|
@@ -54,19 +54,17 @@ class WebTemplate(Entity):
|
|
|
54
54
|
|
|
55
55
|
@property
|
|
56
56
|
def is_sub_web_only(self):
|
|
57
|
+
# type: () -> Optional[bool]
|
|
57
58
|
"""
|
|
58
59
|
Specifies whether the site definition configuration or site template can only be applied to subsites
|
|
59
60
|
created within the site collection.
|
|
60
|
-
:rtype: bool or None
|
|
61
61
|
"""
|
|
62
62
|
return self.properties.get("IsSubWebOnly", None)
|
|
63
63
|
|
|
64
64
|
@property
|
|
65
65
|
def lcid(self):
|
|
66
|
-
|
|
67
|
-
Specifies the LCID for the site definition configuration or site template.
|
|
68
|
-
:rtype: int or None
|
|
69
|
-
"""
|
|
66
|
+
# type: () -> Optional[int]
|
|
67
|
+
"""Specifies the LCID for the site definition configuration or site template."""
|
|
70
68
|
return self.properties.get("Lcid", None)
|
|
71
69
|
|
|
72
70
|
@property
|
office365/sharepoint/webs/web.py
CHANGED
|
@@ -1068,9 +1068,7 @@ class Web(SecurableObject):
|
|
|
1068
1068
|
return return_type
|
|
1069
1069
|
|
|
1070
1070
|
def increment_site_client_tag(self):
|
|
1071
|
-
"""
|
|
1072
|
-
Increments the client cache control number for this site collection.
|
|
1073
|
-
"""
|
|
1071
|
+
"""Increments the client cache control number for this site collection."""
|
|
1074
1072
|
qry = ServiceOperationQuery(self, "IncrementSiteClientTag")
|
|
1075
1073
|
self.context.add_query(qry)
|
|
1076
1074
|
return self
|
|
@@ -1080,7 +1078,6 @@ class Web(SecurableObject):
|
|
|
1080
1078
|
Applies the specified site definition or site template to the website that has no template applied to it.
|
|
1081
1079
|
|
|
1082
1080
|
:param str web_template: The name of the site definition or the file name of the site template to be applied.
|
|
1083
|
-
:return:
|
|
1084
1081
|
"""
|
|
1085
1082
|
qry = ServiceOperationQuery(
|
|
1086
1083
|
self, "ApplyWebTemplate", {"webTemplate": web_template}
|
|
@@ -1089,9 +1086,7 @@ class Web(SecurableObject):
|
|
|
1089
1086
|
return self
|
|
1090
1087
|
|
|
1091
1088
|
def get_custom_list_templates(self):
|
|
1092
|
-
"""
|
|
1093
|
-
Specifies the collection of custom list templates for a given site.
|
|
1094
|
-
"""
|
|
1089
|
+
"""Specifies the collection of custom list templates for a given site."""
|
|
1095
1090
|
return_type = ListTemplateCollection(self.context)
|
|
1096
1091
|
qry = ServiceOperationQuery(
|
|
1097
1092
|
self, "GetCustomListTemplates", None, None, None, return_type
|
|
@@ -1283,12 +1278,19 @@ class Web(SecurableObject):
|
|
|
1283
1278
|
:param str email_subject: The email subject.
|
|
1284
1279
|
:param str email_body: The email subject.
|
|
1285
1280
|
"""
|
|
1281
|
+
|
|
1286
1282
|
return_type = SharingResult(self.context)
|
|
1287
1283
|
|
|
1288
|
-
def _share(picker_result
|
|
1289
|
-
# type: (ClientResult[str]
|
|
1284
|
+
def _share(picker_result):
|
|
1285
|
+
# type: (ClientResult[str]) -> None
|
|
1286
|
+
groups = {
|
|
1287
|
+
ExternalSharingSiteOption.View: self.associated_visitor_group,
|
|
1288
|
+
ExternalSharingSiteOption.Edit: self.associated_member_group,
|
|
1289
|
+
ExternalSharingSiteOption.Owner: self.associated_owner_group,
|
|
1290
|
+
} # type: dict[ExternalSharingSiteOption, Group]
|
|
1291
|
+
|
|
1290
1292
|
picker_input = "[{0}]".format(picker_result.value)
|
|
1291
|
-
role_value = "group:{groupId}".format(groupId=
|
|
1293
|
+
role_value = "group:{groupId}".format(groupId=groups[share_option].id)
|
|
1292
1294
|
Web.share_object(
|
|
1293
1295
|
self.context,
|
|
1294
1296
|
self.url,
|
|
@@ -1304,15 +1306,9 @@ class Web(SecurableObject):
|
|
|
1304
1306
|
)
|
|
1305
1307
|
|
|
1306
1308
|
def _web_resolved():
|
|
1307
|
-
groups = {
|
|
1308
|
-
ExternalSharingSiteOption.View: self.associated_visitor_group,
|
|
1309
|
-
ExternalSharingSiteOption.Edit: self.associated_member_group,
|
|
1310
|
-
ExternalSharingSiteOption.Owner: self.associated_owner_group,
|
|
1311
|
-
} # type: dict[ExternalSharingSiteOption, Group]
|
|
1312
|
-
|
|
1313
1309
|
ClientPeoplePickerWebServiceInterface.client_people_picker_resolve_user(
|
|
1314
1310
|
self.context, user_principal_name
|
|
1315
|
-
).after_execute(_share
|
|
1311
|
+
).after_execute(_share)
|
|
1316
1312
|
|
|
1317
1313
|
self.ensure_properties(
|
|
1318
1314
|
[
|
|
@@ -1974,9 +1970,7 @@ class Web(SecurableObject):
|
|
|
1974
1970
|
@property
|
|
1975
1971
|
def site_users(self):
|
|
1976
1972
|
# type: () -> UserCollection
|
|
1977
|
-
"""
|
|
1978
|
-
Specifies the collection of users in the site collection that contains the site
|
|
1979
|
-
"""
|
|
1973
|
+
"""Specifies the collection of users in the site collection that contains the site"""
|
|
1980
1974
|
return self.properties.get(
|
|
1981
1975
|
"SiteUsers",
|
|
1982
1976
|
UserCollection(self.context, ResourcePath("siteUsers", self.resource_path)),
|
|
@@ -38,9 +38,7 @@ class TeamsAsyncOperation(Entity):
|
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
def _poll_for_status(polling_number):
|
|
41
|
-
|
|
42
|
-
:type polling_number: int
|
|
43
|
-
"""
|
|
41
|
+
# type: (int) -> None
|
|
44
42
|
if polling_number > max_polling_count:
|
|
45
43
|
if callable(failure_callback):
|
|
46
44
|
failure_callback(self)
|
|
@@ -48,16 +46,16 @@ class TeamsAsyncOperation(Entity):
|
|
|
48
46
|
raise TypeError("The maximum polling count has been reached")
|
|
49
47
|
|
|
50
48
|
def _verify_status(return_type):
|
|
51
|
-
if
|
|
49
|
+
if return_type.status != status_type:
|
|
52
50
|
time.sleep(polling_interval_secs)
|
|
53
51
|
_poll_for_status(polling_number + 1)
|
|
54
52
|
else:
|
|
55
53
|
if callable(success_callback):
|
|
56
|
-
success_callback(
|
|
54
|
+
success_callback(return_type)
|
|
57
55
|
|
|
58
|
-
self.
|
|
56
|
+
self.get().after_execute(_verify_status, execute_first=True)
|
|
59
57
|
|
|
60
|
-
|
|
58
|
+
_poll_for_status(1)
|
|
61
59
|
return self
|
|
62
60
|
|
|
63
61
|
@property
|
office365/runtime/paths/item.py
DELETED
|
File without changes
|
{Office365_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.6.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|