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__/action.cpython-38.pyc
U

Q��g��@s�ddlZddlmZddlmZddlmZmZddlm	Z	ddl
mZddlm
Z
ddlmZdd	lmZmZmZd
ZddeiiZddd
giiZGdd�de
�Zddd�Zddd�ZdS)�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.
ZMetricZput_data�	Namespacec@seZdZdd�ZdS)�ActionDocumenterc
	Cs�|jj}i}|D]}|||j<qt|jj�}t|�|jd<t|dddd�t	�
|ji�}t|�D�]"}t|dd�}|�
d�}	|	j�|jd	�|	�d
|���|�|�|�
|�}
|
dk	r�|�
d��|
�|j
|d|j�d
�id�}|dk�r|jj�rt|||j|jjjjj|jj|jd�n@||k�rNt||j|jjjjj|||jd�nt||||�tj�|j|j �|j!��}|�"||�q`dS)N�actionsZActionsz�Actions call operations on resources.  They may automatically handle the passing in of arguments set from identifiers and some attributes.Z
actions_intro)�sectionZ
resource_type�descriptionZ
intro_link�html)�targetZ
breadcrumb�indexz / Action / �warning�	qualifier�.)�context)�load�reload)r�action_name�
resource_name�
event_emitter�
load_model�
service_model)rrr�action_modelr)#Z_resource_modelr�namerZ	_resource�	__class__�sorted�
member_mapr
�WARNING_MESSAGES�getZ_resource_namerZadd_new_section�style�refZ_resource_class_name�writeZadd_title_section�
class_namer�document_load_reload_action�meta�client�eventsZ_service_model�document_actionr�os�path�joinZ_root_docs_pathZ
_service_nameZ_resource_sub_pathZ
write_to_file)
�selfrZmodeled_actions_listZmodeled_actionsZmodeled_actionZresource_actionsZresource_warningsrZ
action_docZbreadcrumb_sectionZwarning_messageZaction_sectionZactions_dir_path�r4�>/opt/cppython/lib/python3.8/site-packages/boto3/docs/action.py�document_actions1sp��



��
���z!ActionDocumenter.document_actionsN)�__name__�
__module__�__qualname__r6r4r4r4r5r0srTcCs�|�|jj�}t�|i��|jt|jj��}d}|jrBt	|jj
�}t	|�}	|j|krX|}	|�d|	�d|j��}
|j�dd��|j��}t
|||||j|
|||d�	dS)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 = rr�)	r�method_name�operation_modelr�method_description�example_prefixZ
exclude_inputZresource_action_model�include_signatureN)r=�request�	operation�
IGNORE_PARAMSr&r!r�params�resourcer�type�service_namerr	�
documentation)rrrr rr@r=Z
ignore_paramsZexample_return_value�example_resource_namer?�full_action_namer4r4r5r/rs8�
�
���r/c	Cs~dt|��dt|jj��d|�d�}t|�}|j|kr:|}|�d|��}	|j�dd��|��}
t||
ti|�|||	|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.
    zCalls :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.rrr;)rr<r=rr>r?r@N)	rrrArBrGrr&rr)rrrrrrr@rrIr?rJr4r4r5r+�s "�
�r+)T)T)r0ZbotocorerZbotocore.docs.bcdoc.restdocrZbotocore.docs.methodrrZbotocore.modelrZbotocore.utilsrZboto3.docs.baserZboto3.docs.methodr	Zboto3.docs.utilsr
rrZPUT_DATA_WARNING_MESSAGEr%rCrr/r+r4r4r4r5�<module>
s$
�H�
>�

F1le Man4ger