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__ = ["NdmpScsi", "NdmpScsiSchema"]
__pdoc__ = {
    "NdmpScsiSchema.resource": False,
    "NdmpScsiSchema.opts": False,
    "NdmpScsi": False,
}

class NdmpScsiSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the NdmpScsi object"""

    device_id = marshmallow_fields.Str(data_key="device_id", allow_none=True)
    r""" Indicates the NDMP SCSI device ID. """

    host_adapter = Size(data_key="host_adapter", allow_none=True)
    r""" Indicates the NDMP SCSI host adapter. """

    lun_id = Size(data_key="lun_id", allow_none=True)
    r""" Indicates the NDMP SCSI LUN ID. """

    target_id = Size(data_key="target_id", allow_none=True)
    r""" Indicates the NDMP SCSI target ID. """

    @property
    def resource(self):
        return NdmpScsi

    gettable_fields = [
        "device_id",
        "host_adapter",
        "lun_id",
        "target_id",
    ]
    """device_id,host_adapter,lun_id,target_id,"""

    patchable_fields = [
        "device_id",
        "host_adapter",
        "lun_id",
        "target_id",
    ]
    """device_id,host_adapter,lun_id,target_id,"""

    postable_fields = [
        "device_id",
        "host_adapter",
        "lun_id",
        "target_id",
    ]
    """device_id,host_adapter,lun_id,target_id,"""


class NdmpScsi(Resource):

    _schema = NdmpScsiSchema
