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

class PortsetInterfaceNoRecordsSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the PortsetInterfaceNoRecords object"""

    links = marshmallow_fields.Nested(
                lambda: lazy_import_schema("netapp_ontap.models.self_link", "SelfLinkSchema"),
                unknown=EXCLUDE,
                data_key="_links",
                allow_none=True
            )
    r""" The links field of the portset_interface_no_records. """

    fc = marshmallow_fields.Nested(
                lambda: lazy_import_schema("netapp_ontap.resources.fc_interface", "FcInterfaceSchema"),
                unknown=EXCLUDE,
                data_key="fc",
                allow_none=True
            )
    r""" The fc field of the portset_interface_no_records. """

    ip = marshmallow_fields.Nested(
                lambda: lazy_import_schema("netapp_ontap.resources.ip_interface", "IpInterfaceSchema"),
                unknown=EXCLUDE,
                data_key="ip",
                allow_none=True
            )
    r""" The ip field of the portset_interface_no_records. """

    uuid = marshmallow_fields.Str(data_key="uuid", allow_none=True)
    r""" The unique identifier of the network interface.


Example: 4ea7a442-86d1-11e0-ae1c-123478563412 """

    @property
    def resource(self):
        return PortsetInterfaceNoRecords

    gettable_fields = [
        "links",
        "fc.links",
        "fc.name",
        "fc.uuid",
        "fc.wwpn",
        "ip.links",
        "ip.ip",
        "ip.name",
        "ip.uuid",
        "uuid",
    ]
    """links,fc.links,fc.name,fc.uuid,fc.wwpn,ip.links,ip.ip,ip.name,ip.uuid,uuid,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
        "fc.name",
        "fc.uuid",
        "ip.name",
        "ip.uuid",
    ]
    """fc.name,fc.uuid,ip.name,ip.uuid,"""


class PortsetInterfaceNoRecords(Resource):

    _schema = PortsetInterfaceNoRecordsSchema
