nat.object_store.models#

Classes#

ObjectStoreItem

Represents an object store item consisting of bytes and associated metadata.

Module Contents#

class ObjectStoreItem(/, **data: Any)#

Bases: pydantic.BaseModel

Represents an object store item consisting of bytes and associated metadata.

Attributes#

databytes

The data to store in the object store.

content_typestr | None

The content type of the data.

metadatadict[str, str] | None

Metadata providing context and utility for management operations.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

model_config#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

data: bytes = None#
content_type: str | None = None#
metadata: dict[str, str] | None = None#