관리-도구
편집 파일: api_client.cpython-311.pyc
� b��fWs � �b � d Z ddlZddlZddlZddlZddlZddlZddlZddl m Z ddlmZm Z mZ ddlmZmZ ddlmZ ddlmZ ddlmZ dd lmZmZ dd lmZmZ ddlmZ m!Z! dd l"m#Z$ ddl%m&Z&m'Z'm(Z( ddl)m*Z* ddl+m,Z, ddl-m.Z.m/Z/m0Z0 ddl1m2Z2m3Z3m4Z4 ddl5m6Z6 ddl7m8Z8 ddl9m:Z:m;Z; ddl<m=Z= ddl>m?Z? G d� d� � Z@ G d� d� � ZA G d� de@eA� � ZB G d� de@� � ZC G d � d!e@eA� � ZD G d"� d#e@� � ZE G d$� d%e@� � ZF G d&� d'e@� � ZG G d(� d)e@� � ZHdS )*zA This module contains class implementing MongoDB API interaction � N)�partial)�List�Any�Iterable)�Session�Response)�HTTPAdapter)�RequestException)�Retry)�Schema�SchemaError)�is_feature_visible�is_feature_hidden_server_wide� )� supported�get_advice_instance)�gettext)�detailed_advice_schema�user_sites_info_schema�advice_list_schema)� is_wp_path)�docroot)� api_server�proto�adviser_api_server)�XRayAPIError�XRayAPIEmptyResponse�TaskNotFoundError)�open_local_storage)�Task)�get_xray_exec_user�user_mode_verification��read_jwt_token)�filter_by_non_existencec �, � e Zd ZdZdd�dedefd�Zd� Zd� Zed efd �� � Z ed e fd�� � Zd efd�Z dde ded efd�Z dde ded e fd�Z ddede dededed e fd�Z ddededefd�Zd ded e fd�Z d!deded efd�Zd ded e fd�Zd� ZdS )"�Clientz Base client class �unavailable��tracing_task_id� system_idr* c � � || _ || _ t j d� � | _ t dt ddg� � t g d�� � d�� � }t |�� � }t � � | _ | j � t � d�|� � t | j j d � � � | j _ d S )N� api_client� �GET�POST)i� i� i� )�total�allowed_methods�status_forcelist�backoff_factor)�max_retries�://� )�timeout)r+ �task_id�logging� getLogger�loggerr � frozensetr r �session�mountr r �request)�selfr+ r* � retry_conf�adapters �P/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/apiclient/api_client.py�__init__zClient.__init__9 s� � �"���&����'��5�5�����+4�e�V�_�+E�+E�,5�o�o�o�,F�,F�*+�-� -� -� � �*�5�5�5���y�y�������e�=�=�=�'�2�2�2�&�t�|�';�R�H�H�H������ c �>