Source code for models_v2.update_state_of_the_data_tiering_groups

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


[docs]class UpdateStateOfTheDataTieringGroups(object): """Implementation of the 'Update state of the data tiering groups.' model. Specifies the parameters to perform an action on the data tiering groups for the specified Sources. Attributes: action (Action7Enum): Specifies the action to be performed on all the specified data tiering groups. 'Pause' specifies to pause. 'Resume' specifies to resume. ids (list of string): Specifies a list of data tiering groups ids for which the state should change. """ # Create a mapping from Model property names to API property names _names = { "action":'action', "ids":'ids' } def __init__(self, action=None, ids=None): """Constructor for the UpdateStateOfTheDataTieringGroups class""" # Initialize members of the class self.action = action self.ids = ids
[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 action = dictionary.get('action') ids = dictionary.get('ids') # Return an object of this model return cls(action, ids)