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

class ApplicationRpoComponentsSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the ApplicationRpoComponents object"""

    name = marshmallow_fields.Str(data_key="name", allow_none=True)
    r""" Component Name. """

    rpo = marshmallow_fields.Nested(
                lambda: lazy_import_schema("netapp_ontap.models.application_rpo_components_rpo", "ApplicationRpoComponentsRpoSchema"),
                unknown=EXCLUDE,
                data_key="rpo",
                allow_none=True
            )
    r""" The rpo field of the application_rpo_components. """

    uuid = marshmallow_fields.Str(data_key="uuid", allow_none=True)
    r""" Component UUID. """

    @property
    def resource(self):
        return ApplicationRpoComponents

    gettable_fields = [
        "name",
        "rpo",
        "uuid",
    ]
    """name,rpo,uuid,"""

    patchable_fields = [
        "rpo",
    ]
    """rpo,"""

    postable_fields = [
        "rpo",
    ]
    """rpo,"""


class ApplicationRpoComponents(Resource):

    _schema = ApplicationRpoComponentsSchema
