troveclient.osc.v1.database_root module

Database v1 Root action implementations

class troveclient.osc.v1.database_root.DisableDatabaseRoot(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_root.DisableDatabaseRoot (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class troveclient.osc.v1.database_root.EnableDatabaseRoot(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_root.EnableDatabaseRoot (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_root.ShowDatabaseRoot(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_root.ShowDatabaseRoot (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_root.find_instance_or_cluster(database_client_manager, instance_or_cluster)

Returns an instance or cluster, found by ID or name, along with the type of resource, instance or cluster. Raises CommandError if none is found.