mistralclient.commands.v2.dynamic_actions module

class mistralclient.commands.v2.dynamic_actions.Create(app, app_args, cmd_name=None)

Bases: ShowOne

Create new action.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger mistralclient.commands.v2.dynamic_actions.Create (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.dynamic_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.dynamic_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.dynamic_actions.DynamicActionFormatter

Bases: MistralFormatter

COLUMNS = [('id', 'ID'), ('name', 'Name'), ('class_name', 'Class'), ('code_source_id', 'Code source ID'), ('code_source_name', 'Code source name'), ('project_id', 'Project ID'), ('scope', 'Scope'), ('created_at', 'Created at'), ('updated_at', 'Updated at')]
static format(action=None, lister=False)
class mistralclient.commands.v2.dynamic_actions.Get(app, app_args, cmd_name=None)

Bases: ShowOne

Show specific dynamic action.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger mistralclient.commands.v2.dynamic_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.dynamic_actions.List(app, app_args, cmd_name=None)

Bases: MistralLister

List all dynamic actions.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger mistralclient.commands.v2.dynamic_actions.List (WARNING)>
class mistralclient.commands.v2.dynamic_actions.Update(app, app_args, cmd_name=None)

Bases: ShowOne

Update dynamic action.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger mistralclient.commands.v2.dynamic_actions.Update (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.