# -*- coding: utf-8 -*-
import cohesity_management_sdk.models_v2.recover_exchange_app_snapshot_params
[docs]class ExchangeTargetParams(object):
"""Implementation of the 'ExchangeTargetParams' model.
Specifies the params for recovering to an Exchange host.
Attributes:
object (RecoverExchangeAppSnapshotParams): Specifies the snapshot
parameters to recover Exchange databases.
"""
# Create a mapping from Model property names to API property names
_names = {
"object":'object'
}
def __init__(self,
object=None):
"""Constructor for the ExchangeTargetParams class"""
# Initialize members of the class
self.object = object
[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
object = cohesity_management_sdk.models_v2.recover_exchange_app_snapshot_params.RecoverExchangeAppSnapshotParams.from_dictionary(dictionary.get('object')) if dictionary.get('object') else None
# Return an object of this model
return cls(object)