models_v2.objects_action_request module¶
-
class
models_v2.objects_action_request.
ObjectsActionRequest
(action=None, link_params=None, un_link_params=None)[source]¶ Bases:
object
Implementation of the ‘ObjectsActionRequest’ model.
Specifies the type of the action need to be performed on given set of objects.
- Attributes:
- action (Action4Enum): Specifies the action type that need to be
performed.
- link_params (CommonObjectsActionParams): Specifies the parameters
required for linking objects. This is currently used as a part of vm migration workflow.
- un_link_params (CommonObjectsActionParams): Specifies the parameters
required for unlinking objects. This is currently used as a part of vm migration workflow.
-
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.