mistralclient.commands.v2.event_triggers module

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

Bases: osc_lib.command.command.ShowOne

Create new trigger.

get_parser(prog_name)

Return an argparse.ArgumentParser.

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

Bases: osc_lib.command.command.Command

Delete trigger.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger mistralclient.commands.v2.event_triggers.Delete (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class mistralclient.commands.v2.event_triggers.EventTriggerFormatter

Bases: mistralclient.commands.v2.base.MistralFormatter

COLUMNS = [('id', 'ID'), ('name', 'Name'), ('workflow_id', 'Workflow ID'), ('workflow_params', 'Params'), ('exchange', 'Exchange'), ('topic', 'Topic'), ('event', 'Event'), ('created_at', 'Created at'), ('updated_at', 'Updated at')]
static format(trigger=None, lister=False)
class mistralclient.commands.v2.event_triggers.Get(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

Show specific event trigger.

get_parser(prog_name)

Return an argparse.ArgumentParser.

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

Bases: mistralclient.commands.v2.base.MistralLister

List all event triggers.

log = <Logger mistralclient.commands.v2.event_triggers.List (WARNING)>