models.ad_object module¶
-
class
models.ad_object.
ADObject
(description=None, destination_guid=None, display_name=None, distinguished_name=None, error_message=None, object_class=None, search_result_flags=None, source_guid=None)[source]¶ Bases:
object
Implementation of the ‘ADObject’ model.
Represents the details about an AD object.
- Attributes:
description (string): Specifies the ‘description’ of an AD object. destination_guid (string): Specifies the guid of object in the
Production AD which is equivalent to the object in the Snapshot AD.
display_name (string): Specifies the display name of the AD object. distinguished_name (string): Specifies the distinguished name of the
AD object. Eg: CN=Jone Doe,OU=Users,DC=corp,DC=cohesity,DC=com
- error_message (string): Specifies the error message while fetching the
AD object.
- object_class (string): Specifies the class name of an AD Object such
as ‘user’,’computer’, ‘organizationalUnit’.
- search_result_flags (list of SearchResultFlagEnum): Specifies the
SearchResultFlags of the AD object. ‘kEqual’ indicates the AD Object from Snapshot and Production AD are equal. ‘kNotEqual’ indicates the AD Object from snapshot and production AD are not equal. ‘kRestorePasswordRequired’ indicates when restoring this AD Object from Snapshot AD to Production AD, a password is required. ‘kMovedOnDestination’ indicates the object has moved to another container or OU in Production AD compared to Snapshot AD. ‘kDisableSupported’ indicates the enable and disable is supported on the AD Object. AD Objects of type ‘User’ and ‘Computers’ support this operation.
- source_guid (string): Specifies the guid of the AD object in Snapshot
AD.
-
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.