-
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
573 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
from office365.runtime.queries.service_operation import ServiceOperationQuery | ||
from office365.sharepoint.base_entity import BaseEntity | ||
from office365.sharepoint.folders.folder import Folder | ||
|
||
|
||
class FolderColoring(BaseEntity): | ||
"""""" | ||
|
||
def create_folder(self, decoded_url, ensure_unique_file_name, overwrite, coloring_information): | ||
""" | ||
:param str decoded_url: | ||
:param bool ensure_unique_file_name: | ||
:param bool overwrite: | ||
:param FolderColoringInformation coloring_information: | ||
""" | ||
return_type = Folder(self.context) | ||
|
||
payload = { | ||
"DecodedUrl": decoded_url, | ||
"EnsureUniqueFileName": ensure_unique_file_name, | ||
"Overwrite": overwrite, | ||
"coloringInformation": coloring_information | ||
} | ||
qry = ServiceOperationQuery(self, "CreateFolder", parameters_type=payload, return_type=return_type) | ||
self.context.add_query(qry) | ||
return return_type | ||
|
||
def stamp_color(self, decoded_url, coloring_information): | ||
""" | ||
:param str decoded_url: | ||
:param FolderColoringInformation coloring_information: | ||
""" | ||
payload = { | ||
"DecodedUrl": decoded_url, | ||
"coloringInformation": coloring_information | ||
} | ||
qry = ServiceOperationQuery(self, "StampColor", parameters_type=payload) | ||
self.context.add_query(qry) | ||
return self |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from office365.runtime.client_value import ClientValue | ||
|
||
|
||
class ColoringInformation(ClientValue): | ||
"""""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from office365.runtime.client_value import ClientValue | ||
|
||
|
||
class SignInActivity(ClientValue): | ||
"""Provides the last interactive or non-interactive sign-in time for a specific user. Since signInActivity | ||
describes a property of the user object, Azure AD stores sign in activity for your users for as long as the | ||
user object exists.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters