troveclient.osc.v1.database_root module

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 = <logging.Logger object>
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 = <logging.Logger object>
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 = <logging.Logger object>
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.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.