mistralclient.commands.v2.code_sources module

class mistralclient.commands.v2.code_sources.CodeSourceFormatter

Bases: mistralclient.commands.v2.base.MistralFormatter

COLUMNS = [('id', 'ID'), ('name', 'Name'), ('namespace', 'Namespace'), ('project_id', 'Project ID'), ('scope', 'Scope'), ('created_at', 'Created at'), ('updated_at', 'Updated at')]
static format(code_src=None, lister=False)
class mistralclient.commands.v2.code_sources.Create(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

Create new code source.

get_parser(prog_name)

Return an argparse.ArgumentParser.

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

Bases: osc_lib.command.command.Command

Delete workflow.

get_parser(prog_name)

Return an argparse.ArgumentParser.

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

Override to do something useful.

The returned value will be returned by the program.

class mistralclient.commands.v2.code_sources.Get(app, app_args, cmd_name=None)

Bases: cliff.show.ShowOne

Show specific code source.

get_parser(prog_name)

Return an argparse.ArgumentParser.

take_action(parsed_args)

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

class mistralclient.commands.v2.code_sources.GetContent(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

Show workflow definition.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger mistralclient.commands.v2.code_sources.GetContent (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class mistralclient.commands.v2.code_sources.List(app, app_args, cmd_name=None)

Bases: mistralclient.commands.v2.base.MistralLister

List all workflows.

get_parser(prog_name)

Return an argparse.ArgumentParser.

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

Bases: osc_lib.command.command.ShowOne

Update workflow.

get_parser(prog_name)

Return an argparse.ArgumentParser.

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

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