관리-도구
편집 파일: __init__.cpython-311.pyc
� b��f$ � �L � d dl Z d dlmZ e j d� � Zd deddfd�ZdS ) � N)�gettextzapi_client.init�api_task� interface�returnz Client objectc �� � | dk r"t � d� � ddlm} |S | dk r"t � d� � ddlm} |S | dk r"t � d � � dd lm} |S | dk r"t � d� � dd lm} |S | dk r"t � d� � ddlm} |S | dk r"t � d� � ddlm} |S | dk r"t � d� � ddlm } |S t � dd| i�� � t t d� � t | � � z � � �)a Get a client according to given interface: 'api' --> MongoDB APIClient 'api_req' --> ClickHouse APIClient 'base' --> basic APIClient 'dbm' --> DBMClient :param interface: 'api'|'api_req'|'base'|'dbm' :return: a Client object r zInitializing MongoDB API client� )� APIClient�api_reqz"Initializing ClickHouse API client)� SendClient�dbmzInitializing DBM API client)� DBMClient� auto_tasksz.Initializing MongoDB API client for auto tasks)�TasksClient�listsz&Initializing MongoDB API client for UI)�UIAPIClient�adviserz$Initializing Smart Advice API client)�SmartAdviceAPIClient� awp_provisionz%Initializing AWP Provision API client)�AWPProvisionAPIClientzUnknown client to initialize�requested_client)�extraz$Do not know client of '%s' interface)�logger�info� api_clientr r r r r r r �error�RuntimeError�_�str)r r r r r r r r s �N/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/apiclient/__init__.py� get_clientr s� � � �J������5�6�6�6�)�)�)�)�)�)��� �i� � ����8�9�9�9�*�*�*�*�*�*��� �e� � ����1�2�2�2�)�)�)�)�)�)��� �l� "� "����D�E�E�E�+�+�+�+�+�+��� �g� � ����<�=�=�=�+�+�+�+�+�+��� �i� � ����:�;�;�;�4�4�4�4�4�4�#�#� �o� %� %����;�<�<�<�5�5�5�5�5�5�$�$����3�.� �:� � <� <� <��1�C�D�D�s�9�~�~�U�V�V�V� )r )�logging�xrayr r � getLoggerr r r � r! r �<module>r&