troveclient.osc.v1.datastores module

Database v1 Datastores action implementations

class troveclient.osc.v1.datastores.CreateDatastoreVersion(app, app_args, cmd_name=None)

Bases: Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger troveclient.osc.v1.datastores.CreateDatastoreVersion (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class troveclient.osc.v1.datastores.DeleteDatastore(app, app_args, cmd_name=None)

Bases: Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger troveclient.osc.v1.datastores.DeleteDatastore (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class troveclient.osc.v1.datastores.DeleteDatastoreVersion(app, app_args, cmd_name=None)

Bases: Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger troveclient.osc.v1.datastores.DeleteDatastoreVersion (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class troveclient.osc.v1.datastores.ListDatastoreVersions(app, app_args, cmd_name=None)

Bases: Lister

columns = ['ID', 'Name', 'Version']
get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger troveclient.osc.v1.datastores.ListDatastoreVersions (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.datastores.ListDatastores(app, app_args, cmd_name=None)

Bases: Lister

columns = ['ID', 'Name']
log = <Logger troveclient.osc.v1.datastores.ListDatastores (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.datastores.ShowDatastore(app, app_args, cmd_name=None)

Bases: ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger troveclient.osc.v1.datastores.ShowDatastore (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.datastores.ShowDatastoreVersion(app, app_args, cmd_name=None)

Bases: ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger troveclient.osc.v1.datastores.ShowDatastoreVersion (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.datastores.UpdateDatastoreVersion(app, app_args, cmd_name=None)

Bases: Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger troveclient.osc.v1.datastores.UpdateDatastoreVersion (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

troveclient.osc.v1.datastores.set_attributes_for_print_detail(datastore)