Source code for models_v2.recovery_target_config_10

# -*- coding: utf-8 -*-

import cohesity_management_sdk.models_v2.source_14

[docs]class RecoveryTargetConfig10(object): """Implementation of the 'RecoveryTargetConfig10' model. Specifies the recovery target configuration if recovery has to be done to a different location which is different from original source. Attributes: source (Source14): Specifies the id of the physical source to which the exchange database will be recovered. """ # Create a mapping from Model property names to API property names _names = { "source":'source' } def __init__(self, source=None): """Constructor for the RecoveryTargetConfig10 class""" # Initialize members of the class self.source = source
[docs] @classmethod def from_dictionary(cls, dictionary): """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. """ if dictionary is None: return None # Extract variables from the dictionary source = cohesity_management_sdk.models_v2.source_14.Source14.from_dictionary(dictionary.get('source')) if dictionary.get('source') else None # Return an object of this model return cls(source)