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

class S3ServiceUserPostSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the S3ServiceUserPost object"""

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

    access_key = marshmallow_fields.Str(data_key="access_key", allow_none=True)
    r""" Specifies the access key for the user.

Example: <AWS-ACCESS-KEY-ID> """

    key_expiry_time = ImpreciseDateTime(data_key="key_expiry_time", allow_none=True)
    r""" Specifies the date and time after which the keys expire and are no longer valid.

Example: 2024-01-01T00:00:00.000+0000 """

    name = marshmallow_fields.Str(data_key="name", allow_none=True)
    r""" The name of the user.

Example: user-1 """

    secret_key = marshmallow_fields.Str(data_key="secret_key", allow_none=True)
    r""" Specifies the secret key for the user.

Example: <AWS-SECRET-ACCESS-KEY> """

    @property
    def resource(self):
        return S3ServiceUserPost

    gettable_fields = [
        "links",
        "access_key",
        "key_expiry_time",
        "name",
        "secret_key",
    ]
    """links,access_key,key_expiry_time,name,secret_key,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
    ]
    """"""


class S3ServiceUserPost(Resource):

    _schema = S3ServiceUserPostSchema
