示例#1
0
 def items(self):
     """All items contained in the drive."""
     if self.is_property_available("items"):
         return self.properties['items']
     else:
         return DriveItemCollection(
             self.context, ResourcePath("items", self.resource_path))
示例#2
0
 def sharedWithMe(self):
     """Retrieve a collection of DriveItem resources that have been shared with the owner of the Drive."""
     if self.is_property_available("sharedWithMe"):
         return self.properties['sharedWithMe']
     else:
         return DriveItemCollection(
             self.context, ResourcePath("sharedWithMe", self.resource_path))
 def children(self):
     """Collection containing Item objects for the immediate children of Item. Only items representing folders
     have children."""
     if self.is_property_available('children'):
         return self.properties['children']
     else:
         from office365.onedrive.driveItemCollection import DriveItemCollection
         return DriveItemCollection(self.context, ResourcePath("children", self.resource_path))
 def children(self):
     """Collection containing Item objects for the immediate children of Item. Only items representing folders
     have children."""
     from office365.onedrive.driveItemCollection import DriveItemCollection
     return self.properties.get(
         'children',
         DriveItemCollection(self.context,
                             ResourcePath("children", self.resource_path)))
 def items(self):
     """All items contained in the drive."""
     return self.properties.get('items',
                                DriveItemCollection(self.context, ResourcePath("items", self.resource_path)))
 def sharedWithMe(self):
     """Retrieve a collection of DriveItem resources that have been shared with the owner of the Drive."""
     return self.properties.get('sharedWithMe',
                                DriveItemCollection(self.context, ResourcePath("sharedWithMe", self.resource_path)))