troveclient.osc.v1.database_flavors module¶
Database v1 Flavors action implementations
-
class
troveclient.osc.v1.database_flavors.
ListDatabaseFlavors
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.Lister
-
columns
= ['ID', 'Name', 'RAM', 'vCPUs', 'Disk', 'Ephemeral']¶
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger troveclient.osc.v1.database_flavors.ListDatabaseFlavors (WARNING)>¶
-
take_action
(parsed_args)¶ Run command.
Return a tuple containing the column names and an iterable containing the data to be listed.
-
-
class
troveclient.osc.v1.database_flavors.
ShowDatabaseFlavor
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.ShowOne
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger troveclient.osc.v1.database_flavors.ShowDatabaseFlavor (WARNING)>¶
-
take_action
(parsed_args)¶ Return a two-part tuple with a tuple of column names and a tuple of values.
-
-
troveclient.osc.v1.database_flavors.
set_attributes_for_print_detail
(flavor)¶