B ݁[ @s\ddlmZddlmZddlmZddlmZddlm Z ddl m Z Gddde Z d S) )DataNotFoundError)get_official_service_name)ClientDocumenter)WaiterDocumenter)PaginatorDocumenter)DocumentStructurec@sNeZdZddZddZddZddZd d Zd d Zd dZ dddZ dS)ServiceDocumentercCs6||_||_|jj|dddd|_ddddd g|_dS) Nz us-east-1ZfooZbar) region_nameaws_access_key_idaws_secret_access_keytitleztable-of-contentsz client-apiz paginator-apiz waiter-api)_session _service_name create_client_clientsections)self service_namesessionrV/Users/kashii/Desktop/Projects/Workshops/worker-safety/lambda/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_namestargetr ztable-of-contentsz client-apiz paginator-apiz waiter-api) rrrr Z get_sectiontable_of_contents client_api paginator_api waiter_apiZflush_structure)rZ doc_structurerrrdocument_service&sz"ServiceDocumenter.document_servicecCs|j|jjjdS)N)styleZh1r __class____name__)rsectionrrrr 5szServiceDocumenter.titlecCs|jjddddS)NzTable of Contents)r depth)rr)rr"rrrr8sz#ServiceDocumenter.table_of_contentscCs@d}y||j}Wntk r(YnXt|j||dS)N) get_examplesrrrrZdocument_client)rr"examplesrrrr;s zServiceDocumenter.client_apicCsBy|j|j}Wntk r&dSXt|j|}||dS)N)r get_paginator_modelrrrrZdocument_paginators)rr"Zservice_paginator_modelZpaginator_documenterrrrrDs  zServiceDocumenter.paginator_apicCs0|jjr,|j|j}t|j|}||dS)N)r waiter_namesr get_waiter_modelrrZdocument_waiters)rr"service_waiter_modelZwaiter_documenterrrrrNs  zServiceDocumenter.waiter_apiNcCs"|jd}||d|}|dS)N data_loaderz examples-1r&)r get_componentload_service_model)rr api_versionloaderr&rrrr%Vs  zServiceDocumenter.get_examples)N) r! __module__ __qualname__rrr rrrrr%rrrrrs  rN)botocore.exceptionsrZbotocore.docs.utilsrZbotocore.docs.clientrZbotocore.docs.waiterrZbotocore.docs.paginatorrZbotocore.docs.bcdoc.restdocrobjectrrrrr s