U C^m@s\ddlmZddlmZddlmZddlmZddlm Z ddl m Z Gddde Z d S) )DataNotFoundError)get_official_service_name)ClientDocumenter)WaiterDocumenter)PaginatorDocumenter)DocumentStructurec@sNeZdZddZddZddZddZd d Zd d Zd dZ dddZ dS)ServiceDocumentercCsB||_||_|jj|dddd|_|jjj|_ddddd g|_dS) Nz us-east-1Zfoobar)Z region_nameZaws_access_key_idZaws_secret_access_keytitletable-of-contents client-api paginator-api waiter-api)_session _service_nameZ create_client_clientmetaevents_event_emittersections)self service_namesessionr;/tmp/pip-install-6_kvzl1k/botocore/botocore/docs/service.py__init__s zServiceDocumenter.__init__cCsjt|j|jdd}||d||d||d||d||d| S)ziDocuments an entire service. :returns: The reStructured text of the documented service. html)Z section_namestargetr r r r r) rrrr Z get_sectiontable_of_contents client_api paginator_api waiter_apiZflush_structure)rZ doc_structurerrrdocument_service'sz"ServiceDocumenter.document_servicecCs0|j|jjj|jjdd|jf|ddS)Nz docs.%s.%sr )section)styleh1r __class____name__remitrrr#rrrr 6szServiceDocumenter.titlecCs|jjddddS)NzTable of Contents)r depth)r$rr)rrrr>sz#ServiceDocumenter.table_of_contentscCs@d}z||j}Wntk r(YnXt|j||dSN) get_examplesrrrrZdocument_client)rr#examplesrrrrAs zServiceDocumenter.client_apicCsDz|j|j}Wntk r(YdSXt|j|}||dSr,)rZget_paginator_modelrrrrZdocument_paginators)rr#Zservice_paginator_modelZpaginator_documenterrrrr JszServiceDocumenter.paginator_apicCs0|jjr,|j|j}t|j|}||dSr,)rZ waiter_namesrZget_waiter_modelrrZdocument_waiters)rr#Zservice_waiter_modelZwaiter_documenterrrrr!TszServiceDocumenter.waiter_apiNcCs"|jd}||d|}|dS)NZ data_loaderz examples-1r.)rZ get_componentZload_service_model)rr api_versionloaderr.rrrr-\s zServiceDocumenter.get_examples)N) r' __module__ __qualname__rr"r rrr r!r-rrrrrs  rN)Zbotocore.exceptionsrZbotocore.docs.utilsrZbotocore.docs.clientrZbotocore.docs.waiterrZbotocore.docs.paginatorrZbotocore.docs.bcdoc.restdocrobjectrrrrr s