r"""
Copyright &copy; 2026 NetApp Inc.
All rights reserved.

This file has been automatically generated based on the ONTAP REST API documentation.

"""
from marshmallow import EXCLUDE, fields as marshmallow_fields  # type: ignore
from netapp_ontap.resource import Resource, ResourceSchema, ResourceSchemaMeta, ImpreciseDateTime, Size, lazy_import_schema


__all__ = ["AntiRansomwareSuspectFile", "AntiRansomwareSuspectFileSchema"]
__pdoc__ = {
    "AntiRansomwareSuspectFileSchema.resource": False,
    "AntiRansomwareSuspectFileSchema.opts": False,
    "AntiRansomwareSuspectFile": False,
}

class AntiRansomwareSuspectFileSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the AntiRansomwareSuspectFile object"""

    format = marshmallow_fields.Str(data_key="format", allow_none=True)
    r""" File format of the suspected file.

Example: pdf """

    name = marshmallow_fields.Str(data_key="name", allow_none=True)
    r""" Name of the suspected file.

Example: test_file """

    path = marshmallow_fields.Str(data_key="path", allow_none=True)
    r""" Path of the suspected file.

Example: d1/d2/d3 """

    reason = marshmallow_fields.Str(data_key="reason", allow_none=True)
    r""" Reason behind this file being suspected

Example: High Entropy """

    suspect_time = ImpreciseDateTime(data_key="suspect_time", allow_none=True)
    r""" Time when the file was detected as a potential suspect in date-time format.

Example: 2021-05-12T15:00:16.000+0000 """

    @property
    def resource(self):
        return AntiRansomwareSuspectFile

    gettable_fields = [
        "format",
        "name",
        "path",
        "reason",
        "suspect_time",
    ]
    """format,name,path,reason,suspect_time,"""

    patchable_fields = [
        "format",
        "name",
        "path",
        "reason",
    ]
    """format,name,path,reason,"""

    postable_fields = [
        "format",
        "name",
        "path",
        "reason",
    ]
    """format,name,path,reason,"""


class AntiRansomwareSuspectFile(Resource):

    _schema = AntiRansomwareSuspectFileSchema
