HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/botocore/docs/__pycache__/params.cpython-37.pyc
B

�P�e�-�@sLddlmZddlmZGdd�de�ZGdd�de�ZGdd�de�Zd	S)
�)�ShapeDocumenter)�py_type_namec@sneZdZddd�Zdd�Zddd�Zddd	�Zdd
d�Zddd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dS)�BaseParamsDocumenterNcCsg}|j|||d||d�dS)a3Fills 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)�selfrrr	r
r�r
�E/opt/alt/python37/lib/python3.7/site-packages/botocore/docs/params.py�document_paramssz$BaseParamsDocumenter.document_paramscKs|j||f|�dS)N)�_add_member_documentation)rrr�kwargsr
r
r�document_recursive_shape+sz-BaseParamsDocumenter.document_recursive_shapecKs|j||f|�dS)N)r)rrrrr	r
rr
r
r�document_shape_default.sz+BaseParamsDocumenter.document_shape_defaultc	Ksb|j||f|�|j}|j|jd|jjid�}|�|�|j|||dd�|�d�}|�|�dS)Nr)�context)rrrrzend-list)r�member�add_new_sectionr�_start_nested_paramr�_end_nested_param)	rrrrr	r
r�param_shape�
param_sectionr
r
r�document_shape_type_list3s

z-BaseParamsDocumenter.document_shape_type_listc
Ks�|j||f|�|jdd|jjid�}|�|�|�||j�|j|jjd|jjid�}|j��|�|�|j||j|dd�|�d�}	|�	|	�|�	|	�dS)N�keyr)r)rrrrzend-map)
rrrrr�value�style�indentrr)
rrrrr	r
rZkey_sectionr�end_sectionr
r
r�document_shape_type_mapEs"




z,BaseParamsDocumenter.document_shape_type_mapcKs�|�|j|�}|j|||d�xR|D]J}	|r6|	|kr6q$||	}
|j|	d|
jid�}|�|�|j||
||	d�q$W|�d�}|�|�dS)N)rr)r)rrrrz
end-structure)�_add_members_to_shape�membersrrrrrr)rrrrr	r
rrr#�paramrrr
r
r�document_shape_type_structure`s 



z2BaseParamsDocumenter.document_shape_type_structurecKsdS)Nr
)rrrrr
r
rr}sz.BaseParamsDocumenter._add_member_documentationcCs(|r$|��}x|D]}|||j<qW|S)N)�copyr)rr#r	r$r
r
rr"�s

z*BaseParamsDocumenter._add_members_to_shapecCsN|�|�}t|j�}d}|dk	r0|�||�n|j�||�|�d�dS)Nz(%s) --� )�_get_special_py_type_namer�	type_name�writerZitalics)r�type_sectionrZspecial_py_type�py_typeZtype_formatr
r
r�"_document_non_top_level_param_type�s

z7BaseParamsDocumenter._document_non_top_level_param_typecCs|j��|j��dS)N)rr�new_line)rrr
r
rr�s
z(BaseParamsDocumenter._start_nested_paramcCs|j��|j��dS)N)r�dedentr.)rrr
r
rr�s
z&BaseParamsDocumenter._end_nested_param)NN)NN)NN)NN)NNN)�__name__�
__module__�__qualname__rrrrr!r%rr"r-rrr
r
r
rrs





rc@s&eZdZdZdZddd�Zdd�ZdS)	�ResponseParamsDocumenterz5Generates the description for the response parameterszresponse-paramsNc
Ks�|�d�}|�d�|dk	r6|j�d|�|�d�|�d�}|�||�|�d�}|jr�|j��t|dd�r�|�d	�}d
}	d�dd
�|j	�
�D��}
d}|�|	|
�|�d�}|j�|�|�|j�|j�
�dS)Nz
param-namez- z%sr'z
param-typezparam-documentation�is_tagged_unionFzparam-tagged-union-docsaK.. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: %s.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as followsz, cSsg|]}d|�qS)z``%s``r
)�.0rr
r
r�
<listcomp>�szFResponseParamsDocumenter._add_member_documentation.<locals>.<listcomp>z3'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}zparam-unknown-example)rr*r�boldr-�
documentationr�getattr�joinr#�keysZ	codeblock�include_doc_string�
new_paragraph)
rrrrr�name_sectionr+�documentation_section�tagged_union_docs�note�tagged_union_members_strZunknown_code_example�exampler
r
rr�s,





	
z2ResponseParamsDocumenter._add_member_documentationcKs|j|||f|�dS)N)r%)rrrrrr
r
r� document_shape_type_event_stream�sz9ResponseParamsDocumenter.document_shape_type_event_stream)N)r0r1r2�__doc__�
EVENT_NAMErrDr
r
r
rr3�s
'r3c@s8eZdZdZdZd
dd�Zddd�Zd	d
�Zdd�ZdS)�RequestParamsDocumenterz4Generates the description for the request parameterszrequest-paramsNc
Ks�t|�dkr&|j||f|�|j��|�|j|�}xft|�D]Z\}}	|rT|	|krTq>||	}
|j|	d|
jid�}|j�	�|	|j
k}|j||
||	|d�q>W|�d�}t|�dkr�|j��|j�	�dS)N�r)r)rrrr�is_requiredz
end-structure)
�lenrrrr"r#�	enumeraterrr.Zrequired_membersrr/)
rrrrr	r
rr#�ir$rrrIr
r
rr%�s,




z5RequestParamsDocumenter.document_shape_type_structureFcKsx|�|�}|dkrt|j�}|rn|�d�}|�d|�d|���|�d�}	|	j��|�d�}
|
�d|�nL|�d�}
|
�d�|dk	r�|
j�d|�|
�d	�|�d�}|�||�|r�|�d
�}|j�	�|j�d�|�d	�|j
�r`|�d�}|j�	�t|d
d��rH|�d�}
d}d�dd�|j
��D��}|
�||�|�|j
�|�||�|�d�}|j��dS)Nz
param-typez:type z: zend-param-typez
param-namez:param %s: z- z%sr'zis-requiredz
[REQUIRED]zparam-documentationr4Fzparam-tagged-union-docszl.. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: %s. z, cSsg|]}d|�qS)z``%s``r
)r5rr
r
rr6!szERequestParamsDocumenter._add_member_documentation.<locals>.<listcomp>z	end-param)r(rr)rr*rr.r7r-rr8r9r:r#r;r<� _add_special_trait_documentationr=)rrrrZis_top_level_paramrIrr,r+Zend_type_sectionr>Zis_required_sectionr?r@rArBZend_param_sectionr
r
rr�sJ	














z1RequestParamsDocumenter._add_member_documentationcCsd|jkr|�|�dS)NZidempotencyToken)�metadata�!_append_idempotency_documentation)rrrr
r
rrM)s
z8RequestParamsDocumenter._add_special_trait_documentationcCsd}|�|�dS)Nz,This field is autopopulated if not provided.)r*)rrZ	docstringr
r
rrO-sz9RequestParamsDocumenter._append_idempotency_documentation)NN)NFF)	r0r1r2rErFr%rrMrOr
r
r
rrG�s

3rGN)Zbotocore.docs.shaperZbotocore.docs.utilsrrr3rGr
r
r
r�<module>
s

2