B >@Sa’ã@shddlmZddlmZddlmZddlmZddlmZddl m Z ddl m Z Gdd „d e ƒZd S) é)ÚDataNotFoundError)Úget_official_service_name)ÚClientDocumenter)ÚClientExceptionsDocumenter)ÚWaiterDocumenter)ÚPaginatorDocumenter)ÚDocumentStructurec@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úm/private/var/folders/fg/1jzmct0d7d72tjkvm_1nhqc5sw67yj/T/pip-unpacked-wheel-ef76ia09/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_servicecCs0|j |jjj¡|jjdd|jf|ddS)Nz docs.%s.%sr )Úsection)ÚstyleÚh1rÚ __class__Ú__name__rÚemitr )rr!rrrr 9s zServiceDocumenter.titlecCs|jjddddS)NzTable of Contentsé)r Údepth)r"r)rr!rrrrAsz#ServiceDocumenter.table_of_contentscCs@d}y| |j¡}Wntk r(YnXt|j|ƒ |¡dS)N)Ú get_examplesr rrrZdocument_client)rr!ÚexamplesrrrrDs zServiceDocumenter.client_apicCst|jƒ |¡dS)N)rrZdocument_exceptions)rr!rrrrMsz#ServiceDocumenter.client_exceptionscCsBy|j |j¡}Wntk r&dSXt|j|ƒ}| |¡dS)N)r Zget_paginator_modelr rrrZdocument_paginators)rr!Zservice_paginator_modelZpaginator_documenterrrrrPs  zServiceDocumenter.paginator_apicCs0|jjr,|j |j¡}t|j|ƒ}| |¡dS)N)rZ waiter_namesr Zget_waiter_modelr rZdocument_waiters)rr!Zservice_waiter_modelZwaiter_documenterrrrrZs  zServiceDocumenter.waiter_apiNcCs"|j d¡}| |d|¡}|dS)NZ data_loaderz examples-1r*)r Z get_componentZload_service_model)rrÚ api_versionÚloaderr*rrrr)bs  zServiceDocumenter.get_examples)N) r%Ú __module__Ú __qualname__rr r rrrrrr)rrrrr s  r N)Zbotocore.exceptionsrZbotocore.docs.utilsrZbotocore.docs.clientrrZbotocore.docs.waiterrZbotocore.docs.paginatorrZbotocore.docs.bcdoc.restdocrÚobjectr rrrrÚ s