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

class MetroclusterMccipPortsSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the MetroclusterMccipPorts object"""

    l3_config = marshmallow_fields.Nested(
                lambda: lazy_import_schema("netapp_ontap.models.mccip_port_l3_config", "MccipPortL3ConfigSchema"),
                unknown=EXCLUDE,
                data_key="l3_config",
                allow_none=True
            )
    r""" The l3_config field of the metrocluster_mccip_ports. """

    name = marshmallow_fields.Str(data_key="name", allow_none=True)
    r""" Port name

Example: e1b """

    node = marshmallow_fields.Nested(
                lambda: lazy_import_schema("netapp_ontap.resources.node", "NodeSchema"),
                unknown=EXCLUDE,
                data_key="node",
                allow_none=True
            )
    r""" The node field of the metrocluster_mccip_ports. """

    uuid = marshmallow_fields.Str(data_key="uuid", allow_none=True)
    r""" Port UUID """

    vlan_id = Size(data_key="vlan_id", allow_none=True)
    r""" VLAN ID

Example: 200 """

    @property
    def resource(self):
        return MetroclusterMccipPorts

    gettable_fields = [
        "l3_config",
        "name",
        "node.links",
        "node.name",
        "node.uuid",
        "uuid",
        "vlan_id",
    ]
    """l3_config,name,node.links,node.name,node.uuid,uuid,vlan_id,"""

    patchable_fields = [
        "l3_config",
        "name",
        "node.name",
        "node.uuid",
        "uuid",
        "vlan_id",
    ]
    """l3_config,name,node.name,node.uuid,uuid,vlan_id,"""

    postable_fields = [
        "l3_config",
        "name",
        "node.name",
        "node.uuid",
        "uuid",
        "vlan_id",
    ]
    """l3_config,name,node.name,node.uuid,uuid,vlan_id,"""


class MetroclusterMccipPorts(Resource):

    _schema = MetroclusterMccipPortsSchema
