HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/site-packages/botocore/docs/__pycache__/service.cpython-38.pyc
U

KD�g~�@sVddlmZddlmZmZmZddlmZddlm	Z	ddl
mZGdd�d�ZdS)	�)�DocumentStructure)�ClientContextParamsDocumenter�ClientDocumenter�ClientExceptionsDocumenter)�PaginatorDocumenter)�WaiterDocumenter)�DataNotFoundErrorc@s^eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
ddd�Zdd�ZdS)�ServiceDocumentercCsJ||_||_||_|jj|dddd�|_|jjj|_ddddd	d
g|_dS)Nz	us-east-1Zfoo�bar)Zregion_nameZaws_access_key_idZaws_secret_access_key�title�
client-api�client-exceptions�
paginator-api�
waiter-api�client-context-params)	�_session�
_service_name�_root_docs_pathZ
create_client�_client�meta�events�_event_emitter�sections)�self�service_name�sessionZroot_docs_path�r�B/opt/cppython/lib/python3.8/site-packages/botocore/docs/service.py�__init__s"��zServiceDocumenter.__init__cCs~t|j|jdd�}|�|�d��|�|�d��|�|�d��|�|�d��|�|�d��|�d�}|�	|�|�
�S)	ziDocuments an entire service.

        :returns: The reStructured text of the documented service.
        �html)Z
section_names�targetrrr
rrr)rrrrZget_section�
client_api�client_exceptions�
paginator_api�
waiter_api�client_context_paramsZflush_structure)rZ
doc_structureZcontext_params_sectionrrr�document_service/s��
z"ServiceDocumenter.document_servicecCs.|j�|jjj�|jjd|j��|d�dS)Nzdocs.title.)�section)�styleZh1r�	__class__�__name__r�emitr�rr'rrrrBs

�zServiceDocumenter.titlecCs|jjddd�dS)NzTable of Contents�)r�depth)r(�table_of_contentsr,rrrr/Hsz#ServiceDocumenter.table_of_contentscCsDd}z|�|j�}Wntk
r(YnXt|j|j|��|�dS�N)�get_examplesrrrrrZdocument_client)rr'�examplesrrrr!Ks��zServiceDocumenter.client_apicCst|j|j��|�dSr0)rrrZdocument_exceptionsr,rrrr"Vs��z#ServiceDocumenter.client_exceptionscCsNz|j�|j�}Wntk
r(YdSX|jrJt|j||j�}|�|�dSr0)	rZget_paginator_modelrrZ_paginator_configrrrZdocument_paginators)rr'Zservice_paginator_modelZpaginator_documenterrrrr#[s��zServiceDocumenter.paginator_apicCs4|jjr0|j�|j�}t|j||j�}|�|�dSr0)rZwaiter_namesrZget_waiter_modelrrrZdocument_waiters)rr'Zservice_waiter_modelZwaiter_documenterrrrr$hs��zServiceDocumenter.waiter_apiNcCs"|j�d�}|�|d|�}|dS)NZdata_loaderz
examples-1r2)rZ
get_componentZload_service_model)rr�api_version�loaderr2rrrr1rs�zServiceDocumenter.get_examplescsTtj}|�|jg��|jjj}|j}�fdd�|D�}|rPt|j|�}|�|�dS)Ncsg|]}|j�kr|�qSr)�name)�.0�p�Zparams_to_omitrr�
<listcomp>~s
z;ServiceDocumenter.client_context_params.<locals>.<listcomp>)	rZOMITTED_CONTEXT_PARAMS�getrrr�
service_modelZclient_context_parametersZdocument_context_params)rr'Zomitted_paramsr;Zraw_context_paramsZcontext_paramsZcontext_param_documenterrr8rr%ys

��z'ServiceDocumenter.client_context_params)N)
r*�
__module__�__qualname__rr&rr/r!r"r#r$r1r%rrrrr	s


r	N)
Zbotocore.docs.bcdoc.restdocrZbotocore.docs.clientrrrZbotocore.docs.paginatorrZbotocore.docs.waiterrZbotocore.exceptionsrr	rrrr�<module>
s