Source code for models.uda_recover_params

# -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.

import cohesity_management_sdk.models.uda_restore_object

[docs]class UdaRecoverParams(object): """Implementation of the 'UdaRecoverParams' model. Attributes: restore_objects (list of UdaRestoreObject): TODO: Type description here. """ # Create a mapping from Model property names to API property names _names = { "restore_objects":'restoreObjects' } def __init__(self, restore_objects=None): """Constructor for the UdaRecoverParams class""" # Initialize members of the class self.restore_objects = restore_objects
[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 restore_objects = None if dictionary.get('restoreObjects') != None: restore_objects = list() for structure in dictionary.get('restoreObjects'): restore_objects.append(cohesity_management_sdk.models.uda_restore_object.UdaRestoreObject.from_dictionary(structure)) # Return an object of this model return cls(restore_objects)