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/botocore/docs/__pycache__/waiter.cpython-311.pyc
�

/�;f���z�ddlZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZGd�d	��Z
	dd�ZdS)
�N)�
xform_name)�OrderedDict)�DocumentStructure)�document_model_driven_method)�DocumentedShape)�get_service_module_namec�&�eZdZd�Zd�Zd�Zd�ZdS)�WaiterDocumenterc��||_|jjj|_|jjjj|_||_||_	d|_
dS)NzRhttps://boto3.amazonaws.com/v1/documentation/api/latest/guide/clients.html#waiters)�_client�	__class__�__name__�_client_class_name�meta�
service_model�service_name�
_service_name�_service_waiter_model�_root_docs_path�_USER_GUIDE_LINK)�self�client�service_waiter_model�root_docs_paths    �G/opt/alt/python311/lib/python3.11/site-packages/botocore/docs/waiter.py�__init__zWaiterDocumenter.__init__sP�����"&�,�"8�"A���!�\�.�<�I���%9��"�-���
E�	
����c�(�|j�d��|�|��|j���|�d��|j���|jjD]�}|j�|j	�d|����t|d���}|�||��tj
�|j|j	d��}|�||����dS)zgDocuments the various waiters for a service.

        :param section: The section to write to.
        �WaiterszThe available waiters are:z/waiter/�html)�target�waiterN)�style�h2�
_add_overview�new_line�writeln�toctreer�waiter_names�tocitemrr�_add_single_waiter�os�path�joinr�
write_to_file)r�section�waiter_name�waiter_doc_structure�waiter_dir_paths     r�document_waitersz!WaiterDocumenter.document_waiters#s%��
	�
����#�#�#����7�#�#�#��
��� � � ����4�5�5�5��
�������5�B�	M�	M�K��M�!�!�T�%7�"N�"N��"N�"N�O�O�O�#4��F�$�$�$� �
�#�#�$8�+�F�F�F�!�g�l�l��$�d�&8�(���O�
!�.�.���L�L�L�L�	M�	Mrc���|�d��}|j�|jd|j����|�d|����|�|��|�|��}|j�|j�d|�����|j���|j�	��|�dt|��z��|j���|j�	��t|||j
jj|j
jj|j���dS)N�
breadcrumbz../../z / Waiter / z.Waiter.)�
class_namez waiter = client.get_waiter('%s'))r0r1�
event_emitterrr)�add_new_sectionr#�refrr�write�add_title_section�start_sphinx_py_class�start_codeblockr&r�
end_codeblock�document_wait_methodrr�eventsrr)rr0r1�breadcrumb_section�waiter_sections     rr+z#WaiterDocumenter._add_single_waiter;s���$�4�4�\�B�B��� �$�$��#�%B�d�.@�%B�%B�	
�	
�	
�	� � �!=��!=�!=�>�>�>��!�!�+�.�.�.� �0�0��=�=����2�2��1�H�H�;�H�H�	3�	
�	
�	
�
	��,�,�.�.�.���%�%�'�'�'����0�:�k�3J�3J�J�	
�	
�	
�	��*�*�,�,�,�	��%�%�'�'�'��"�#��,�+�2��,�+�9�!%�!;�	
�	
�	
�	
�	
�	
rc��|j���|�d��|j�d|j���|�d��|j���dS)Nz�Waiters are available on a client instance via the ``get_waiter`` method. For more detailed instructions and examples on the usage or waiters, see the waiters z
user guide)�title�link�.)r#r&r;�
external_linkr)rr0s  rr%zWaiterDocumenter._add_overviewYs����
��� � � ��
�
�
�	
�	
�	
�	�
�#�#���&�	$�	
�	
�	
�	�
�
�c�����
��� � � � � rN)r�
__module__�__qualname__rr4r+r%�rrr
r
sS������	
�	
�	
�M�M�M�0
�
�
�<
!�
!�
!�
!�
!rr
Tc��|�|��}|�|j��}t��}t	ddd�|j�����|d<t	ddd�|j�����|d<t	ddd	|�
��g}	d�t|��t|j��|j|j��}
t|d|||
d
|	d|��	�	dS)a�Documents a the wait method of a waiter

    :param section: The section to write to

    :param waiter_name: The name of the waiter

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

    :param service_model: The service model

    :param service_waiter_model: The waiter model associated to the service

    :param include_signature: Whether or not to include the signature.
        It is useful for generating docstrings.
    �Delay�integerzJ<p>The amount of time in seconds to wait between attempts. Default: {}</p>)�name�	type_name�
documentation�MaxAttemptsz=<p>The maximum number of attempts to be made. Default: {}</p>�WaiterConfig�	structurezI<p>A dictionary that provides parameters to control waiting behavior.</p>)rOrPrQ�membersz�Polls :py:meth:`{}.Client.{}` every {} seconds until a successful state is reached. An error is returned after {} failed checks.�waitzwaiter.waitF)r8�method_description�example_prefix�
include_input�document_output�include_signatureN)�
get_waiter�operation_model�	operationrr�format�delay�max_attemptsrrr)r0r1r8rrr[�waiter_modelr]�waiter_config_members�botocore_waiter_params�wait_descriptions           rr@r@isK��.(�2�2�;�?�?�L�#�3�3�L�4J�K�K�O�'�M�M��%4�
��
(�(.��|�/A�(B�(B�&�&�&��'�"�,;�
��
�$�f�\�%>�?�?�,�,�,��-�(�	��!�(�*�	
�	
�	
�
��	+�+1�6�#�M�2�2��|�-�.�.����%�	,
�,
��!����#�+�$�,��+�
�
�
�
�
�
r)T)r,�botocorer�botocore.compatr�botocore.docs.bcdoc.restdocr�botocore.docs.methodr�botocore.docs.utilsr�botocore.utilsrr
r@rKrr�<module>rls���
�	�	�	�������'�'�'�'�'�'�9�9�9�9�9�9�=�=�=�=�=�=�/�/�/�/�/�/�2�2�2�2�2�2�O!�O!�O!�O!�O!�O!�O!�O!�p�
O�O�O�O�O�Or