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

class ConsistencyGroupResponseRecordsReplicationRelationshipsSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the ConsistencyGroupResponseRecordsReplicationRelationships object"""

    links = marshmallow_fields.Nested(
                lambda: lazy_import_schema("netapp_ontap.models.self_link", "SelfLinkSchema"),
                unknown=EXCLUDE,
                data_key="_links",
                allow_none=True
            )
    r""" The links field of the consistency_group_response_records_replication_relationships. """

    is_protected_by_svm_dr = marshmallow_fields.Boolean(data_key="is_protected_by_svm_dr", allow_none=True)
    r""" Indicates whether or not this consistency group is protected by SVM DR. """

    is_source = marshmallow_fields.Boolean(data_key="is_source", allow_none=True)
    r""" Indicates whether or not this consistency group is the source for replication. """

    uuid = marshmallow_fields.Str(data_key="uuid", allow_none=True)
    r""" The unique identifier of the SnapMirror relationship.


Example: 02c9e252-41be-11e9-81d5-00a0986138f7 """

    @property
    def resource(self):
        return ConsistencyGroupResponseRecordsReplicationRelationships

    gettable_fields = [
        "links",
        "is_protected_by_svm_dr",
        "is_source",
        "uuid",
    ]
    """links,is_protected_by_svm_dr,is_source,uuid,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
    ]
    """"""


class ConsistencyGroupResponseRecordsReplicationRelationships(Resource):

    _schema = ConsistencyGroupResponseRecordsReplicationRelationshipsSchema
