B 䊇cWã@sRddlmZddlmZmZddlmZddlmZddl m Z Gdd„dƒZ dS) é)ÚDocumentStructure)ÚClientDocumenterÚClientExceptionsDocumenter)ÚPaginatorDocumenter)ÚWaiterDocumenter)ÚDataNotFoundErrorc@sVeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z ddd„Z dS)ÚServiceDocumentercCsD||_||_|jj|dddd|_|jjj|_ddddd d g|_dS) Nz us-east-1ZfooÚbar)Z region_nameZaws_access_key_idZaws_secret_access_keyÚtitleztable-of-contentsz client-apizclient-exceptionsz paginator-apiz waiter-api)Ú_sessionÚ _service_nameZ create_clientÚ_clientÚmetaÚeventsÚ_event_emitterÚsections)ÚselfÚ service_nameÚsession©rúp/private/var/folders/8c/hx9_v10d5x38qmnzt13b7b8j1k3n5b/T/pip-target-x6xd5gna/lib/python/botocore/docs/service.pyÚ__init__s  zServiceDocumenter.__init__cCszt|j|jdd}| | d¡¡| | d¡¡| | d¡¡| | d¡¡| | d¡¡|  | d¡¡|  ¡S) ziDocuments an entire service. :returns: The reStructured text of the documented service. Úhtml)Z section_namesÚtargetr ztable-of-contentsz client-apizclient-exceptionsz paginator-apiz waiter-api) rr rr Z get_sectionÚtable_of_contentsÚ client_apiÚclient_exceptionsÚ paginator_apiÚ waiter_apiZflush_structure)rZ doc_structurerrrÚdocument_service*sz"ServiceDocumenter.document_servicecCs.|j |jjj¡|jjd|j›|ddS)Nz docs.title.)Úsection)ÚstyleZh1r Ú __class__Ú__name__rÚemitr )rr rrrr :szServiceDocumenter.titlecCs|jjddddS)NzTable of Contentsé)r Údepth)r!r)rr rrrr@sz#ServiceDocumenter.table_of_contentscCs@d}y| |j¡}Wntk r(YnXt|j|ƒ |¡dS)N)Ú get_examplesr rrr Zdocument_client)rr ÚexamplesrrrrCs zServiceDocumenter.client_apicCst|jƒ |¡dS)N)rr Zdocument_exceptions)rr rrrrLsz#ServiceDocumenter.client_exceptionscCsBy|j |j¡}Wntk r&dSXt|j|ƒ}| |¡dS)N)r Zget_paginator_modelr rrr Zdocument_paginators)rr Zservice_paginator_modelZpaginator_documenterrrrrOs  zServiceDocumenter.paginator_apicCs0|jjr,|j |j¡}t|j|ƒ}| |¡dS)N)r Z waiter_namesr Zget_waiter_modelr rZdocument_waiters)rr Zservice_waiter_modelZwaiter_documenterrrrr[s  zServiceDocumenter.waiter_apiNcCs"|j d¡}| |d|¡}|dS)NZ data_loaderz examples-1r()r Z get_componentZload_service_model)rrÚ api_versionÚloaderr(rrrr'es  zServiceDocumenter.get_examples)N) r#Ú __module__Ú __qualname__rrr rrrrrr'rrrrrs   rN) Zbotocore.docs.bcdoc.restdocrZbotocore.docs.clientrrZbotocore.docs.paginatorrZbotocore.docs.waiterrZbotocore.exceptionsrrrrrrÚ s