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)))
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))
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)))
def messages(self): """The collection of messages in the mailFolder.""" return self.properties.get( 'messages', EntityCollection(self.context, Message, ResourcePath("messages", self.resource_path)))
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"))
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)))
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)))
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)))
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)))
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)))
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)))
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)))
def items(self): """All items contained in the drive.""" return self.properties.get( 'items', EntityCollection(self.context, DriveItem, ResourcePath("items", self.resource_path)))
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)))
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)))
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)))
def message_rules(self): return self.properties.get( 'messageRules', EntityCollection(self.context, MessageRule, ResourcePath("messageRules", self.resource_path)))
def test2_build_resource_path(self): path = RootPath(ResourcePath("drive", self.client.me.resource_path)) self.assertEqual(path.to_url(), "/me/drive/root")
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)))
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:/")
def teams_app(self): """The app that is installed.""" return self.properties.get( "teamsApp", TeamsApp(self.context, ResourcePath("teamsApp", self.resource_path)))
def __init__(self, context): super(SPHubSitesUtility, self).__init__( context, ResourcePath("Microsoft.SharePoint.Portal.SPHubSitesUtility"))
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)))
def __init__(self, context): super(Utility, self).__init__(context, ResourcePath("SP.Utilities.Utility"))
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)))
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)))