관리-도구
편집 파일: myimunify.cpython-311.pyc
� IMg � �� � d dl Zd dlmZmZ d dlmc mc mZ d dl mZmZ d dl mZmZmZ d dlmZ d dlmZ d dlmZ G d� d ej � � Z G d � dej � � ZdS )� N)�List�Optional)�MyImunifyConfig�is_mi_freemium_license)� MyImunify�#set_protection_status_for_all_users�update_users_protection)�lookup)�run_in_executor_decorator)�Scopec �� � e Zd Zej Z ej dd� � dee de fd�� � Z ej dd� � d� � � Z ej dd� � d � � � Zd S )�MyImunifyEndpoints� myimunify�update�items� protectionc � �J K � t | j ||dk � � � d {V �� i S )N�enabled)r �_sink)�selfr r s �Y/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/simple_rpc/myimunify.pyr zMyImunifyEndpoints.update sK � � � �%��J��z�Y�6� � � � � � � � � � � � z enable-allc � �@ K � t | j d� � � d {V �� d S )NT�r r �r s r � enable_allzMyImunifyEndpoints.enable_all s0 � � � �1�$�*�d�C�C�C�C�C�C�C�C�C�C�Cr zdisable-allc � �@ K � t | j d� � � d {V �� d S )NFr r s r �disable_allzMyImunifyEndpoints.disable_all! s0 � � � �1�$�*�e�D�D�D�D�D�D�D�D�D�D�Dr N) �__name__� __module__�__qualname__r �IM360�SCOPEr �bindr �strr r r � r r r r s� � � � � � ��K�E��V�[��h�'�'��$�s�)� �� � � � (�'�� �V�[��l�+�+�D� D� ,�+�D� �V�[��m�,�,�E� E� -�,�E� E� Er r c �t � e Zd Zej Z ej dd� � ddee de e fd�� � ZdS )�MyImunifyCommonEndpointsr �statusNr �userc � � K � t j }t j � � }|��|g}t j r�|� � � � d {V ��� |g � � }t t |� � d � � }t j dz t j � ddd|||� � � d�� � z }t j � � � t j � |� � � � � � � }t j |t'