o .&aX@s\ddlmZddlmZddlmZddlmZddlmZddl m Z Gddde Z d S) )DataNotFoundError)ClientDocumenter)ClientExceptionsDocumenter)WaiterDocumenter)PaginatorDocumenter)DocumentStructurec@sVeZdZddZddZddZddZd d Zd d Zd dZ ddZ dddZ dS)ServiceDocumentercCs<||_||_|jj|dddd|_|jjj|_gd|_dS)Nz us-east-1foobar) region_nameaws_access_key_idaws_secret_access_key)titletable-of-contents client-apiclient-exceptions paginator-api waiter-api)_session _service_name create_client_clientmetaevents_event_emittersections)self service_namesessionr7/usr/lib/python3/dist-packages/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) section_namestargetrrrrrr) rrrr get_sectiontable_of_contents client_apiclient_exceptions paginator_api waiter_apiflush_structure)r doc_structurerrr document_service(sz"ServiceDocumenter.document_servicecCs0|j|jjj|jjdd|jf|ddS)Nz docs.%s.%sr)section)styleh1r __class____name__remitrrr.rrr r8s zServiceDocumenter.titlecCs|jjddddS)NzTable of Contents)rdepth)r/r&r4rrr r&@z#ServiceDocumenter.table_of_contentscCs>d}z||j}Wn tyYnwt|j||dSN) get_examplesrrrrdocument_client)rr.examplesrrr r'Cs zServiceDocumenter.client_apicCst|j|dSr8)rrdocument_exceptionsr4rrr r(Lr7z#ServiceDocumenter.client_exceptionscCsBz |j|j}Wn tyYdSwt|j|}||dSr8)rget_paginator_modelrrrrdocument_paginators)rr.service_paginator_modelpaginator_documenterrrr r)Os zServiceDocumenter.paginator_apicCs4|jjr|j|j}t|j|}||dSdSr8)r waiter_namesrget_waiter_modelrrdocument_waiters)rr.service_waiter_modelwaiter_documenterrrr r*YszServiceDocumenter.waiter_apiNcCs"|jd}||d|}|dS)N data_loaderz examples-1r;)r get_componentload_service_model)rr api_versionloaderr;rrr r9as zServiceDocumenter.get_examplesr8) r2 __module__ __qualname__r!r-rr&r'r(r)r*r9rrrr rs  rN) botocore.exceptionsrbotocore.docs.clientrrbotocore.docs.waiterrbotocore.docs.paginatorrbotocore.docs.bcdoc.restdocrobjectrrrrr s