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

class ShelfPortsCableSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the ShelfPortsCable object"""

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

Example: 500a0980000b6c3f-50000d1703544b80 """

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

Example: 2m """

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

Example: 112-00431+A0 """

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

Example: 616930439 """

    @property
    def resource(self):
        return ShelfPortsCable

    gettable_fields = [
        "identifier",
        "length",
        "part_number",
        "serial_number",
    ]
    """identifier,length,part_number,serial_number,"""

    patchable_fields = [
        "identifier",
        "length",
        "part_number",
        "serial_number",
    ]
    """identifier,length,part_number,serial_number,"""

    postable_fields = [
        "identifier",
        "length",
        "part_number",
        "serial_number",
    ]
    """identifier,length,part_number,serial_number,"""


class ShelfPortsCable(Resource):

    _schema = ShelfPortsCableSchema
