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

class NasApplicationComponentsExportPolicySchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the NasApplicationComponentsExportPolicy object"""

    id = Size(data_key="id", allow_none=True)
    r""" The ID of an existing NFS export policy. """

    name = marshmallow_fields.Str(data_key="name", allow_none=True)
    r""" The name of an existing NFS export policy. """

    @property
    def resource(self):
        return NasApplicationComponentsExportPolicy

    gettable_fields = [
        "id",
        "name",
    ]
    """id,name,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
        "id",
        "name",
    ]
    """id,name,"""


class NasApplicationComponentsExportPolicy(Resource):

    _schema = NasApplicationComponentsExportPolicySchema
