Source code for models_v2.isilon_params

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


[docs]class IsilonParams(object): """Implementation of the 'IsilonParams' model. Specifies the parameters specific to Isilon type snapshot. Attributes: supported_nas_mount_protocols (list of SupportedNasMountProtocol2Enum): Specifies a list of NAS mount protocols supported by this object. """ # Create a mapping from Model property names to API property names _names = { "supported_nas_mount_protocols":'supportedNasMountProtocols' } def __init__(self, supported_nas_mount_protocols=None): """Constructor for the IsilonParams class""" # Initialize members of the class self.supported_nas_mount_protocols = supported_nas_mount_protocols
[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 supported_nas_mount_protocols = dictionary.get('supportedNasMountProtocols') # Return an object of this model return cls(supported_nas_mount_protocols)