models.one_drive_info module

class models.one_drive_info.OneDriveInfo(drive_id=None, drive_item_list=None, restore_entire_drive=None)[source]

Bases: object

Implementation of the ‘OneDriveInfo’ model.

Specifies OneDrive details with the items which need to be restored.

Attributes:

drive_id (string): Specifies the Id of the Drive. drive_item_list (list of OneDriveItem): Specifies the Drive items such

as files/folders.

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.