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

class ClusterNodesExternalCacheSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the ClusterNodesExternalCache object"""

    is_enabled = marshmallow_fields.Boolean(data_key="is_enabled", allow_none=True)
    r""" Indicates whether the external cache is enabled.

Example: true """

    is_hya_enabled = marshmallow_fields.Boolean(data_key="is_hya_enabled", allow_none=True)
    r""" Indicates whether HyA caching is enabled.

Example: true """

    is_rewarm_enabled = marshmallow_fields.Boolean(data_key="is_rewarm_enabled", allow_none=True)
    r""" Indicates whether rewarm is enabled.

Example: true """

    pcs_size = Size(data_key="pcs_size", allow_none=True)
    r""" PCS size in gigabytes. """

    @property
    def resource(self):
        return ClusterNodesExternalCache

    gettable_fields = [
        "is_enabled",
        "is_hya_enabled",
        "is_rewarm_enabled",
        "pcs_size",
    ]
    """is_enabled,is_hya_enabled,is_rewarm_enabled,pcs_size,"""

    patchable_fields = [
        "is_enabled",
        "is_hya_enabled",
        "is_rewarm_enabled",
        "pcs_size",
    ]
    """is_enabled,is_hya_enabled,is_rewarm_enabled,pcs_size,"""

    postable_fields = [
        "is_enabled",
        "is_hya_enabled",
        "is_rewarm_enabled",
        "pcs_size",
    ]
    """is_enabled,is_hya_enabled,is_rewarm_enabled,pcs_size,"""


class ClusterNodesExternalCache(Resource):

    _schema = ClusterNodesExternalCacheSchema
