HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/botocore/docs/__pycache__/service.cpython-310.pyc
o

.&�aX�@s\ddlmZddlmZddlmZddlmZddlmZddl	m
Z
Gdd�de�Zd	S)
�)�DataNotFoundError)�ClientDocumenter)�ClientExceptionsDocumenter)�WaiterDocumenter)�PaginatorDocumenter)�DocumentStructurec@sVeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
ddd�ZdS)�ServiceDocumentercCs<||_||_|jj|dddd�|_|jjj|_gd�|_dS)Nz	us-east-1�foo�bar)�region_name�aws_access_key_id�aws_secret_access_key)�title�table-of-contents�
client-api�client-exceptions�
paginator-api�
waiter-api)�_session�
_service_name�
create_client�_client�meta�events�_event_emitter�sections)�self�service_name�session�r�7/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_names�targetrrrrrr)rrrr�get_section�table_of_contents�
client_api�client_exceptions�
paginator_api�
waiter_api�flush_structure)r�
doc_structurerrr �document_service(s�z"ServiceDocumenter.document_servicecCs0|j�|jjj�|jjdd|jf|d�dS)Nz
docs.%s.%sr)�section)�style�h1r�	__class__�__name__r�emitr�rr.rrr r8s�
�zServiceDocumenter.titlecCs|jjddd�dS)NzTable of Contents�)r�depth)r/r&r4rrr r&@�z#ServiceDocumenter.table_of_contentscCs>d}z|�|j�}Wn	tyYnwt|j|��|�dS�N)�get_examplesrrrr�document_client)rr.�examplesrrr r'Cs�zServiceDocumenter.client_apicCst|j��|�dSr8)rr�document_exceptionsr4rrr r(Lr7z#ServiceDocumenter.client_exceptionscCsBz	|j�|j�}Wn
tyYdSwt|j|�}|�|�dSr8)r�get_paginator_modelrrrr�document_paginators)rr.�service_paginator_model�paginator_documenterrrr r)Os���zServiceDocumenter.paginator_apicCs4|jjr|j�|j�}t|j|�}|�|�dSdSr8)r�waiter_namesr�get_waiter_modelrr�document_waiters)rr.�service_waiter_model�waiter_documenterrrr r*Ys���zServiceDocumenter.waiter_apiNcCs"|j�d�}|�|d|�}|dS)N�data_loaderz
examples-1r;)r�
get_component�load_service_model)rr�api_version�loaderr;rrr r9as
�zServiceDocumenter.get_examplesr8)r2�
__module__�__qualname__r!r-rr&r'r(r)r*r9rrrr rs	
rN)
�botocore.exceptionsr�botocore.docs.clientrr�botocore.docs.waiterr�botocore.docs.paginatorr�botocore.docs.bcdoc.restdocr�objectrrrrr �<module>s