� K�g<��^�ddlZddlZd�Zd�Zd�Zd�Zd�Zd�Z d d�ZGd �d ��Z dS) �Nc���g}|D]g}tj|j��}|j}|dr|dd}|d�|ddkr|�|d���h|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 �`/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/boto3/docs/utils.py�get_resource_ignore_paramsrs��� �M�� 3� 3���!�%�,�/�/���-���j�!� -��j�)�!�,�G��j�!� -� �6�?�g� %� %� � � ���!1� 2� 2� 2�� ��c�*�tj|��S�N)�inspect� isfunction)� action_handles r�is_resource_actionr's�� � �m� ,� ,�,rc���tj|��}i}|D]]\}}|�d��sC|d���s)|�d��st |��r|||<�^|S)N�_r� wait_until)r� getmembers� startswith�isupperr)�resource_class�resource_class_members�resource_methods�name�members r�get_resource_public_actionsr&+s���$�/��?�?����.�8�8� ��f����s�#�#� 8���7�?�?�$�$� 8����|�4�4�8�)�&�1�1�8�17�(��.�� �rc�@�d�d�|D����S)N�,c��g|]}d|�d��� S)�'�)�.0� identifiers r� <listcomp>z5get_identifier_values_for_example.<locals>.<listcomp>8s$��L�L�L�Z�(�*�(�(�(�L�L�Lr��join��identifier_namess r�!get_identifier_values_for_exampler37s$�� �8�8�L�L�;K�L�L�L� M� M�Mrc�,�d�|��S)Nr(r/r1s r�!get_identifier_args_for_signaturer5;s�� �8�8�$� %� %�%rc��d|�d|�d�S)NzThe z's z" identifier. This **must** be set.r+)� resource_name�identifier_names r�get_identifier_descriptionr9?s)�� !�}� !� !�� !� !� !�rc���|j���|j�|��|j���|j���|�|��|j���|�I|�d|����d|�d���|j���dSdS)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_overviewrDFs��� �M������ �M���]�#�#�#� �M������ �M������ �M�M�+���� �M��������� � � B�-�*=�*=�*?�*?� B� B�2<� B� B� B� � � � � ��� � � � � � �rc� �eZdZd�Zd�Zd�ZdS)�DocumentModifiedShapec�>�||_||_||_||_dSr)� _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|j�d��kr|�||��|jD]g}|�|��}|j|j�d��kr|�||���Q|�||���hdS)N�shape)rH�context�get�_replace_documentation�available_sections� get_section�(replace_documentation_for_matching_shape)rL� event_namer@�kwargs� section_name� sub_sections rrYz>DocumentModifiedShape.replace_documentation_for_matching_shape`s��� � �w��2�2�7�;�;� ;� ;� � '� '� �G� <� <� <�#�6� � �L�!�-�-�l�;�;�K���;�#6�#:�#:�7�#C�#C�C�C��+�+�J� �D�D�D�D��=�=�� �����  � rc��|�d��s|�d��rB|���|���|�|j��|�d��s|�d���r+d}|jD]}||vr|�|���|�d��}|���|�|j��|�d��}|� ��� d���d ��r;|���|�d |j �d |j ����dS|���|j �d |j �d ���dSdS)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>rKrW�delete_sectionrXrJ�getvalue�decoder$rIr;�italics)rLrZr@�allowed_sectionsr\�description_section� type_sections rrVz,DocumentModifiedShape._replace_documentationns��� � � � "� � � 3� � "� "�#:� ;� ;� 3� � '� '� )� )� )� � � � � � � �M�M�$�1� 2� 2� 2� � � � !� � � F� � "� "�#9� :� :� F� � �!(� :� 9� 9� � �'7�7�7��*�*�<�8�8�8��#*�"5�"5�6K�"L�"L� � � *� *� ,� ,� ,� � %� %�d�&;� <� <� <�#�.�.�|�<�<�L��$�$�&�&�-�-�g�6�6�A�A�'�J�J� F��'�'�)�)�)��"�"�#L�G�L�#L�#L�D�N�#L�#L�M�M�M�M�M��'�'�)�)�)��"�*�*�+D�t�~�+D�+D�+D�E�E�E�E�E�9 F� FrN)�__name__� __module__� __qualname__rQrYrVr+rrrFrFWsF������4�4�4� � � �$F�$F�$F�$F�$FrrFr) rrrrr&r3r5r9rDrFr+rr�<module>rns��������������*-�-�-� � � �N�N�N�&�&�&����59�!�!�!�!�";F�;F�;F�;F�;F�;F�;F�;F�;F�;Fr
Memory