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

class NfsServiceProtocolV41FeaturesSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the NfsServiceProtocolV41Features object"""

    acl_enabled = marshmallow_fields.Boolean(data_key="acl_enabled", allow_none=True)
    r""" Specifies whether NFSv4.1 or later ACLs is enabled. """

    implementation_domain = marshmallow_fields.Str(data_key="implementation_domain", allow_none=True)
    r""" Specifies the NFSv4.1 or later implementation ID domain. """

    implementation_name = marshmallow_fields.Str(data_key="implementation_name", allow_none=True)
    r""" Specifies the NFSv4.1 or later implementation ID name. """

    pnfs_enabled = marshmallow_fields.Boolean(data_key="pnfs_enabled", allow_none=True)
    r""" Specifies whether NFSv4.1 or later Parallel NFS is enabled. """

    read_delegation_enabled = marshmallow_fields.Boolean(data_key="read_delegation_enabled", allow_none=True)
    r""" Specifies whether NFSv4.1 or later Read Delegation is enabled. """

    referrals_enabled = marshmallow_fields.Boolean(data_key="referrals_enabled", allow_none=True)
    r""" Specifies whether NFSv4.1 referrals is enabled. """

    trunking_enabled = marshmallow_fields.Boolean(data_key="trunking_enabled", allow_none=True)
    r""" Specifies whether NFSv4.1 or later trunking is enabled. """

    write_delegation_enabled = marshmallow_fields.Boolean(data_key="write_delegation_enabled", allow_none=True)
    r""" Specifies whether NFSv4.1 or later Write Delegation is enabled. """

    @property
    def resource(self):
        return NfsServiceProtocolV41Features

    gettable_fields = [
        "acl_enabled",
        "implementation_domain",
        "implementation_name",
        "pnfs_enabled",
        "read_delegation_enabled",
        "referrals_enabled",
        "trunking_enabled",
        "write_delegation_enabled",
    ]
    """acl_enabled,implementation_domain,implementation_name,pnfs_enabled,read_delegation_enabled,referrals_enabled,trunking_enabled,write_delegation_enabled,"""

    patchable_fields = [
        "acl_enabled",
        "implementation_domain",
        "implementation_name",
        "pnfs_enabled",
        "read_delegation_enabled",
        "referrals_enabled",
        "trunking_enabled",
        "write_delegation_enabled",
    ]
    """acl_enabled,implementation_domain,implementation_name,pnfs_enabled,read_delegation_enabled,referrals_enabled,trunking_enabled,write_delegation_enabled,"""

    postable_fields = [
        "acl_enabled",
        "implementation_domain",
        "implementation_name",
        "pnfs_enabled",
        "read_delegation_enabled",
        "referrals_enabled",
        "trunking_enabled",
        "write_delegation_enabled",
    ]
    """acl_enabled,implementation_domain,implementation_name,pnfs_enabled,read_delegation_enabled,referrals_enabled,trunking_enabled,write_delegation_enabled,"""


class NfsServiceProtocolV41Features(Resource):

    _schema = NfsServiceProtocolV41FeaturesSchema
