| Server IP : 89.117.53.150 / Your IP : 216.73.216.11 Web Server : Apache System : Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : iscmbt-kufa-atu ( 1014) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/botocore/docs/__pycache__/ |
Upload File : |
o
.&�an$ � @ sP d dl Z d dlZd dlmZ d dlmZ d dlmZ G dd� de�Z dd� Z
dS ) � N)�parse_timestamp)�escape_controls)�sixc @ sx e Zd Zdd� Zdd� Zdd� Zdd� Z dd
d�Zdd
� Zdd� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� ZdS )�SharedExampleDocumenterc C sJ |j �� |�|�d�� |j �� | �||||j� | �|||j� dS )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_model� r �=/usr/lib/python3/dist-packages/botocore/docs/sharedexample.py�document_shared_example s
�z/SharedExampleDocumenter.document_shared_examplec
C s� |� d�}|j�� |d ur|�|� |�di �}|�d�}|r%|�d�}|� d�}| �|||g |� |� d�} | j�� | j�� | �d� | j�� d S )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_sectionr r r r ( s
z&SharedExampleDocumenter.document_inputc C s� |� d�}|j�� |�d� |j�� |j�� |�di �}ddi|d<