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/python37/lib/python3.7/site-packages/botocore/docs/__pycache__/waiter.cpython-37.pyc
B

�P�e��@slddlZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZGdd	�d	�Z
d
dd�ZdS)�N)�
xform_name)�OrderedDict)�DocumentStructure)�document_model_driven_method)�DocumentedShape)�get_service_module_namec@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�WaiterDocumentercCs6||_|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_modelZroot_docs_path�r�E/opt/alt/python37/lib/python3.7/site-packages/botocore/docs/waiter.py�__init__szWaiterDocumenter.__init__cCs�|j�d�|�|�|j��|�d�|j��x`|jjD]T}|j�|j	�d|���t
|dd�}|�||�tj
�|j|j	d�}|�||�q>WdS)zgDocuments the various waiters for a service.

        :param section: The section to write to.
        ZWaiterszThe available waiters are:z/waiter/�html)�target�waiterN)�styleZh2�
_add_overview�new_line�writelnZtoctreerZwaiter_namesZtocitemrr�_add_single_waiter�os�path�joinrZ
write_to_file)r�section�waiter_nameZwaiter_doc_structureZwaiter_dir_pathrrr�document_waiters#s




z!WaiterDocumenter.document_waiterscCs�|�d�}|j�|jd|j���|�d|���|�|�|�|�}|jj|j�d|��d�|j��|j�	�|�dt
|��|j��|j�	�t|||j
jj|j
jj|jd�dS)NZ
breadcrumbz../../z / Waiter / z.Waiter.)�
class_namez waiter = client.get_waiter('%s'))r%r&�
event_emitterrr)Zadd_new_sectionr�refrr�writeZadd_title_sectionZstart_sphinx_py_classZstart_codeblockrrZ
end_codeblock�document_wait_methodr	r
�eventsrr)rr%r&Zbreadcrumb_sectionZwaiter_sectionrrrr!;s(






z#WaiterDocumenter._add_single_waitercCs>|j��|�d�|jjd|jd�|�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�.)rrr+Z
external_linkr)rr%rrrrYs


zWaiterDocumenter._add_overviewN)r�
__module__�__qualname__rr'r!rrrrrrsrTcCs�|�|�}|�|j�}t�}tddd�|j�d�|d<tddd�|j�d�|d<tddd	|d
�g}	d�t|�t	|j�|j|j�}
t
|d|||
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.
    ZDelay�integerzJ<p>The amount of time in seconds to wait between attempts. Default: {}</p>)�name�	type_name�
documentationZMaxAttemptsz=<p>The maximum number of attempts to be made. Default: {}</p>ZWaiterConfigZ	structurezI<p>A dictionary that provides parameters to control waiting behavior.</p>)r4r5r6�membersz�Polls :py:meth:`{}.Client.{}` every {} seconds until a successful state is reached. An error is returned after {} failed checks.�waitzwaiter.waitF)r)Zmethod_descriptionZexample_prefixZ
include_inputZdocument_output�include_signatureN)Z
get_waiter�operation_modelZ	operationrr�format�delayZmax_attemptsrrr)r%r&r)rrr9Zwaiter_modelr:Zwaiter_config_membersZbotocore_waiter_paramsZwait_descriptionrrrr,isB

r,)T)r"ZbotocorerZbotocore.compatrZbotocore.docs.bcdoc.restdocrZbotocore.docs.methodrZbotocore.docs.utilsrZbotocore.utilsrrr,rrrr�<module>
sX