roboto.domain.datasets.operations
Module Contents
BeginSingleFileUploadRequest
BeginSingleFileUploadResponse
CreateDatasetIfNotExistsRequest
Bases: pydantic.BaseModel
Request payload to create a dataset if no existing dataset matches the specified query.
Searches for existing datasets using the provided RoboQL query. If a matching dataset is found, returns that dataset. If no match is found, creates a new dataset with the specified properties and returns it.
Parameters
data AnyAttributes
CreateDatasetIfNotExistsRequest.create_request
CreateDatasetIfNotExistsRequest.match_roboql_query
CreateDatasetRequest
Bases: pydantic.BaseModel
Request payload for creating a new dataset.
Used to specify the initial properties of a dataset during creation, including optional metadata, tags, name, and description.
Attributes
CreateDatasetRequest.custom_fields
Initial values for Ready custom fields on this dataset.
Each key must be the name of a CustomField that is Ready for the caller’s org and the Dataset entity type; each value must satisfy the field’s declared type. Names that are undefined or not Ready, and values that don’t match the field’s type, are rejected with a structured error.
CreateDatasetRequest.description
Optional human-readable description of the dataset.
CreateDatasetRequest.device_id
Optional identifier of the device that generated this data.
CreateDatasetRequest.metadata
Key-value metadata pairs to associate with the dataset for discovery and search.
CreateDatasetRequest.name
Optional short name for the dataset (max 120 characters).
CreateDatasetRequest.tags
List of tags for dataset discovery and organization.
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
DeleteDirectoriesRequest
Bases: pydantic.BaseModel
Request payload for deleting directories within a dataset.
Used to remove entire directory structures and all contained files from a dataset. This is a bulk operation that affects multiple files.
Parameters
data AnyAttributes
DeleteDirectoriesRequest.directory_paths
List of directory paths to delete from the dataset.
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’.
QueryDatasetsRequest
Bases: pydantic.BaseModel
Request payload for querying datasets with filters.
Used to search for datasets based on various criteria such as metadata, tags, and other dataset properties. The filters are applied server-side to efficiently return matching datasets.
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 AnyUpdateDatasetRequest
Bases: pydantic.BaseModel
Request payload for updating dataset properties.
Used to modify dataset metadata, description, name, and other properties. Only specified fields will be updated; others remain unchanged.
Parameters
data AnyAttributes
UpdateDatasetRequest.custom_fields_changeset
Changes to apply to Ready custom-field values on this dataset.
Each referenced field name must be a Ready custom field for this dataset’s org and the Dataset entity type; each set_fields value must satisfy the field’s declared type. Names that are undefined or not Ready are rejected with a structured error. Field names not mentioned by the changeset are left unchanged.
UpdateDatasetRequest.description
New description for the dataset. Set to None to clear the description.
UpdateDatasetRequest.device_id
New device ID for the dataset. Set to None to clear the device association.
UpdateDatasetRequest.metadata_changeset
Metadata changes to apply (add, update, or remove fields/tags).
UpdateDatasetRequest.model_config
model_config #Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
UpdateDatasetRequest.name
name Annotated[str, pydantic.New name for the dataset (max 120 characters). Set to None to clear the name.