troveclient.compat.common module¶
- exception troveclient.compat.common.ArgumentRequired(param)¶
Bases:
Exception
- exception troveclient.compat.common.ArgumentsRequired(*params)¶
Bases:
ArgumentRequired
- class troveclient.compat.common.Auth(parser)¶
Bases:
CommandsBase
Authenticate with your username and api key.
- login()¶
Login to retrieve an auth token to use for other api calls.
- params = ['apikey', 'auth_strategy', 'auth_type', 'auth_url', 'options', 'region', 'service_name', 'service_type', 'service_url', 'tenant_id', 'username']¶
- class troveclient.compat.common.AuthedCommandsBase(parser)¶
Bases:
CommandsBase
Commands that work only with an authenticated client.
- class troveclient.compat.common.CliOptions(**kwargs)¶
Bases:
object
A token object containing the user, apikey and token which is pickleable.
- APITOKEN = '/home/zuul/.apitoken'¶
- DEFAULT_VALUES = {'apikey': None, 'auth_type': 'keystone', 'auth_url': None, 'debug': False, 'insecure': False, 'region': 'RegionOne', 'service_name': '', 'service_type': 'database', 'service_url': None, 'tenant_id': None, 'token': None, 'username': None, 'verbose': False}¶
- classmethod create_optparser(load_file)¶
- classmethod default()¶
- classmethod load_from_file()¶
- classmethod save_from_instance_fields(instance)¶
- class troveclient.compat.common.Paginated(items=None, next_marker=None, links=None)¶
Bases:
object
Pretends to be a list if you iterate over it, but also keeps a next property you can use to get the next page of data.
- troveclient.compat.common.check_for_exceptions(resp, body)¶
- troveclient.compat.common.limit_url(url, limit=None, marker=None)¶
- troveclient.compat.common.methods_of(obj)¶
Get all callable methods of an object that don’t start with underscore returns a list of tuples of the form (method_name, method).
- troveclient.compat.common.print_actions(cmd, actions)¶
Print help for the command with list of options and description.
- troveclient.compat.common.print_commands(commands)¶
Print the list of available commands and description.
- troveclient.compat.common.quote_user_host(user, host)¶