File tree Expand file tree Collapse file tree 8 files changed +1072
-591
lines changed
sharepoint/publishing/pages Expand file tree Collapse file tree 8 files changed +1072
-591
lines changed Original file line number Diff line number Diff line change @@ -444,4 +444,9 @@ The following libraries will be installed when you install the client library:
444444* [ Microsoft Authentication Library (MSAL) for Python] ( https://pypi.org/project/msal/ )
445445
446446
447+ # ThanksTo
448+
449+ Powerful Python IDE [ ` Pycharm ` ] ( https://www.jetbrains.com/pycharm ) from [ ` Jetbrains ` ] ( https://jb.gg/OpenSourceSupport ) .
450+
451+ [ <img src =" https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg " >] ( https://jb.gg/OpenSourceSupport )
447452
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ from office365 .runtime .client_value import ClientValue
2+
3+
4+ class IdleSessionSignOut (ClientValue ):
5+ """Represents the idle session sign-out policy settings for SharePoint."""
6+
7+ def __init__ (
8+ self ,
9+ is_enabled = None ,
10+ sign_out_after_in_seconds = None ,
11+ warn_after_in_seconds = None ,
12+ ):
13+ self .isEnabled = is_enabled
14+ self .signOutAfterInSeconds = sign_out_after_in_seconds
15+ self .warnAfterInSeconds = warn_after_in_seconds
Original file line number Diff line number Diff line change 11from typing import Optional
22
33from office365 .entity import Entity
4+ from office365 .onedrive .idle_session_signout import IdleSessionSignOut
45from office365 .runtime .types .collections import StringCollection
56
67
@@ -26,6 +27,18 @@ def excluded_file_extensions_for_sync_app(self):
2627 "excludedFileExtensionsForSyncApp" , StringCollection ()
2728 )
2829
30+ @property
31+ def idle_session_sign_out (self ):
32+ # type: () -> IdleSessionSignOut
33+ """Specifies the idle session sign-out policies for the tenant."""
34+ return self .properties .get ("idleSessionSignOut" , IdleSessionSignOut ())
35+
36+ @property
37+ def is_commenting_on_site_pages_enabled (self ):
38+ # type: () -> Optional[bool]
39+ """Indicates whether comments are allowed on modern site pages in SharePoint."""
40+ return self .properties .get ("isCommentingOnSitePagesEnabled" , None )
41+
2942 @property
3043 def site_creation_default_managed_path (self ):
3144 # type: () -> Optional[str]
Original file line number Diff line number Diff line change 44class TitleArea (ClientValue ):
55 """Represents the title area of a given SharePoint page."""
66
7- def __init__ (self , alternativeText = None , enableGradientEffect = None ):
7+ def __init__ (
8+ self ,
9+ alternative_text = None ,
10+ enable_gradient_effect = None ,
11+ image_web_url = None ,
12+ show_author = None ,
13+ ):
814 """
9- :param str alternativeText: Alternative text on the title area.
10- :param bool enableGradientEffect: Indicates whether the title area has a gradient effect enabled.
15+ :param str alternative_text: Alternative text on the title area.
16+ :param bool enable_gradient_effect: Indicates whether the title area has a gradient effect enabled.
17+ :param str image_web_url:
18+ :param bool show_author:
1119 """
12- self .alternativeText = alternativeText
13- self .enableGradientEffect = enableGradientEffect
20+ self .alternativeText = alternative_text
21+ self .enableGradientEffect = enable_gradient_effect
22+ self .imageWebUrl = image_web_url
23+ self .showAuthor = show_author
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class CalendarSharingMessage(Message):
99
1010 @property
1111 def sharing_message_action (self ):
12- """The CC: recipients for the message. """
12+ """"""
1313 return self .properties .setdefault (
1414 "sharingMessageAction" , CalendarSharingMessageAction ()
1515 )
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ def __init__(
1515 from_addresses = None ,
1616 has_attachments = None ,
1717 header_contains = None ,
18+ importance = None ,
19+ is_approval_request = None ,
1820 ):
1921 """
2022 :param list[str] body_contains: Represents the strings that should appear in the body of an incoming message
@@ -28,10 +30,13 @@ def __init__(
2830 :param bool has_attachments: Indicates whether an incoming message must have attachments in order for the
2931 condition or exception to apply.
3032 :param list[str] header_contains:
33+ :param bool is_approval_request:
3134 """
3235 self .bodyContains = StringCollection (body_contains )
3336 self .bodyOrSubjectContains = StringCollection (body_or_subject_contains )
3437 self .categories = StringCollection (categories )
3538 self .fromAddresses = ClientValueCollection (Recipient , from_addresses )
3639 self .hasAttachments = has_attachments
3740 self .headerContains = StringCollection (header_contains )
41+ self .importance = importance
42+ self .isApprovalRequest = is_approval_request
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def is_site_page(self, url):
6262 return return_type
6363
6464 def get_page_column_state (self , url ):
65- """ "
65+ """
6666 Determines whether a specific SitePage is a single or multicolumn page.
6767
6868 :param str url: URL of the SitePage for which to return state.
You can’t perform that action at this time.
0 commit comments