models.object_snapshot_info module

class models.object_snapshot_info.ObjectSnapshotInfo(cluster_partition_id=None, job_id=None, job_name=None, job_uid=None, object_name=None, os_type=None, registered_source=None, snapshotted_source=None, versions=None, view_box_id=None, view_name=None)[source]

Bases: object

Implementation of the ‘ObjectSnapshotInfo’ model.

Specifies information about an object that has been backed up.

Attributes:
cluster_partition_id (long|int): Specifies the Cohesity Cluster

partition id where this object is stored.

job_id (long|int): Specifies the id for the Protection Job that is

currently associated with the object. If the object was backed up on current Cohesity Cluster, this field contains the id for the Job that captured this backup object. If the object was backed up on a Primary Cluster and replicated to this Cohesity Cluster, a new Inactive Job is created, the object is now associated with new Inactive Job, and this field contains the id of the new Inactive Job.

job_name (string): Specifies the name of the Protection Job that

captured the backup.

job_uid (UniversalId): Specifies the globally unique id of the

Protection Job that backed up this object. This id is unique across Cohesity Clusters. Even if this object is replicated to a Remote Cohesity Cluster and the object is associated with a new Job, the value specified in this field does not change.

object_name (string): Specifies the primary name of the object. os_type (string): Specifies the inferred OS type. registered_source (ProtectionSource): Specifies a generic structure

that represents a node in the Protection Source tree. Node details will depend on the environment of the Protection Source.

snapshotted_source (ProtectionSource): Specifies a generic structure

that represents a node in the Protection Source tree. Node details will depend on the environment of the Protection Source.

versions (list of SnapshotVersion): Array of Snapshots. Specifies all

snapshot versions of this object. Each time a Job Run of a Job executes, it may create a new snapshot version of an object. This array stores the different snapshots versions of the object.

view_box_id (long|int): Specifies the id of the Domain (View Box)

where this object is stored.

view_name (string): Specifies the View name where this object is

stored.

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.