B “äî\mã@s\ddlmZddlmZddlmZddlmZddlm Z ddl m Z Gdd„de ƒZ d S) é)ÚDataNotFoundError)Úget_official_service_name)ÚClientDocumenter)ÚWaiterDocumenter)ÚPaginatorDocumenter)ÚDocumentStructurec@sNeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z ddd„Z dS)ÚServiceDocumentercCsB||_||_|jj|dddd|_|jjj|_ddddd g|_dS) Nz us-east-1ZfooÚbar)Z region_nameZaws_access_key_idZaws_secret_access_keyÚtitleztable-of-contentsz client-apiz paginator-apiz waiter-api)Ú_sessionÚ _service_nameZ create_clientÚ_clientÚmetaÚeventsÚ_event_emitterÚsections)ÚselfÚ service_nameÚsession©rú9/tmp/pip-build-uw_ogi45/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_namesÚtargetr ztable-of-contentsz client-apiz paginator-apiz waiter-api) rr rr Z get_sectionÚtable_of_contentsÚ client_apiÚ paginator_apiÚ waiter_apiZflush_structure)rZ doc_structurerrrÚdocument_service'sz"ServiceDocumenter.document_servicecCs0|j |jjj¡|jjdd|jf|ddS)Nz docs.%s.%sr )Úsection)ÚstyleÚh1r Ú __class__Ú__name__rÚemitr )rrrrrr 6s zServiceDocumenter.titlecCs|jjddddS)NzTable of Contentsé)r Údepth)r r)rrrrrr>sz#ServiceDocumenter.table_of_contentscCs@d}y| |j¡}Wntk r(YnXt|j|ƒ |¡dS)N)Ú get_examplesr rrr Zdocument_client)rrÚexamplesrrrrAs zServiceDocumenter.client_apicCsBy|j |j¡}Wntk r&dSXt|j|ƒ}| |¡dS)N)r Zget_paginator_modelr rrr Zdocument_paginators)rrZservice_paginator_modelZpaginator_documenterrrrrJs  zServiceDocumenter.paginator_apicCs0|jjr,|j |j¡}t|j|ƒ}| |¡dS)N)r Z waiter_namesr Zget_waiter_modelr rZdocument_waiters)rrZservice_waiter_modelZwaiter_documenterrrrrTs  zServiceDocumenter.waiter_apiNcCs"|j d¡}| |d|¡}|dS)NZ data_loaderz examples-1r()r Z get_componentZload_service_model)rrÚ api_versionÚloaderr(rrrr'\s  zServiceDocumenter.get_examples)N) r#Ú __module__Ú __qualname__rrr rrrrr'rrrrrs  rN)Zbotocore.exceptionsrZbotocore.docs.utilsrZbotocore.docs.clientrZbotocore.docs.waiterrZbotocore.docs.paginatorrZbotocore.docs.bcdoc.restdocrÚobjectrrrrrÚ s