troveclient.compat.common.
ArgumentRequired
(param)¶Bases: exceptions.Exception
troveclient.compat.common.
ArgumentsRequired
(*params)¶troveclient.compat.common.
Auth
(parser)¶Bases: troveclient.compat.common.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']¶troveclient.compat.common.
AuthedCommandsBase
(parser)¶Bases: troveclient.compat.common.CommandsBase
Commands that work only with an authenticated client.
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}¶create_optparser
(load_file)¶default
()¶load_from_file
()¶save_from_instance_fields
(instance)¶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)¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.