troveclient.osc.v1.database_logs module¶
-
class
troveclient.osc.v1.database_logs.
ListDatabaseLogs
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.Lister
-
columns
= ['Name', 'Type', 'Status', 'Published', 'Pending', 'Container', 'Prefix']¶
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger troveclient.osc.v1.database_logs.ListDatabaseLogs (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_logs.
SaveDatabaseInstanceLog
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.Command
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger troveclient.osc.v1.database_logs.SaveDatabaseInstanceLog (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-
-
class
troveclient.osc.v1.database_logs.
SetDatabaseInstanceLog
(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_logs.SetDatabaseInstanceLog (WARNING)>¶
-
take_action
(parsed_args)¶ Return a two-part tuple with a tuple of column names and a tuple of values.
-
-
class
troveclient.osc.v1.database_logs.
ShowDatabaseInstanceLog
(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_logs.ShowDatabaseInstanceLog (WARNING)>¶
-
take_action
(parsed_args)¶ Return a two-part tuple with a tuple of column names and a tuple of values.
-
-
class
troveclient.osc.v1.database_logs.
ShowDatabaseInstanceLogContents
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.Command
-
get_parser
(prog_name)¶ Return an
argparse.ArgumentParser
.
-
log
= <Logger troveclient.osc.v1.database_logs.ShowDatabaseInstanceLogContents (WARNING)>¶
-
take_action
(parsed_args)¶ Override to do something useful.
The returned value will be returned by the program.
-