# -*- coding: utf-8 -*-
import cohesity_management_sdk.models_v2.recover_exchange_app_snapshot_params
[docs]class RecoverExchangeAppParams(object):
"""Implementation of the 'Recover Exchange App params.' model.
Specifies the parameters to recover Exchange applications to an Exchange
target.
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 RecoverExchangeAppParams 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)