mistralclient.commands.v2.environments module¶
- class mistralclient.commands.v2.environments.Create(app, app_args, cmd_name=None)¶
Bases:
ShowOne
Create new environment.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.environments.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.environments.Delete(app, app_args, cmd_name=None)¶
Bases:
Command
Delete environment.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.environments.Delete (WARNING)>¶
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- class mistralclient.commands.v2.environments.EnvironmentFormatter¶
Bases:
MistralFormatter
- COLUMNS = [('name', 'Name'), ('description', 'Description'), ('variables', 'Variables'), ('scope', 'Scope'), ('created_at', 'Created at'), ('updated_at', 'Updated at')]¶
- LIST_COLUMN_FIELD_NAMES = ['name', 'description', 'scope', 'created_at', 'updated_at']¶
- LIST_COLUMN_HEADING_NAMES = ['Name', 'Description', 'Scope', 'Created at', 'Updated at']¶
- static format(environment=None, lister=False)¶
- class mistralclient.commands.v2.environments.Get(app, app_args, cmd_name=None)¶
Bases:
ShowOne
Show specific environment.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.environments.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.environments.List(app, app_args, cmd_name=None)¶
Bases:
MistralLister
List all environments.
- log = <Logger mistralclient.commands.v2.environments.List (WARNING)>¶
- class mistralclient.commands.v2.environments.Update(app, app_args, cmd_name=None)¶
Bases:
ShowOne
Update environment.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.environments.Update (WARNING)>¶
- take_action(parsed_args)¶
Return a two-part tuple with a tuple of column names and a tuple of values.