roboto.domain.files.operations
Module Contents
CreateDirectoryRequest
Bases: pydantic.BaseModel
Request payload to create a directory among the files of one association.
Parameters
data AnyAttributes
CreateDirectoryRequest.create_intermediate_dirs
If True, creates intermediate directories in the path if they don’t exist. If False, requires all parent directories to already exist.
CreateDirectoryRequest.error_if_exists
CreateDirectoryRequest.name
CreateDirectoryRequest.origination
CreateDirectoryRequest.parent_path
CreateLinkRequest
Bases: pydantic.BaseModel
Request body for PUT /v1/files/association/id/<association_id>/link.
Parameters
data AnyAttributes
CreateLinkRequest.relative_path
Where the link sits among the association’s files. Missing parent directories are created.
CreateLinkRequest.target_file_id
ID of the file the link points at. It must be a file, not a link or a directory, in the same org.
CreateLinkRequest.target_version
Version of the target to pin. Defaults to the target’s current version.
DeleteFileRequest
Bases: pydantic.BaseModel
Request payload for deleting a file from the platform.
This request is used internally by the platform to delete files and their associated data. The file is identified by its storage URI.
Parameters
data AnyAttributes
DeleteFileRequest.uri
Storage URI of the file to delete (e.g., ‘s3://bucket/path/to/file.bag’).
DirectoryContentsPage
Bases: pydantic.BaseModel
Response containing the contents of a dataset directory page.
Represents a paginated view of files and subdirectories within a dataset directory. Used when browsing dataset contents hierarchically.
Parameters
data AnyAttributes
DirectoryContentsPage.directories
Subdirectories contained in this directory page.
DirectoryContentsPage.files
Files contained in this directory page.
DirectoryContentsPage.next_token
Token for retrieving the next page of results, if any.
FileRecordRequest
Bases: pydantic.BaseModel
Request payload for upserting a file record.
Used to create or update file metadata records in the platform. This is typically used during file import or metadata update operations.
Parameters
data AnyAttributes
ImportFileRequest
Bases: pydantic.BaseModel
Request payload for importing an existing file into a dataset.
Used to register files that already exist in storage (such as customer S3 buckets) with the Roboto platform. The file content remains in its original location while metadata is stored in Roboto for discovery and processing.
Parameters
data AnyAttributes
ImportFileRequest.description
Optional human-readable description of the file.
ImportFileRequest.device_id
Optional identifier of the device that generated this data.
ImportFileRequest.metadata
Optional key-value metadata pairs to associate with the file.
ImportFileRequest.relative_path
Path of the file relative to the dataset root (e.g., logs/session1.bag).
ImportFileRequest.size
Size of the file in bytes. When importing a single file, you can omit the size, as Roboto will look up the size from the object store. When calling import_batch, you must provide the size explicitly.
ImportFileRequest.tags
Optional list of tags for file discovery and organization.
ImportFileRequest.uri
Storage URI where the file is located (e.g., s3://bucket/path/to/file.bag).
QueryDatasetFilesRequest
Bases: pydantic.BaseModel
Request payload for listing the files associated with a dataset, an org, or a device.
Supports gitignore-style patterns for flexible file selection and pagination. Despite the name, the same body lists the files of any association type.
Parameters
data AnyAttributes
QueryDatasetFilesRequest.exclude_patterns
List of gitignore-style patterns for files to exclude from results.
QueryDatasetFilesRequest.include_patterns
List of gitignore-style patterns for files to include in results.
QueryDatasetFilesRequest.page_token
Token for retrieving the next page of results in paginated queries.
QueryDatasetFilesRequest.sort_by
Field to sort results by. Defaults to ‘created’.
QueryDatasetFilesRequest.sort_direction
Sort direction (‘ASC’ or ‘DESC’). Defaults to ‘DESC’.
QueryFilesRequest
Bases: pydantic.BaseModel
Request payload for querying files with filters.
Used to search for files based on various criteria such as metadata, tags, ingestion status, and other file properties. The filters are applied server-side to efficiently return matching files.
Parameters
data AnyRenameDirectoryRequest
Bases: pydantic.BaseModel
Request payload for renaming a directory among the files of one association.
Changes the path of a directory and all its contained files. This updates the logical organization without moving actual file content.
Parameters
data AnyRenameFileRequest
Bases: pydantic.BaseModel
Request payload for renaming a file within its dataset.
Changes the relative path of a file within its dataset. This updates the file’s logical location but does not move the actual file content in storage.
Parameters
data AnySignedUrlResponse
Bases: pydantic.BaseModel
Response containing a signed URL for direct file access.
Provides a time-limited URL that allows direct access to file content without requiring Roboto authentication. Used for file downloads and integration with external systems.
Parameters
data AnyAttributes
UpdateFileRecordRequest
Bases: pydantic.BaseModel
Request payload for updating file record properties.
Used to modify file metadata, description, and ingestion status. Only specified fields are updated; others remain unchanged. Uses NotSet sentinel values to distinguish between explicit None values and fields that should not be modified.
Parameters
data AnyAttributes
UpdateFileRecordRequest.description
New description for the file, or NotSet to leave unchanged.
UpdateFileRecordRequest.device_id
New device ID for the file, or NotSet to leave unchanged.
UpdateFileRecordRequest.ingestion_complete
Set to True to mark file as fully ingested, or NotSet to leave unchanged.
UpdateFileRecordRequest.metadata_changeset
Metadata changes to apply (add, update, or remove fields/tags), or NotSet to leave unchanged.
UpdateFileRecordRequest.model_config
model_config #Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].