models.script_execution_status module

class models.script_execution_status.ScriptExecutionStatus(error=None, executing=None, exit_code=None, state=None)[source]

Bases: object

Implementation of the ‘ScriptExecutionStatus’ model.

TODO: type model description here.

Attributes:

error (ErrorProto): Error that occurred during execution. executing (bool): Indicates if a script is executing. This is

particularly useful when there is a cancellation request and Magneto crashes at that point before cleaning up the running script.

exit_code (int): Exit code of the script. state (int): Execution state of the script.

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.