Office365-REST-Python-Client 2.5.6__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.6.dist-info → Office365_REST_Python_Client-2.5.7.dist-info}/METADATA +5 -5
- {Office365_REST_Python_Client-2.5.6.dist-info → Office365_REST_Python_Client-2.5.7.dist-info}/RECORD +85 -58
- office365/directory/administrative_unit.py +9 -2
- office365/directory/applications/roles/collection.py +5 -1
- office365/directory/applications/roles/role.py +1 -1
- office365/directory/audit/provisioning/object_summary.py +30 -1
- office365/directory/authentication/methods/fido.py +8 -0
- office365/directory/authentication/methods/password.py +23 -0
- 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/identitygovernance/appconsent/request_collection.py +1 -1
- 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/policies/device_registration.py +6 -0
- office365/directory/policies/root.py +13 -0
- office365/directory/security/threatintelligence/article_indicator.py +7 -0
- office365/directory/serviceprincipals/service_principal.py +3 -8
- office365/directory/synchronization/schema.py +16 -0
- office365/directory/users/user.py +23 -0
- office365/onedrive/driveitems/driveItem.py +74 -6
- office365/onedrive/lists/list.py +1 -1
- 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/workbooks/charts/data_labels.py +13 -1
- office365/onedrive/workbooks/tables/sort.py +5 -0
- office365/onedrive/workbooks/tables/table.py +57 -0
- office365/onedrive/workbooks/worksheets/protection.py +20 -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/response_status.py +11 -0
- office365/outlook/calendar/rooms/room.py +14 -0
- 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/tips.py +17 -0
- office365/planner/plans/plan.py +11 -1
- office365/reports/root.py +33 -0
- office365/runtime/auth/authentication_context.py +12 -2
- office365/runtime/odata/json_format.py +3 -2
- office365/runtime/odata/request.py +12 -2
- office365/runtime/queries/upload_session.py +5 -0
- office365/sharepoint/alerts/collection.py +2 -1
- office365/sharepoint/attachments/attachment.py +3 -9
- office365/sharepoint/client_context.py +4 -2
- office365/sharepoint/contenttypes/content_type.py +13 -1
- office365/sharepoint/contenttypes/fieldlinks/collection.py +1 -1
- office365/sharepoint/directory/helper.py +2 -0
- office365/sharepoint/fields/collection.py +4 -3
- office365/sharepoint/folders/folder.py +1 -3
- 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/principal/principal.py +2 -4
- 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/permission_collection.py +18 -0
- office365/sharepoint/sites/script_safe_domain.py +5 -0
- office365/sharepoint/sites/site.py +10 -4
- office365/sharepoint/taxonomy/field_value.py +1 -1
- office365/sharepoint/tenant/administration/powerapps/__init__.py +0 -0
- office365/sharepoint/tenant/administration/powerapps/environment_context.py +8 -0
- office365/sharepoint/webs/information_collection.py +1 -1
- office365/sharepoint/webs/regional_settings.py +71 -0
- office365/sharepoint/webs/web.py +10 -5
- office365/teams/apps/catalog.py +1 -0
- office365/teams/chats/chat.py +4 -0
- office365/teams/schedule/schedule.py +6 -2
- {Office365_REST_Python_Client-2.5.6.dist-info → Office365_REST_Python_Client-2.5.7.dist-info}/LICENSE +0 -0
- {Office365_REST_Python_Client-2.5.6.dist-info → Office365_REST_Python_Client-2.5.7.dist-info}/WHEEL +0 -0
- {Office365_REST_Python_Client-2.5.6.dist-info → Office365_REST_Python_Client-2.5.7.dist-info}/top_level.txt +0 -0
|
@@ -9,6 +9,30 @@ from office365.sharepoint.webs.time_zone import TimeZone, TimeZoneCollection
|
|
|
9
9
|
class RegionalSettings(Entity):
|
|
10
10
|
"""Represents regional settings that are used on the server that is running SharePoint Server."""
|
|
11
11
|
|
|
12
|
+
@property
|
|
13
|
+
def adjust_hijri_days(self):
|
|
14
|
+
# type: () -> Optional[int]
|
|
15
|
+
"""Specifies the number of days to extend or reduce the current month in Hijri calendars on the site"""
|
|
16
|
+
return self.properties.get("AdjustHijriDays", None)
|
|
17
|
+
|
|
18
|
+
@property
|
|
19
|
+
def alternate_calendar_type(self):
|
|
20
|
+
# type: () -> Optional[int]
|
|
21
|
+
"""Gets an alternate calendar type that is used on the site"""
|
|
22
|
+
return self.properties.get("AlternateCalendarType", None)
|
|
23
|
+
|
|
24
|
+
@property
|
|
25
|
+
def am(self):
|
|
26
|
+
# type: () -> Optional[str]
|
|
27
|
+
"""Specifies the string that is used to represent time before midday on the site"""
|
|
28
|
+
return self.properties.get("AM", None)
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def calendar_type(self):
|
|
32
|
+
# type: () -> Optional[int]
|
|
33
|
+
"""Specifies the calendar type that SHOULD be used when processing date values on the site"""
|
|
34
|
+
return self.properties.get("CalendarType", None)
|
|
35
|
+
|
|
12
36
|
@property
|
|
13
37
|
def collation(self):
|
|
14
38
|
# type: () -> Optional[int]
|
|
@@ -19,12 +43,59 @@ class RegionalSettings(Entity):
|
|
|
19
43
|
"""
|
|
20
44
|
return self.properties.get("Collation", None)
|
|
21
45
|
|
|
46
|
+
@property
|
|
47
|
+
def collation_lcid(self):
|
|
48
|
+
# type: () -> Optional[int]
|
|
49
|
+
"""Gets the language code identifier (LCID) for the collation rules that are used on the site"""
|
|
50
|
+
return self.properties.get("CollationLCID", None)
|
|
51
|
+
|
|
22
52
|
@property
|
|
23
53
|
def date_format(self):
|
|
24
54
|
# type: () -> Optional[int]
|
|
25
55
|
"""Gets the date format that is used on the server."""
|
|
26
56
|
return self.properties.get("DateFormat", None)
|
|
27
57
|
|
|
58
|
+
@property
|
|
59
|
+
def date_separator(self):
|
|
60
|
+
# type: () -> Optional[str]
|
|
61
|
+
"""Gets the separator that is used for dates on the server."""
|
|
62
|
+
return self.properties.get("DateSeparator", None)
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def decimal_separator(self):
|
|
66
|
+
# type: () -> Optional[str]
|
|
67
|
+
"""Gets the separator that is used for decimals on the server."""
|
|
68
|
+
return self.properties.get("DecimalSeparator", None)
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def digit_grouping(self):
|
|
72
|
+
# type: () -> Optional[str]
|
|
73
|
+
"""Gets the separator that is used in grouping digits."""
|
|
74
|
+
return self.properties.get("DigitGrouping", None)
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def first_day_of_week(self):
|
|
78
|
+
# type: () -> Optional[int]
|
|
79
|
+
"""Specifies the first day of the week used in calendars on the server.
|
|
80
|
+
The possible values are specified in the following table:
|
|
81
|
+
|
|
82
|
+
- 0 Sunday
|
|
83
|
+
- 1 Monday
|
|
84
|
+
- 2 Tuesday
|
|
85
|
+
- 3 Wednesday
|
|
86
|
+
- 4 Thursday
|
|
87
|
+
- 5 Friday
|
|
88
|
+
- 6 Saturday
|
|
89
|
+
"""
|
|
90
|
+
return self.properties.get("FirstDayOfWeek", None)
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
def first_week_of_year(self):
|
|
94
|
+
# type: () -> Optional[int]
|
|
95
|
+
"""Specifies the first week of the year used in calendars on the server.
|
|
96
|
+
Specifies which week of a year is considered the first week."""
|
|
97
|
+
return self.properties.get("FirstWeekOfYear", None)
|
|
98
|
+
|
|
28
99
|
@property
|
|
29
100
|
def locale_id(self):
|
|
30
101
|
# type: () -> Optional[int]
|
office365/sharepoint/webs/web.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
2
|
import datetime
|
|
3
|
-
from typing import AnyStr, Optional
|
|
3
|
+
from typing import TYPE_CHECKING, AnyStr, Optional
|
|
4
4
|
|
|
5
5
|
from office365.runtime.client_result import ClientResult
|
|
6
6
|
from office365.runtime.client_value_collection import ClientValueCollection
|
|
@@ -106,6 +106,9 @@ from office365.sharepoint.webs.regional_settings import RegionalSettings
|
|
|
106
106
|
from office365.sharepoint.webs.template_collection import WebTemplateCollection
|
|
107
107
|
from office365.sharepoint.webs.theme_info import ThemeInfo
|
|
108
108
|
|
|
109
|
+
if TYPE_CHECKING:
|
|
110
|
+
from office365.sharepoint.client_context import ClientContext
|
|
111
|
+
|
|
109
112
|
|
|
110
113
|
class Web(SecurableObject):
|
|
111
114
|
"""
|
|
@@ -549,7 +552,9 @@ class Web(SecurableObject):
|
|
|
549
552
|
:param int order_by: the column by which to order the Recycle Bin query.
|
|
550
553
|
:param int item_state: Recycle Bin stage of items to return in the query.
|
|
551
554
|
"""
|
|
552
|
-
return_type = RecycleBinItemCollection(
|
|
555
|
+
return_type = RecycleBinItemCollection(
|
|
556
|
+
self.context, self.recycle_bin.resource_path
|
|
557
|
+
)
|
|
553
558
|
payload = {
|
|
554
559
|
"rowLimit": row_limit,
|
|
555
560
|
"isAscending": is_ascending,
|
|
@@ -651,15 +656,14 @@ class Web(SecurableObject):
|
|
|
651
656
|
return return_type
|
|
652
657
|
|
|
653
658
|
def get_sharing_link_data(self, link_url):
|
|
659
|
+
# type: (str) -> ClientResult[SharingLinkData]
|
|
654
660
|
"""
|
|
655
661
|
This method determines basic information about the supplied link URL, including limited data about the object
|
|
656
662
|
the link URL refers to and any additional sharing link data if the link URL is a tokenized sharing link
|
|
657
663
|
|
|
658
664
|
:param str link_url: A URL that is either a tokenized sharing link or a canonical URL for a document
|
|
659
665
|
"""
|
|
660
|
-
return_type = ClientResult(
|
|
661
|
-
self.context, SharingLinkData()
|
|
662
|
-
) # type: ClientResult[SharingLinkData]
|
|
666
|
+
return_type = ClientResult(self.context, SharingLinkData())
|
|
663
667
|
payload = {"linkUrl": link_url}
|
|
664
668
|
qry = ServiceOperationQuery(
|
|
665
669
|
self, "GetSharingLinkData", None, payload, None, return_type
|
|
@@ -669,6 +673,7 @@ class Web(SecurableObject):
|
|
|
669
673
|
|
|
670
674
|
@staticmethod
|
|
671
675
|
def get_context_web_theme_data(context):
|
|
676
|
+
# type: (ClientContext) -> ClientResult[str]
|
|
672
677
|
"""
|
|
673
678
|
Get ThemeData for the context web.
|
|
674
679
|
|
office365/teams/apps/catalog.py
CHANGED
office365/teams/chats/chat.py
CHANGED
|
@@ -41,6 +41,7 @@ class Chat(Entity):
|
|
|
41
41
|
|
|
42
42
|
@property
|
|
43
43
|
def members(self):
|
|
44
|
+
# type: () -> ConversationMemberCollection
|
|
44
45
|
"""A collection of membership records associated with the chat."""
|
|
45
46
|
return self.properties.setdefault(
|
|
46
47
|
"members",
|
|
@@ -51,6 +52,7 @@ class Chat(Entity):
|
|
|
51
52
|
|
|
52
53
|
@property
|
|
53
54
|
def messages(self):
|
|
55
|
+
# type: () -> EntityCollection[ChatMessage]
|
|
54
56
|
"""A collection of all the messages in the chat. Nullable."""
|
|
55
57
|
return self.properties.get(
|
|
56
58
|
"messages",
|
|
@@ -61,6 +63,7 @@ class Chat(Entity):
|
|
|
61
63
|
|
|
62
64
|
@property
|
|
63
65
|
def operations(self):
|
|
66
|
+
# type: () -> EntityCollection[TeamsAsyncOperation]
|
|
64
67
|
"""
|
|
65
68
|
A collection of all the Teams async operations that ran or are running on the chat. Nullable.
|
|
66
69
|
"""
|
|
@@ -75,6 +78,7 @@ class Chat(Entity):
|
|
|
75
78
|
|
|
76
79
|
@property
|
|
77
80
|
def tabs(self):
|
|
81
|
+
# type: () -> EntityCollection[TeamsTab]
|
|
78
82
|
"""A collection of all the tabs in the chat."""
|
|
79
83
|
return self.properties.get(
|
|
80
84
|
"tabs",
|
|
@@ -22,6 +22,7 @@ class Schedule(Entity):
|
|
|
22
22
|
|
|
23
23
|
@property
|
|
24
24
|
def open_shift_change_requests(self):
|
|
25
|
+
# type: () -> EntityCollection[OpenShiftChangeRequest]
|
|
25
26
|
"""The shifts in the shifts."""
|
|
26
27
|
return self.properties.get(
|
|
27
28
|
"openShiftChangeRequests",
|
|
@@ -34,6 +35,7 @@ class Schedule(Entity):
|
|
|
34
35
|
|
|
35
36
|
@property
|
|
36
37
|
def shifts(self):
|
|
38
|
+
# type: () -> EntityCollection[Shift]
|
|
37
39
|
"""The shifts in the shifts."""
|
|
38
40
|
return self.properties.get(
|
|
39
41
|
"shifts",
|
|
@@ -43,7 +45,8 @@ class Schedule(Entity):
|
|
|
43
45
|
)
|
|
44
46
|
|
|
45
47
|
@property
|
|
46
|
-
def
|
|
48
|
+
def scheduling_groups(self):
|
|
49
|
+
# type: () -> EntityCollection[SchedulingGroup]
|
|
47
50
|
"""The logical grouping of users in the shifts (usually by role)."""
|
|
48
51
|
return self.properties.get(
|
|
49
52
|
"schedulingGroups",
|
|
@@ -56,6 +59,7 @@ class Schedule(Entity):
|
|
|
56
59
|
|
|
57
60
|
@property
|
|
58
61
|
def time_off_reasons(self):
|
|
62
|
+
# type: () -> EntityCollection[TimeOffReason]
|
|
59
63
|
"""The set of reasons for a time off in the schedule."""
|
|
60
64
|
return self.properties.get(
|
|
61
65
|
"timeOffReasons",
|
|
@@ -70,7 +74,7 @@ class Schedule(Entity):
|
|
|
70
74
|
if default_value is None:
|
|
71
75
|
property_mapping = {
|
|
72
76
|
"openShiftChangeRequests": self.open_shift_change_requests,
|
|
73
|
-
"schedulingGroups": self.
|
|
77
|
+
"schedulingGroups": self.scheduling_groups,
|
|
74
78
|
"timeOffReasons": self.time_off_reasons,
|
|
75
79
|
}
|
|
76
80
|
default_value = property_mapping.get(name, None)
|
|
File without changes
|
{Office365_REST_Python_Client-2.5.6.dist-info → Office365_REST_Python_Client-2.5.7.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|