troveclient.osc.v1.database_users module

Database v1 Users action implementations

class troveclient.osc.v1.database_users.CreateDatabaseUser(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_users.CreateDatabaseUser (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class troveclient.osc.v1.database_users.DeleteDatabaseUser(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_users.DeleteDatabaseUser (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class troveclient.osc.v1.database_users.GrantDatabaseUserAccess(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_users.GrantDatabaseUserAccess (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class troveclient.osc.v1.database_users.ListDatabaseUsers(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

columns = ['Name', 'Host', 'Databases']
get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger troveclient.osc.v1.database_users.ListDatabaseUsers (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class troveclient.osc.v1.database_users.RevokeDatabaseUserAccess(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_users.RevokeDatabaseUserAccess (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class troveclient.osc.v1.database_users.ShowDatabaseUser(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_users.ShowDatabaseUser (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_users.ShowDatabaseUserAccess(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

columns = ['Name']
get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger troveclient.osc.v1.database_users.ShowDatabaseUserAccess (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class troveclient.osc.v1.database_users.UpdateDatabaseUserAttributes(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_users.UpdateDatabaseUserAttributes (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.