HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python311/lib/python3.11/site-packages/botocore/docs/__pycache__/service.cpython-311.pyc
�

/�;f~��d�ddlmZddlmZmZmZddlmZddlm	Z	ddl
mZGd�d��ZdS)	�)�DocumentStructure)�ClientContextParamsDocumenter�ClientDocumenter�ClientExceptionsDocumenter)�PaginatorDocumenter)�WaiterDocumenter)�DataNotFoundErrorc�L�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
dd
�Zd�Zd	S)
�ServiceDocumenterc��||_||_||_|j�|ddd���|_|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_paths    �H/opt/alt/python311/lib/python3.11/site-packages/botocore/docs/service.py�__init__zServiceDocumenter.__init__sl����
�)���-����}�2�2��#�#�"'�	3�
�
���#�l�/�6���
�
�
��
�
�
�c�F�t|j|jd���}|�|�d����|�|�d����|�|�d����|�|�d����|�|�d����|�d��}|�	|��|�
��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�F�
�
�
�
�	
�
�
�=�,�,�W�5�5�6�6�6����
�1�1�,�?�?�@�@�@����}�8�8�9L�M�M�N�N�N����=�4�4�_�E�E�F�F�F����
�1�1�,�?�?�@�@�@�!.�!:�!:�#�"
�"
��	
�"�"�#9�:�:�:��,�,�.�.�.r'c��|j�|jjj��|j�d|j��|���dS)Nzdocs.title.)�section)�style�h1r�	__class__�__name__r�emitr�r!r7s  r%rzServiceDocumenter.titleBsZ���
�����/�8�9�9�9��� � �.�$�,�.�.��	!�	
�	
�	
�	
�	
r'c�>�|j�dd���dS)NzTable of Contents�)r�depth)r8�table_of_contentsr=s  r%rAz#ServiceDocumenter.table_of_contentsHs$���
�'�'�.A��'�K�K�K�K�Kr'c��d}	|�|j��}n#t$rYnwxYwt|j|j|���|��dS�N)�get_examplesrr	rrr�document_client)r!r7�exampless   r%r-zServiceDocumenter.client_apiKsu����	��(�(��);�<�<�H�H�� �	�	�	��D�	����	��L�$�.��	
�	
�
�/�'�
"�
"�
"�
"�
"s��
,�,c�`�t|j|j���|��dSrC)rrr�document_exceptionsr=s  r%r.z#ServiceDocumenter.client_exceptionsVs0��"��L�$�.�	
�	
�
�
�g�
&�
&�
&�
&�
&r'c���	|j�|j��}n#t$rYdSwxYw|jr2t|j||j��}|�|��dSdSrC)	r�get_paginator_modelrr	�_paginator_configrrr�document_paginators)r!r7�service_paginator_model�paginator_documenters    r%r/zServiceDocumenter.paginator_api[s���	�&*�m�&G�&G��"�'�'�#�#��!�	�	�	��F�F�	����"�4�	>�#6���5�t�7K�$�$� �
!�4�4�W�=�=�=�=�=�		>�	>s�"�
0�0c��|jjrQ|j�|j��}t|j||j��}|�|��dSdSrC)r�waiter_namesr�get_waiter_modelrrr�document_waiters)r!r7�service_waiter_model�waiter_documenters    r%r0zServiceDocumenter.waiter_apihsr���<�$�	8�#'�=�#A�#A��"�$�$� �!1���2�D�4H�!�!��
�.�.�w�7�7�7�7�7�	8�	8r'Nc�t�|j�d��}|�|d|��}|dS)N�data_loaderz
examples-1rF)r�
get_component�load_service_model)r!r"�api_version�loaderrFs     r%rDzServiceDocumenter.get_examplesrs@����,�,�]�;�;���,�,��,��
�
���
�#�#r'c���tj}|�|jg���|jjj}|j}�fd�|D��}|r,t|j|��}|�|��dSdS)Nc�&��g|]
}|j�v�|��S�)�name)�.0�p�params_to_omits  �r%�
<listcomp>z;ServiceDocumenter.client_context_params.<locals>.<listcomp>~s,���
�
�
��Q�V�>�-I�-I�A�-I�-I�-Ir')	r�OMITTED_CONTEXT_PARAMS�getrrr�
service_model�client_context_parameters�document_context_params)r!r7�omitted_paramsre�raw_context_params�context_params�context_param_documenterras       @r%r1z'ServiceDocumenter.client_context_paramsys����6�M��'�+�+�D�,>��C�C����)�7�
�*�D��
�
�
�
�)�
�
�
���	F�'D��"�N�(�(�$�
%�<�<�W�E�E�E�E�E�		F�	Fr'rC)
r;�
__module__�__qualname__r&r5rrAr-r.r/r0rDr1r]r'r%rrs�������
�
�
�,/�/�/�&
�
�
�L�L�L�	#�	#�	#�'�'�'�
>�>�>�8�8�8�$�$�$�$�F�F�F�F�Fr'rN)
�botocore.docs.bcdoc.restdocr�botocore.docs.clientrrr�botocore.docs.paginatorr�botocore.docs.waiterr�botocore.exceptionsr	rr]r'r%�<module>rss���:�9�9�9�9�9�����������
8�7�7�7�7�7�1�1�1�1�1�1�1�1�1�1�1�1�mF�mF�mF�mF�mF�mF�mF�mF�mF�mFr'