o ?cW@sRddlmZddlmZmZddlmZddlmZddl m Z GdddZ dS) )DocumentStructure)ClientDocumenterClientExceptionsDocumenter)PaginatorDocumenter)WaiterDocumenter)DataNotFoundErrorc@sVeZdZddZddZddZddZd d Zd d Zd dZ ddZ dddZ dS)ServiceDocumentercCs<||_||_|jj|dddd|_|jjj|_gd|_dS)Nz us-east-1Zfoobar)Z region_nameZaws_access_key_idZaws_secret_access_key)titletable-of-contents client-apiclient-exceptions paginator-api waiter-api)_session _service_nameZ create_client_clientmetaevents_event_emittersections)self service_namesessionrp/private/var/folders/cw/wlscbxl13mj6wd668h7l9g9sllkg5j/T/pip-target-b31awkwq/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_namestargetr r r r rr) rrrr Z get_sectiontable_of_contents client_apiclient_exceptions paginator_api waiter_apiZflush_structure)rZ doc_structurerrrdocument_service*s z"ServiceDocumenter.document_servicecCs.|j|jjj|jjd|j|ddS)Nz docs.title.)section)styleZh1r __class____name__remitrrr%rrrr :s  zServiceDocumenter.titlecCs|jjddddS)NzTable of Contents)r depth)r&rr*rrrr@z#ServiceDocumenter.table_of_contentscCs>d}z||j}Wn tyYnwt|j||dSN) get_examplesrrrrZdocument_client)rr%examplesrrrr Cs zServiceDocumenter.client_apicCst|j|dSr.)rrZdocument_exceptionsr*rrrr!Lr-z#ServiceDocumenter.client_exceptionscCsBz |j|j}Wn tyYdSwt|j|}||dSr.)rZget_paginator_modelrrrrZdocument_paginators)rr%Zservice_paginator_modelZpaginator_documenterrrrr"Os zServiceDocumenter.paginator_apicCs4|jjr|j|j}t|j|}||dSdSr.)rZ waiter_namesrZget_waiter_modelrrZdocument_waiters)rr%Zservice_waiter_modelZwaiter_documenterrrrr#[szServiceDocumenter.waiter_apiNcCs"|jd}||d|}|dS)NZ data_loaderz examples-1r0)rZ get_componentZload_service_model)rr api_versionloaderr0rrrr/es zServiceDocumenter.get_examplesr.) r( __module__ __qualname__rr$r rr r!r"r#r/rrrrrs   rN) Zbotocore.docs.bcdoc.restdocrZbotocore.docs.clientrrZbotocore.docs.paginatorrZbotocore.docs.waiterrZbotocore.exceptionsrrrrrrs