o T@sdZeZdgZzddlmZWneyddlmZYnwddlm Z m Z Gddde Z Gddde Z Gd dde Z d S) z5Test client for the lazr.restful example web service.CookbookWebServiceClient)quote)CollectionWithKeyBasedLookup ServiceRootc@eZdZdZddZdZdS) CookbookSetz>A custom subclass capable of cookbook lookup by cookbook name.cCs t|jjdtt|S)z>Transform a cookbook name into the URL to a cookbook resource.z cookbooks/)str_root _root_uri ensureSlashrselfidrB/usr/lib/python3/dist-packages/lazr/restfulclient/tests/example.py_get_url_from_id%s  zCookbookSet._get_url_from_idcookbookN__name__ __module__ __qualname____doc__r collection_ofrrrrr"src@r) RecipeSetz8A custom subclass capable of recipe lookup by recipe ID.cCst|jjdt|S)z8Transform a recipe ID into the URL to a recipe resource.zrecipes/)rr r r r rrrr0szRecipeSet._get_url_from_idrecipeNrrrrrr-srcsFeZdZeejZeed<eed<dZdZ ee dffdd Z Z S)rrecipes cookbookszhttp://cookbooks.dev/z1.0Ncstt|jd|||ddS)N)cacheversion)superr__init__)r service_rootrr __class__rrr @s  z!CookbookWebServiceClient.__init__) rrrdictrRESOURCE_TYPE_CLASSESrrDEFAULT_SERVICE_ROOTDEFAULT_VERSIONr __classcell__rrr"rr7s N)rtype __metaclass____all__ urllib.parser ImportErrorurlliblazr.restfulclient.resourcerrrrrrrrrs