mistralclient.commands.v2.action_executions module¶
- class mistralclient.commands.v2.action_executions.ActionExecutionFormatter¶
Bases:
MistralFormatter
- COLUMNS = [('id', 'ID'), ('name', 'Name'), ('workflow_name', 'Workflow name'), ('workflow_namespace', 'Workflow namespace'), ('task_name', 'Task name'), ('task_execution_id', 'Task ID'), ('state', 'State'), ('state_info', 'State info'), ('accepted', 'Accepted'), ('created_at', 'Created at'), ('updated_at', 'Updated at')]¶
- LIST_COLUMN_FIELD_NAMES = ['id', 'name', 'workflow_name', 'workflow_namespace', 'task_name', 'task_execution_id', 'state', 'accepted', 'created_at', 'updated_at']¶
- LIST_COLUMN_HEADING_NAMES = ['ID', 'Name', 'Workflow name', 'Workflow namespace', 'Task name', 'Task ID', 'State', 'Accepted', 'Created at', 'Updated at']¶
- static format(action_ex=None, lister=False)¶
- class mistralclient.commands.v2.action_executions.Create(app, app_args, cmd_name=None)¶
Bases:
ShowOne
Create new Action execution or just run specific action.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.action_executions.Create (WARNING)>¶
- produce_output(parsed_args, column_names, data)¶
Use the formatter to generate the output.
- Parameters:
parsed_args – argparse.Namespace instance with argument values
column_names – sequence of strings containing names of output columns
data – iterable with values matching the column names
- take_action(parsed_args)¶
Return a two-part tuple with a tuple of column names and a tuple of values.
- class mistralclient.commands.v2.action_executions.Delete(app, app_args, cmd_name=None)¶
Bases:
Command
Delete action execution.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.action_executions.Delete (WARNING)>¶
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- class mistralclient.commands.v2.action_executions.Get(app, app_args, cmd_name=None)¶
Bases:
ShowOne
Show specific Action execution.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.action_executions.Get (WARNING)>¶
- take_action(parsed_args)¶
Return a two-part tuple with a tuple of column names and a tuple of values.
- class mistralclient.commands.v2.action_executions.GetInput(app, app_args, cmd_name=None)¶
Bases:
Command
Show Action execution input data.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.action_executions.GetInput (WARNING)>¶
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- class mistralclient.commands.v2.action_executions.GetOutput(app, app_args, cmd_name=None)¶
Bases:
Command
Show Action execution output data.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.action_executions.GetOutput (WARNING)>¶
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- class mistralclient.commands.v2.action_executions.List(app, app_args, cmd_name=None)¶
Bases:
MistralExecutionLister
List all Action executions.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.action_executions.List (WARNING)>¶
- class mistralclient.commands.v2.action_executions.Update(app, app_args, cmd_name=None)¶
Bases:
ShowOne
Update specific Action execution.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.action_executions.Update (WARNING)>¶
- take_action(parsed_args)¶
Return a two-part tuple with a tuple of column names and a tuple of values.