Current File : //usr/lib/python3/dist-packages/boto3/docs/__pycache__/utils.cpython-312.pyc
�

��e<��V�ddlZddlZd�Zd�Zd�Zd�Zd�Zd�Z	dd�ZGd	�d
�Z	y)�Nc���g}|D]]}tj|j�}|j}|dr|dd}|dr�|ddk(s�J|j	|d��_|S)z�Helper method to determine which parameters to ignore for actions

    :returns: A list of the parameter names that does not need to be
        included in a resource's method call for documentation purposes.
    �childrenr�type�field�value)�jmespath�compile�target�parsed�append)�params�
ignore_params�param�result�currents     �2/usr/lib/python3/dist-packages/boto3/docs/utils.py�get_resource_ignore_paramsrs����M��
3���!�!�%�,�,�/���-�-���j�!��j�)�!�,�G��j�!��6�?�g�%�� � ���!1�2�
3���c�,�tj|�S�N)�inspect�
isfunction)�
action_handles r�is_resource_actionr's�����m�,�,rc���tj|�}i}|D]N\}}|jd�r�|dj�r�,|jd�r�>t	|�s�J|||<�P|S)N�_r�
wait_until)r�
getmembers�
startswith�isupperr)�resource_class�resource_class_members�resource_methods�name�members     r�get_resource_public_actionsr&+sm��$�/�/��?����.�8���f����s�#���7�?�?�$����|�4�)�&�1�17�(��.�8��rc�R�dj|D�cgc]}d|�d���
c}�Scc}w)N�,�'��join)�identifier_names�
identifiers  r�!get_identifier_values_for_exampler.7s)���8�8�;K�L�Z�r�*��R�(�L�M�M��Ls�
$c�$�dj|�S)Nr(r*)r,s r�!get_identifier_args_for_signaturer0;s���8�8�$�%�%rc��d|�d|�d�S)NzThe z's z" identifier. This **must** be set.�)�
resource_name�identifier_names  r�get_identifier_descriptionr5?s��
�}�o�S�� 1�2 �	!�rc��|jj�|jj|�|jj�|jj�|j|�|jj�|�A|jd|j	��d|�d��|jj�yy)NzFor more information about z1 refer to the :ref:`Resources Introduction Guide<z>`.)�style�new_line�h3�write�lower)�section�
resource_type�description�
intro_links    r�add_resource_type_overviewr@Fs����M�M�����M�M���]�#��M�M�����M�M�����M�M�+���M�M�������
�
�)�-�*=�*=�*?�)@�A2�2<��S�
B�	
�	�
�
��� �rc��eZdZd�Zd�Zd�Zy)�DocumentModifiedShapec�<�||_||_||_||_yr)�_shape_name�	_new_type�_new_description�_new_example_value)�self�
shape_name�new_type�new_description�new_example_values     r�__init__zDocumentModifiedShape.__init__Xs#��&���!��� /���"3��rc�V�|j|jjd�k(r|j||�|jD]`}|j|�}|j|jjd�k(r|j||��O|j
||��by)N�shape)rD�context�get�_replace_documentation�available_sections�get_section�(replace_documentation_for_matching_shape)rH�
event_namer<�kwargs�section_name�sub_sections      rrUz>DocumentModifiedShape.replace_documentation_for_matching_shape`s������w���2�2�7�;�;��'�'�
�G�<�#�6�6�	�L�!�-�-�l�;�K����;�#6�#6�#:�#:�7�#C�C��+�+�J��D��=�=����	rc�8�|jd�s|jd�r;|j�|j�|j|j�|jd�s|jd��rd}|j
D]}||vs�|j
|��|jd�}|j�|j|j�|jd�}|j�jd�jd	�r<|j�|jd
|j�d|j���y|j�|jjd|j�d
��yy)Nzdocs.request-examplezdocs.response-examplezdocs.request-paramszdocs.response-params)z
param-name�param-documentationz
end-structure�
param-typez	end-paramr[r\zutf-8z:typez:type z: �(z) -- )r�remove_all_sections�
clear_textr:rGrS�delete_sectionrTrF�getvalue�decoder$rEr7�italics)rHrVr<�allowed_sectionsrX�description_section�type_sections       rrRz,DocumentModifiedShape._replace_documentationnso��� � �"�
�
�
"�
"�#:�
;��'�'�)���� ��M�M�$�1�1�2�� � �!�
�
�
"�
"�#9�
:� ��!(� :� :�
9�� �'7�7��*�*�<�8�	
9�#*�"5�"5�6K�"L���*�*�,��%�%�d�&;�&;�<�#�.�.�|�<�L��$�$�&�-�-�g�6�A�A�'�J��'�'�)��"�"�V�G�L�L�>��D�N�N�;K�#L�M��'�'�)��"�"�*�*�Q�t�~�~�.>�e�+D�E�5;rN)�__name__�
__module__�__qualname__rMrUrRr2rrrBrBWs��4��$FrrBr)
rrrrr&r.r0r5r@rBr2rr�<module>rjsB�����*-�	�N�&��59�!�";F�;Fr