Source code for models_v2.common_data_tiering_analysis_group_params

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

import cohesity_management_sdk.models_v2.data_tiering_source

[docs]class CommonDataTieringAnalysisGroupParams(object): """Implementation of the 'CommonDataTieringAnalysisGroupParams' model. Specifies the data tiering analysis group. Attributes: name (string): Specifies the name of the data tiering analysis group. source (DataTieringSource): Specifies the source data tiering details. """ # Create a mapping from Model property names to API property names _names = { "name":'name', "source":'source' } def __init__(self, name=None, source=None): """Constructor for the CommonDataTieringAnalysisGroupParams class""" # Initialize members of the class self.name = name self.source = source
[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 name = dictionary.get('name') source = cohesity_management_sdk.models_v2.data_tiering_source.DataTieringSource.from_dictionary(dictionary.get('source')) if dictionary.get('source') else None # Return an object of this model return cls(name, source)