Current File : //proc/self/root/lib/python3/dist-packages/botocore/docs/__pycache__/sharedexample.cpython-312.pyc |
�
P��e�# � �F � d dl Z d dlZd dlmZ d dlmZ G d� d� Zd� Zy)� N)�escape_controls)�parse_timestampc �^ � e Zd Zd� Zd� Zd� Zd� Z dd�Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zy)�SharedExampleDocumenterc �" � |j j � |j |j d� � |j j � | j ||||j � | j |||j � y)a8 Documents a single shared example based on its definition.
:param example: The model of the example
:param prefix: The prefix to use in the method example.
:param section: The section to write to.
:param operation_model: The model of the operation used in the example
�descriptionN) �style�
new_paragraph�write�get�new_line�document_input�input_shape�document_output�output_shape)�self�example�prefix�section�operation_models �=/usr/lib/python3/dist-packages/botocore/docs/sharedexample.py�document_shared_examplez/SharedExampleDocumenter.document_shared_example sp � � �
�
�#�#�%��
�
�g�k�k�-�0�1��
�
��� �����W�f�o�&A�&A�
�
���W�g��/K�/K�L� c � � |j d� }|j j � |�|j |� |j di � }|j d� }|r|j d� }|j d� }| j |||g |� |j d� } | j j
� | j j
� | j d� | j j � y )N�input�comments�
parameterszinput-closezprint(response))�add_new_sectionr �start_codeblockr r �_document_paramsr
�
end_codeblock)
r r r r �shape�
input_section�paramsr �
param_section�closing_sections
r r z&SharedExampleDocumenter.document_input* s� � ��/�/��8�
����+�+�-�������'����W�b�)���;�;�z�*����|�|�G�,�H�%�5�5�l�C�
����m�V�X�r�5�I�'�7�7�
�F�����&�&�(����&�&�(����/�0����+�+�-r c �� � |j d� }|j j � |j d� |j j � |j j � |j di � }ddi|d<