models.site_drive_info module¶
-
class
models.site_drive_info.
SiteDriveInfo
(drive_id=None, drive_item_list=None, drive_name=None, restore_entire_drive=None)[source]¶ Bases:
object
Implementation of the ‘SiteDriveInfo’ model.
Specifies the Site’s Document Library drive info.
- Attributes:
drive_id (string): Specifies the Id of the Drive. drive_item_list (list of SiteDriveItem): Specifies the Drive items
such as files/folders.
- drive_name (string): Specifies the drive name for the document
repository. Incase of drive Id not present, this field must be populated to trigger restore.
- restore_entire_drive (bool): Specifies whether entire drive is to be
restored. This should be set to false if specific drive items are to be restored within ‘DriveItemList’.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.