HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/site-packages/botocore/docs/__pycache__/params.cpython-38.pyc
U

KD�g�-�@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
�A/opt/cppython/lib/python3.8/site-packages/botocore/docs/params.py�document_paramss�z$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|�dSrr)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�keyrrrzend-map)
rrr!rr�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�|D]J}	|r4|	|kr4q"||	}
|j|	d|
jid�}|�|�|j||
||	d�q"|�d�}|�|�dS)N)rrrr�
end-structure)�_add_members_to_shape�membersrrrrrr)rrrrr	r
rrr)�paramrrr
r
r�document_shape_type_structure`s&
�
�
z2BaseParamsDocumenter.document_shape_type_structurecKsdSrr
rr
r
rr}sz.BaseParamsDocumenter._add_member_documentationcCs$|r |��}|D]}|||j<q|Sr)�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�writer#Zitalics)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��dSr)r#r$�new_line�rrr
r
rr�s
z(BaseParamsDocumenter._start_nested_paramcCs|j��|j��dSr)r#�dedentr4r5r
r
rr�s
z&BaseParamsDocumenter._end_nested_param)NN)NN)NN)NN)NNN)�__name__�
__module__�__qualname__rrrr r&r+rr(r3rrr
r
r
rrs(
�
�
�
 �

rc@s&eZdZdZdZddd�Zdd�ZdS)	�ResponseParamsDocumenterz5Generates the description for the response parameterszresponse-paramsNc
Ks�|�d�}|�d�|dk	r4|j�|��|�d�|�d�}|�||�|�d�}|jr�|j��t|dd�r�|�d�}d	}	d
�dd�|j	�
�D��}
d
}|�|	|
�|�d�}|j�|�|�|j�|j�
�dS)N�
param-name�- r-�
param-type�param-documentation�is_tagged_unionF�param-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 follows�, cSsg|]}d|�d��qS�z``r
��.0r!r
r
r�
<listcomp>�szFResponseParamsDocumenter._add_member_documentation.<locals>.<listcomp>z3'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}zparam-unknown-example)rr0r#�boldr3�
documentationr$�getattr�joinr)�keysZ	codeblock�include_doc_string�
new_paragraph)
rrrrr�name_sectionr1�documentation_section�tagged_union_docs�note�tagged_union_members_strZunknown_code_example�exampler
r
rr�s4





��
��
z2ResponseParamsDocumenter._add_member_documentationcKs|j|||f|�dSr)r+)rrrrrr
r
r� document_shape_type_event_stream�sz9ResponseParamsDocumenter.document_shape_type_event_stream)N)r7r8r9�__doc__�
EVENT_NAMErrSr
r
r
rr:�s
'r:c@s8eZdZdZdZd
dd�Zddd�Zd	d
�Zdd�ZdS)�RequestParamsDocumenterz4Generates the description for the request parameterszrequest-paramsNc
Ks�t|�dkr&|j||f|�|j��|�|j|�}t|�D]Z\}}	|rR|	|krRq<||	}
|j|	d|
jid�}|j�	�|	|j
k}|j||
||	|d�q<|�d�}t|�dkr�|j��|j�	�dS)N�rr)rrrr�is_requiredr')
�lenrr#r$r(r)�	enumeraterrr4Zrequired_membersrr6)
rrrrr	r
rr)�ir*rrrXr
r
rr+�s2
�

�

z5RequestParamsDocumenter.document_shape_type_structureFcKsz|�|�}|dkrt|j�}|rr|�d�}|�d|�d|���|�d�}	|	j��|�d�}
|
�d|�d��nJ|�d�}
|
�d�|dk	r�|
j�|��|
�d�|�d�}|�||�|r�|�d	�}|j�	�|j�d
�|�d�|j
�rb|�d�}|j�	�t|dd
��rJ|�d�}
d}d�dd�|j
��D��}|
�||�|�|j
�|�||�|�d�}|j��dS)Nr=z:type z: zend-param-typer;z:param r<r-zis-requiredz
[REQUIRED]r>r?Fr@zl.. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: %s. rAcSsg|]}d|�d��qSrBr
rCr
r
rrE!szERequestParamsDocumenter._add_member_documentation.<locals>.<listcomp>z	end-param)r.rr/rr0r#r4rFr3r$rGrHrIr)rJrK� _add_special_trait_documentationrL)rrrrZis_top_level_paramrXrr2r1Zend_type_sectionrMZis_required_sectionrNrOrPrQZend_param_sectionr
r
rr�sR	












�
���
z1RequestParamsDocumenter._add_member_documentationcCsd|jkr|�|�dS)NZidempotencyToken)�metadata�!_append_idempotency_documentation)rrrr
r
rr\)s
z8RequestParamsDocumenter._add_special_trait_documentationcCsd}|�|�dS)Nz,This field is autopopulated if not provided.)r0)rrZ	docstringr
r
rr^-sz9RequestParamsDocumenter._append_idempotency_documentation)NN)NFF)	r7r8r9rTrUr+rr\r^r
r
r
rrV�s�
 �
9rVN)Zbotocore.docs.shaperZbotocore.docs.utilsrrr:rVr
r
r
r�<module>
s

2