models_v2.update_state_of_protection_groups module

class models_v2.update_state_of_protection_groups.UpdateStateOfProtectionGroups(action=None, ids=None)[source]

Bases: object

Implementation of the ‘Update state of Protection Groups.’ model.

Specifies the parameters to perform an action of list of Protection Groups.

Attributes:
action (Action5Enum): Specifies the action to be performed on all the

specfied Protection Groups. ‘kActivate’ specifies that Protection Group should be activated. ‘kDeactivate’ sepcifies that Protection Group should be deactivated. ‘kPause’ specifies that Protection Group should be paused. ‘kResume’ specifies that Protection Group should be resumed.

ids (list of string): Specifies a list of Protection Group ids for

which the state should change.

classmethod from_dictionary(dictionary)[source]

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.