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

class MetroclusterDiagnosticsClusterSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the MetroclusterDiagnosticsCluster object"""

    details = marshmallow_fields.List(
                marshmallow_fields.Nested(
                    lambda: lazy_import_schema("netapp_ontap.models.metrocluster_diag_details", "MetroclusterDiagDetailsSchema"),
                    unknown=EXCLUDE,
                    allow_none=True
                ),
                data_key="details",
                allow_none=True
                )
    r""" Display details of the MetroCluster check for clusters. """

    state = marshmallow_fields.Str(data_key="state", allow_none=True)
    r""" Status of diagnostic operation for this component.

Valid choices:

* ok
* warning
* not_run
* not_applicable """

    summary = marshmallow_fields.Nested(
                lambda: lazy_import_schema("netapp_ontap.models.error_arguments", "ErrorArgumentsSchema"),
                unknown=EXCLUDE,
                data_key="summary",
                allow_none=True
            )
    r""" The summary field of the metrocluster_diagnostics_cluster. """

    timestamp = ImpreciseDateTime(data_key="timestamp", allow_none=True)
    r""" Time of the most recent diagnostic operation for this component

Example: 2016-03-10T22:35:16.000+0000 """

    @property
    def resource(self):
        return MetroclusterDiagnosticsCluster

    gettable_fields = [
        "details",
        "state",
        "summary",
        "timestamp",
    ]
    """details,state,summary,timestamp,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
    ]
    """"""


class MetroclusterDiagnosticsCluster(Resource):

    _schema = MetroclusterDiagnosticsClusterSchema
