Module Import alias Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Expr Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad finalbody Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Num NameLoad NameLoad Str NameLoad NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Call NameLoad Str AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If CompareIs Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BoolOpOr NameLoad Dict Str BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad CompareNotEq SubscriptLoad NameLoad Index NameLoad NameLoad If BoolOpAnd AttributeLoad NameLoad attr Call NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad BinOpMod Str Call NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Call NameLoad BinOpMod Str NameLoad If CompareIn NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If BoolOpAnd CompareIsNot NameLoad NameLoad Call NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Raise Call NameLoad Call NameLoad BinOpMod Str Call NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr NameLoad name NameStore body Raise Call NameLoad Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Return AttributeLoad NameLoad attr orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body Return NameLoad orelse If CompareIs Call NameLoad NameLoad NameLoad body Return Call AttributeLoad Call NameLoad attr NameLoad Call AttributeLoad NameLoad attr orelse Raise Call NameLoad Call NameLoad BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Num body Return NameLoad Return Call AttributeLoad Call NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Return BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str BinOpMod AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Str BinOpMod AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str BinOpMod AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str BinOpMod AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str BinOpMod AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Str BinOpMod AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str BinOpMod AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Str BinOpMod AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str BinOpMod AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Str BinOpMod AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str BinOpMod AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list NameLoad decorator_list
N/A N/A httplib N/A json N/A socket N/A urllib JSONSerializer N/A object N/A N/A This is a simple json-only serializer to use until we can just grab
    the standard serializer from the quantum library.
     serialize N/A N/A self data content_type N/A N/A N/A N/A N/A N/A N/A json dumps data N/A N/A N/A TypeError N/A N/A N/A N/A N/A json dumps N/A to_primitive data N/A deserialize N/A N/A self data content_type N/A N/A N/A N/A N/A json loads data N/A N/A QuantumNotFoundException N/A Exception N/A N/A Indicates that Quantum Server returned 404 N/A N/A QuantumServerException N/A Exception N/A N/A Indicates any non-404 error from Quantum Server N/A N/A QuantumIOException N/A Exception N/A N/A Indicates network IO trouble reaching Quantum Server N/A N/A api_call N/A object N/A N/A A Decorator to add support for format and tenant overriding __init__ N/A N/A self func N/A N/A N/A N/A self func func N/A __get__ N/A N/A self instance owner N/A N/A with_params N/A N/A N/A args kwargs N/A N/A Temporarily set format and tenant for this request N/A N/A format tenant N/A N/A instance format N/A instance tenant N/A N/A format kwargs N/A N/A N/A instance format N/A kwargs N/A format N/A N/A tenant kwargs N/A N/A N/A instance tenant N/A kwargs N/A tenant N/A ret None N/A N/A N/A ret N/A N/A self func instance args N/A N/A N/A N/A instance format N/A instance tenant N/A format tenant N/A ret N/A N/A with_params N/A N/A Client N/A object N/A N/A A base client class - derived from Glance.BaseClient N/A action_prefix /v1.0/tenants/{tenant_id} N/A Action query strings N/A networks_path /networks N/A network_path /networks/%s N/A ports_path /networks/%s/ports N/A port_path /networks/%s/ports/%s N/A attachment_path /networks/%s/ports/%s/attachment __init__ N/A N/A self host port use_ssl tenant format testing_stub key_file cert_file logger N/A 127.0.0.1 9696 False None xml None None None None N/A N/A Creates a new client to some service.

        :param host: The host where service resides
        :param port: The port where service resides
        :param use_ssl: True to use SSL, False to use HTTP
        :param tenant: The tenant ID to make requests with
        :param format: The format to query the server with
        :param testing_stub: A class that stubs basic server methods for tests
        :param key_file: The SSL key file to use if use_ssl is true
        :param cert_file: The SSL cert file to use if use_ssl is true
         N/A N/A self host host N/A N/A self port port N/A N/A self use_ssl use_ssl N/A N/A self tenant tenant N/A N/A self format format N/A N/A self connection None N/A N/A self testing_stub testing_stub N/A N/A self key_file key_file N/A N/A self cert_file cert_file N/A N/A self logger logger N/A get_connection_type N/A N/A self N/A N/A N/A Returns the proper connection type N/A N/A self testing_stub N/A N/A N/A self testing_stub N/A N/A N/A self use_ssl N/A N/A N/A httplib HTTPSConnection N/A N/A N/A httplib HTTPConnection N/A do_request N/A N/A self method action body headers params N/A None None None N/A N/A Connects to the server and issues a request.
        Returns the result data, or raises an appropriate exception if
        HTTP status code is not 2xx

        :param method: HTTP method ("GET", "POST", "PUT", etc...)
        :param body: string of data to send, or None (default)
        :param headers: mapping of key/value pairs to add as headers
        :param params: dictionary of key/value pairs to add to append
                             to action
         N/A N/A N/A self tenant N/A N/A N/A Exception N/A _ Tenant ID not set N/A action N/A .%s N/A self format N/A action N/A N/A Client action_prefix action N/A action N/A N/A action replace {tenant_id} N/A self tenant N/A N/A N/A type params dict N/A N/A action N/A ? N/A N/A urllib urlencode params N/A N/A N/A connection_type N/A N/A self get_connection_type N/A headers N/A headers N/A Content-Type N/A application/%s N/A self format N/A certs N/A key_file cert_file N/A self key_file N/A self cert_file N/A certs N/A dict N/A N/A x N/A certs N/A x N/A x certs N/A N/A certs N/A x None N/A N/A N/A self use_ssl N/A len certs N/A N/A c N/A connection_type N/A self host N/A self port certs N/A N/A c N/A connection_type N/A self host N/A self port N/A N/A self logger N/A N/A N/A N/A N/A self logger debug N/A _ N/A Quantum Client Request:
