HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/site-packages/botocore/docs/__pycache__/waiter.cpython-38.pyc
U

KD�g��@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�A/opt/cppython/lib/python3.8/site-packages/botocore/docs/waiter.py�__init__s�zWaiterDocumenter.__init__cCs�|j�d�|�|�|j��|�d�|j��|jjD]T}|j�|j	�d|���t
|dd�}|�||�tj
�|j|j	d�}|�||�q<dS)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
|��d��|j��|j�	�t|||j
jj|j
jj|jd�dS)	NZ
breadcrumbz../../z / Waiter / z.Waiter.)�
class_namezwaiter = client.get_waiter('z'))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!;s2

�

�

�

�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�|d<tddd|j�d�d�|d<tdd	d
|d�g}	dt|��d
t|j��d|j�d|j�d�	}
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�integerzD<p>The amount of time in seconds to wait between attempts. Default: z</p>)�name�	type_name�
documentationZMaxAttemptsz7<p>The maximum number of attempts to be made. Default: ZWaiterConfigZ	structurezI<p>A dictionary that provides parameters to control waiting behavior.</p>)r4r5r6�memberszPolls :py:meth:`z.Client.z` every zG seconds until a successful state is reached. An error is raised after z failed checks.�waitzwaiter.waitF)r)Zmethod_descriptionZexample_prefixZ
include_inputZdocument_output�include_signatureN)
Z
get_waiter�operation_modelZ	operationrr�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