Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/__pycache__/model.cpython-311.pyc
sjr d Z ddlmZ ddlZddlZddlZddlZddlZddlm Z ddl
mZ ddlmZ ddl
mZ ddlmZ dd lmZmZmZmZmZmZmZ dd
lmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z% ddl&m'Z' ddl(m)Z) dd
l*m+Z+m,Z, ddl-m.Z.m/Z/m0Z0 ddl1m2Z2m3Z3m4Z4m5Z5 ddl6m7Z7 ddl8m9Z9m:Z:m;Z;m<Z<m=Z= ddl>m?Z? ddl@mAZA ddlBmCZC G d de+ ZD G d de+ ZE e d G d d ZF G d de+ ZG G d d e+ ZH G d! d"e+ ZI G d# d$e+ ZJd%ZKd&ZLd'ZMeKeLfZN G d( d)e+ ZO G d* d+e+ ZPdS ),u
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
)annotationsN) dataclass)reduce)
attrgetter)Path)time)AnyDictIterableListSetTuplecast)
SQLBooleanFieldCase CharFieldCheck
Expression
FloatFieldForeignKeyFieldIntegerFieldModelSelectPrimaryKeyField TextFieldfn
model_to_dict)UserType)Modelinstance)
FilenameField
ScanPathFieldapply_order_by)execute_iterable_expressionget_abspath_from_user_dirget_results_iterable_expressionsplit_for_chunk)RemoteRevertHitInfo)FAILED_TO_CLEANUPMalwareHitStatusMalwareScanResourceTypeMalwareScanTypeVulnerabilityHitStatus)get_crontab)MalwareDatabaseHitInfo)sqlite_max_variable_numberc ~ e Zd ZdZ G d d Z ed Z ed Z ed Z ed e
d ej
ej ej ej ej ej ej f g Z edd
Z edd Z edd
Z edd
Z ed e
d ej j ej j f g Z ed Z edd Z!e" dej
ej ej fd
dd Z#d
S )MalwareScanzRepresents a batch of files scanned for malware
Usually a single AI-BOLIT execution.
See :class:`.MalwareScanType` for possible kinds of scans.
c e Zd Zej ZdZdS )MalwareScan.Meta
malware_scansN__name__
__module____qualname__r! dbdatabasedb_table J/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/model.pyMetar5 V s ;"r? rA Tprimary_keyFnullz
type in {}rE constraintsr rE default Nresource_type in {}c 8 t t S Nintr r>