o
    é’Ojº  ã                   @   s¾   d dl Z d dlmZ d dlmZ d dlmZmZ d dlm	Z	 d dl
mZ d dlmZ d dlmZ d d	lmZmZmZ d
ZddeiiZdddgiiZG dd„ deƒZ	ddd„Z	ddd„ZdS )é    N)Ú
xform_name)ÚDocumentStructure)Údocument_custom_methodÚdocument_model_driven_method)ÚOperationModel)Úget_service_module_name)ÚNestedDocumenter)Ú%document_model_driven_resource_method)Úadd_resource_type_overviewÚget_resource_ignore_paramsÚget_resource_public_actionsa?  
.. warning::
    It is recommended to use the :py:meth:`put_metric_data`
    :doc:`client method <../../cloudwatch/client/put_metric_data>`
    instead. If you would still like to use this resource method,
    please make sure that ``MetricData[].MetricName`` is equal to
    the metric resource's ``name`` attribute.
ÚMetricÚput_dataÚ	Namespacec                   @   s   e Zd Zdd„ ZdS )ÚActionDocumenterc              	   C   s‚  | j j}i }|D ]}|||j< qt| jjƒ}t|ƒ| jd< t|dddd� t	 
| ji ¡}t|ƒD ]Ž}t|dd�}| d¡}	|	j | jd	¡ |	 d
|› �¡ | |¡ | 
|¡}
|
d urc| d¡ |
¡ |j|d| j› d�id�}|dv rŒ| j jrŒt||| j| jjjjj| j j| jd� n||v r£t|| j| jjjjj|| | jd� nt|||| ƒ tj | j| j › | j!› ¡}| "||¡ q0d S )NÚactionsÚActionszŠActions call operations on resources.  They may automatically handle the passing in of arguments set from identifiers and some attributes.Úactions_intro)ÚsectionÚresource_typeÚdescriptionÚ
intro_linkÚhtml)ÚtargetÚ
breadcrumbÚindexz / Action / ÚwarningÚ	qualifierÚ.)Úcontext)ÚloadÚreload)r   Úaction_nameÚresource_nameÚevent_emitterÚ
load_modelÚservice_model)r   r#   r$   Úaction_modelr&   )#Ú_resource_modelr   Únamer   Ú	_resourceÚ	__class__ÚsortedÚ
member_mapr
   ÚWARNING_MESSAGESÚgetÚ_resource_namer   Úadd_new_sectionÚstyleÚrefÚ_resource_class_nameÚwriteÚadd_title_sectionÚ
class_namer    Údocument_load_reload_actionÚmetaÚclientÚeventsÚ_service_modelÚdocument_actionr   ÚosÚpathÚjoinÚ_root_docs_pathÚ_service_nameÚ_resource_sub_pathÚwrite_to_file)Úselfr   Úmodeled_actions_listÚmodeled_actionsÚmodeled_actionÚresource_actionsÚresource_warningsr"   Ú
action_docÚbreadcrumb_sectionÚwarning_messageÚaction_sectionÚactions_dir_path© rP   úW/var/www/html/pharmsmart-cdr-gen/venv/lib/python3.10/site-packages/boto3/docs/action.pyÚdocument_actions1   sn   ÿø



þúû
ÿýÖz!ActionDocumenter.document_actionsN)Ú__name__Ú
__module__Ú__qualname__rR   rP   rP   rP   rQ   r   0   s    r   Tc                 C   s¦   |  |jj¡}t |i ¡ |jt|jjƒ¡}d}|jr!t	|jj
ƒ}t	|ƒ}	|j|kr,|}	|› d|	› d|j› �}
| j dd¡› |j› �}t| ||||j|
|||d�	 dS )a¢  Documents a resource action

    :param section: The section to write to

    :param resource_name: The name of the resource

    :param event_emitter: The event emitter to use to emit events

    :param action_model: The model of the action

    :param service_model: The model of the service

    :param include_signature: Whether or not to include the signature.
        It is useful for generating docstrings.
    Úresponsez = r   r   Ú )	r   Úmethod_nameÚoperation_modelr$   Úmethod_descriptionÚexample_prefixÚexclude_inputÚresource_action_modelÚinclude_signatureN)rY   ÚrequestÚ	operationÚIGNORE_PARAMSr/   r)   r   ÚparamsÚresourcer   ÚtypeÚservice_namer   r	   Údocumentation)r   r#   r$   r'   r&   r^   rY   Úignore_paramsÚexample_return_valueÚexample_resource_namer[   Úfull_action_namerP   rP   rQ   r=   r   s8   ÿ
þ
ÿÿ
÷r=   c              	   C   s~   dt |ƒ› dt|jjƒ› d|› d�}t|ƒ}|j|kr|}|› d|› �}	| j dd¡› |› �}
t| |
ti |ƒ|||	|d� d	S )
aý  Documents the resource load action

    :param section: The section to write to

    :param action_name: The name of the loading action should be load or reload

    :param resource_name: The name of the resource

    :param event_emitter: The event emitter to use to emit events

    :param load_model: The model of the load action

    :param service_model: The model of the service

    :param include_signature: Whether or not to include the signature.
        It is useful for generating docstrings.
    zCalls :py:meth:`z.Client.z"` to update the attributes of the ze resource. Note that the load and reload methods are the same method and can be used interchangeably.r   r   rW   )r   rX   rY   r$   rZ   r[   r^   N)	r   r   r_   r`   re   r   r/   r   r   )r   r"   r#   r$   r%   r&   r^   r   ri   r[   rj   rP   rP   rQ   r8   ©   s(   
ÿþÿ

ùr8   )T)r>   Úbotocorer   Úbotocore.docs.bcdoc.restdocr   Úbotocore.docs.methodr   r   Úbotocore.modelr   Úbotocore.utilsr   Úboto3.docs.baser   Úboto3.docs.methodr	   Úboto3.docs.utilsr
   r   r   ÚPUT_DATA_WARNING_MESSAGEr.   ra   r   r=   r8   rP   rP   rP   rQ   Ú<module>   s$   
ÿH
ú>ù