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

class NvmeInterfaceIpInterfaceLocationSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the NvmeInterfaceIpInterfaceLocation object"""

    port = marshmallow_fields.Nested(
                lambda: lazy_import_schema("netapp_ontap.resources.port", "PortSchema"),
                unknown=EXCLUDE,
                data_key="port",
                allow_none=True
            )
    r""" The port field of the nvme_interface_ip_interface_location. """

    @property
    def resource(self):
        return NvmeInterfaceIpInterfaceLocation

    gettable_fields = [
        "port.links",
        "port.name",
        "port.node",
        "port.uuid",
    ]
    """port.links,port.name,port.node,port.uuid,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
    ]
    """"""


class NvmeInterfaceIpInterfaceLocation(Resource):

    _schema = NvmeInterfaceIpInterfaceLocationSchema
