HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/botocore/docs/__pycache__/waiter.cpython-36.pyc
3

�T_��@sZddlmZddlmZddlmZddlmZddlm	Z	Gdd�de
�Zdd	d
�ZdS)
�)�
xform_name)�OrderedDict)�DocumentedShape)�get_service_module_name)�document_model_driven_methodc@s$eZdZdd�Zdd�Zdd�ZdS)�WaiterDocumentercCs||_|jjjj|_||_dS)N)�_client�meta�
service_modelZservice_nameZ
_service_name�_service_waiter_model)�selfZclient�service_waiter_model�r�/usr/lib/python3.6/waiter.py�__init__szWaiterDocumenter.__init__cCs\|jjd�|jj�|jd�x6|jjD]*}|jjd|jjj	|f�|j
||�q*WdS)zgDocuments the various waiters for a service.

        :param section: The section to write to.
        ZWaiterszThe available waiters are:z:py:class:`%s.Waiter.%s`N)�styleZh2�new_lineZwritelnrZwaiter_namesZlir�	__class__�__name__�_add_single_waiter)r�section�waiter_namerrr�document_waiterss

z!WaiterDocumenter.document_waiterscCs�|j|�}|jjd|jjj|fd�|jj�|jj�|jdt	|��|jj
�|jj�t|||jjj
|jjj|jd�dS)Nz%s.Waiter.%s)�
class_namez waiter = client.get_waiter('%s'))rr�
event_emitterr
r
)Zadd_new_sectionrZstart_sphinx_py_classrrrZstart_codeblockr�writerZ
end_codeblock�document_wait_methodr	Zeventsr
r)rrrrrrr(s 




z#WaiterDocumenter._add_single_waiterN)r�
__module__�__qualname__rrrrrrrrsrTcCs�|j|�}|j|j�}t�}tdddj|j�d�|d<tdddj|j�d�|d<tddd	|d
�g}	djt|�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.
    ZDelayZintegerzK<p>The amount of time in seconds to wait between attempts. Default: {0}</p>)�name�	type_name�
documentationZMaxAttemptsz><p>The maximum number of attempts to be made. Default: {0}</p>ZWaiterConfigZ	structurezI<p>A dictionary that provides parameters to control waiting behavior.</p>)rr r!�membersz�Polls :py:meth:`{0}.Client.{1}` every {2} seconds until a successful state is reached. An error is returned after {3} failed checks.�waitzwaiter.waitF)rZmethod_descriptionZexample_prefixZ
include_inputZdocument_output�include_signatureN)Z
get_waiter�operation_modelZ	operationrr�formatZdelayZmax_attemptsrrr)rrrr
r
r$Zwaiter_modelr%Zwaiter_config_membersZbotocore_waiter_paramsZwait_descriptionrrrrAs8

rN)T)
ZbotocorerZbotocore.compatrZbotocore.docs.utilsrZbotocore.utilsrZbotocore.docs.methodr�objectrrrrrr�<module>
s/