HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/botocore/docs/__pycache__/params.cpython-310.pyc
o

.&�a�,�@sLddlmZddlmZGdd�de�ZGdd�de�ZGdd�de�Zd	S)
�)�ShapeDocumenter)�py_type_namec@s~eZdZddd�Zdd�Z		ddd�Z		ddd	�Z		dd
d�Z		ddd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dS)�BaseParamsDocumenterNcCsg}|j|||d||d�dS)a3Fills out the documentation for a section given a model shape.

        :param section: The section to write the documentation to.

        :param shape: The shape of the operation.

        :type include: Dictionary where keys are parameter names and
            values are the shapes of the parameter names.
        :param include: The parameter shapes to include in the documentation.

        :type exclude: List of the names of the parameters to exclude.
        :param exclude: The names of the parameters to exclude from
            documentation.
        N)�section�shape�history�name�include�exclude)�traverse_and_document_shape)�selfrrr	r
r�r
�6/usr/lib/python3/dist-packages/botocore/docs/params.py�document_paramss

�z$BaseParamsDocumenter.document_paramscKs|j||fi|��dS�N��_add_member_documentation�rrr�kwargsr
r
r�document_recursive_shape&sz-BaseParamsDocumenter.document_recursive_shapecKs|j||fi|��dSrr)rrrrr	r
rr
r
r�document_shape_default)sz+BaseParamsDocumenter.document_shape_defaultc	Ksf|j||fi|��|j}|j|jd|jjid�}|�|�|j|||dd�|�d�}|�|�dS)Nr��context�rrrrzend-list)r�member�add_new_sectionr�_start_nested_paramr�_end_nested_param)	rrrrr	r
r�param_shape�
param_sectionr
r
r�document_shape_type_list-s�
�
z-BaseParamsDocumenter.document_shape_type_listc
Ks�|j||fi|��|jdd|jjid�}|�|�|�||j�|j|jjd|jjid�}|j��|�|�|j||j|dd�|�d�}	|�	|	�|�	|	�dS)N�keyrrrzend-map)
rrr!rr�value�style�indentrr)
rrrrr	r
r�key_sectionr�end_sectionr
r
r�document_shape_type_map:s$�
�

�

z,BaseParamsDocumenter.document_shape_type_mapcKs�|�|j|�}|j|||d�|D]%}	|r|	|vrq||	}
|j|	d|
jid�}|�|�|j||
||	d�q|�d�}|�|�dS)N)rrrr�
end-structure)�_add_members_to_shape�membersrrrrrr)rrrrr	r
rrr*�paramrrr
r
r�document_shape_type_structureOs 
�
�
z2BaseParamsDocumenter.document_shape_type_structurecKsdSrr
rr
r
rrasz.BaseParamsDocumenter._add_member_documentationcCs$|r|��}|D]}|||j<q|Sr)�copyr)rr*r	r+r
r
rr)ds
z*BaseParamsDocumenter._add_members_to_shapecCsF|�|�}t|j�}d}|dur|�||�dS|j�||�dS)Nz(%s) -- )�_get_special_py_type_namer�	type_name�writer#�italics)r�type_sectionr�special_py_type�py_type�type_formatr
r
r�"_document_non_top_level_param_typeks

z7BaseParamsDocumenter._document_non_top_level_param_typecC�|j��|j��dSr)r#r$�new_line�rrr
r
rrw�
z(BaseParamsDocumenter._start_nested_paramcCr7r)r#�dedentr8r9r
r
rr{r:z&BaseParamsDocumenter._end_nested_param�NN)NNN)�__name__�
__module__�__qualname__rrrr r'r,rr)r6rrr
r
r
rrs(

�
�

�
�rc@s&eZdZdZdZddd�Zdd�ZdS)	�ResponseParamsDocumenterz5Generates the description for the response parameterszresponse-paramsNc
Ks�|�d�}|�d�|dur|j�d|�|�d�}|�||�|�d�}|jrb|j��t|dd�r\|�d�}d	}	d
�dd�|j	�
�D��}
d
}|�|	|
�|�d�}|j�|�|�|j�|j�
�dS)N�
param-name�- �%s �
param-type�param-documentation�is_tagged_unionF�param-tagged-union-docsaK.. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: %s.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows�, cS�g|]}d|�qS�z``%s``r
��.0r!r
r
r�
<listcomp>��zFResponseParamsDocumenter._add_member_documentation.<locals>.<listcomp>z3'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}zparam-unknown-example)rr0r#�boldr6�
documentationr$�getattr�joinr*�keys�	codeblock�include_doc_string�
new_paragraph)
rrrrr�name_sectionr2�documentation_section�tagged_union_docs�note�tagged_union_members_str�unknown_code_example�exampler
r
rr�s0




��
�
z2ResponseParamsDocumenter._add_member_documentationcKs|j|||fi|��dSr)r,)rrrrrr
r
r� document_shape_type_event_stream�sz9ResponseParamsDocumenter.document_shape_type_event_streamr)r=r>r?�__doc__�
EVENT_NAMErr^r
r
r
rr@�s

$r@c@s>eZdZdZdZ	d
dd�Z		ddd�Zd	d
�Zdd�ZdS)�RequestParamsDocumenterz4Generates the description for the request parameterszrequest-paramsNc
Ks�t|�dkr|j||fi|��|j��|�|j|�}t|�D]-\}}	|r+|	|vr+q ||	}
|j|	d|
jid�}|j�	�|	|j
v}|j||
||	|d�q |�d�}t|�dkr^|j��|j�	�dS)N�rr)rrrr�is_requiredr()
�lenrr#r$r)r*�	enumeraterrr8�required_membersrr;)
rrrrr	r
rr*�ir+rrrcr
r
rr,�s*

�

�

z5RequestParamsDocumenter.document_shape_type_structureFcKs\|�|�}|durt|j�}|r5|�d�}|�d||f�|�d�}	|	j��|�d�}
|
�d|�n!|�d�}
|
�d�|durK|
j�d|�|�d�}|�||�|rh|�d�}|j�	�|j�d	�|j
r�|�d
�}|j�	�t|dd�r�|�d
�}
d}d�dd�|j
��D��}|
�||�|�|j
�|�||�|�d�}|j��dS)NrDz:type %s: %szend-param-typerAz:param %s: rBrCzis-requiredz[REQUIRED] rErFFrGzl.. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: %s. rHcSrIrJr
rKr
r
rrM�rNzERequestParamsDocumenter._add_member_documentation.<locals>.<listcomp>z	end-param)r.rr/rr0r#r8rOr6r$rPrQrRr*rSrU� _add_special_trait_documentationrV)rrrr�is_top_level_paramrcrr4r2�end_type_sectionrW�is_required_sectionrXrYrZr[�end_param_sectionr
r
rr�sN










�
���
z1RequestParamsDocumenter._add_member_documentationcCsd|jvr|�|�dSdS)N�idempotencyToken)�metadata�!_append_idempotency_documentation)rrrr
r
rrh�s
�z8RequestParamsDocumenter._add_special_trait_documentationcCsd}|�|�dS)Nz,This field is autopopulated if not provided.)r0)rr�	docstringr
r
rro�sz9RequestParamsDocumenter._append_idempotency_documentationr<)NFF)	r=r>r?r_r`r,rrhror
r
r
rra�s
�
�0raN)�botocore.docs.shaper�botocore.docs.utilsrrr@rar
r
r
r�<module>s
o.