o
    é’OjË  ã                   @   s\   d dl Z d dlZd dlmZ dd„ Zdd„ Zdd„ Zd	d
„ Zdd„ Zdd„ Z		ddd„Z
dS )é    N)ÚDocumentModifiedShapec                 C   sZ   g }| D ]&}t  |j¡}|j}|d r|d d }|d s|d dkr*| |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)ÚparamsÚignore_paramsÚparamÚresultÚcurrent© r   úV/var/www/html/pharmsmart-cdr-gen/venv/lib/python3.10/site-packages/boto3/docs/utils.pyÚget_resource_ignore_params   s   ÿ€r   c                 C   s
   t  | ¡S ©N)ÚinspectÚ
isfunction)Úaction_handler   r   r   Úis_resource_action(   ó   
r   c                 C   sP   t  | ¡}i }|D ]\}}| d¡s%|d  ¡ s%| d¡s%t|ƒr%|||< q	|S )NÚ_r   Ú
wait_until)r   Ú
getmembersÚ
startswithÚisupperr   )Úresource_classÚresource_class_membersÚresource_methodsÚnameÚmemberr   r   r   Úget_resource_public_actions,   s   


€r$   c                 C   s   d  dd„ | D ƒ¡S )Nú,c                 S   s   g | ]}d |› d �‘qS )ú'r   )Ú.0Ú
identifierr   r   r   Ú
<listcomp>9   s    z5get_identifier_values_for_example.<locals>.<listcomp>©Újoin©Úidentifier_namesr   r   r   Ú!get_identifier_values_for_example8   s   r.   c                 C   s
   d  | ¡S )Nr%   r*   r,   r   r   r   Ú!get_identifier_args_for_signature<   r   r/   c                 C   s   d| › d|› d�S )NzThe z's z" identifier. This **must** be set.r   )Úresource_nameÚidentifier_namer   r   r   Úget_identifier_description@   s   ÿr2   c                 C   st   | j  ¡  | j  |¡ | j  ¡  | j  ¡  |  |¡ | j  ¡  |d ur8|  d| ¡ › d|› d�¡ | j  ¡  d S d S )NzFor more information about z1 refer to the :ref:`Resources Introduction Guide<z>`.)ÚstyleÚnew_lineÚh3ÚwriteÚlower)ÚsectionÚresource_typeÚdescriptionÚ
intro_linkr   r   r   Úadd_resource_type_overviewG   s   




ÿÿûr<   r   )r   r   Úbotocore.docs.utilsr   r   r   r$   r.   r/   r2   r<   r   r   r   r   Ú<module>   s   ÿ