%(method)s %(action)s
 N/A locals N/A body N/A N/A N/A N/A N/A self logger debug body N/A N/A N/A c request method action body headers N/A res N/A N/A c getresponse N/A status_code N/A N/A self get_status_code res N/A data N/A N/A res read N/A N/A self logger N/A N/A N/A N/A N/A self logger debug N/A Quantum Client Reply (code = %s) :
 %s N/A N/A str status_code data N/A N/A status_code N/A httplib NOT_FOUND N/A N/A N/A QuantumNotFoundException N/A _ N/A Quantum entity not found: %s data N/A N/A status_code N/A N/A httplib OK N/A httplib CREATED N/A httplib ACCEPTED N/A httplib NO_CONTENT N/A N/A N/A N/A data None N/A len data N/A N/A N/A N/A self deserialize data status_code N/A N/A N/A QuantumServerException N/A _ N/A Server %(status_code)s error: %(data)s N/A locals N/A N/A N/A N/A N/A socket error IOError N/A e N/A N/A N/A QuantumIOException N/A _ N/A Unable to connect to server. Got error: %s e N/A get_status_code N/A N/A self response N/A N/A N/A Returns the integer status code from the response, which
        can be either a Webob.Response (used in testing) or httplib.Response
         N/A N/A hasattr response status_int N/A N/A N/A response status_int N/A N/A N/A response status N/A serialize N/A N/A self data N/A N/A N/A N/A data N/A N/A None N/A N/A N/A N/A type data dict N/A N/A N/A N/A N/A JSONSerializer serialize data N/A N/A self content_type N/A N/A N/A Exception N/A _ N/A unable to deserialize object of type = '%s' N/A type data N/A deserialize N/A N/A self data status_code N/A N/A N/A N/A status_code 202 N/A N/A data N/A N/A N/A N/A JSONSerializer deserialize data N/A N/A self content_type N/A content_type N/A N/A self format N/A None N/A N/A N/A format N/A N/A format N/A self format N/A N/A application/%s format N/A list_networks N/A N/A self N/A N/A N/A Fetches a list of all networks for a tenant N/A N/A N/A self do_request GET N/A self networks_path N/A api_call show_network_details N/A N/A self network N/A N/A N/A Fetches the details of a certain network N/A N/A N/A self do_request GET N/A N/A self network_path network N/A api_call create_network N/A N/A self body N/A None N/A N/A Creates a new network N/A body N/A N/A self serialize body N/A N/A N/A self do_request POST N/A self networks_path body body N/A api_call update_network N/A N/A self network body N/A None N/A N/A Updates a network N/A body N/A N/A self serialize body N/A N/A N/A self do_request PUT N/A N/A self network_path network body body N/A api_call delete_network N/A N/A self network N/A N/A N/A Deletes the specified network N/A N/A N/A self do_request DELETE N/A N/A self network_path network N/A api_call list_ports N/A N/A self network N/A N/A N/A Fetches a list of ports on a given network N/A N/A N/A self do_request GET N/A N/A self ports_path network N/A api_call show_port_details N/A N/A self network port N/A N/A N/A Fetches the details of a certain port N/A N/A N/A self do_request GET N/A N/A self port_path N/A network port N/A api_call create_port N/A N/A self network body N/A None N/A N/A Creates a new port on a given network N/A body N/A N/A self serialize body N/A N/A N/A self do_request POST N/A N/A self ports_path network body body N/A api_call delete_port N/A N/A self network port N/A N/A N/A Deletes the specified port from a network N/A N/A N/A self do_request DELETE N/A N/A self port_path N/A network port N/A api_call set_port_state N/A N/A self network port body N/A None N/A N/A Sets the state of the specified port N/A body N/A N/A self serialize body N/A N/A N/A self do_request PUT N/A N/A self port_path N/A network port body body N/A api_call show_port_attachment N/A N/A self network port N/A N/A N/A Fetches the attachment-id associated with the specified port N/A N/A N/A self do_request GET N/A N/A self attachment_path N/A network port N/A api_call attach_resource N/A N/A self network port body N/A None N/A N/A Sets the attachment-id of the specified port N/A body N/A N/A self serialize body N/A N/A N/A self do_request PUT N/A N/A self attachment_path N/A network port body body N/A api_call detach_resource N/A N/A self network port N/A N/A N/A Removes the attachment-id of the specified port N/A N/A N/A self do_request DELETE N/A N/A self attachment_path N/A network port N/A api_call N/A