The vmware_nsx.api_client.base
Module¶
-
class
vmware_nsx.api_client.base.
ApiClientBase
¶ Bases:
object
An abstract baseclass for all API client implementations.
-
acquire_connection
(auto_login=True, headers=None, rid=-1)¶ Check out an available HTTPConnection instance.
Blocks until a connection is available. :auto_login: automatically logins before returning conn :headers: header to pass on to login attempt :param rid: request id passed in from request eventlet. :returns: An available HTTPConnection instance or None if no
api_providers are configured.
-
config_gen
¶
-
password
¶
-
release_connection
(http_conn, bad_state=False, service_unavail=False, rid=-1)¶ Mark HTTPConnection instance as available for check-out.
Parameters: - http_conn – An HTTPConnection instance obtained from this instance.
- bad_state – True if http_conn is known to be in a bad state (e.g. connection fault.)
- rid – request id passed in from request eventlet.
Service_unavail: True if http_conn returned 503 response.
-
user
¶
-