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

class S3BucketSvmProtectionStatusSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the S3BucketSvmProtectionStatus object"""

    destination = marshmallow_fields.Nested(
                lambda: lazy_import_schema("netapp_ontap.models.s3_bucket_svm_protection_status_destination", "S3BucketSvmProtectionStatusDestinationSchema"),
                unknown=EXCLUDE,
                data_key="destination",
                allow_none=True
            )
    r""" The destination field of the s3_bucket_svm_protection_status. """

    is_protected = marshmallow_fields.Boolean(data_key="is_protected", allow_none=True)
    r""" Specifies whether a bucket is a source and if it is protected within ONTAP and/or an external cloud. This field cannot be set in a POST method. """

    @property
    def resource(self):
        return S3BucketSvmProtectionStatus

    gettable_fields = [
        "destination",
        "is_protected",
    ]
    """destination,is_protected,"""

    patchable_fields = [
        "destination",
    ]
    """destination,"""

    postable_fields = [
        "destination",
    ]
    """destination,"""


class S3BucketSvmProtectionStatus(Resource):

    _schema = S3BucketSvmProtectionStatusSchema
