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

class SoftwareUploadSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the SoftwareUpload object"""

    file = marshmallow_fields.Str(data_key="file", allow_none=True)
    r""" Package file on a local file system

Example: base64 encoded package file content """

    @property
    def resource(self):
        return SoftwareUpload

    gettable_fields = [
        "file",
    ]
    """file,"""

    patchable_fields = [
        "file",
    ]
    """file,"""

    postable_fields = [
        "file",
    ]
    """file,"""


class SoftwareUpload(Resource):

    _schema = SoftwareUploadSchema
