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__/shape.cpython-311.pyc
�

/�;fN��,�ddlmZGd�d��ZdS)�)�is_json_value_headerc�>�eZdZdZ	d	d�Z				d
d�Zd�Zd�Zd�ZdS)�ShapeDocumenter�Nc�X�||_||_||_||_|�dii|_dSdS)N�special_shape_types)�
_service_name�_operation_name�_event_emitter�_context)�self�service_name�operation_name�
event_emitter�contexts     �F/opt/alt/python311/lib/python3.11/site-packages/botocore/docs/shape.py�__init__zShapeDocumenter.__init__s?��*���-���+�����
��?�2�B�7�D�M�M�M��?�Fc
��|j}t|di���d��rd}|j|vr|�|||���dS|�|j��t
|��dk}	t|d��r	|jrd}t|d|��|j	��|||||||	|�	��|	r7|j
�d
|j�d|j
�d|j�d|��|���t
|��d
k}
|
r5|j
�d
|j�d|j
�d|j�d�|���|���dS)a�Traverses and documents a shape

        Will take a self class and call its appropriate methods as a shape
        is traversed.

        :param section: The section to document.

        :param history: A list of the names of the shapes that have been
            traversed.

        :type include: Dictionary where keys are parameter names and
            values are the shapes of the parameter names.
        :param include: The parameter shapes to include in the documentation.

        :type exclude: List of the names of the parameters to exclude.
        :param exclude: The names of the parameters to exclude from
            documentation.

        :param name: The name of the shape.

        :param is_required: If the shape is a required member.
        �
serialization�eventstream�event_stream)�name��is_document_type�document�document_shape_type_)�historyr�include�exclude�is_top_level_param�is_requiredzdocs.�.)�section�z.complete-sectionN)�	type_name�getattr�getr�document_recursive_shape�append�len�hasattrr�document_shape_defaultr�emit�
EVENT_NAMEr	r
�pop)r
r$�shaperrr rr"�
param_typer!�at_overlying_method_sections           r�traverse_and_document_shapez+ShapeDocumenter.traverse_and_document_shape#s���@�_�
��5�/�2�.�.�2�2�=�A�A�	(�'�J��:�� � ��)�)�'�5�t�)�D�D�D�D�D��N�N�5�:�&�&�&�!$�W����!2���u�0�1�1�
(�e�6L�
(�'�
�
�G��3�z�3�3��+�
�
�
������#5�'�

�

�

�

�"�
��#�(�(�`�D�O�`�`�d�.@�`�`�4�CW�`�`�Z^�`�`�#�)����+.�g�,�,�!�*;�'�*�
��#�(�(�j�D�O�j�j�d�.@�j�j�4�CW�j�j�j�#�)����
�K�K�M�M�M�M�Mrc�>�dddddd�}|�||��S)Nz({...}|[...]|123|123.4|'string'|True|Nonez
b'bytes'|filezStreamingBody()z
EventStream()��
document_type�jsonvalue_header�streaming_input_shape�streaming_output_shape�eventstream_output_shape��_get_value_for_special_type)r
r1�special_defaultss   r�_get_special_py_defaultz'ShapeDocumenter._get_special_py_defaulths7��I� L�%6�&7�(7�
�
���/�/��7G�H�H�Hrc�>�dddddd�}|�||��S)Nz:ref:`document<document>`zJSON serializablez"bytes or seekable file-like objectz:class:`.StreamingBody`z:class:`.EventStream`r6r<)r
r1�special_type_namess   r�_get_special_py_type_namez)ShapeDocumenter._get_special_py_type_namers7��8� 3�%I�&?�(?�
�
���/�/��7I�J�J�Jrc���t|��r|dSt|d��r|jr|dS|jd���D]\}}||vr||kr
||cS�dS)Nr8rr7r)rr,rr�items)r
r1�special_type_map�special_type�marked_shapes     rr=z+ShapeDocumenter._get_value_for_special_type|s�����&�&�	8�#�$6�7�7��5�,�-�-�	5�%�2H�	5�#�O�4�4�*.�-�!�+
�
�%�'�'�	:�	:�&�L�,��/�/�/��L�(�(�+�L�9�9�9�9���tr)N)NNNF)	�__name__�
__module__�__qualname__r/rr4r?rBr=�rrrrs��������J�DH�8�8�8�8���
��C�C�C�C�JI�I�I�K�K�K�����rrN)�botocore.utilsrrrKrr�<module>rMsU��&0�/�/�/�/�/�q�q�q�q�q�q�q�q�q�qr