Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/site-packages/boto3/docs/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/site-packages/boto3/docs/__pycache__/utils.cpython-38.pyc
U

Q��g<�@s\ddlZddlZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zddd�ZGdd�d�Z	dS)�NcCsTg}|D]F}t�|j�}|j}|dr4|dd}q|ddkr|�|d�q|S)z�Helper method to determine which parameters to ignore for actions

    :returns: A list of the parameter names that does not need to be
        included in a resource's method call for documentation purposes.
    �childrenr�type�field�value)�jmespath�compile�target�parsed�append)�paramsZ
ignore_params�param�result�current�r�=/opt/cppython/lib/python3.8/site-packages/boto3/docs/utils.py�get_resource_ignore_paramssrcCs
t�|�S�N)�inspect�
isfunction)Z
action_handlerrr�is_resource_action'srcCsPt�|�}i}|D]8\}}|�d�s|d��s|�d�st|�r|||<q|S)N�_rZ
wait_until)r�
getmembers�
startswith�isupperr)Zresource_classZresource_class_membersZresource_methods�name�memberrrr�get_resource_public_actions+s



rcCsd�dd�|D��S)N�,cSsg|]}d|�d��qS)�'r)�.0�
identifierrrr�
<listcomp>8sz5get_identifier_values_for_example.<locals>.<listcomp>��join�Zidentifier_namesrrr�!get_identifier_values_for_example7sr%cCs
d�|�S)Nrr"r$rrr�!get_identifier_args_for_signature;sr&cCsd|�d|�d�S)NzThe z's z" identifier. This **must** be set.r)�
resource_nameZidentifier_namerrr�get_identifier_description?s�r(cCsp|j��|j�|�|j��|j��|�|�|j��|dk	rl|�d|���d|�d��|j��dS)NzFor more information about z1 refer to the :ref:`Resources Introduction Guide<z>`.)�style�new_lineZh3�write�lower)�sectionZ
resource_type�descriptionZ
intro_linkrrr�add_resource_type_overviewFs




�r/c@s$eZdZdd�Zdd�Zdd�ZdS)�DocumentModifiedShapecCs||_||_||_||_dSr)�_shape_name�	_new_type�_new_description�_new_example_value)�selfZ
shape_name�new_typeZnew_descriptionZnew_example_valuerrr�__init__XszDocumentModifiedShape.__init__cKsd|j|j�d�kr|�||�|jD]:}|�|�}|j|j�d�krR|�||�q$|�||�q$dS)N�shape)r1�context�get�_replace_documentation�available_sections�get_section�(replace_documentation_for_matching_shape)r5�
event_namer-�kwargs�section_nameZsub_sectionrrrr>`s

�z>DocumentModifiedShape.replace_documentation_for_matching_shapecCs�|�d�s|�d�r0|��|��|�|j�|�d�sD|�d�r�d}|jD]}||krN|�|�qN|�d�}|��|�|j�|�d�}|�	��
d��d	�r�|��|�d
|j�d|j���n|��|j
�d|j�d
��dS)Nzdocs.request-examplezdocs.response-examplezdocs.request-paramszdocs.response-params)z
param-name�param-documentationz
end-structure�
param-typez	end-paramrBrCzutf-8z:typez:type z: �(z) -- )rZremove_all_sectionsZ
clear_textr+r4r<Zdelete_sectionr=r3�getvalue�decoderr2r)Zitalics)r5r?r-Zallowed_sectionsrAZdescription_sectionZtype_sectionrrrr;ns4����


z,DocumentModifiedShape._replace_documentationN)�__name__�
__module__�__qualname__r7r>r;rrrrr0Wsr0)N)
rrrrrr%r&r(r/r0rrrr�<module>
s�


F1le Man4ger