HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib64/python3.10/site-packages/botocore/docs/__pycache__/params.cpython-310.pyc
o

�h�-�@sLddlmZddlmZGdd�de�ZGdd�de�ZGdd�de�Zd	S)
�)�ShapeDocumenter)�py_type_namec@szeZdZddd�Zdd�Z	ddd�Z	ddd	�Z	dd
d�Z			dd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
�G/usr/local/CyberCP/lib/python3.10/site-packages/botocore/docs/params.py�document_paramss
�z$BaseParamsDocumenter.document_paramscKs|j||fi|��dS�N��_add_member_documentation�rrr�kwargsr
r
r�document_recursive_shape+sz-BaseParamsDocumenter.document_recursive_shapecKs|j||fi|��dSrr)rrrrr	r
rr
r
r�document_shape_default.sz+BaseParamsDocumenter.document_shape_defaultc	Ksf|j||fi|��|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||fi|��|jdd|jjid�}|�|�|�||j�|j|jjd|jjid�}|j��|�|�|j||j|dd�|�d�}	|�	|	�|�	|	�dS)N�keyrrrzend-map)
rrr!rr�value�style�indentrr)
rrrrr	r
r�key_sectionr�end_sectionr
r
r�document_shape_type_mapEs(�
�

�

z,BaseParamsDocumenter.document_shape_type_mapcKs�|�|j|�}|j|||d�|D]%}	|r|	|vrq||	}
|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}|dur|�||�n|j�||�|�d�dS)Nz(%s) --� )�_get_special_py_type_namer�	type_name�writer#�italics)r�type_sectionr�special_py_type�py_type�type_formatr
r
r�"_document_non_top_level_param_type�s

z7BaseParamsDocumenter._document_non_top_level_param_typecC�|j��|j��dSr)r#r$�new_line�rrr
r
rr��
z(BaseParamsDocumenter._start_nested_paramcCr8r)r#�dedentr9r:r
r
rr�r;z&BaseParamsDocumenter._end_nested_param�NN)NNN)�__name__�
__module__�__qualname__rrrr r'r,rr)r7rrr
r
r
rrs$

�
�
� 
�
rc@s&eZdZdZdZddd�Zdd�ZdS)	�ResponseParamsDocumenterz5Generates the description for the response parameterszresponse-paramsNc
Ks�|�d�}|�d�|dur|j�|��|�d�|�d�}|�||�|�d�}|jrf|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�, cS�g|]}d|�d��qS�z``r
��.0r!r
r
r�
<listcomp>��zFResponseParamsDocumenter._add_member_documentation.<locals>.<listcomp>z3'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}zparam-unknown-example)rr1r#�boldr7�
documentationr$�getattr�joinr*�keys�	codeblock�include_doc_string�
new_paragraph)
rrrrr�name_sectionr3�documentation_section�tagged_union_docs�note�tagged_union_members_str�unknown_code_example�exampler
r
rr�s4





��
��
z2ResponseParamsDocumenter._add_member_documentationcKs|j|||fi|��dSr)r,)rrrrrr
r
r� document_shape_type_event_stream�sz9ResponseParamsDocumenter.document_shape_type_event_streamr)r>r?r@�__doc__�
EVENT_NAMErr^r
r
r
rrA�s

'rAc@s@eZdZdZdZ	d
dd�Z			ddd�Zd	d
�Zdd�ZdS)�RequestParamsDocumenterz4Generates the description for the request parameterszrequest-paramsNc
Ks�t|�dkr|j||fi|��|j��|�|j|�}t|�D]-\}}	|r+|	|vr+q ||	}
|j|	d|
jid�}|j�	�|	|j
v}|j||
||	|d�q |�d�}t|�dkr^|j��|j�	�dS)N�rr)rrrr�is_requiredr()
�lenrr#r$r)r*�	enumeraterrr9�required_membersrr<)
rrrrr	r
rr*�ir+rrrcr
r
rr,�s0

�

�

z5RequestParamsDocumenter.document_shape_type_structureFcKsv|�|�}|durt|j�}|r9|�d�}|�d|�d|���|�d�}	|	j��|�d�}
|
�d|�d��n%|�d�}
|
�d�|durS|
j�|��|
�d�|�d�}|�||�|ru|�d	�}|j�	�|j�d
�|�d�|j
r�|�d�}|j�	�t|dd
�r�|�d�}
d}d�dd�|j
��D��}|
�||�|�|j
�|�||�|�d�}|j��dS)NrDz:type z: zend-param-typerBz:param rCr.zis-requiredz
[REQUIRED]rErFFrGzl.. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: %s. rHcSrIrJr
rKr
r
rrM!rNzERequestParamsDocumenter._add_member_documentation.<locals>.<listcomp>z	end-param)r/rr0rr1r#r9rOr7r$rPrQrRr*rSrU� _add_special_trait_documentationrV)rrrr�is_top_level_paramrcrr5r3�end_type_sectionrW�is_required_sectionrXrYrZr[�end_param_sectionr
r
rr�sR
	











�
���
z1RequestParamsDocumenter._add_member_documentationcCsd|jvr|�|�dSdS)N�idempotencyToken)�metadata�!_append_idempotency_documentation)rrrr
r
rrh)s
�z8RequestParamsDocumenter._add_special_trait_documentationcCsd}|�|�dS)Nz,This field is autopopulated if not provided.)r1)rr�	docstringr
r
rro-sz9RequestParamsDocumenter._append_idempotency_documentationr=)NFF)	r>r?r@r_r`r,rrhror
r
r
rra�s
� 
�9raN)�botocore.docs.shaper�botocore.docs.utilsrrrArar
r
r
r�<module>s
2