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: //proc/722141/root/lib/python3.6/site-packages/botocore/docs/__pycache__/paginator.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)�PaginatorDocumentercCs||_|jjjj|_||_dS)N)�_client�meta�
service_modelZservice_nameZ
_service_name�_service_paginator_model)�selfZclientZservice_paginator_model�r
�/usr/lib/python3.6/paginator.py�__init__szPaginatorDocumenter.__init__cCsd|jjd�|jj�|jd�t|jj�}x2|D]*}|jjd|jj	j
|f�|j||�q2WdS)zhDocuments the various paginators for a service

        param section: The section to write to.
        Z
PaginatorszThe available paginators are:z:py:class:`%s.Paginator.%s`N)�styleZh2�new_lineZwriteln�sortedrZ_paginator_configZlir�	__class__�__name__�_add_paginator)r�sectionZpaginator_names�paginator_namer
r
r�document_paginatorss



z'PaginatorDocumenter.document_paginatorscCs�|j|�}|jjd|jjj|fd�|jj�|jj�|jdt	|��|jj
�|jj�|jj|�}t
|||jjj|jjj|d�dS)Nz%s.Paginator.%s)�
class_namez&paginator = client.get_paginator('%s'))rr�
event_emitterr
�paginator_config)Zadd_new_sectionrZstart_sphinx_py_classrrrZstart_codeblockr�writerZ
end_codeblockrZ
get_paginator�document_paginate_methodr	Zeventsr
)rrrrr
r
rr-s&





z"PaginatorDocumenter._add_paginatorN)r�
__module__�__qualname__rrrr
r
r
rrsrTc

Cs |j|�}t�}tdddd�|d<|jdd�r@tdddd�|d<td	d
dd�|d	<tdd
d|d�g}tdd
dd�g}	g}
t|dt�r�|
|d7}
n|
j|d�|jdd�r�|
j|d�g}t|dt�r�||d7}n|j|d�djt|�t	|��}t
|d|||d||	|
||d�dS)a�Documents the paginate method of a paginator

    :param section: The section to write to

    :param paginator_name: The name of the paginator. It is snake cased.

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

    :param service_model: The service model

    :param paginator_config: The paginator config associated to a particular
        paginator.

    :param include_signature: Whether or not to include the signature.
        It is useful for generating docstrings.
    ZMaxItemsZintegerz�<p>The total number of items to return. If the total number of items available is more than the value specified in max-items then a <code>NextToken</code> will be provided in the output that you can use to resume pagination.</p>)�name�	type_name�
documentationZ	limit_keyNZPageSizez<p>The size of each page.<p>Z
StartingToken�stringzq<p>A token to specify where to start paginating. This is the <code>NextToken</code> from a previous response.</p>ZPaginationConfigZ	structurezC<p>A dictionary that provides parameters to control pagination.</p>)r r!r"�membersZ	NextTokenz$<p>A token to resume pagination.</p>Zinput_tokenZoutput_tokenzXCreates an iterator that will paginate through responses from :py:meth:`{0}.Client.{1}`.Zpaginatez&response_iterator = paginator.paginate)rZmethod_descriptionZexample_prefixZ
include_inputZinclude_outputZ
exclude_inputZexclude_output�include_signature)�operation_modelrr�get�
isinstance�list�append�formatrrr)
rrrr
rr%r&Zpagination_config_membersZbotocore_pagination_paramsZ#botocore_pagination_response_paramsZservice_pagination_paramsZ"service_pagination_response_paramsZpaginate_descriptionr
r
rrJsX


rN)T)
ZbotocorerZbotocore.compatrZbotocore.docs.utilsrZbotocore.utilsrZbotocore.docs.methodr�objectrrr
r
r
r�<module>
s8