# -*- coding: utf-8 -*-
import cohesity_management_sdk.models_v2.rename_recovered_volume_params
[docs]class RecoverPureVolumeOriginalSourceNetworkConfiguration(object):
"""Implementation of the 'Recover Pure volume Original Source Network configuration.' model.
Specifies the network config parameters to be applied for Pure volumes if
recovering to original Source.
Attributes:
rename_recovered_volume_params (RenameRecoveredVolumeParams):
Specifies params to rename the recovered SAN volumes. If not
specified, the original names of the volumes are preserved.
"""
# Create a mapping from Model property names to API property names
_names = {
"rename_recovered_volume_params":'renameRecoveredVolumeParams'
}
def __init__(self,
rename_recovered_volume_params=None):
"""Constructor for the RecoverPureVolumeOriginalSourceNetworkConfiguration class"""
# Initialize members of the class
self.rename_recovered_volume_params = rename_recovered_volume_params
[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
rename_recovered_volume_params = cohesity_management_sdk.models_v2.rename_recovered_volume_params.RenameRecoveredVolumeParams.from_dictionary(dictionary.get('renameRecoveredVolumeParams')) if dictionary.get('renameRecoveredVolumeParams') else None
# Return an object of this model
return cls(rename_recovered_volume_params)