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

class CloudStorageTierSchema(ResourceSchema, metaclass=ResourceSchemaMeta):
    """The fields of the CloudStorageTier object"""

    cloud_store = marshmallow_fields.Nested(
                lambda: lazy_import_schema("netapp_ontap.resources.cloud_store", "CloudStoreSchema"),
                unknown=EXCLUDE,
                data_key="cloud_store",
                allow_none=True
            )
    r""" The cloud_store field of the cloud_storage_tier. """

    used = Size(data_key="used", allow_none=True)
    r""" Capacity used in bytes in the cloud store by this aggregate. This is a cached value calculated every 5 minutes. """

    @property
    def resource(self):
        return CloudStorageTier

    gettable_fields = [
        "cloud_store.links",
        "cloud_store.name",
        "cloud_store.uuid",
        "used",
    ]
    """cloud_store.links,cloud_store.name,cloud_store.uuid,used,"""

    patchable_fields = [
    ]
    """"""

    postable_fields = [
    ]
    """"""


class CloudStorageTier(Resource):

    _schema = CloudStorageTierSchema
