Office365-REST-Python-Client 2.5.5__py3-none-any.whl → 2.5.7__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.7.dist-info}/METADATA +6 -6
- {Office365_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.7.dist-info}/RECORD +269 -222
- office365/booking/virtualevents/__init__.py +0 -0
- office365/booking/virtualevents/root.py +5 -0
- office365/communications/calls/participant.py +4 -5
- office365/directory/administrative_unit.py +9 -2
- office365/directory/applications/application.py +3 -3
- office365/directory/applications/roles/assignment_collection.py +1 -1
- office365/directory/applications/roles/collection.py +6 -2
- office365/directory/applications/roles/role.py +1 -1
- office365/directory/audit/provisioning/object_summary.py +30 -1
- 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/methods/fido.py +8 -0
- office365/directory/authentication/methods/password.py +23 -0
- office365/directory/authentication/strength_root.py +5 -0
- office365/directory/certificates/auth_configuration.py +1 -3
- office365/directory/custom_security_attribute_definition.py +7 -0
- office365/directory/device_local_credential_info.py +6 -0
- office365/directory/directory.py +40 -12
- 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/appconsent/request_collection.py +1 -1
- 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/identitygovernance/termsofuse/agreement_acceptance.py +8 -0
- office365/directory/identitygovernance/userconsent/request_collection.py +1 -1
- office365/directory/insights/resource_reference.py +1 -1
- 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/device_registration.py +6 -0
- office365/directory/policies/permission_grant.py +2 -0
- office365/directory/policies/root.py +13 -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/security/threatintelligence/article_indicator.py +7 -0
- office365/directory/serviceprincipals/service_principal.py +6 -12
- office365/directory/synchronization/schema.py +16 -0
- office365/directory/synchronization/synchronization.py +2 -0
- office365/directory/users/activities/history_item.py +3 -2
- office365/directory/users/user.py +60 -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 +76 -7
- office365/onedrive/files/hashes.py +5 -0
- office365/onedrive/lists/collection.py +2 -2
- office365/onedrive/lists/list.py +1 -1
- 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/sitepages/__init__.py +0 -0
- office365/onedrive/sitepages/base.py +29 -0
- office365/onedrive/sitepages/canvas_layout.py +43 -0
- office365/onedrive/sitepages/collection.py +32 -0
- office365/onedrive/sitepages/horizontal_section.py +23 -0
- office365/onedrive/sitepages/horizontal_section_column.py +27 -0
- office365/onedrive/sitepages/site_page.py +116 -0
- office365/onedrive/sitepages/title_area.py +13 -0
- office365/onedrive/sitepages/vertical_section.py +27 -0
- office365/onedrive/sitepages/web_part.py +5 -0
- office365/onedrive/sites/site.py +10 -0
- 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/charts/data_labels.py +13 -1
- 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/tables/sort.py +5 -0
- office365/onedrive/workbooks/tables/table.py +57 -0
- office365/onedrive/workbooks/worksheets/collection.py +0 -6
- office365/onedrive/workbooks/worksheets/protection.py +22 -1
- office365/onedrive/workbooks/worksheets/protection_options.py +7 -0
- office365/outlook/calendar/calendar.py +1 -3
- office365/outlook/calendar/events/event.py +45 -0
- office365/outlook/calendar/permissions/permission.py +7 -7
- office365/outlook/calendar/place.py +5 -3
- office365/outlook/calendar/response_status.py +11 -0
- office365/outlook/calendar/rooms/room.py +14 -0
- office365/outlook/mail/attachments/collection.py +6 -1
- office365/outlook/mail/automatic_replies_mailtips.py +5 -0
- office365/outlook/mail/conversation.py +1 -3
- office365/outlook/mail/folders/folder.py +1 -3
- office365/outlook/mail/messages/message.py +1 -1
- office365/outlook/mail/tips.py +17 -0
- office365/planner/plans/plan.py +11 -1
- office365/reports/root.py +83 -4
- office365/runtime/auth/authentication_context.py +12 -2
- 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 +7 -9
- office365/runtime/odata/request.py +12 -2
- office365/runtime/odata/v3/batch_request.py +7 -15
- office365/runtime/odata/v4/batch_request.py +13 -21
- office365/runtime/queries/upload_session.py +5 -0
- 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/alerts/collection.py +2 -1
- office365/sharepoint/attachments/attachment.py +3 -9
- 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/client_context.py +4 -2
- 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/content_type.py +13 -1
- office365/sharepoint/contenttypes/fieldlinks/collection.py +5 -7
- office365/sharepoint/contenttypes/fieldlinks/field_link.py +14 -22
- office365/sharepoint/directory/helper.py +2 -0
- 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 +46 -13
- 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 +23 -25
- 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/migrationcenter/deploy_status.py +5 -0
- office365/sharepoint/migrationcenter/service/performance/__init__.py +0 -0
- office365/sharepoint/migrationcenter/service/performance/dashboard_data.py +9 -0
- office365/sharepoint/migrationcenter/service/performance/data.py +7 -0
- office365/sharepoint/migrationcenter/service/performance/entity_data.py +5 -0
- 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/principal/principal.py +2 -4
- 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/recyclebin/item.py +107 -7
- office365/sharepoint/sharing/information.py +9 -0
- office365/sharepoint/sharing/link_info.py +6 -0
- office365/sharepoint/sharing/object_sharing_settings.py +24 -46
- office365/sharepoint/sharing/permission_collection.py +18 -0
- 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/script_safe_domain.py +5 -0
- office365/sharepoint/sites/site.py +17 -20
- office365/sharepoint/taxonomy/field.py +32 -21
- office365/sharepoint/taxonomy/field_value.py +1 -1
- 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/powerapps/__init__.py +0 -0
- office365/sharepoint/tenant/administration/powerapps/environment_context.py +8 -0
- 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/information_collection.py +1 -1
- office365/sharepoint/webs/modernize_homepage_result.py +4 -3
- office365/sharepoint/webs/regional_settings.py +79 -16
- office365/sharepoint/webs/template.py +3 -5
- office365/sharepoint/webs/web.py +24 -25
- office365/teams/apps/catalog.py +1 -0
- office365/teams/chats/chat.py +4 -0
- office365/teams/operations/async_operation.py +5 -7
- office365/teams/schedule/schedule.py +6 -2
- office365/runtime/paths/item.py +0 -8
- {Office365_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.7.dist-info}/LICENSE +0 -0
- {Office365_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.7.dist-info}/WHEEL +0 -0
- {Office365_REST_Python_Client-2.5.5.dist-info → Office365_REST_Python_Client-2.5.7.dist-info}/top_level.txt +0 -0
|
@@ -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"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.paths.resource_path import ResourcePath
|
|
2
4
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
3
5
|
from office365.sharepoint.entity import Entity
|
|
@@ -27,9 +29,8 @@ class TenantSettings(Entity):
|
|
|
27
29
|
|
|
28
30
|
@property
|
|
29
31
|
def corporate_catalog_url(self):
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"""
|
|
32
|
+
# type: () -> Optional[str]
|
|
33
|
+
"""Specifies the URL of the corporate catalog site collection."""
|
|
33
34
|
return self.properties.get("CorporateCatalogUrl", None)
|
|
34
35
|
|
|
35
36
|
@staticmethod
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.client_result import ClientResult
|
|
2
4
|
from office365.runtime.paths.service_operation import ServiceOperationPath
|
|
3
5
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
@@ -45,13 +47,12 @@ class SyncTranslator(Entity):
|
|
|
45
47
|
|
|
46
48
|
@property
|
|
47
49
|
def output_save_behavior(self):
|
|
50
|
+
# type: () -> Optional[int]
|
|
48
51
|
"""
|
|
49
52
|
The protocol client sets this property to determine the behavior of the protocol server in the case that
|
|
50
53
|
the output file already exists when a translation occurs.
|
|
51
54
|
|
|
52
55
|
If the protocol client does not set this property, the AppendIfPossible (section 3.1.5.2.1.1) behavior is used.
|
|
53
|
-
|
|
54
|
-
:rtype: int or None
|
|
55
56
|
"""
|
|
56
57
|
return self.properties.get("OutputSaveBehavior", None)
|
|
57
58
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.client_object import ClientObject
|
|
2
4
|
from office365.sharepoint.ui.applicationpages.peoplepicker.entity_information_request import (
|
|
3
5
|
PickerEntityInformationRequest,
|
|
@@ -9,17 +11,15 @@ class PickerEntityInformation(ClientObject):
|
|
|
9
11
|
|
|
10
12
|
@property
|
|
11
13
|
def total_member_count(self):
|
|
14
|
+
# type: () -> Optional[int]
|
|
12
15
|
"""
|
|
13
16
|
The count of members in a group. Valid when the principal is a SharePoint group or a security group.
|
|
14
|
-
:rtype: int
|
|
15
17
|
"""
|
|
16
18
|
return self.properties.get("TotalMemberCount", None)
|
|
17
19
|
|
|
18
20
|
@property
|
|
19
21
|
def entity(self):
|
|
20
|
-
"""
|
|
21
|
-
The principal for which information is being requested.
|
|
22
|
-
"""
|
|
22
|
+
"""The principal for which information is being requested."""
|
|
23
23
|
return self.properties.get("Entity", PickerEntityInformationRequest())
|
|
24
24
|
|
|
25
25
|
@property
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.entity import Entity
|
|
2
4
|
|
|
3
5
|
|
|
@@ -6,50 +8,40 @@ class UserCustomAction(Entity):
|
|
|
6
8
|
|
|
7
9
|
@property
|
|
8
10
|
def client_side_component_id(self):
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"""
|
|
11
|
+
# type: () -> Optional[str]
|
|
12
|
+
""""""
|
|
12
13
|
return self.properties.get("ClientSideComponentId", None)
|
|
13
14
|
|
|
14
15
|
@property
|
|
15
16
|
def script_block(self):
|
|
16
|
-
|
|
17
|
-
Gets the value that specifies the ECMAScript to be executed when the custom action is performed.
|
|
18
|
-
:rtype: str or None
|
|
19
|
-
"""
|
|
17
|
+
# type: () -> Optional[str]
|
|
18
|
+
"""Gets the value that specifies the ECMAScript to be executed when the custom action is performed."""
|
|
20
19
|
return self.properties.get("ScriptBlock", None)
|
|
21
20
|
|
|
22
21
|
@script_block.setter
|
|
23
22
|
def script_block(self, value):
|
|
23
|
+
# type: (str) -> None
|
|
24
24
|
"""
|
|
25
25
|
Sets the value that specifies the ECMAScript to be executed when the custom action is performed.
|
|
26
|
-
|
|
27
|
-
:type value: str
|
|
28
26
|
"""
|
|
29
27
|
self.set_property("ScriptBlock", value)
|
|
30
28
|
|
|
31
29
|
@property
|
|
32
30
|
def script_src(self):
|
|
33
|
-
|
|
34
|
-
Gets a value that specifies the URI of a file which contains the ECMAScript to execute on the page
|
|
35
|
-
:rtype: str or None
|
|
36
|
-
"""
|
|
31
|
+
# type: () -> Optional[str]
|
|
32
|
+
"""Gets a value that specifies the URI of a file which contains the ECMAScript to execute on the page"""
|
|
37
33
|
return self.properties.get("ScriptSrc", None)
|
|
38
34
|
|
|
39
35
|
@script_src.setter
|
|
40
36
|
def script_src(self, value):
|
|
37
|
+
# type: (str) -> None
|
|
41
38
|
"""
|
|
42
39
|
Sets a value that specifies the URI of a file which contains the ECMAScript to execute on the page
|
|
43
|
-
|
|
44
|
-
:type value: str
|
|
45
40
|
"""
|
|
46
41
|
self.set_property("ScriptSrc", value)
|
|
47
42
|
|
|
48
43
|
@property
|
|
49
44
|
def url(self):
|
|
50
|
-
|
|
51
|
-
Gets or sets the URL, URI, or ECMAScript (JScript, JavaScript) function associated with the action.
|
|
52
|
-
|
|
53
|
-
:rtype: str or None
|
|
54
|
-
"""
|
|
45
|
+
# type: () -> Optional[str]
|
|
46
|
+
"""Gets or sets the URL, URI, or ECMAScript (JScript, JavaScript) function associated with the action."""
|
|
55
47
|
return self.properties.get("Url", None)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.client_result import ClientResult
|
|
2
4
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
3
5
|
from office365.sharepoint.entity import Entity
|
|
@@ -25,20 +27,14 @@ class FollowedContent(Entity):
|
|
|
25
27
|
|
|
26
28
|
@property
|
|
27
29
|
def followed_documents_url(self):
|
|
28
|
-
|
|
29
|
-
The FollowedDocumentsUrl property gets the location of the followed documents view.
|
|
30
|
-
|
|
31
|
-
:rtype: str or None
|
|
32
|
-
"""
|
|
30
|
+
# type: () -> Optional[str]
|
|
31
|
+
"""The FollowedDocumentsUrl property gets the location of the followed documents view."""
|
|
33
32
|
return self.properties.get("FollowedDocumentsUrl", None)
|
|
34
33
|
|
|
35
34
|
@property
|
|
36
35
|
def followed_sites_url(self):
|
|
37
|
-
|
|
38
|
-
The FollowedSitesUrl property gets the location of the followed sites view.
|
|
39
|
-
|
|
40
|
-
:rtype: str or None
|
|
41
|
-
"""
|
|
36
|
+
# type: () -> Optional[str]
|
|
37
|
+
"""The FollowedSitesUrl property gets the location of the followed sites view."""
|
|
42
38
|
return self.properties.get("FollowedSitesUrl", None)
|
|
43
39
|
|
|
44
40
|
@property
|
|
@@ -80,7 +80,6 @@ class PeopleManager(Entity):
|
|
|
80
80
|
Gets the people who are following the specified user.
|
|
81
81
|
|
|
82
82
|
:param str account_name: Account name of the specified user.
|
|
83
|
-
:return:
|
|
84
83
|
"""
|
|
85
84
|
return_type = EntityCollection(self.context, PersonProperties)
|
|
86
85
|
params = {"accountName": account_name}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.types.collections import StringCollection
|
|
2
4
|
from office365.sharepoint.entity import Entity
|
|
3
5
|
|
|
@@ -10,29 +12,20 @@ class PersonProperties(Entity):
|
|
|
10
12
|
|
|
11
13
|
@property
|
|
12
14
|
def account_name(self):
|
|
13
|
-
|
|
14
|
-
The AccountName property specifies the person's account name.
|
|
15
|
-
|
|
16
|
-
:rtype: str or None
|
|
17
|
-
"""
|
|
15
|
+
# type: () -> Optional[str]
|
|
16
|
+
"""The AccountName property specifies the person's account name."""
|
|
18
17
|
return self.properties.get("AccountName", None)
|
|
19
18
|
|
|
20
19
|
@property
|
|
21
20
|
def email(self):
|
|
22
|
-
|
|
23
|
-
The Email property specifies the person's email address.
|
|
24
|
-
|
|
25
|
-
:rtype: str or None
|
|
26
|
-
"""
|
|
21
|
+
# type: () -> Optional[str]
|
|
22
|
+
"""The Email property specifies the person's email address."""
|
|
27
23
|
return self.properties.get("Email", None)
|
|
28
24
|
|
|
29
25
|
@property
|
|
30
26
|
def latest_post(self):
|
|
31
|
-
|
|
32
|
-
The LatestPost property specifies the person's latest microblog post.
|
|
33
|
-
|
|
34
|
-
:rtype: str or None
|
|
35
|
-
"""
|
|
27
|
+
# type: () -> Optional[str]
|
|
28
|
+
"""The LatestPost property specifies the person's latest microblog post."""
|
|
36
29
|
return self.properties.get("LatestPost", None)
|
|
37
30
|
|
|
38
31
|
@property
|
|
@@ -45,11 +38,8 @@ class PersonProperties(Entity):
|
|
|
45
38
|
|
|
46
39
|
@property
|
|
47
40
|
def personal_url(self):
|
|
48
|
-
|
|
49
|
-
The PersonalUrl property specifies the absolute URL of the person's personal page.
|
|
50
|
-
|
|
51
|
-
:rtype: str or None
|
|
52
|
-
"""
|
|
41
|
+
# type: () -> Optional[str]
|
|
42
|
+
"""The PersonalUrl property specifies the absolute URL of the person's personal page."""
|
|
53
43
|
return self.properties.get("PersonalUrl", None)
|
|
54
44
|
|
|
55
45
|
@property
|
|
@@ -70,20 +60,14 @@ class PersonProperties(Entity):
|
|
|
70
60
|
|
|
71
61
|
@property
|
|
72
62
|
def picture_url(self):
|
|
73
|
-
|
|
74
|
-
The PictureUrl property specifies the URL for the person's profile picture.
|
|
75
|
-
|
|
76
|
-
:rtype: str or None
|
|
77
|
-
"""
|
|
63
|
+
# type: () -> Optional[str]
|
|
64
|
+
"""The PictureUrl property specifies the URL for the person's profile picture."""
|
|
78
65
|
return self.properties.get("PictureUrl", None)
|
|
79
66
|
|
|
80
67
|
@property
|
|
81
68
|
def user_url(self):
|
|
82
|
-
|
|
83
|
-
The UserUrl property specifies the URL for the person's profile.
|
|
84
|
-
|
|
85
|
-
:rtype: str or None
|
|
86
|
-
"""
|
|
69
|
+
# type: () -> Optional[str]
|
|
70
|
+
"""The UserUrl property specifies the URL for the person's profile."""
|
|
87
71
|
return self.properties.get("UserUrl", None)
|
|
88
72
|
|
|
89
73
|
@property
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.paths.resource_path import ResourcePath
|
|
2
4
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
3
5
|
from office365.sharepoint.entity import Entity
|
|
@@ -21,9 +23,8 @@ class PersonalCache(Entity):
|
|
|
21
23
|
|
|
22
24
|
@property
|
|
23
25
|
def cache_name(self):
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"""
|
|
26
|
+
# type: () -> Optional[str]
|
|
27
|
+
""""""
|
|
27
28
|
return self.properties.get("CacheName", None)
|
|
28
29
|
|
|
29
30
|
@property
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.client_result import ClientResult
|
|
2
4
|
from office365.runtime.paths.service_operation import ServiceOperationPath
|
|
3
5
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
@@ -21,11 +23,8 @@ class UserProfilePropertiesForUser(Entity):
|
|
|
21
23
|
|
|
22
24
|
@property
|
|
23
25
|
def account_name(self):
|
|
24
|
-
|
|
25
|
-
The AccountName property specifies the account name of the user.
|
|
26
|
-
|
|
27
|
-
:rtype: str or None
|
|
28
|
-
"""
|
|
26
|
+
# type: () -> Optional[str]
|
|
27
|
+
"""The AccountName property specifies the account name of the user."""
|
|
29
28
|
return self.properties.get("AccountName", None)
|
|
30
29
|
|
|
31
30
|
@property
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
|
+
from typing import Optional
|
|
2
3
|
|
|
3
4
|
from office365.runtime.client_value_collection import ClientValueCollection
|
|
4
5
|
from office365.sharepoint.entity import Entity
|
|
@@ -12,41 +13,33 @@ class SharedWithMeDocument(Entity):
|
|
|
12
13
|
|
|
13
14
|
@property
|
|
14
15
|
def authors(self):
|
|
15
|
-
|
|
16
|
-
Specifies a list of users that authored the document.
|
|
17
|
-
"""
|
|
16
|
+
# type: () -> ClientValueCollection[SharedWithMeDocumentUser]
|
|
17
|
+
"""Specifies a list of users that authored the document."""
|
|
18
18
|
return self.properties.get(
|
|
19
19
|
"Authors", ClientValueCollection(SharedWithMeDocumentUser)
|
|
20
20
|
)
|
|
21
21
|
|
|
22
22
|
@property
|
|
23
23
|
def caller_stack(self):
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"""
|
|
24
|
+
# type: () -> Optional[str]
|
|
25
|
+
""" """
|
|
27
26
|
return self.properties.get("CallerStack", None)
|
|
28
27
|
|
|
29
28
|
@property
|
|
30
29
|
def content_type_id(self):
|
|
31
|
-
|
|
32
|
-
Specifies the identifier of the content type of the document.
|
|
33
|
-
:rtype: str
|
|
34
|
-
"""
|
|
30
|
+
# type: () -> Optional[str]
|
|
31
|
+
"""Specifies the identifier of the content type of the document."""
|
|
35
32
|
return self.properties.get("ContentTypeId", None)
|
|
36
33
|
|
|
37
34
|
@property
|
|
38
35
|
def doc_id(self):
|
|
39
|
-
|
|
40
|
-
Specifies the document identifier.
|
|
41
|
-
:rtype: str
|
|
42
|
-
"""
|
|
36
|
+
# type: () -> Optional[str]
|
|
37
|
+
"""Specifies the document identifier."""
|
|
43
38
|
return self.properties.get("DocId", None)
|
|
44
39
|
|
|
45
40
|
@property
|
|
46
41
|
def editors(self):
|
|
47
|
-
"""
|
|
48
|
-
Specifies a list of users that can edit the document.
|
|
49
|
-
"""
|
|
42
|
+
"""Specifies a list of users that can edit the document."""
|
|
50
43
|
return self.properties.get(
|
|
51
44
|
"Editors", ClientValueCollection(SharedWithMeDocumentUser)
|
|
52
45
|
)
|
|
@@ -58,10 +51,8 @@ class SharedWithMeDocument(Entity):
|
|
|
58
51
|
|
|
59
52
|
@property
|
|
60
53
|
def file_leaf_ref(self):
|
|
61
|
-
|
|
62
|
-
Specifies the name of the document.
|
|
63
|
-
:rtype: str
|
|
64
|
-
"""
|
|
54
|
+
# type: () -> Optional[str]
|
|
55
|
+
"""Specifies the name of the document."""
|
|
65
56
|
return self.properties.get("FileLeafRef", None)
|
|
66
57
|
|
|
67
58
|
@property
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import os
|
|
2
|
-
from typing import IO, TYPE_CHECKING, Callable
|
|
2
|
+
from typing import IO, TYPE_CHECKING, AnyStr, Callable
|
|
3
3
|
|
|
4
4
|
from office365.runtime.client_result import ClientResult
|
|
5
5
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
@@ -156,7 +156,8 @@ class MoveCopyUtil(Entity):
|
|
|
156
156
|
"""
|
|
157
157
|
import zipfile
|
|
158
158
|
|
|
159
|
-
def
|
|
159
|
+
def _get_relative_file_path(file):
|
|
160
|
+
# type: (File) -> str
|
|
160
161
|
return os.path.join(
|
|
161
162
|
file.parent_folder.serverRelativeUrl.replace(
|
|
162
163
|
remove_folder.serverRelativeUrl, ""
|
|
@@ -164,27 +165,26 @@ class MoveCopyUtil(Entity):
|
|
|
164
165
|
file.name,
|
|
165
166
|
)
|
|
166
167
|
|
|
167
|
-
def
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
168
|
+
def _download_file(file):
|
|
169
|
+
# type: (File) -> None
|
|
170
|
+
|
|
171
|
+
def _after_downloaded(result):
|
|
172
|
+
# type: (ClientResult[AnyStr]) -> None
|
|
173
|
+
filename = _get_relative_file_path(file)
|
|
174
|
+
if callable(after_file_downloaded):
|
|
175
|
+
after_file_downloaded(file)
|
|
176
|
+
with zipfile.ZipFile(
|
|
177
|
+
download_file.name, "a", zipfile.ZIP_DEFLATED
|
|
178
|
+
) as zf:
|
|
179
|
+
zf.writestr(filename, result.value)
|
|
180
|
+
|
|
181
|
+
file.get_content().after_execute(_after_downloaded)
|
|
177
182
|
|
|
178
183
|
def _download_folder(folder):
|
|
179
|
-
|
|
180
|
-
:type folder: office365.sharepoint.folders.folder.Folder
|
|
181
|
-
"""
|
|
184
|
+
# type: (Folder) -> None
|
|
182
185
|
|
|
183
186
|
def _download_files(rt):
|
|
184
|
-
[
|
|
185
|
-
file.get_content().after_execute(_after_downloaded, file)
|
|
186
|
-
for file in folder.files
|
|
187
|
-
]
|
|
187
|
+
[_download_file(file) for file in folder.files]
|
|
188
188
|
if recursive:
|
|
189
189
|
[_download_folder(sub_folder) for sub_folder in folder.folders]
|
|
190
190
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
1
3
|
from office365.sharepoint.entity import Entity
|
|
2
4
|
|
|
3
5
|
|
|
@@ -6,27 +8,22 @@ class UploadStatus(Entity):
|
|
|
6
8
|
|
|
7
9
|
@property
|
|
8
10
|
def expected_content_range(self):
|
|
11
|
+
# type: () -> Optional[str]
|
|
9
12
|
"""The string representation of the byte offset of the stream uploaded in chunk upload session that the
|
|
10
13
|
next ContinueUpload (3.2.5.64.2.1.17) call uses to continue chunk upload.
|
|
11
|
-
|
|
12
|
-
:rtype: str or None
|
|
13
14
|
"""
|
|
14
15
|
return self.properties.get("ExpectedContentRange", None)
|
|
15
16
|
|
|
16
17
|
@property
|
|
17
18
|
def expiration_date_time(self):
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
:rtype: str or None
|
|
21
|
-
"""
|
|
19
|
+
# type: () -> Optional[str]
|
|
20
|
+
"""The earliest time at which the chunk upload session will be automatically expired and then deleted."""
|
|
22
21
|
return self.properties.get("ExpirationDateTime", None)
|
|
23
22
|
|
|
24
23
|
@property
|
|
25
24
|
def upload_id(self):
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
:rtype: str or None
|
|
29
|
-
"""
|
|
25
|
+
# type: () -> Optional[str]
|
|
26
|
+
"""Unique Id of the chunk session upload."""
|
|
30
27
|
return self.properties.get("UploadId", None)
|
|
31
28
|
|
|
32
29
|
@property
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import List, Optional
|
|
2
|
+
|
|
1
3
|
from office365.runtime.queries.service_operation import ServiceOperationQuery
|
|
2
4
|
from office365.sharepoint.entity import Entity
|
|
3
5
|
|
|
@@ -12,10 +14,8 @@ class ViewFieldCollection(Entity):
|
|
|
12
14
|
return len(self.items)
|
|
13
15
|
|
|
14
16
|
def __getitem__(self, index):
|
|
15
|
-
|
|
16
|
-
Gets view field by index
|
|
17
|
-
:param int index: Index
|
|
18
|
-
"""
|
|
17
|
+
# type: (int) -> str
|
|
18
|
+
"""Gets view field by index"""
|
|
19
19
|
return self.items[index]
|
|
20
20
|
|
|
21
21
|
def __repr__(self):
|
|
@@ -23,17 +23,14 @@ class ViewFieldCollection(Entity):
|
|
|
23
23
|
|
|
24
24
|
@property
|
|
25
25
|
def schema_xml(self):
|
|
26
|
-
|
|
27
|
-
Gets Schema Xml.
|
|
28
|
-
:rtype: str or None
|
|
29
|
-
"""
|
|
26
|
+
# type: () -> Optional[str]
|
|
27
|
+
"""Gets Schema Xml."""
|
|
30
28
|
return self.properties.get("SchemaXml", None)
|
|
31
29
|
|
|
32
30
|
@property
|
|
33
31
|
def items(self):
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"""
|
|
32
|
+
# type: () -> Optional[List[str]]
|
|
33
|
+
"""Gets items."""
|
|
37
34
|
return self.properties.get("Items", None)
|
|
38
35
|
|
|
39
36
|
def set_property(self, name, value, persist_changes=False):
|
|
@@ -63,9 +60,7 @@ class ViewFieldCollection(Entity):
|
|
|
63
60
|
return self
|
|
64
61
|
|
|
65
62
|
def remove_all_view_fields(self):
|
|
66
|
-
"""
|
|
67
|
-
Removes all the fields from the collection.
|
|
68
|
-
"""
|
|
63
|
+
"""Removes all the fields from the collection."""
|
|
69
64
|
qry = ServiceOperationQuery(self, "RemoveAllViewFields")
|
|
70
65
|
self.context.add_query(qry)
|
|
71
66
|
return self
|