File: //usr/local/CyberCP/lib64/python3.10/site-packages/botocore/docs/__pycache__/params.cpython-310.pyc
o
�h�- � @ sL d dl mZ d dlmZ G dd� de�ZG dd� de�ZG dd� de�Zd S )
� )�ShapeDocumenter)�py_type_namec @ sz e Zd Zddd�Zdd� Z ddd�Z ddd �Z dd
d�Z ddd
�Zdd� Z dd� Z
dd� Zdd� Zdd� Z
dS )�BaseParamsDocumenterNc C s g }| j |||d||d� dS )a3 Fills out the documentation for a section given a model shape.
:param section: The section to write the documentation to.
:param shape: The shape of the operation.
: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.
N)�section�shape�history�name�include�exclude)�traverse_and_document_shape)�selfr r r r
r � r
�G/usr/local/CyberCP/lib/python3.10/site-packages/botocore/docs/params.py�document_params s
�z$BaseParamsDocumenter.document_paramsc K s | j ||fi |�� d S �N��_add_member_documentation�r r r �kwargsr
r
r �document_recursive_shape+ s z-BaseParamsDocumenter.document_recursive_shapec K s | j ||fi |�� d S r r )r r r r r r
r r
r
r �document_shape_default. s z+BaseParamsDocumenter.document_shape_defaultc K sf | j ||fi |�� |j}|j|jd|jjid�}| �|� | j|||d d� |�d�}| �|� d S )Nr ��context�r r r r zend-list)r �member�add_new_sectionr �_start_nested_paramr �_end_nested_param) r r r r r r
r �param_shape�
param_sectionr
r
r �document_shape_type_list3 s �
�
z-BaseParamsDocumenter.document_shape_type_listc
K s� | j ||fi |�� |jdd|jjid�}| �|� | � ||j� |j|jjd|jjid�}|j�� | �|� | j||j|d d� |�d�} | � | � | � | � d S )N�keyr r r zend-map)
r r r! r r �value�style�indentr r )
r r r r r r
r �key_sectionr �end_sectionr
r
r �document_shape_type_mapE s( �
�
�
z,BaseParamsDocumenter.document_shape_type_mapc K s� | � |j|�}| j|||d� |D ]%} |r| |v rq|| }
|j| d|
jid�}| �|� | j||
|| d� q|�d�}| �|� d S )N)r r r r �
end-structure)�_add_members_to_shape�membersr r r r r r )r r r r r r
r r r* �paramr r r
r
r �document_shape_type_structure` s$
�
�
z2BaseParamsDocumenter.document_shape_type_structurec K s d S r r
r r
r
r r } s z.BaseParamsDocumenter._add_member_documentationc C s$ |r|� � }|D ]}|||j<