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/boto3/docs/__pycache__/utils.cpython-37.pyc
B

�P�e<�@s\ddlZddlZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zddd�ZGdd�d�Z	dS)�NcCs\g}xR|D]J}t�|j�}|j}x|dr8|dd}q"W|ddkr
|�|d�q
W|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�A/opt/alt/python37/lib/python3.7/site-packages/boto3/docs/utils.py�get_resource_ignore_paramss

rcCs
t�|�S)N)�inspect�
isfunction)Z
action_handlerrr�is_resource_action'srcCsTt�|�}i}x@|D]8\}}|�d�s|d��s|�d�st|�r|||<qW|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)�identifier_namesrrr�!get_identifier_values_for_example7sr#cCs
d�|�S)Nr)r!)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?sr&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||_||_||_||_dS)N)�_shape_name�	_new_type�_new_description�_new_example_value)�selfZ
shape_name�new_typeZnew_descriptionZnew_example_valuerrr�__init__XszDocumentModifiedShape.__init__cKsh|j|j�d�kr|�||�xD|jD]:}|�|�}|j|j�d�krT|�||�q&|�||�q&WdS)N�shape)r/�context�get�_replace_documentation�available_sections�get_section�(replace_documentation_for_matching_shape)r3�
event_namer+�kwargs�section_nameZsub_sectionrrrr<`s
z>DocumentModifiedShape.replace_documentation_for_matching_shapecCs�|�d�s|�d�r0|��|��|�|j�|�d�sD|�d�r�d}x |jD]}||krP|�|�qPW|�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-namezparam-documentationz
end-structurez
param-typez	end-paramzparam-documentationz
param-typezutf-8z:typez:type z: �(z) -- )rZremove_all_sectionsZ
clear_textr)r2r:Zdelete_sectionr;r1�getvalue�decoderr0r'Zitalics)r3r=r+Zallowed_sectionsr?Zdescription_sectionZtype_sectionrrrr9ns,



z,DocumentModifiedShape._replace_documentationN)�__name__�
__module__�__qualname__r5r<r9rrrrr.Wsr.)N)
rrrrrr#r$r&r-r.rrrr�<module>
s