models.restore_one_drive_params module

class models.restore_one_drive_params.RestoreOneDriveParams(drive_owner_vec=None, restore_to_original=None, target_drive_id=None, target_folder_path=None, target_user=None)[source]

Bases: object

Implementation of the ‘RestoreOneDriveParams’ model.

TODO: type model description here.

Attributes:
drive_owner_vec (list of RestoreOneDriveParamsDriveOwner): The list of

users/groups whose drives are being restored.

restore_to_original (bool): Whether or not all drive items are

restored to original location.

target_drive_id (string): The id of the drive in which items will be

restored.

target_folder_path (string): All drives part of various users listed

in drive_owner_vec will be restored to the drive belonging to target_user having id target_drive_id. Let’s say drive_owner_vec is A and B; drive_vec of A and B is 111 and 222 respectively; target_user is C; target_drive_id is 333. The final folder-hierarchy after restore job is finished will look like this : C:333: {target_folder_path}/| |A/111/{whatever is there in restore_item_vec of 111} |B/222/{whatever is there in restore_item_vec of 222}

target_user (EntityProto): Specifies the attributes and the latest

statistics about an entity.

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.