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/python311/lib/python3.11/site-packages/boto3/docs/__pycache__/action.cpython-311.pyc
�

/�;f�����ddlZddlmZddlmZddlmZmZddlm	Z	ddl
mZddlm
Z
ddlmZdd	lmZmZmZd
ZddeiiZddd
giiZGd�de
��Z	dd�Z	dd�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.
�Metric�put_data�	Namespacec��eZdZd�ZdS)�ActionDocumenterc	��|jj}i}|D]}|||j<�
t|jj��}t
|��|jd<t|ddd���t�
|ji��}t
|��D�]�}t|d���}|�
d��}	|	j�|jd	��|	�d
|����|�|��|�
|��}
|
�(|�
d���|
��|�
|d|j�d
�i���}|dvrO|jjrCt+|||j|jjjjj|jj|j���nY||vr>t5||j|jjjjj|||j���nt7||||��t8j�|j|j �|j!���}|�"||�����dS)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)rr&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_paths
             �D/opt/alt/python311/lib/python3.11/site-packages/boto3/docs/action.py�document_actionsz!ActionDocumenter.document_actions1s���#�3�;����2�	B�	B�N�3A�O�N�/�0�0�6��N�$�
�
��&,�,<�%=�%=���	�"�"��#�8�'�		
�		
�		
�		
�-�0�0��1D�b�I�I��!�"2�3�3�*	D�*	D�K�*�;�v�F�F�F�J�!+�!;�!;�L�!I�!I���$�(�(��)B�G�L�L�L��$�$�%A�K�%A�%A�B�B�B��(�(��5�5�5�/�3�3�K�@�@�O��*��*�*�9�5�5�;�;�O�L�L�L�'�7�7��$���&;�&;�&;�<�8���N��0�0�0�T�5I�5N�0�+�*� +�"&�"5�"&�.�"5�"<�"A�"H�#�3�8�"&�"5�
�������/�/��*�"&�"5�"&�.�"5�"<�"A�"H�!0��!=�"&�"5������'�"�K�1A�+�1N����
 "�w�|�|��$��%�'��*�,� � ��

�$�$�%5�{�C�C�C�C�U*	D�*	D�N)�__name__�
__module__�__qualname__rT�rUrSrr0s(������>D�>D�>D�>D�>DrUrTc��|�|jj��}t�|i���|jt
|jj����}d}|jrt|jj
��}t|��}	|j|kr|}	d�||	|j��}
|j
�dd���|j��}t|||||j|
|||��	�	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
{} = {}.{}r �)	r�method_name�operation_modelr'�method_description�example_prefix�
exclude_input�resource_action_model�include_signatureN)r^�request�	operation�
IGNORE_PARAMSr2r,r�params�resourcer�type�service_name�formatr"r
�
documentation)rr&r'r*r)rcr^�
ignore_params�example_return_value�example_resource_namer`�full_action_names            rSr@r@rs5��.$�3�3���&���O�"�%�%�m�R�8�8�<�<���"�<�#7�#>�?�?���M�&����F�)�,�*?�*D�E�E��&�}�5�5���!�]�2�2� -��!�(�(��3�\�5F���N��?���{�B�/�/�D��1B�D�D��*��$�'�#�*�8�%�#�*�+�
�
�
�
�
�
rUc	�H�d�t|��t|jj��|��}t|��}|j|kr|}|�d|��}	|j�dd���|��}
t||
ti|��|||	|���dS)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:`{}.Client.{}` to update the attributes of the {} resource. Note that the load and reload methods are the same method and can be used interchangeably.r!r r\)rr]r^r'r_r`rcN)
rkrrrdrerjr"r2rr)rr%r&r'r(r)rcrror`rps           rSr;r;�s���6	;�;A�6�#�M�2�2��z�)�3�4�4��<
�<
��'�}�5�5���!�]�2�2� -��-�=�=��=�=�N�!�/�-�-�k�2�>�>�M��M�M�� ��$�&�r�=�9�9�#�&�%�+������rU)T)rA�botocorer�botocore.docs.bcdoc.restdocr�botocore.docs.methodrr�botocore.modelr�botocore.utilsr�boto3.docs.baser	�boto3.docs.methodr
�boto3.docs.utilsrrr
�PUT_DATA_WARNING_MESSAGEr1rfrr@r;rYrUrS�<module>r{sy��
�	�	�	�������9�9�9�9�9�9���������*�)�)�)�)�)�2�2�2�2�2�2�,�,�,�,�,�,�C�C�C�C�C�C�������������
�z�3�4����J��
�6�7�
�?D�?D�?D�?D�?D�'�?D�?D�?D�P�
4�4�4�4�|�0�0�0�0�0�0rU