models_v2.node_power_operation module¶
-
class
models_v2.node_power_operation.
NodePowerOperation
(operation=None, node_id=None)[source]¶ Bases:
object
Implementation of the ‘NodePowerOperation’ model.
TODO: type model description here.
- Attributes:
operation (OperationEnum): The operation clould be poweroff, reboot. node_id (long|int): Id of the node to do the specified operation.
-
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.