HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib/python3.10/site-packages/botocore/docs/__pycache__/service.cpython-310.pyc
o

�h~�@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)�ServiceDocumentercCsB||_||_||_|jj|dddd�|_|jjj|_gd�|_dS)Nz	us-east-1�foo�bar)�region_name�aws_access_key_id�aws_secret_access_key)�title�
client-api�client-exceptions�
paginator-api�
waiter-api�client-context-params)	�_session�
_service_name�_root_docs_path�
create_client�_client�meta�events�_event_emitter�sections)�self�service_name�session�root_docs_path�r"�H/usr/local/CyberCP/lib/python3.10/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)�
section_names�targetrrrrrr)rrrr�get_section�
client_api�client_exceptions�
paginator_api�
waiter_api�client_context_params�flush_structure)r�
doc_structure�context_params_sectionr"r"r#�document_service/s
��
z"ServiceDocumenter.document_servicecCs.|j�|jjj�|jjd|j��|d�dS)Nzdocs.title.)�section)�style�h1r�	__class__�__name__r�emitr�rr2r"r"r#rBs
�zServiceDocumenter.titlecCs|jjddd�dS)NzTable of Contents�)r�depth)r3�table_of_contentsr8r"r"r#r;Hsz#ServiceDocumenter.table_of_contentscCsBd}z|�|j�}Wn	tyYnwt|j|j|��|�dS�N)�get_examplesrrrrr�document_client)rr2�examplesr"r"r#r)Ks�
�zServiceDocumenter.client_apicCst|j|j��|�dSr<)rrr�document_exceptionsr8r"r"r#r*Vs�z#ServiceDocumenter.client_exceptionscCsPz	|j�|j�}Wn
tyYdSw|jr&t|j||j�}|�|�dSdSr<)	r�get_paginator_modelrr�_paginator_configrrr�document_paginators)rr2�service_paginator_model�paginator_documenterr"r"r#r+[s��
��zServiceDocumenter.paginator_apicCs8|jjr|j�|j�}t|j||j�}|�|�dSdSr<)r�waiter_namesr�get_waiter_modelrrr�document_waiters)rr2�service_waiter_model�waiter_documenterr"r"r#r,hs�
��zServiceDocumenter.waiter_apiNcCs"|j�d�}|�|d|�}|dS)N�data_loaderz
examples-1r?)r�
get_component�load_service_model)rr�api_version�loaderr?r"r"r#r=rs
�zServiceDocumenter.get_examplescsXtj}|�|jg��|jjj}|j}�fdd�|D�}|r*t|j|�}|�|�dSdS)Ncsg|]	}|j�vr|�qSr")�name)�.0�p��params_to_omitr"r#�
<listcomp>~sz;ServiceDocumenter.client_context_params.<locals>.<listcomp>)	r�OMITTED_CONTEXT_PARAMS�getrrr�
service_model�client_context_parameters�document_context_params)rr2�omitted_paramsrX�raw_context_params�context_params�context_param_documenterr"rSr#r-ys

���z'ServiceDocumenter.client_context_paramsr<)
r6�
__module__�__qualname__r$r1rr;r)r*r+r,r=r-r"r"r"r#r	s

r	N)
�botocore.docs.bcdoc.restdocr�botocore.docs.clientrrr�botocore.docs.paginatorr�botocore.docs.waiterr�botocore.exceptionsrr	r"r"r"r#�<module>s