예제 #1
0
 def list(self):
     """For drives in SharePoint, the underlying document library list.
     """
     return self.properties.get(
         'list', List(self.context, ResourcePath("list",
                                                 self.resource_path)))
예제 #2
0
 def sets(self):
     """Collection of all sets available in the term store."""
     return self.properties.get(
         'sets',
         SetCollection(self.context,
                       ResourcePath("sets", self.resource_path), self))
예제 #3
0
 def file(self):
     """Get file"""
     from office365.sharepoint.files.file import File
     return self.properties.get(
         "File", File(self.context, ResourcePath("File",
                                                 self.resource_path)))
예제 #4
0
 def messages(self):
     """The collection of messages in the mailFolder."""
     return self.properties.get(
         'messages',
         EntityCollection(self.context, Message,
                          ResourcePath("messages", self.resource_path)))
예제 #5
0
 def quick_launch(self):
     """Gets a value that collects navigation nodes corresponding to links in the Quick Launch area of the site."""
     return self.properties.get(
         'QuickLaunch',
         NavigationNodeCollection(
             self.context, ResourcePath("QuickLaunch", self.resource_path)))
 def __init__(self, context):
     super(SocialRestThread,
           self).__init__(context,
                          ResourcePath("SP.Social.SocialRestThread"))
예제 #7
0
 def child_folders(self):
     """The collection of child folders in the mailFolder. """
     return self.properties.get(
         'childFolders',
         EntityCollection(self.context, MailFolder,
                          ResourcePath("childFolders", self.resource_path)))
예제 #8
0
 def user(self):
     """Gets user object that represents User for the alert."""
     from office365.sharepoint.principal.user import User
     return self.properties.get(
         'User', User(self.context, ResourcePath("user",
                                                 self.resource_path)))
예제 #9
0
 def parent_notebook(self):
     """The notebook that contains the section group. Read-only."""
     return self.get_property('parentNotebook',
                              Notebook(self.context, ResourcePath("parentNotebook", self.resource_path)))
예제 #10
0
 def instances(self):
     """The collection of open extensions defined for the event. Nullable."""
     return self.properties.get(
         'instances',
         EntityCollection(self.context, Event,
                          ResourcePath("instances", self.resource_path)))
예제 #11
0
 def list(self):
     """Gets list object that represents List for the alert."""
     from office365.sharepoint.lists.list import List
     return self.properties.get(
         'List', List(self.context, ResourcePath("list",
                                                 self.resource_path)))
예제 #12
0
 def attachments(self):
     """The collection of fileAttachment and itemAttachment attachments for the event. """
     return self.properties.get(
         'attachments',
         AttachmentCollection(
             self.context, ResourcePath("attachments", self.resource_path)))
예제 #13
0
 def special(self):
     """Collection of common folders available in OneDrive. Read-only. Nullable."""
     return self.properties.get(
         'special',
         EntityCollection(self.context, DriveItem,
                          ResourcePath("special", self.resource_path)))
예제 #14
0
 def items(self):
     """All items contained in the drive."""
     return self.properties.get(
         'items',
         EntityCollection(self.context, DriveItem,
                          ResourcePath("items", self.resource_path)))
예제 #15
0
 def __init__(self, context):
     super(SharingUtility, self).__init__(context, ResourcePath("SharingUtility"))
 def list(self):
     """Used to access the underlying list"""
     return self.properties.get(
         'list', List(self.context, ResourcePath("list",
                                                 self.resource_path)))
예제 #17
0
 def versions(self):
     """Gets the collection of item version objects that represent the versions of the item."""
     return self.properties.get(
         'Versions',
         BaseEntityCollection(self.context, ListItemVersion,
                              ResourcePath("versions", self.resource_path)))
 def site(self):
     """Used to access the underlying site"""
     return self.properties.get(
         'site', Site(self.context, ResourcePath("site",
                                                 self.resource_path)))
예제 #19
0
 def protection(self):
     """Returns the format protection object for a range """
     return self.properties.get('protection',
                                WorkbookFormatProtection(self.context,
                                                         ResourcePath("protection", self.resource_path)))
 def permission(self):
     """Used to access the permission representing the underlying sharing link"""
     return self.properties.get(
         'permission',
         Permission(self.context,
                    ResourcePath("permission", self.resource_path)))
예제 #21
0
 def message_rules(self):
     return self.properties.get(
         'messageRules',
         EntityCollection(self.context, MessageRule,
                          ResourcePath("messageRules", self.resource_path)))
예제 #22
0
 def test2_build_resource_path(self):
     path = RootPath(ResourcePath("drive", self.client.me.resource_path))
     self.assertEqual(path.to_url(), "/me/drive/root")
예제 #23
0
 def extensions(self):
     """The collection of open extensions defined for the message. Nullable."""
     return self.properties.get('extensions',
                                EntityCollection(self.context, Extension,
                                                 ResourcePath("extensions", self.resource_path)))
예제 #24
0
 def test3_build_url_resource_path(self):
     path = UrlPath(
         "Sample.docx",
         ResourcePath("root",
                      ResourcePath("drive", self.client.me.resource_path)))
     self.assertEqual(path.to_url(), "/me/drive/root:/Sample.docx:/")
예제 #25
0
 def teams_app(self):
     """The app that is installed."""
     return self.properties.get(
         "teamsApp",
         TeamsApp(self.context, ResourcePath("teamsApp",
                                             self.resource_path)))
예제 #26
0
 def __init__(self, context):
     super(SPHubSitesUtility, self).__init__(
         context,
         ResourcePath("Microsoft.SharePoint.Portal.SPHubSitesUtility"))
예제 #27
0
 def parent_list(self):
     """Get parent List"""
     from office365.sharepoint.lists.list import List
     return self.properties.get(
         "ParentList",
         List(self.context, ResourcePath("ParentList", self.resource_path)))
예제 #28
0
 def __init__(self, context):
     super(Utility, self).__init__(context, ResourcePath("SP.Utilities.Utility"))
예제 #29
0
 def folder(self):
     """Get folder"""
     from office365.sharepoint.folders.folder import Folder
     return self.properties.get(
         "Folder",
         Folder(self.context, ResourcePath("Folder", self.resource_path)))
예제 #30
0
 def worksheets(self):
     """Represents a collection of worksheets associated with the workbook. Read-only."""
     return self.properties.get('worksheets',
                                WorkbookWorksheetCollection(self.context,
                                                            ResourcePath("worksheets", self.resource_path)))