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

class SoftwarePackageDownloadGetSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the SoftwarePackageDownloadGet object"""

    code = Size(data_key="code", allow_none=True)
    r""" Code returned corresponds to a download message

Example: 10551382 """

    message = marshmallow_fields.Str(data_key="message", allow_none=True)
    r""" Download progress details

Example: Package download in progress """

    state = marshmallow_fields.Str(data_key="state", allow_none=True)
    r""" Download status of the package

Valid choices:

* not_started
* running
* success
* failure """

    @property
    def resource(self):
        return SoftwarePackageDownloadGet

    gettable_fields = [
        "code",
        "message",
        "state",
    ]
    """code,message,state,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
    ]
    """"""


class SoftwarePackageDownloadGet(Resource):

    _schema = SoftwarePackageDownloadGetSchema
