File: //opt/alt/python311/lib/python3.11/site-packages/botocore/docs/__pycache__/client.cpython-311.pyc
�
/�;f�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� � ZdS )� 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 � � | dk rd S |dv S )N�generate_presigned_url)�s3� )�method_name�service_name�kwargss �G/opt/alt/python311/lib/python3.11/site-packages/botocore/docs/client.py�!_allowlist_generate_presigned_urlr s � ��.�.�.��t��6�!�!� c �p � e Zd ZegZdd�Zd� Zd� Zd� Zd� Z d� Z
d� Zd � Zd
� Z
d� Zd� Zd
� Zd� Zd� Zd� ZdS )�ClientDocumenterNc � � || _ | j j j | _ || _ || _ | j �i | _ | j j j j | _ d S �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__( sS � ����"&�,�"8�"A���-��� /���� �(�$&�D�!�!�\�.�<�I����r c �� � | � |� � | � |� � | � � � }| � ||� � | � |� � dS )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 sk � �
���� � � ��!�!�'�*�*�*��1�1�3�3�����w��7�7�7�� � ��0�0�0�0�0r c �T � t | j � � }| � |� � S r )r r �_filter_client_methods)r% r1 s r r- z$ClientDocumenter._get_client_methods<