File: //opt/alt/python37/lib/python3.7/site-packages/botocore/docs/__pycache__/params.cpython-37.pyc
B
�P�e�- � @ sL d dl mZ d dlmZ G dd� de�ZG dd� de�ZG dd� de�Zd S )
� )�ShapeDocumenter)�py_type_namec @ sn e Zd Zddd�Zdd� Zddd�Zddd �Zdd
d�Zddd
�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
�E/opt/alt/python37/lib/python3.7/site-packages/botocore/docs/params.py�document_params s z$BaseParamsDocumenter.document_paramsc K s | j ||f|� d S )N)�_add_member_documentation)r r r �kwargsr
r
r �document_recursive_shape+ s z-BaseParamsDocumenter.document_recursive_shapec K s | j ||f|� d S )N)r )r r r r r r
r r
r
r �document_shape_default. s z+BaseParamsDocumenter.document_shape_defaultc K sb | j ||f|� |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 ||f|� |jdd|jjid�}| �|� | � ||j� |j|jjd|jjid�}|j�� | �|� | j||j|d d� |�d�} | � | � | � | � d S )N�keyr )r )r r r r zend-map)
r r r r r �value�style�indentr r )
r r r r r r
r Zkey_sectionr �end_sectionr
r
r �document_shape_type_mapE s"