Skip to content

Commit

Permalink
README.md update
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrem committed Aug 8, 2024
1 parent 59e07c7 commit 2d6d934
Show file tree
Hide file tree
Showing 8 changed files with 1,072 additions and 591 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,4 +444,9 @@ The following libraries will be installed when you install the client library:
* [Microsoft Authentication Library (MSAL) for Python](https://pypi.org/project/msal/)


# ThanksTo

Powerful Python IDE [`Pycharm`](https://www.jetbrains.com/pycharm) from [`Jetbrains`](https://jb.gg/OpenSourceSupport).

[<img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg">](https://jb.gg/OpenSourceSupport)

1,601 changes: 1,017 additions & 584 deletions generator/metadata/MicrosoftGraph.xml

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions office365/onedrive/idle_session_signout.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from office365.runtime.client_value import ClientValue


class IdleSessionSignOut(ClientValue):
"""Represents the idle session sign-out policy settings for SharePoint."""

def __init__(
self,
is_enabled=None,
sign_out_after_in_seconds=None,
warn_after_in_seconds=None,
):
self.isEnabled = is_enabled
self.signOutAfterInSeconds = sign_out_after_in_seconds
self.warnAfterInSeconds = warn_after_in_seconds
13 changes: 13 additions & 0 deletions office365/onedrive/sharepoint_settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Optional

from office365.entity import Entity
from office365.onedrive.idle_session_signout import IdleSessionSignOut
from office365.runtime.types.collections import StringCollection


Expand All @@ -26,6 +27,18 @@ def excluded_file_extensions_for_sync_app(self):
"excludedFileExtensionsForSyncApp", StringCollection()
)

@property
def idle_session_sign_out(self):
# type: () -> IdleSessionSignOut
"""Specifies the idle session sign-out policies for the tenant."""
return self.properties.get("idleSessionSignOut", IdleSessionSignOut())

@property
def is_commenting_on_site_pages_enabled(self):
# type: () -> Optional[bool]
"""Indicates whether comments are allowed on modern site pages in SharePoint."""
return self.properties.get("isCommentingOnSitePagesEnabled", None)

@property
def site_creation_default_managed_path(self):
# type: () -> Optional[str]
Expand Down
20 changes: 15 additions & 5 deletions office365/onedrive/sitepages/title_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@
class TitleArea(ClientValue):
"""Represents the title area of a given SharePoint page."""

def __init__(self, alternativeText=None, enableGradientEffect=None):
def __init__(
self,
alternative_text=None,
enable_gradient_effect=None,
image_web_url=None,
show_author=None,
):
"""
:param str alternativeText: Alternative text on the title area.
:param bool enableGradientEffect: Indicates whether the title area has a gradient effect enabled.
:param str alternative_text: Alternative text on the title area.
:param bool enable_gradient_effect: Indicates whether the title area has a gradient effect enabled.
:param str image_web_url:
:param bool show_author:
"""
self.alternativeText = alternativeText
self.enableGradientEffect = enableGradientEffect
self.alternativeText = alternative_text
self.enableGradientEffect = enable_gradient_effect
self.imageWebUrl = image_web_url
self.showAuthor = show_author
2 changes: 1 addition & 1 deletion office365/outlook/calendar/sharing_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class CalendarSharingMessage(Message):

@property
def sharing_message_action(self):
"""The CC: recipients for the message."""
""""""
return self.properties.setdefault(
"sharingMessageAction", CalendarSharingMessageAction()
)
Expand Down
5 changes: 5 additions & 0 deletions office365/outlook/mail/messages/rules/predicates.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def __init__(
from_addresses=None,
has_attachments=None,
header_contains=None,
importance=None,
is_approval_request=None,
):
"""
:param list[str] body_contains: Represents the strings that should appear in the body of an incoming message
Expand All @@ -28,10 +30,13 @@ def __init__(
:param bool has_attachments: Indicates whether an incoming message must have attachments in order for the
condition or exception to apply.
:param list[str] header_contains:
:param bool is_approval_request:
"""
self.bodyContains = StringCollection(body_contains)
self.bodyOrSubjectContains = StringCollection(body_or_subject_contains)
self.categories = StringCollection(categories)
self.fromAddresses = ClientValueCollection(Recipient, from_addresses)
self.hasAttachments = has_attachments
self.headerContains = StringCollection(header_contains)
self.importance = importance
self.isApprovalRequest = is_approval_request
2 changes: 1 addition & 1 deletion office365/sharepoint/publishing/pages/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def is_site_page(self, url):
return return_type

def get_page_column_state(self, url):
""" "
"""
Determines whether a specific SitePage is a single or multicolumn page.
:param str url: URL of the SitePage for which to return state.
Expand Down

0 comments on commit 2d6d934

Please sign in to comment.