Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index NameLoad If Call NameLoad NameLoad NameLoad body TryExcept body Assign NameStore SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Pass With Call AttributeLoad NameLoad attr Str NameLoad keyword Str body With Call AttributeLoad NameLoad attr Str NameLoad keyword Str body Return ListComp Call NameLoad NameLoad NameLoad keyword NameLoad comprehension NameStore NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler type NameLoad body Pass Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad TryExcept body Expr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass TryFinally body Expr Yield finalbody Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Num While CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd NameLoad Num If CompareGt NameLoad Num body Break If CompareEq AttributeLoad NameLoad attr Str body Return Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Str orelse Return Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad keyword NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad If NameLoad body Return SubscriptLoad NameLoad Index NameLoad If NameLoad body With Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword Str body With Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword Str body Return Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad Num body Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Raise Call AttributeLoad NameLoad attr Num NameLoad orelse If CompareGt NameLoad Num body Raise AttributeLoad NameLoad attr orelse Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body TryExcept body If Call NameLoad GeneratorExp CompareEq Call NameLoad NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Continue Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd CompareIn Str AttributeLoad NameLoad attr CompareEq Call NameLoad Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body TryExcept body Expr Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn NameLoad AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad NameLoad orelse Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BoolOpAnd CompareNotEq SubscriptLoad NameLoad Index Num Str CompareNotEq NameLoad Str Assign NameStore Call AttributeLoad Str attr GeneratorExp BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Str body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad If BoolOpAnd Call NameLoad NameLoad Str Call NameLoad NameLoad Str body Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
Base utilities to build API operation managers and objects on top of.
 N/A contextlib N/A hashlib N/A os N/A time dnsclient exceptions dnsclient utils getid N/A N/A obj N/A N/A N/A 
    Abstracts the common pattern of allowing both an object or an object's ID
    as a parameter when dealing with relationships.
     N/A N/A N/A N/A obj id N/A N/A N/A AttributeError N/A N/A obj N/A Manager N/A N/A utils HookableMixin N/A N/A 
    Managers interact with a particular type of API (servers, flavors, images,
    etc.) and provide CRUD operations for them.
     N/A resource_class None __init__ N/A N/A self api N/A N/A N/A N/A self api api N/A _list N/A N/A self url response_key obj_class body N/A None None N/A N/A body N/A N/A N/A _resp body N/A N/A N/A N/A self api client post url body body N/A N/A N/A _resp body N/A N/A N/A N/A self api client get url N/A N/A obj_class None N/A N/A obj_class N/A self resource_class N/A data N/A body N/A response_key N/A N/A isinstance data dict N/A N/A N/A N/A data N/A data N/A values N/A N/A N/A KeyError N/A N/A N/A N/A N/A self completion_cache human_id obj_class mode w N/A N/A N/A N/A self completion_cache uuid obj_class mode w N/A N/A N/A N/A obj_class self res loaded True N/A res data res N/A completion_cache N/A N/A self cache_type obj_class mode N/A N/A N/A 
        The completion cache store items that can be used for bash
        autocompletion, like UUIDs or human-friendly IDs.

        A resource listing will clear and repopulate the cache.

        A resource create will append to the cache.

        Delete is not handled because listings are assumed to be performed
        often enough to keep the cache reasonably up-to-date.
         N/A base_dir N/A N/A utils env NOVACLIENT_UUID_CACHE_DIR default ~/.novaclient N/A username N/A N/A utils env OS_USERNAME NOVA_USERNAME N/A url N/A N/A utils env OS_URL NOVA_URL N/A uniqifier N/A N/A N/A N/A hashlib md5 N/A username url hexdigest N/A cache_dir N/A N/A N/A os path expanduser N/A N/A N/A os path join base_dir uniqifier N/A N/A N/A N/A N/A os makedirs cache_dir 493 N/A N/A N/A OSError N/A N/A N/A resource N/A N/A N/A obj_class __name__ lower N/A filename N/A %s-%s-cache N/A resource N/A N/A cache_type replace _ - N/A path N/A N/A N/A os path join cache_dir filename N/A cache_attr N/A _%s_cache cache_type N/A N/A N/A N/A setattr self cache_attr N/A open path mode N/A N/A N/A IOError N/A N/A N/A N/A N/A N/A N/A N/A cache N/A getattr self cache_attr None N/A cache N/A N/A N/A N/A cache close N/A N/A delattr self cache_attr N/A N/A contextlib contextmanager write_to_completion_cache N/A N/A self cache_type val N/A N/A N/A cache N/A getattr self N/A _%s_cache cache_type None N/A cache N/A N/A N/A N/A cache write N/A %s
 val N/A _get_async N/A N/A self url response_key N/A None N/A N/A async_resp N/A N/A self _get url N/A n 0 N/A N/A N/A async_resp status RUNNING N/A N/A N/A N/A time sleep 1 N/A async_resp N/A N/A self _get N/A /status/%s N/A async_resp jobId N/A n N/A n 1 N/A N/A n 10 N/A N/A N/A N/A N/A async_resp status ERROR N/A N/A N/A N/A self _get N/A /status/%s?showDetails=true N/A async_resp jobId error N/A N/A N/A N/A self _get N/A /status/%s?showDetails=true N/A async_resp jobId response N/A _get N/A N/A self url response_key N/A None N/A N/A N/A _resp body N/A N/A N/A N/A self api client get url N/A response_key N/A N/A N/A N/A self resource_class self N/A body N/A response_key loaded True N/A N/A N/A N/A self resource_class self body loaded True N/A _create_async N/A N/A self url body response_key return_raw N/A False kwargs N/A N/A async_resp N/A N/A self _create url body response_key return_raw kwargs N/A N/A N/A time sleep 1 N/A N/A N/A self _get_async N/A /status/%s N/A async_resp jobId N/A _create N/A N/A self url body response_key return_raw N/A False kwargs N/A N/A N/A N/A self run_hooks modify_body_for_create body kwargs N/A N/A _resp body N/A N/A N/A N/A self api client post url body body N/A return_raw N/A N/A N/A body N/A response_key N/A response_key N/A N/A N/A N/A self completion_cache human_id N/A self resource_class mode a N/A N/A N/A N/A self completion_cache uuid N/A self resource_class mode a N/A N/A N/A N/A self resource_class self N/A body N/A response_key N/A N/A N/A N/A self resource_class self body loaded True N/A _delete N/A N/A self url N/A N/A N/A N/A _resp _body N/A N/A N/A N/A self api client delete url N/A _update N/A N/A self url body N/A kwargs N/A N/A N/A N/A self run_hooks modify_body_for_update body kwargs N/A N/A _resp body N/A N/A N/A N/A self api client put url body body N/A body N/A N/A ManagerWithFind N/A Manager N/A N/A 
    Like a `Manager`, but with additional `find()`/`findall()` methods.
     find N/A N/A self N/A kwargs N/A N/A 
        Find a single item with attributes matching ``**kwargs``.

        This isn't very efficient: it loads the entire list then filters on
        the Python side.
         N/A matches N/A N/A self findall kwargs N/A num_matches N/A len matches N/A N/A num_matches 0 N/A N/A msg N/A No %s matching %s. N/A N/A N/A self resource_class __name__ kwargs N/A N/A N/A exceptions NotFound 404 msg N/A N/A N/A num_matches 1 N/A N/A N/A exceptions NoUniqueMatch N/A N/A N/A matches N/A 0 N/A findall N/A N/A self N/A kwargs N/A N/A 
        Find all items with attributes matching ``**kwargs``.

        This isn't very efficient: it loads the entire list then filters on
        the Python side.
         N/A found N/A N/A searches N/A N/A kwargs items N/A obj N/A N/A self list N/A N/A N/A N/A N/A all N/A N/A N/A getattr obj attr value N/A N/A attr value searches N/A N/A N/A N/A found append obj N/A N/A N/A AttributeError N/A N/A N/A found N/A list N/A N/A self N/A N/A N/A NotImplementedError N/A N/A Resource N/A object N/A N/A 
    A resource represents a particular instance of an object (domain, record,
    etc). This is pretty much just a bag for attributes.

    :param manager: Manager object
    :param info: dictionary representing resource attributes
    :param loaded: prevent lazy-loading if set to True
     N/A HUMAN_ID False N/A NAME_ATTR name __init__ N/A N/A self manager info loaded N/A False N/A N/A N/A self manager manager N/A N/A self _info info N/A N/A N/A self _add_details info N/A N/A self _loaded loaded N/A N/A N/A id N/A self __dict__ N/A N/A len N/A str N/A self id 36 N/A N/A N/A N/A N/A self manager write_to_completion_cache uuid N/A self id N/A human_id N/A self human_id N/A human_id N/A N/A N/A N/A N/A self manager write_to_completion_cache human_id human_id N/A human_id N/A N/A self N/A N/A N/A Subclasses may override this provide a pretty ID which can be used
        for bash completion.
         N/A N/A N/A N/A self NAME_ATTR N/A self __dict__ N/A self HUMAN_ID N/A N/A N/A N/A utils slugify N/A getattr self N/A self NAME_ATTR N/A None N/A property _add_details N/A N/A self info N/A N/A N/A N/A k v N/A N/A info iteritems N/A N/A N/A N/A N/A setattr self k v N/A N/A N/A AttributeError N/A N/A N/A __getattr__ N/A N/A self k N/A N/A N/A N/A k N/A self __dict__ N/A N/A N/A N/A N/A self is_loaded N/A N/A N/A N/A self get N/A N/A N/A self __getattr__ k N/A N/A AttributeError k N/A N/A N/A N/A self __dict__ N/A k N/A __repr__ N/A N/A self N/A N/A N/A reprkeys N/A sorted N/A k N/A k N/A N/A N/A self __dict__ keys N/A N/A N/A k N/A 0 _ N/A k manager N/A info N/A N/A ,  join N/A N/A %s=%s N/A k N/A getattr self k N/A k reprkeys N/A N/A <%s %s> N/A N/A N/A self __class__ __name__ info N/A get N/A N/A self N/A N/A N/A N/A N/A self set_loaded True N/A N/A N/A hasattr N/A self manager get N/A N/A N/A new N/A N/A N/A self manager get N/A self id N/A new N/A N/A N/A N/A self _add_details N/A new _info N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A isinstance other N/A self __class__ N/A N/A False N/A N/A N/A hasattr self id N/A hasattr other id N/A N/A N/A N/A self id N/A other id N/A N/A N/A self _info N/A other _info N/A is_loaded N/A N/A self N/A N/A N/A N/A self _loaded N/A set_loaded N/A N/A self val N/A N/A N/A N/A self _loaded val N/A N/A