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

class FirmwareShelfSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the FirmwareShelf object"""

    in_progress_count = Size(data_key="in_progress_count", allow_none=True)
    r""" The in_progress_count field of the firmware_shelf.

Example: 2 """

    update_status = marshmallow_fields.Str(data_key="update_status", allow_none=True)
    r""" Status of the shelf firmware update.

Valid choices:

* running
* idle """

    @property
    def resource(self):
        return FirmwareShelf

    gettable_fields = [
        "in_progress_count",
        "update_status",
    ]
    """in_progress_count,update_status,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
    ]
    """"""


class FirmwareShelf(Resource):

    _schema = FirmwareShelfSchema
