models.ad_object_restore_param module

class models.ad_object_restore_param.ADObjectRestoreParam(credentials=None, guid_vec=None, option_flags=None, ou_path=None, src_sysvol_folder=None)[source]

Bases: object

Implementation of the ‘ADObjectRestoreParam’ model.

TODO: type model description here.

Attributes:
credentials (Credentials): Specifies credentials to access a target

source.

guid_vec (list of string): Array of AD object guids to restore either

from recycle bin or from AD snapshot. The guid should not exist in production AD. If it exits, then kDuplicate error is output in status.

option_flags (int): Restore option flags of type

ADObjectRestoreOptionFlags.

ou_path (string): Distinguished name(DN) of the target Organization

Unit (OU) to restore non-OU object. This can be empty, in which case objects are restored to their original OU. The ‘credential’ specified must have privileges to add objects to this OU. Example: ‘OU=SJC,OU=EngOU,DC=contoso,DC=com’. This parameter is ignored for OU objects.

src_sysvol_folder (string, optional): When restoring a GPO, need to

know the absolute path for SYSVOL folder.

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.