openstackclient.common package¶
Submodules¶
openstackclient.common.availability_zone module¶
Availability Zone action implementations
openstackclient.common.clientmanager module¶
Manage access to the clients, including authenticating when needed.
-
class
openstackclient.common.clientmanager.
ClientCache
(factory)¶ Bases:
object
Descriptor class for caching created client handles.
-
class
openstackclient.common.clientmanager.
ClientManager
(cli_options=None, api_version=None, verify=True, pw_func=None)¶ Bases:
object
Manages access to API clients, including authentication.
-
PLUGIN_INTERFACE_VERSION
= '2'¶
-
auth_ref
¶ Dereference will trigger an auth if it hasn’t already
-
get_configuration
()¶
-
get_endpoint_for_service_type
(service_type, region_name=None, interface='public')¶ Return the endpoint URL for the service type.
-
is_network_endpoint_enabled
()¶ Check if the network endpoint is enabled
-
setup_auth
()¶ Set up authentication
This is deferred until authentication is actually attempted because it gets in the way of things that do not require auth.
-
validate_scope
()¶
-
-
openstackclient.common.clientmanager.
build_plugin_option_parser
(parser)¶ Add plugin options to the parser
-
openstackclient.common.clientmanager.
get_plugin_modules
(group)¶ Find plugin entry points
openstackclient.common.command module¶
openstackclient.common.commandmanager module¶
Modify cliff.CommandManager
-
class
openstackclient.common.commandmanager.
CommandManager
(namespace, convert_underscores=True)¶ Bases:
cliff.commandmanager.CommandManager
Add additional functionality to cliff.CommandManager
Load additional command groups after initialization Add _command_group() methods
-
add_command_group
(group=None)¶ Adds another group of command entrypoints
-
get_command_groups
()¶ Returns a list of the loaded command groups
-
get_command_names
(group=None)¶ Returns a list of commands loaded for the specified group
-
load_commands
(namespace)¶
-
openstackclient.common.configuration module¶
Configuration action implementations
openstackclient.common.exceptions module¶
openstackclient.common.extension module¶
Extension action implementations
openstackclient.common.limits module¶
Limits Action Implementation
openstackclient.common.logs module¶
openstackclient.common.module module¶
Module action implementation
openstackclient.common.parseractions module¶
openstackclient.common.quota module¶
Quota action implementations
-
class
openstackclient.common.quota.
SetQuota
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.Command
Set quotas for project or class
-
get_parser
(prog_name)¶
-
log
= <logging.Logger object>¶
-
take_action
(parsed_args)¶
-
-
class
openstackclient.common.quota.
ShowQuota
(app, app_args, cmd_name=None)¶ Bases:
osc_lib.command.command.ShowOne
Show quotas for project or class
-
get_compute_volume_quota
(client, parsed_args)¶
-
get_network_quota
(parsed_args)¶
-
get_parser
(prog_name)¶
-
log
= <logging.Logger object>¶
-
take_action
(parsed_args)¶
-
openstackclient.common.session module¶
Subclass of keystoneauth1.session