models.compare_ad_objects_request module

class models.compare_ad_objects_request.CompareAdObjectsRequest(restore_task_id=None, guid_pairs=None, allow_empty_dest_guids=None, exclude_sys_attributes=None, filter_null_value_attributes=None, filter_same_value_attributes=None, quick_compare=None)[source]

Bases: object

Implementation of the ‘CompareAdObjectsRequest’ model.

Specifies the request to compare AD objects from Snapshot and Production AD.

Attributes:
restore_task_id (long|int): Specifies the Restore Task Id

corresponding to which we need to compare the AD objects.

allow_empty_dest_guids (bool): Specifies the option to get object

attributes from Snapshot AD when destination guid is missing in GuidPair. This helps to show attributes of AD object from Snapshot AD when the object is missing in Production AD.

exclude_sys_attributes (bool): Specifies the option to exclude AD

system attributes when comparing two AD object attributes. If the objects have same guid, most of the system attributes would match.If the AD object was recovered through a restore, then many system attributes will be different. Default compares all attributes.

filter_null_value_attributes (bool): Specifies the option to not

return attributes where source and destination values are null values. This reduces noise of the properties in the objects returned.

filter_same_value_attributes (bool): Specifies the option to not

return attributes where source and destination values are same. Use this flag to return only values that are different.

guid_pairs (list of GuidPair): Specifies the GuidPair of the AD

Objects which we want to compare from both Snapshot and Production AD.

quick_compare (bool): Specifies the option to do quick compare of

specified guid between Snapshot AD and Production AD. If at least one attribute mismatch is found, comparison stops and returns with AdObjectFlag kNotEqual.

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.