Source code for models_v2.recovery_target_config_11

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

import cohesity_management_sdk.models_v2.source_15

[docs]class RecoveryTargetConfig11(object): """Implementation of the 'RecoveryTargetConfig11' model. Specifies the recovery target configuration if recovery has to be done to a different location which is different from original source. Attributes: source (Source15): 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 RecoveryTargetConfig11 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_15.Source15.from_dictionary(dictionary.get('source')) if dictionary.get('source') else None # Return an object of this model return cls(source)