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

class ErrorResponsesSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the ErrorResponses object"""

    errors = marshmallow_fields.List(
                marshmallow_fields.Nested(
                    lambda: lazy_import_schema("netapp_ontap.models.returned_error", "ReturnedErrorSchema"),
                    unknown=EXCLUDE,
                    allow_none=True
                ),
                data_key="errors",
                allow_none=True
                )
    r""" The errors field of the error_responses. """

    @property
    def resource(self):
        return ErrorResponses

    gettable_fields = [
        "errors",
    ]
    """errors,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
    ]
    """"""


class ErrorResponses(Resource):

    _schema = ErrorResponsesSchema
