---
sidebar:
  hidden: true
title: roboto.domain.datasets.record
---
## Module Contents

### DatasetRecord

```python
class roboto.domain.datasets.record.DatasetRecord(/, **data: Any)
```

`from roboto import DatasetRecord`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/datasets/record.py#L31-L115)

Bases: `pydantic.BaseModel`

Data record of a dataset, as the Roboto API returns it.

A dataset is a container of files in a directory structure, usually from one robot activity such as a flight. [`Dataset`](/docs/reference/python-sdk/roboto/domain/datasets/dataset#roboto.domain.datasets.dataset.Dataset) wraps this record with methods that act on the dataset, and exposes it as [`record`](/docs/reference/python-sdk/roboto/domain/datasets/dataset#roboto.domain.datasets.dataset.Dataset.record). Building a record raises `pydantic.ValidationError` when `name` is longer than 120 characters.

**Parameters**

- **data** (`Any`)

**Attributes**

- **DatasetRecord.administrator** (`str`) = `'Roboto'`: Deprecated. Administrator of the dataset, always `"Roboto"` on datasets Roboto returns.

  Nothing replaces it.

- **DatasetRecord.created** (`datetime.datetime`): Time the dataset was created.

- **DatasetRecord.created_by** (`str`): Principal that created the dataset, as `<type>:<id>`, such as `user:<user_id>`.

- **DatasetRecord.custom_fields** (`dict[str, Any]`) = `None`: Values of the custom fields the organization defines for datasets, keyed by field name.

  Every dataset custom field in the [`Ready`](/docs/reference/python-sdk/roboto/domain/custom_fields/record#roboto.domain.custom_fields.record.CustomFieldStatus.Ready) state appears as a key, mapped to `None` when the dataset has no value for it. Fields in any other state are absent, so the map is empty when no dataset custom field is in that state.

- **DatasetRecord.dataset_id** (`str`): Unique ID of the dataset, beginning with `ds_`.

- **DatasetRecord.description** (`str | None`) = `None`: Human-readable description of the dataset, or `None` if it has none.

- **DatasetRecord.device_id** (`str | None`) = `None`: ID of the device the dataset's data came from, or `None` if none was given.

- **DatasetRecord.metadata** (`dict[str, Any]`) = `None`: Key-value metadata on the dataset.

- **DatasetRecord.modified** (`datetime.datetime`): Time the dataset was last modified.

- **DatasetRecord.modified_by** (`str`): Principal that last modified the dataset, in the same `<type>:<id>` form as `created_by`.

- **DatasetRecord.name** (`str | None`) = `None`: Human-readable name of the dataset, at most 120 characters, or `None` if it has none.

  Roboto does not require names to be unique. A name can be an identifier more meaningful to the organization than `dataset_id`, or a short summary of the dataset's contents.

- **DatasetRecord.org_id** (`str`): ID of the organization that owns the dataset.

- **DatasetRecord.roboto_record_version** (`int`) = `0`: Unused. Version number of the record, `0` on every dataset Roboto returns.

- **DatasetRecord.storage_ctx** (`dict[str, Any]`) = `None`: Deprecated. Placeholder storage context whose values are all `"NOT_SET"`.

  Each file's [`uri`](/docs/reference/python-sdk/roboto/domain/files/record#roboto.domain.files.record.FileRecord.uri) gives where that file is stored. SDK versions before 0.10.0 require this field.

- **DatasetRecord.storage_location** (`str`) = `'S3'`: Deprecated. Storage location of the dataset, always `"S3"` on datasets Roboto returns.

  Each file's [`uri`](/docs/reference/python-sdk/roboto/domain/files/record#roboto.domain.files.record.FileRecord.uri) gives where that file is stored.

- **DatasetRecord.tags** (`list[str]`) = `None`: Tags on the dataset.

### make_backwards_compatible_placeholder_storage_ctx()

```python
def roboto.domain.datasets.record.make_backwards_compatible_placeholder_storage_ctx() -> dict[str, Any]
```

`from roboto.domain.datasets.record import make_backwards_compatible_placeholder_storage_ctx`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/datasets/record.py#L16-L28)

Deprecated. Return the placeholder `storage_ctx` that SDK versions before 0.10.0 require on dataset records.

Pydantic calls this while it builds a `DatasetRecord` without a `storage_ctx`, as that field's default, which Roboto does whenever it creates or returns a dataset; nothing replaces it. Those versions reject a dataset record whose `storage_ctx` lacks the `bucket_name`, `iam_role_arn`, and `key_prefix` keys, so each key is present with the value `"NOT_SET"`.

**Returns**

- `dict[str, Any]`
