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

class S3BucketLifecycleAbortIncompleteMultipartUploadSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the S3BucketLifecycleAbortIncompleteMultipartUpload 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 s3_bucket_lifecycle_abort_incomplete_multipart_upload. """

    after_initiation_days = Size(data_key="after_initiation_days", allow_none=True)
    r""" Number of days of initiation after which uploads can be aborted. """

    @property
    def resource(self):
        return S3BucketLifecycleAbortIncompleteMultipartUpload

    gettable_fields = [
        "links",
        "after_initiation_days",
    ]
    """links,after_initiation_days,"""

    patchable_fields = [
        "after_initiation_days",
    ]
    """after_initiation_days,"""

    postable_fields = [
        "after_initiation_days",
    ]
    """after_initiation_days,"""


class S3BucketLifecycleAbortIncompleteMultipartUpload(Resource):

    _schema = S3BucketLifecycleAbortIncompleteMultipartUploadSchema
