models.protected_object module¶
-
class
models.protected_object.
ProtectedObject
(job_id=None, protection_fauilure_reason=None, protection_source_id=None)[source]¶ Bases:
object
Implementation of the ‘ProtectedObject’ model.
Provides details about a Protected Object.
- Attributes:
- job_id (UniversalId): Specifies an id for an object that is unique
across Cohesity Clusters. The id is composite of all the ids listed below.
- protection_fauilure_reason (string): If protection fails then
specifies why the protection failed on this object.
- protection_source_id (long|int): Specifies the id of the Protection
Source.
-
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.