Current File : //proc/self/root/lib/python3/dist-packages/botocore/docs/__pycache__/client.cpython-312.pyc |
�
P��e�C � � � d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m
Z
mZmZ d dl
mZ d dlmZ d d lmZmZ d
� Z G d� d� Z G d
� d� Z G d� d� Zy)� N)�
xform_name)�OrderedDict)�DocumentStructure)�ResponseExampleDocumenter)�document_custom_method�document_model_driven_method�get_instance_public_methods)�ResponseParamsDocumenter)�document_shared_examples)�DocumentedShape�get_official_service_namec � � | dk7 ry |dv S )N�generate_presigned_url)�s3� )�method_name�service_name�kwargss �6/usr/lib/python3/dist-packages/botocore/docs/client.py�!_allowlist_generate_presigned_urlr s � ��.�.���6�!�!� c �n � e Zd ZegZdd�Zd� Zd� Zd� Zd� Z d� Z
d� Zd � Zd
� Z
d� Zd� Zd
� Zd� Zd� Zd� Zy)�ClientDocumenterNc � � || _ | j j j | _ || _ || _ | j
�i | _ | j j j j | _ y �N)
�_client� __class__�__name__�_client_class_name�_root_docs_path�_shared_examples�meta�
service_modelr �
_service_name)�self�client�root_docs_path�shared_exampless r �__init__zClientDocumenter.__init__( sc � ����"&�,�,�"8�"8�"A�"A���-��� /���� � �(�$&�D�!�!�\�\�.�.�<�<�I�I��r c � � | j |� | j |� | j � }| j ||� | j |� y)z]Documents a client and its methods
:param section: The section to write to.
N)�
_add_title�_add_class_signature�_get_client_methods�_add_client_intro�_add_client_methods)r% �section�client_methodss r �document_clientz ClientDocumenter.document_client1 sJ � �
���� ��!�!�'�*��1�1�3�����w��7�� � ��0r c �N � t | j � }| j |� S r )r r �_filter_client_methods)r% r1 s r r- z$ClientDocumenter._get_client_methods<