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

class NasApplicationComponentsFlexcacheOriginSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the NasApplicationComponentsFlexcacheOrigin object"""

    component = marshmallow_fields.Nested(
                lambda: lazy_import_schema("netapp_ontap.models.nas_application_components_flexcache_origin_component", "NasApplicationComponentsFlexcacheOriginComponentSchema"),
                unknown=EXCLUDE,
                data_key="component",
                allow_none=True
            )
    r""" The component field of the nas_application_components_flexcache_origin. """

    svm = marshmallow_fields.Nested(
                lambda: lazy_import_schema("netapp_ontap.models.nas_application_components_flexcache_origin_svm", "NasApplicationComponentsFlexcacheOriginSvmSchema"),
                unknown=EXCLUDE,
                data_key="svm",
                allow_none=True
            )
    r""" The svm field of the nas_application_components_flexcache_origin. """

    @property
    def resource(self):
        return NasApplicationComponentsFlexcacheOrigin

    gettable_fields = [
        "component",
        "svm",
    ]
    """component,svm,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
        "component",
        "svm",
    ]
    """component,svm,"""


class NasApplicationComponentsFlexcacheOrigin(Resource):

    _schema = NasApplicationComponentsFlexcacheOriginSchema
