mistralclient.commands.v2.workbooks module

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

Bases: ShowOne

Create new workbook.

get_parser(prog_name)

Return an argparse.ArgumentParser.

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

Bases: Command

Delete workbook.

get_parser(prog_name)

Return an argparse.ArgumentParser.

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

Override to do something useful.

The returned value will be returned by the program.

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

Bases: ShowOne

Show specific workbook.

get_parser(prog_name)

Return an argparse.ArgumentParser.

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

Bases: Command

Show workbook definition.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger mistralclient.commands.v2.workbooks.GetDefinition (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

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

Bases: MistralLister

List all workbooks.

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

Bases: ShowOne

Update workbook.

get_parser(prog_name)

Return an argparse.ArgumentParser.

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

Bases: ShowOne

Validate workbook.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger mistralclient.commands.v2.workbooks.Validate (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.workbooks.WorkbookFormatter

Bases: MistralFormatter

COLUMNS = [('name', 'Name'), ('namespace', 'Namespace'), ('tags', 'Tags'), ('scope', 'Scope'), ('created_at', 'Created at'), ('updated_at', 'Updated at')]
static format(workbook=None, lister=False)