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,4 +1,5 @@
|
|
|
1
1
|
import datetime
|
|
2
|
+
from typing import Optional
|
|
2
3
|
|
|
3
4
|
from office365.runtime.paths.resource_path import ResourcePath
|
|
4
5
|
from office365.sharepoint.entity import Entity
|
|
@@ -9,42 +10,37 @@ class PushNotificationSubscriber(Entity):
|
|
|
9
10
|
|
|
10
11
|
@property
|
|
11
12
|
def custom_args(self):
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"""
|
|
13
|
+
# type: () -> Optional[str]
|
|
14
|
+
"""Gets the custom arguments specified by the app."""
|
|
15
15
|
return self.properties.get("CustomArgs", None)
|
|
16
16
|
|
|
17
17
|
@property
|
|
18
18
|
def service_token(self):
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"""
|
|
19
|
+
# type: () -> Optional[str]
|
|
20
|
+
"""Specifies the delivery channel URI for push notifications. It must not be null. It must not be empty."""
|
|
22
21
|
return self.properties.get("ServiceToken", None)
|
|
23
22
|
|
|
24
23
|
@service_token.setter
|
|
25
24
|
def service_token(self, value):
|
|
26
|
-
|
|
27
|
-
Specifies the delivery channel URI for push notifications. It must not be null. It must not be empty.
|
|
28
|
-
|
|
29
|
-
:type value: str
|
|
30
|
-
"""
|
|
25
|
+
# type: (str) -> None
|
|
26
|
+
"""Specifies the delivery channel URI for push notifications. It must not be null. It must not be empty."""
|
|
31
27
|
self.set_property("ServiceToken", value)
|
|
32
28
|
|
|
33
29
|
@property
|
|
34
30
|
def device_app_instance_id(self):
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
:rtype: str
|
|
38
|
-
"""
|
|
31
|
+
# type: () -> Optional[str]
|
|
32
|
+
"""Specifies a device app instance identifier."""
|
|
39
33
|
return self.properties.get("DeviceAppInstanceId", None)
|
|
40
34
|
|
|
41
35
|
@property
|
|
42
36
|
def last_modified_time_stamp(self):
|
|
37
|
+
# type: () -> Optional[datetime.datetime]
|
|
43
38
|
"""Specifies the time and date when the subscriber was last updated."""
|
|
44
39
|
return self.properties.get("LastModifiedTimeStamp", datetime.datetime.min)
|
|
45
40
|
|
|
46
41
|
@property
|
|
47
42
|
def registration_time_stamp(self):
|
|
43
|
+
# type: () -> Optional[datetime.datetime]
|
|
48
44
|
"""Specifies the time and date when the subscriber registered for push notifications."""
|
|
49
45
|
return self.properties.get("RegistrationTimeStamp", datetime.datetime.min)
|
|
50
46
|
|
|
@@ -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.sharing.object_sharing_information import (
|
|
@@ -18,84 +20,64 @@ class ObjectSharingSettings(Entity):
|
|
|
18
20
|
|
|
19
21
|
@property
|
|
20
22
|
def web_url(self):
|
|
21
|
-
|
|
22
|
-
The URL pointing to the containing SP.Web object.
|
|
23
|
-
:rtype: str
|
|
24
|
-
"""
|
|
23
|
+
# type: () -> Optional[str]
|
|
24
|
+
"""The URL pointing to the containing SP.Web object."""
|
|
25
25
|
return self.properties.get("WebUrl", None)
|
|
26
26
|
|
|
27
27
|
@property
|
|
28
28
|
def access_request_mode(self):
|
|
29
|
-
|
|
30
|
-
Boolean indicating whether the sharing context operates under the access request mode.
|
|
31
|
-
:rtype: bool
|
|
32
|
-
"""
|
|
29
|
+
# type: () -> Optional[bool]
|
|
30
|
+
"""Boolean indicating whether the sharing context operates under the access request mode."""
|
|
33
31
|
return self.properties.get("AccessRequestMode", None)
|
|
34
32
|
|
|
35
33
|
@property
|
|
36
34
|
def block_people_picker_and_sharing(self):
|
|
37
|
-
|
|
38
|
-
Boolean indicating whether the current user can use the People Picker to do any sharing.
|
|
39
|
-
:rtype: bool
|
|
40
|
-
"""
|
|
35
|
+
# type: () -> Optional[bool]
|
|
36
|
+
"""Boolean indicating whether the current user can use the People Picker to do any sharing."""
|
|
41
37
|
return self.properties.get("BlockPeoplePickerAndSharing", None)
|
|
42
38
|
|
|
43
39
|
@property
|
|
44
40
|
def can_current_user_manage_organization_readonly_link(self):
|
|
45
|
-
|
|
46
|
-
Boolean indicating whether the current user can create or disable an organization View link.
|
|
47
|
-
:rtype: bool
|
|
48
|
-
"""
|
|
41
|
+
# type: () -> Optional[bool]
|
|
42
|
+
"""Boolean indicating whether the current user can create or disable an organization View link."""
|
|
49
43
|
return self.properties.get("CanCurrentUserManageOrganizationReadonlyLink", None)
|
|
50
44
|
|
|
51
45
|
@property
|
|
52
46
|
def can_current_user_manage_organization_read_write_link(self):
|
|
53
|
-
|
|
54
|
-
Boolean indicating whether the current user can create or disable an organization Edit link.
|
|
55
|
-
:rtype: bool
|
|
56
|
-
"""
|
|
47
|
+
# type: () -> Optional[bool]
|
|
48
|
+
"""Boolean indicating whether the current user can create or disable an organization Edit link."""
|
|
57
49
|
return self.properties.get(
|
|
58
50
|
"CanCurrentUserManageOrganizationReadWriteLink", None
|
|
59
51
|
)
|
|
60
52
|
|
|
61
53
|
@property
|
|
62
54
|
def can_current_user_manage_readonly_link(self):
|
|
63
|
-
|
|
64
|
-
Boolean indicating whether the current user can create or disable an anonymous View link.
|
|
65
|
-
:rtype: bool
|
|
66
|
-
"""
|
|
55
|
+
# type: () -> Optional[bool]
|
|
56
|
+
"""Boolean indicating whether the current user can create or disable an anonymous View link."""
|
|
67
57
|
return self.properties.get("CanCurrentUserManageReadonlyLink", None)
|
|
68
58
|
|
|
69
59
|
@property
|
|
70
60
|
def can_send_email(self):
|
|
71
|
-
|
|
72
|
-
Boolean indicating whether email invitations can be sent.
|
|
73
|
-
:rtype: bool
|
|
74
|
-
"""
|
|
61
|
+
# type: () -> Optional[bool]
|
|
62
|
+
"""Boolean indicating whether email invitations can be sent."""
|
|
75
63
|
return self.properties.get("CanSendEmail", None)
|
|
76
64
|
|
|
77
65
|
@property
|
|
78
66
|
def can_send_link(self):
|
|
79
|
-
|
|
80
|
-
Boolean indicating whether the current user can make use of Share-By-Link.
|
|
81
|
-
:rtype: bool
|
|
82
|
-
"""
|
|
67
|
+
# type: () -> Optional[bool]
|
|
68
|
+
"""Boolean indicating whether the current user can make use of Share-By-Link."""
|
|
83
69
|
return self.properties.get("CanSendLink", None)
|
|
84
70
|
|
|
85
71
|
@property
|
|
86
72
|
def is_user_site_admin(self):
|
|
87
|
-
|
|
88
|
-
Boolean that indicates whether or not the current user is a site collection administrator
|
|
89
|
-
:return: bool
|
|
90
|
-
"""
|
|
73
|
+
# type: () -> Optional[bool]
|
|
74
|
+
"""Boolean that indicates whether or not the current user is a site collection administrator"""
|
|
91
75
|
return self.properties.get("IsUserSiteAdmin", None)
|
|
92
76
|
|
|
93
77
|
@property
|
|
94
78
|
def list_id(self):
|
|
95
|
-
|
|
96
|
-
The unique ID of the parent list (if applicable).
|
|
97
|
-
:rtype: str
|
|
98
|
-
"""
|
|
79
|
+
# type: () -> Optional[str]
|
|
80
|
+
"""The unique ID of the parent list (if applicable)."""
|
|
99
81
|
return self.properties.get("ListId", None)
|
|
100
82
|
|
|
101
83
|
@property
|
|
@@ -120,9 +102,7 @@ class ObjectSharingSettings(Entity):
|
|
|
120
102
|
|
|
121
103
|
@property
|
|
122
104
|
def sharepoint_settings(self):
|
|
123
|
-
"""
|
|
124
|
-
An object that contains the SharePoint UI specific sharing settings.
|
|
125
|
-
"""
|
|
105
|
+
"""An object that contains the SharePoint UI specific sharing settings."""
|
|
126
106
|
return self.properties.get(
|
|
127
107
|
"SharePointSettings",
|
|
128
108
|
SharePointSharingSettings(
|
|
@@ -132,9 +112,7 @@ class ObjectSharingSettings(Entity):
|
|
|
132
112
|
|
|
133
113
|
@property
|
|
134
114
|
def sharing_permissions(self):
|
|
135
|
-
"""
|
|
136
|
-
A list of SharingPermissionInformation objects that can be used to share.
|
|
137
|
-
"""
|
|
115
|
+
"""A list of SharingPermissionInformation objects that can be used to share."""
|
|
138
116
|
return self.properties.get(
|
|
139
117
|
"SharingPermissions",
|
|
140
118
|
SharingPermissionInformation(
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.entity import Entity
|
|
2
4
|
|
|
3
5
|
|
|
@@ -8,6 +10,7 @@ class SharingPermissionInformation(Entity):
|
|
|
8
10
|
|
|
9
11
|
@property
|
|
10
12
|
def is_default_permission(self):
|
|
13
|
+
# type: () -> Optional[bool]
|
|
11
14
|
"""
|
|
12
15
|
Identifies whether or not the permission entity is a default SP.Group or role (meaning it is recommended
|
|
13
16
|
for granting permissions).
|
|
@@ -20,16 +23,13 @@ class SharingPermissionInformation(Entity):
|
|
|
20
23
|
For granting permissions to a file or other non-site object, there can be two default permission entities:
|
|
21
24
|
a role for view permissions (StandardViewerRoleDefinitionID) and a role for edit permissions
|
|
22
25
|
(StandardEditorRoleDefinitionID).
|
|
23
|
-
|
|
24
|
-
:rtype: bool or None
|
|
25
26
|
"""
|
|
26
27
|
return self.properties.get("IsDefaultPermission", None)
|
|
27
28
|
|
|
28
29
|
@property
|
|
29
30
|
def permission_id(self):
|
|
30
|
-
|
|
31
|
-
:
|
|
32
|
-
"""
|
|
31
|
+
# type: () -> Optional[str]
|
|
32
|
+
"""Gets the ID of this permission in the following formats: group:x, role: xxxxxx."""
|
|
33
33
|
return self.properties.get("PermissionId", None)
|
|
34
34
|
|
|
35
35
|
@property
|
|
@@ -91,6 +91,7 @@ class SharingResult(Entity):
|
|
|
91
91
|
property_mapping = {
|
|
92
92
|
"GroupsSharedWith": self.groups_shared_with,
|
|
93
93
|
"UsersAddedToGroup": self.users_added_to_group,
|
|
94
|
+
"UniquelyPermissionedUsers": self.uniquely_permissioned_users,
|
|
94
95
|
}
|
|
95
96
|
default_value = property_mapping.get(name, None)
|
|
96
97
|
return super(SharingResult, self).get_property(name, default_value)
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.entity import Entity
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
class SiteDesignRun(Entity):
|
|
5
7
|
@property
|
|
6
8
|
def site_design_id(self):
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"""
|
|
9
|
+
# type: () -> Optional[str]
|
|
10
|
+
""""""
|
|
10
11
|
return self.properties.get("SiteDesignID", None)
|
|
11
12
|
|
|
12
13
|
@property
|
|
@@ -621,25 +621,20 @@ class Site(Entity):
|
|
|
621
621
|
|
|
622
622
|
@property
|
|
623
623
|
def trim_audit_log(self):
|
|
624
|
-
|
|
625
|
-
When this flag is set for the site, the audit events are trimmed periodically.
|
|
626
|
-
:rtype: bool or none
|
|
627
|
-
"""
|
|
624
|
+
# type: () -> Optional[bool]
|
|
625
|
+
"""When this flag is set for the site, the audit events are trimmed periodically."""
|
|
628
626
|
return self.properties.get("TrimAuditLog", None)
|
|
629
627
|
|
|
630
628
|
@property
|
|
631
629
|
def write_locked(self):
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
"""
|
|
630
|
+
# type: () -> Optional[bool]
|
|
631
|
+
""" """
|
|
635
632
|
return self.properties.get("WriteLocked", None)
|
|
636
633
|
|
|
637
634
|
@property
|
|
638
635
|
def id(self):
|
|
639
636
|
# type: () -> Optional[str]
|
|
640
|
-
"""
|
|
641
|
-
Specifies the GUID that identifies the site collection.
|
|
642
|
-
"""
|
|
637
|
+
"""Specifies the GUID that identifies the site collection."""
|
|
643
638
|
return self.properties.get("Id", None)
|
|
644
639
|
|
|
645
640
|
@property
|
|
@@ -651,9 +646,7 @@ class Site(Entity):
|
|
|
651
646
|
@property
|
|
652
647
|
def is_hub_site(self):
|
|
653
648
|
# type: () -> Optional[bool]
|
|
654
|
-
"""
|
|
655
|
-
Returns whether the specified site is a hub site
|
|
656
|
-
"""
|
|
649
|
+
"""Returns whether the specified site is a hub site"""
|
|
657
650
|
return self.properties.get("IsHubSite", None)
|
|
658
651
|
|
|
659
652
|
@property
|
|
@@ -665,9 +658,7 @@ class Site(Entity):
|
|
|
665
658
|
@property
|
|
666
659
|
def status_bar_link(self):
|
|
667
660
|
# type: () -> Optional[str]
|
|
668
|
-
"""
|
|
669
|
-
Gets the status bar message link target for this site.
|
|
670
|
-
"""
|
|
661
|
+
"""Gets the status bar message link target for this site."""
|
|
671
662
|
return self.properties.get("StatusBarLink", None)
|
|
672
663
|
|
|
673
664
|
@property
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import uuid
|
|
2
|
+
from typing import Optional
|
|
2
3
|
|
|
3
4
|
from office365.sharepoint.fields.lookup import FieldLookup
|
|
4
5
|
from office365.sharepoint.taxonomy.create_xml_parameters import (
|
|
@@ -9,6 +10,20 @@ from office365.sharepoint.taxonomy.create_xml_parameters import (
|
|
|
9
10
|
class TaxonomyField(FieldLookup):
|
|
10
11
|
"""Represents a taxonomy field."""
|
|
11
12
|
|
|
13
|
+
def set_field_value_by_value(self, item, tax_value):
|
|
14
|
+
"""
|
|
15
|
+
Sets the value of the corresponding field in the list item to the value of the specified TaxonomyFieldValue
|
|
16
|
+
:param ListItem item: The ListItem object whose field is to be updated.
|
|
17
|
+
:param TaxonomyFieldValue tax_value: The TaxonomyFieldValue object whose value is to be used to
|
|
18
|
+
update this field.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
def _set_field_value_by_value():
|
|
22
|
+
item.set_property(self.internal_name, tax_value)
|
|
23
|
+
|
|
24
|
+
self.ensure_property("InternalName", _set_field_value_by_value)
|
|
25
|
+
return self
|
|
26
|
+
|
|
12
27
|
@staticmethod
|
|
13
28
|
def create(
|
|
14
29
|
fields,
|
|
@@ -77,103 +92,99 @@ class TaxonomyField(FieldLookup):
|
|
|
77
92
|
|
|
78
93
|
@property
|
|
79
94
|
def anchor_id(self):
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"""
|
|
95
|
+
# type: () -> Optional[str]
|
|
96
|
+
"""Gets or sets the GUID of the anchor Term object for a TaxonomyField object."""
|
|
83
97
|
return self.properties.get("AnchorId", None)
|
|
84
98
|
|
|
85
99
|
@property
|
|
86
100
|
def create_values_in_edit_form(self):
|
|
101
|
+
# type: () -> Optional[bool]
|
|
87
102
|
"""
|
|
88
103
|
Specifies a Boolean value that specifies whether the new Term objects can be added to the
|
|
89
104
|
TermSet while typing in the TaxonomyField editor control.
|
|
90
|
-
:rtype: bool or None
|
|
91
105
|
"""
|
|
92
106
|
return self.properties.get("CreateValuesInEditForm", None)
|
|
93
107
|
|
|
94
108
|
@property
|
|
95
109
|
def is_anchor_valid(self):
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"""
|
|
110
|
+
# type: () -> Optional[bool]
|
|
111
|
+
"""Gets a Boolean value that specifies whether the Term object identified by the AnchorId property is valid."""
|
|
99
112
|
return self.properties.get("IsAnchorValid", None)
|
|
100
113
|
|
|
101
114
|
@property
|
|
102
115
|
def is_doc_tags_enabled(self):
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"""
|
|
116
|
+
# type: () -> Optional[bool]
|
|
117
|
+
""" """
|
|
106
118
|
return self.properties.get("IsDocTagsEnabled", None)
|
|
107
119
|
|
|
108
120
|
@property
|
|
109
121
|
def is_keyword(self):
|
|
122
|
+
# type: () -> Optional[bool]
|
|
110
123
|
"""
|
|
111
124
|
Specifies a Boolean value that indicates whether the TaxonomyField value points to the
|
|
112
125
|
keywords term set object.
|
|
113
|
-
:rtype: bool or None
|
|
114
126
|
"""
|
|
115
127
|
return self.properties.get("IsKeyword", None)
|
|
116
128
|
|
|
117
129
|
@property
|
|
118
130
|
def is_path_rendered(self):
|
|
131
|
+
# type: () -> Optional[bool]
|
|
119
132
|
"""
|
|
120
133
|
Specifies a Boolean value that specifies whether the default Label objects of all the parent
|
|
121
134
|
Term objects of a Term in the TaxonomyField object will be rendered in
|
|
122
135
|
addition to the default label of that Term.
|
|
123
|
-
:rtype: bool or None
|
|
124
136
|
"""
|
|
125
137
|
return self.properties.get("IsPathRendered", None)
|
|
126
138
|
|
|
127
139
|
@property
|
|
128
140
|
def is_term_set_valid(self):
|
|
141
|
+
# type: () -> Optional[bool]
|
|
129
142
|
"""
|
|
130
143
|
Gets a Boolean value that specifies whether the TermSet object identified by the TermSetId
|
|
131
144
|
property exists and is available for tagging.
|
|
132
|
-
:rtype: bool or None
|
|
133
145
|
"""
|
|
134
146
|
return self.properties.get("IsTermSetValid", None)
|
|
135
147
|
|
|
136
148
|
@property
|
|
137
149
|
def open(self):
|
|
150
|
+
# type: () -> Optional[bool]
|
|
138
151
|
"""
|
|
139
152
|
Specifies a Boolean value that specifies whether the TaxonomyField object is linked to an
|
|
140
153
|
open TermSet (section 3.1.5.20) object or a closed TermSet.
|
|
141
|
-
:rtype: bool or None
|
|
142
154
|
"""
|
|
143
155
|
return self.properties.get("Open", None)
|
|
144
156
|
|
|
145
157
|
@property
|
|
146
158
|
def ssp_id(self):
|
|
159
|
+
# type: () -> Optional[str]
|
|
147
160
|
"""
|
|
148
161
|
Specifies the GUID that identifies the TermStore object, which contains the Enterprise
|
|
149
162
|
keywords for the site that the current TaxonomyField belongs to.
|
|
150
|
-
:rtype: str or None
|
|
151
163
|
"""
|
|
152
164
|
return self.properties.get("SspId", None)
|
|
153
165
|
|
|
154
166
|
@property
|
|
155
167
|
def target_template(self):
|
|
168
|
+
# type: () -> Optional[str]
|
|
156
169
|
"""
|
|
157
170
|
Specifies the Web-relative Uniform Resource Locator (URL) of the target page that is used to construct the
|
|
158
171
|
hyperlink on each Term object when the TaxonomyField (section 3.1.5.27) object is rendered.
|
|
159
|
-
:rtype: str or None
|
|
160
172
|
"""
|
|
161
173
|
return self.properties.get("TargetTemplate", None)
|
|
162
174
|
|
|
163
175
|
@property
|
|
164
176
|
def term_set_id(self):
|
|
177
|
+
# type: () -> Optional[str]
|
|
165
178
|
"""
|
|
166
179
|
Specifies the GUID of the TermSet object that contains the Term
|
|
167
180
|
objects used by the current TaxonomyField () object.
|
|
168
|
-
:rtype: str or None
|
|
169
181
|
"""
|
|
170
182
|
return self.properties.get("TermSetId", None)
|
|
171
183
|
|
|
172
184
|
@property
|
|
173
185
|
def text_field_id(self):
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
"""
|
|
186
|
+
# type: () -> Optional[str]
|
|
187
|
+
"""Gets the GUID that identifies the hidden text field in an item."""
|
|
177
188
|
return self.properties.get("TextField", None)
|
|
178
189
|
|
|
179
190
|
@property
|
|
@@ -185,10 +196,10 @@ class TaxonomyField(FieldLookup):
|
|
|
185
196
|
|
|
186
197
|
@property
|
|
187
198
|
def user_created(self):
|
|
199
|
+
# type: () -> Optional[bool]
|
|
188
200
|
"""
|
|
189
201
|
Specifies a Boolean value that specifies whether the TaxonomyField object is linked to a
|
|
190
202
|
customized TermSet object.
|
|
191
|
-
:rtype: bool or None
|
|
192
203
|
"""
|
|
193
204
|
return self.properties.get("UserCreated", None)
|
|
194
205
|
|
|
@@ -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.taxonomy.item import TaxonomyItem
|
|
3
5
|
from office365.sharepoint.taxonomy.item_collection import TaxonomyItemCollection
|
|
@@ -8,6 +10,9 @@ from office365.sharepoint.taxonomy.sets.set import TermSet
|
|
|
8
10
|
class TermGroup(TaxonomyItem):
|
|
9
11
|
"""Represents the top-level container in a TermStore object."""
|
|
10
12
|
|
|
13
|
+
def __str__(self):
|
|
14
|
+
return self.display_name or self.entity_type_name
|
|
15
|
+
|
|
11
16
|
def get_term_sets_by_name(self, label, lcid=None):
|
|
12
17
|
"""
|
|
13
18
|
Search term set by name
|
|
@@ -26,7 +31,7 @@ class TermGroup(TaxonomyItem):
|
|
|
26
31
|
]
|
|
27
32
|
|
|
28
33
|
def _group_resolved():
|
|
29
|
-
self.
|
|
34
|
+
self.term_sets.get().after_execute(_sets_loaded)
|
|
30
35
|
|
|
31
36
|
self.ensure_property("id", _group_resolved)
|
|
32
37
|
return return_type
|
|
@@ -44,6 +49,12 @@ class TermGroup(TaxonomyItem):
|
|
|
44
49
|
),
|
|
45
50
|
)
|
|
46
51
|
|
|
52
|
+
@property
|
|
53
|
+
def display_name(self):
|
|
54
|
+
# type: () -> Optional[str]
|
|
55
|
+
"""Gets the name of the Term Group"""
|
|
56
|
+
return self.properties.get("displayName", None)
|
|
57
|
+
|
|
47
58
|
def get_property(self, name, default_value=None):
|
|
48
59
|
if default_value is None:
|
|
49
60
|
property_mapping = {"termSets": self.term_sets}
|
|
@@ -9,6 +9,12 @@ from office365.sharepoint.taxonomy.terms.term import Term
|
|
|
9
9
|
class TermSet(TaxonomyItem):
|
|
10
10
|
"""Represents a hierarchical or flat set of Term objects known as a 'TermSet'."""
|
|
11
11
|
|
|
12
|
+
def __repr__(self):
|
|
13
|
+
if self.is_property_available("localizedNames"):
|
|
14
|
+
return repr(self.localized_names[0])
|
|
15
|
+
else:
|
|
16
|
+
return self.entity_type_name
|
|
17
|
+
|
|
12
18
|
@property
|
|
13
19
|
def localized_names(self):
|
|
14
20
|
return self.properties.get(
|
|
@@ -26,10 +26,12 @@ class TermStore(TaxonomyItem):
|
|
|
26
26
|
|
|
27
27
|
def _groups_loaded(col):
|
|
28
28
|
# type: (TermGroupCollection) -> None
|
|
29
|
-
|
|
29
|
+
[
|
|
30
30
|
grp.get_term_sets_by_name(label, lcid).after_execute(_sets_loaded)
|
|
31
|
+
for grp in col
|
|
32
|
+
]
|
|
31
33
|
|
|
32
|
-
self.
|
|
34
|
+
self.term_groups.get().after_execute(_groups_loaded)
|
|
33
35
|
return return_type
|
|
34
36
|
|
|
35
37
|
def search_term(self, label, set_id=None, parent_term_id=None, language_tag=None):
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.entity import Entity
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
class TeamChannel(Entity):
|
|
5
7
|
@property
|
|
6
8
|
def folder_id(self):
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"""
|
|
9
|
+
# type: () -> Optional[str]
|
|
10
|
+
""" """
|
|
10
11
|
return self.properties.get("folderId", None)
|
|
11
12
|
|
|
12
13
|
@property
|
|
13
14
|
def group_id(self):
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"""
|
|
15
|
+
# type: () -> Optional[str]
|
|
16
|
+
""" """
|
|
17
17
|
return self.properties.get("groupId", None)
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.entity import Entity
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
class TenantAdminEndpoints(Entity):
|
|
5
7
|
@property
|
|
6
8
|
def o365_admin_center_endpoint(self):
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"""
|
|
9
|
+
# type: () -> Optional[str]
|
|
10
|
+
""""""
|
|
10
11
|
return self.properties.get("O365AdminCenterEndpoint", None)
|
|
11
12
|
|
|
12
13
|
@property
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.client_value_collection import ClientValueCollection
|
|
2
4
|
from office365.sharepoint.entity import Entity
|
|
3
5
|
from office365.sharepoint.tenant.administration.hubsites.permission import (
|
|
@@ -14,11 +16,8 @@ class HubSiteProperties(Entity):
|
|
|
14
16
|
|
|
15
17
|
@property
|
|
16
18
|
def site_id(self):
|
|
17
|
-
|
|
18
|
-
Returns the Site identifier
|
|
19
|
-
|
|
20
|
-
:rtype: str or None
|
|
21
|
-
"""
|
|
19
|
+
# type: () -> Optional[str]
|
|
20
|
+
"""Returns the Site identifier"""
|
|
22
21
|
return self.properties.get("SiteId", None)
|
|
23
22
|
|
|
24
23
|
@property
|
|
@@ -108,7 +108,6 @@ class SiteProperties(Entity):
|
|
|
108
108
|
- ExternalUserSharingOnly - External user sharing (share by email) is enabled, but guest link sharing
|
|
109
109
|
is disabled.
|
|
110
110
|
- ExistingExternalUserSharingOnly - Only guests already in your organization's directory.
|
|
111
|
-
:rtype: int
|
|
112
111
|
"""
|
|
113
112
|
return self.properties.get("SharingCapability", None)
|
|
114
113
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.client_object import ClientObject
|
|
2
4
|
|
|
3
5
|
|
|
@@ -6,10 +8,8 @@ class SpoOperation(ClientObject):
|
|
|
6
8
|
|
|
7
9
|
@property
|
|
8
10
|
def has_timedout(self):
|
|
9
|
-
|
|
10
|
-
Gets a value that indicates whether the maximum wait time for the operation has been exceeded.
|
|
11
|
-
:rtype: bool or None
|
|
12
|
-
"""
|
|
11
|
+
# type: () -> Optional[bool]
|
|
12
|
+
"""Gets a value that indicates whether the maximum wait time for the operation has been exceeded."""
|
|
13
13
|
return self.properties.get("HasTimedout", None)
|
|
14
14
|
|
|
15
15
|
@property
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from office365.sharepoint.tenant.insights.report_metadata import (
|
|
2
|
+
SPTenantIBInsightsReportMetadata,
|
|
3
|
+
)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class SPTenantIBInsightsReport(SPTenantIBInsightsReportMetadata):
|
|
7
|
+
""" """
|
|
8
|
+
|
|
9
|
+
@property
|
|
10
|
+
def entity_type_name(self):
|
|
11
|
+
return "Microsoft.SharePoint.Insights.SPTenantIBInsightsReport"
|