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

class SwitchPortRemotePortDeviceShelfSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the SwitchPortRemotePortDeviceShelf 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 switch_port_remote_port_device_shelf. """

    module = marshmallow_fields.Str(data_key="module", allow_none=True)
    r""" Shelf module connected to this port.

Valid choices:

* A
* B """

    name = marshmallow_fields.Str(data_key="name", allow_none=True)
    r""" The name field of the switch_port_remote_port_device_shelf.

Example: 1.1 """

    uid = marshmallow_fields.Str(data_key="uid", allow_none=True)
    r""" The uid field of the switch_port_remote_port_device_shelf.

Example: 12439000444923584512 """

    @property
    def resource(self):
        return SwitchPortRemotePortDeviceShelf

    gettable_fields = [
        "links",
        "module",
        "name",
        "uid",
    ]
    """links,module,name,uid,"""

    patchable_fields = [
        "module",
        "name",
        "uid",
    ]
    """module,name,uid,"""

    postable_fields = [
        "module",
        "name",
        "uid",
    ]
    """module,name,uid,"""


class SwitchPortRemotePortDeviceShelf(Resource):

    _schema = SwitchPortRemotePortDeviceShelfSchema
