HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //proc/self/root/lib/python3.6/site-packages/botocore/docs/__pycache__/service.cpython-36.pyc
3

�T_��@shddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZGdd	�d	e
�Zd
S)�)�DataNotFoundError)�get_official_service_name)�ClientDocumenter)�ClientExceptionsDocumenter)�WaiterDocumenter)�PaginatorDocumenter)�DocumentStructurec@sVeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
ddd�ZdS)�ServiceDocumentercCsD||_||_|jj|dddd�|_|jjj|_ddddd	d
g|_dS)Nz	us-east-1ZfooZbar)Zregion_nameZaws_access_key_idZaws_secret_access_key�titleztable-of-contentsz
client-apizclient-exceptionsz
paginator-apiz
waiter-api)�_session�
_service_nameZ
create_client�_client�metaZevents�_event_emitter�sections)�self�service_nameZsession�r�/usr/lib/python3.6/service.py�__init__s
zServiceDocumenter.__init__cCszt|j|jdd�}|j|jd��|j|jd��|j|jd��|j|jd��|j|jd��|j	|jd��|j
�S)	ziDocuments an entire service.

        :returns: The reStructured text of the documented service.
        Zhtml)Z
section_names�targetr
ztable-of-contentsz
client-apizclient-exceptionsz
paginator-apiz
waiter-api)rrrr
Zget_section�table_of_contents�
client_api�client_exceptions�
paginator_api�
waiter_apiZflush_structure)rZ
doc_structurerrr�document_service)sz"ServiceDocumenter.document_servicecCs0|jj|jjj�|jjdd|jf|d�dS)Nz
docs.%s.%sr
)�section)�styleZh1r
�	__class__�__name__r�emitr)rrrrrr
9s
zServiceDocumenter.titlecCs|jjddd�dS)NzTable of Contents�)r
�depth)rr)rrrrrrAsz#ServiceDocumenter.table_of_contentscCs@d}y|j|j�}Wntk
r(YnXt|j|�j|�dS)N)�get_examplesrrrr
Zdocument_client)rr�examplesrrrrDszServiceDocumenter.client_apicCst|j�j|�dS)N)rr
Zdocument_exceptions)rrrrrrMsz#ServiceDocumenter.client_exceptionscCsBy|jj|j�}Wntk
r&dSXt|j|�}|j|�dS)N)rZget_paginator_modelrrrr
Zdocument_paginators)rrZservice_paginator_modelZpaginator_documenterrrrrPs
zServiceDocumenter.paginator_apicCs0|jjr,|jj|j�}t|j|�}|j|�dS)N)r
Zwaiter_namesrZget_waiter_modelrrZdocument_waiters)rrZservice_waiter_modelZwaiter_documenterrrrrZs
zServiceDocumenter.waiter_apiNcCs"|jjd�}|j|d|�}|dS)NZdata_loaderz
examples-1r%)rZ
get_componentZload_service_model)rr�api_version�loaderr%rrrr$bs
zServiceDocumenter.get_examples)N)r �
__module__�__qualname__rrr
rrrrrr$rrrrr	s	
r	N)Zbotocore.exceptionsrZbotocore.docs.utilsrZbotocore.docs.clientrrZbotocore.docs.waiterrZbotocore.docs.paginatorrZbotocore.docs.bcdoc.restdocr�objectr	rrrr�<module>
s