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

class NdmpConnectSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the NdmpConnect object"""

    address = marshmallow_fields.Str(data_key="address", allow_none=True)
    r""" Indicates the NDMP data connection address. """

    port = Size(data_key="port", allow_none=True)
    r""" Indicates the NDMP data connection port.

Example: 18600 """

    type = marshmallow_fields.Str(data_key="type", allow_none=True)
    r""" Indicates the NDMP data connection type. """

    @property
    def resource(self):
        return NdmpConnect

    gettable_fields = [
        "address",
        "port",
        "type",
    ]
    """address,port,type,"""

    patchable_fields = [
        "address",
        "port",
        "type",
    ]
    """address,port,type,"""

    postable_fields = [
        "address",
        "port",
        "type",
    ]
    """address,port,type,"""


class NdmpConnect(Resource):

    _schema = NdmpConnectSchema
