mistralclient.commands.v2.actions module¶
- class mistralclient.commands.v2.actions.ActionFormatter¶
Bases:
MistralFormatter
- COLUMNS = [('id', 'ID'), ('name', 'Name'), ('is_system', 'Is system'), ('input', 'Input'), ('description', 'Description'), ('tags', 'Tags'), ('created_at', 'Created at'), ('updated_at', 'Updated at')]¶
- static format(action=None, lister=False)¶
- class mistralclient.commands.v2.actions.Create(app, app_args, cmd_name=None)¶
Bases:
MistralLister
Create new action.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.actions.Create (WARNING)>¶
- class mistralclient.commands.v2.actions.Delete(app, app_args, cmd_name=None)¶
Bases:
Command
Delete action.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.actions.Delete (WARNING)>¶
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- class mistralclient.commands.v2.actions.Get(app, app_args, cmd_name=None)¶
Bases:
ShowOne
Show specific action.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.actions.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.actions.GetDefinition(app, app_args, cmd_name=None)¶
Bases:
Command
Show action definition.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.actions.GetDefinition (WARNING)>¶
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- class mistralclient.commands.v2.actions.List(app, app_args, cmd_name=None)¶
Bases:
MistralLister
List all actions.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.actions.List (WARNING)>¶
- class mistralclient.commands.v2.actions.Update(app, app_args, cmd_name=None)¶
Bases:
MistralLister
Update action.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.actions.Update (WARNING)>¶
- class mistralclient.commands.v2.actions.Validate(app, app_args, cmd_name=None)¶
Bases:
ShowOne
Validate action.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.actions.Validate (WARNING)>¶
- take_action(parsed_args)¶
Return a two-part tuple with a tuple of column names and a tuple of values.