HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/botocore/docs/__pycache__/service.cpython-312.pyc
�

P��e~��\�ddlmZddlmZmZmZddlmZddlm	Z	ddl
mZGd�d�Zy)	�)�DocumentStructure)�ClientContextParamsDocumenter�ClientDocumenter�ClientExceptionsDocumenter)�PaginatorDocumenter)�WaiterDocumenter)�DataNotFoundErrorc�J�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
dd
�Zd�Zy	)
�ServiceDocumenterc���||_||_||_|jj|ddd��|_|jj
j|_gd�|_y)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_paths    �7/usr/lib/python3/dist-packages/botocore/docs/service.py�__init__zServiceDocumenter.__init__sc����
�)���-����}�}�2�2��#�#�"'�	3�
���#�l�l�/�/�6�6���
��
�c���t|j|jd��}|j|j	d��|j|j	d��|j
|j	d��|j|j	d��|j|j	d��|j	d�}|j|�|j�S)	ziDocuments an entire service.

        :returns: The reStructured text of the documented service.
        �html)�
section_names�targetrrrrrr)rrr r�get_section�
client_api�client_exceptions�
paginator_api�
waiter_api�client_context_params�flush_structure)r!�
doc_structure�context_params_sections   r%�document_servicez"ServiceDocumenter.document_service/s���
*����d�m�m�F�
�
�	
�
�
�=�,�,�W�5�6����
�1�1�,�?�@����}�8�8�9L�M�N����=�4�4�_�E�F����
�1�1�,�?�@�!.�!:�!:�#�"
��	
�"�"�#9�:��,�,�.�.r'c���|jj|jjj�|j
j
d|j��|��y)Nzdocs.title.)�section)�style�h1r�	__class__�__name__r�emitr�r!r7s  r%rzServiceDocumenter.titleBsP���
�
������/�/�8�8�9���� � ��$�,�,�-�.��	!�	
r'c�>�|jjdd��y)NzTable of Contents�)r�depth)r8�table_of_contentsr=s  r%rAz#ServiceDocumenter.table_of_contentsHs���
�
�'�'�.A��'�Kr'c��d}	|j|j�}t|j|j
|�j
|�y#t$rY�<wxYw�N)�get_examplesrr	rrr�document_client)r!r7�exampless   r%r-zServiceDocumenter.client_apiKs[����	��(�(��);�);�<�H�	��L�L�$�.�.��	
�
�/�'�
"��!�	��	�s�A�	A�Ac�b�t|j|j�j|�yrC)rrr�document_exceptionsr=s  r%r.z#ServiceDocumenter.client_exceptionsVs$��"��L�L�$�.�.�	
�
�
�g�
&r'c���	|jj|j�}|jr3t|j||j�}|j|�yy#t$rYywxYwrC)	r�get_paginator_modelrr	�_paginator_configrrr�document_paginators)r!r7�service_paginator_model�paginator_documenters    r%r/zServiceDocumenter.paginator_api[sv��	�&*�m�m�&G�&G��"�"�'�#�
#�4�4�#6����5�t�7K�7K�$� �
!�4�4�W�=�	5��!�	��	�s�%A'�'	A3�2A3c���|jjrX|jj|j�}t|j||j�}|j|�yyrC)r�waiter_namesr�get_waiter_modelrrr�document_waiters)r!r7�service_waiter_model�waiter_documenters    r%r0zServiceDocumenter.waiter_apihsa���<�<�$�$�#'�=�=�#A�#A��"�"�$� �!1����2�D�4H�4H�!��
�.�.�w�7�%r'Nc�h�|jjd�}|j|d|�}|dS)N�data_loaderz
examples-1rF)r�
get_component�load_service_model)r!r"�api_version�loaderrFs     r%rDzServiceDocumenter.get_examplesrs:�����,�,�]�;���,�,��,��
���
�#�#r'c�N�tj}|j|jg�}|jj
j}|j}|D�cgc]}|j|vs�|��}}|r(t|j|�}|j|�yycc}wrC)
r�OMITTED_CONTEXT_PARAMS�getrrr�
service_model�client_context_parameters�name�document_context_params)	r!r7�omitted_params�params_to_omitr^�raw_context_params�p�context_params�context_param_documenters	         r%r1z'ServiceDocumenter.client_context_paramsys���6�M�M��'�+�+�D�,>�,>��C�����)�)�7�7�
�*�D�D��)�
��Q�V�V�>�-I�A�
��
��'D��"�"�N�(�$�
%�<�<�W�E�	��
s�B"�1B"rC)
r;�
__module__�__qualname__r&r5rrAr-r.r/r0rDr1�r'r%rrs6��
�,/�&
�L�	#�'�
>�8�$�Fr'rN)
�botocore.docs.bcdoc.restdocr�botocore.docs.clientrrr�botocore.docs.paginatorr�botocore.docs.waiterr�botocore.exceptionsr	rrjr'r%�<module>rps-��:���
8�1�1�mF�mFr'